[Letux-kernel] letux-4.11-rc2
H. Nikolaus Schaller
hns at goldelico.com
Fri Mar 17 10:16:57 CET 2017
Hi,
> Am 08.03.2017 um 19:10 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
>
> Hi,
> I have upgraded the tree and fixed some merge & compile issues.
>
> But I have trouble booting:
>
> If someone finds a little time, please check if you also have this.
>
> Before we put too much efforts into this, let's await -rc2 because
> this may be issues others have as well.
This problem has almost disappeared. Only 3 remaining issues during early boot.
Very important seems to be to do a clean build if 4.10.2 was built last time.
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.11.0-rc2-letux+ (hns at iMac.local) (gcc version 4.9.2 (GCC) ) #873 SMP PREEMPT Mon Mar 13 23:56:47 CET 2017
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Goldelico GTA04A5/Letux 2804
[ 0.000000] debug: ignoring loglevel setting.
[ 0.000000] cma: Reserved 16 MiB at 0xbe800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 261632
[ 0.000000] free_area_init_node: node 0, pgdat c0ca4dc0, node_mem_map ef7f9000
[ 0.000000] Normal zone: 1536 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 196608 pages, LIFO batch:31
[ 0.000000] HighMem zone: 65024 pages, LIFO batch:15
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] OMAP3630/DM3730 ES1.2 (l2cache iva sgx neon isp 192mhz_clk)
[ 0.000000] OF: ERROR: Bad of_node_put() on /ocp at 68000000
[ 0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.11.0-rc2-letux+ #873
[ 0.000000] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[ 0.000000] [<c010f378>] (unwind_backtrace) from [<c010b8fc>] (show_stack+0x10/0x14)
[ 0.000000] [<c010b8fc>] (show_stack) from [<c043dd40>] (dump_stack+0x98/0xd0)
[ 0.000000] [<c043dd40>] (dump_stack) from [<c043f3bc>] (kobject_release+0x60/0x74)
[ 0.000000] [<c043f3bc>] (kobject_release) from [<c0620ac0>] (of_find_node_by_name+0x68/0x80)
[ 0.000000] [<c0620ac0>] (of_find_node_by_name) from [<c0b1008c>] (omap3xxx_hwmod_is_hs_ip_block_usable+0x24/0x2c)
[ 0.000000] [<c0b1008c>] (omap3xxx_hwmod_is_hs_ip_block_usable) from [<c0b101d8>] (omap3xxx_hwmod_init+0x144/0x25c)
[ 0.000000] [<c0b101d8>] (omap3xxx_hwmod_init) from [<c0b09f80>] (omap3_init_early+0x84/0x10c)
[ 0.000000] [<c0b09f80>] (omap3_init_early) from [<c0b0a070>] (omap3630_init_early+0x8/0x30)
[ 0.000000] [<c0b0a070>] (omap3630_init_early) from [<c0b043f0>] (setup_arch+0xa74/0xb80)
[ 0.000000] [<c0b043f0>] (setup_arch) from [<c0b00918>] (start_kernel+0x54/0x398)
[ 0.000000] [<c0b00918>] (start_kernel) from [<8000807c>] (0x8000807c)
[ 0.000000] percpu: Embedded 17 pages/cpu @ef79b000 s39552 r8192 d21888 u69632
[ 0.000000] pcpu-alloc: s39552 r8192 d21888 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
[ 0.000000] Kernel command line: console=ttyO2,115200n8 mtdoops.mtddev=omap2.nand ubi.mtd=4 root=/dev/mmcblk0p2 rw rootfstype=ext4,ext3 rootwait console=ttyO2,115200n8 vram=12M omapfb.vram=0:8M,1:4M omapfb.rotate_type=0 omapdss.def_disp=lcd rootwait twl4030_charger.allow_usb=1 musb_hdrc.preserve_vbus=1 log_buf_len=8M ignore_loglevel earlyprintk
[ 0.000000] log_buf_len: 8388608 bytes
[ 0.000000] early log buf free: 62564(95%)
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 992536K/1046528K available (7168K kernel code, 683K rwdata, 2240K rodata, 1024K init, 7997K bss, 37608K reserved, 16384K cma-reserved, 243712K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0800000 (8160 kB)
[ 0.000000] .init : 0xc0b00000 - 0xc0c00000 (1024 kB)
[ 0.000000] .data : 0xc0c00000 - 0xc0caaeb0 ( 684 kB)
[ 0.000000] .bss : 0xc0caaeb0 - 0xc147a2d8 (7998 kB)
[ 0.000000] Running RCU self tests
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU lockdep checking is enabled.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: CPU: 0 PID: 0 at lib/refcount.c:114 kobject_get+0x38/0x4c
[ 0.000000] refcount_t: increment on 0; use-after-free.
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.11.0-rc2-letux+ #873
[ 0.000000] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[ 0.000000] [<c010f378>] (unwind_backtrace) from [<c010b8fc>] (show_stack+0x10/0x14)
[ 0.000000] [<c010b8fc>] (show_stack) from [<c043dd40>] (dump_stack+0x98/0xd0)
[ 0.000000] [<c043dd40>] (dump_stack) from [<c012f69c>] (__warn+0xd0/0x100)
[ 0.000000] [<c012f69c>] (__warn) from [<c012f700>] (warn_slowpath_fmt+0x34/0x44)
[ 0.000000] [<c012f700>] (warn_slowpath_fmt) from [<c043f24c>] (kobject_get+0x38/0x4c)
[ 0.000000] [<c043f24c>] (kobject_get) from [<c0622af8>] (of_node_get+0x14/0x1c)
[ 0.000000] [<c0622af8>] (of_node_get) from [<c061fb74>] (of_get_parent+0x24/0x40)
[ 0.000000] [<c061fb74>] (of_get_parent) from [<c0624ce8>] (of_irq_find_parent+0x74/0x88)
[ 0.000000] [<c0624ce8>] (of_irq_find_parent) from [<c0b41b98>] (of_irq_init+0xb4/0x298)
[ 0.000000] [<c0b41b98>] (of_irq_init) from [<c0b03260>] (init_IRQ+0x20/0x88)
[ 0.000000] [<c0b03260>] (init_IRQ) from [<c0b00ac0>] (start_kernel+0x1fc/0x398)
[ 0.000000] [<c0b00ac0>] (start_kernel) from [<8000807c>] (0x8000807c)
[ 0.000000] ---[ end trace 0000000000000000 ]---
[ 0.000000] ------------[ cut here ]------------
[ 0.000000] WARNING: CPU: 0 PID: 0 at lib/refcount.c:128 refcount_sub_and_test+0x44/0x98
[ 0.000000] refcount_t: underflow; use-after-free.
[ 0.000000] Modules linked in:
[ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 4.11.0-rc2-letux+ #873
[ 0.000000] Hardware name: Generic OMAP36xx (Flattened Device Tree)
[ 0.000000] [<c010f378>] (unwind_backtrace) from [<c010b8fc>] (show_stack+0x10/0x14)
[ 0.000000] [<c010b8fc>] (show_stack) from [<c043dd40>] (dump_stack+0x98/0xd0)
[ 0.000000] [<c043dd40>] (dump_stack) from [<c012f69c>] (__warn+0xd0/0x100)
[ 0.000000] [<c012f69c>] (__warn) from [<c012f700>] (warn_slowpath_fmt+0x34/0x44)
[ 0.000000] [<c012f700>] (warn_slowpath_fmt) from [<c0455f88>] (refcount_sub_and_test+0x44/0x98)
[ 0.000000] [<c0455f88>] (refcount_sub_and_test) from [<c043f2a0>] (kobject_put+0x40/0x68)
[ 0.000000] [<c043f2a0>] (kobject_put) from [<c0624ca4>] (of_irq_find_parent+0x30/0x88)
[ 0.000000] [<c0624ca4>] (of_irq_find_parent) from [<c0b41b98>] (of_irq_init+0xb4/0x298)
[ 0.000000] [<c0b41b98>] (of_irq_init) from [<c0b03260>] (init_IRQ+0x20/0x88)
[ 0.000000] [<c0b03260>] (init_IRQ) from [<c0b00ac0>] (start_kernel+0x1fc/0x398)
[ 0.000000] [<c0b00ac0>] (start_kernel) from [<8000807c>] (0x8000807c)
[ 0.000000] ---[ end trace f68728a0d3053b52 ]---
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[ 0.000000] OMAP clockevent source: timer1 at 32768 Hz
[ 0.000000] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000030] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65535999984741ns
[ 0.000061] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.002166] Console: colour dummy device 80x30
> There are also some issues with bluetooth since I have switched from
> our w2sg0004 driver to the new serdev driver. This also disables the
> w2cbw bluetooth driver. Maybe we need to implement some serdev
> based driver for BT as well...
I can now boot and login into the 4.11-rc2 kernel.
Bluetooth fails as expected...
And the bmc150 iio driver seems to fail in input_set_abs_params in our iio/input bridge.
BNO055 driver fails as well.
USB g_ether works. And I was able to run a hw-test:
root at letux:~# ./hw-test
1 test_start ok Fri Mar 17 09:05:22 UTC 2017
2 test_version ok 6.1
3 test_kernel ok 4.11.0-rc2-letux+ #880 SMP PREEMPT Fri Mar 17 09:00:35 CET 2017 - recommended minimum: 4.10
4 test_rootfs ok SD
5 test_device_tree ok with DT
6 test_model ok Goldelico GTA04A5/Letux 2804 Device-Tree-Model
7 test_leds_on ok enable LEDs
8 test_barometer ok 949 mBar, 38 °C Barometer values
9 test_bmg160 ok -6, -12, 3, 19 °C Gyroscope values
10 test_bmc150_accel nfnd -6, -12, 3 Accelerometer values
11 test_bmc150_compass ok 932, 413, -1990 Compass values
12 test_bno055 nfnd , , - , , - 0 °C All values
13 test_tsc2007 ok 0 Touch screen pressure
14 test_camera nfnd optional Camera device
15 test_tps61050 ok 1-0033 Torch/Flash controller [no kernel driver]
16 test_tca6507_1 ok 1-0064 TCA6507 LED controller on I2C1
17 test_power_generic_batt_volt ok 4105 mV generic adc battery voltage [broken driver]
18 test_power_twl4030_batt_volt ok 4082 mV main battery voltage
19 test_power_twl4030_batt_status ok Charging USB charging status
20 test_power_twl4030_batt_temp ok 26 °C battery temperature [may not be real value if there is no NTC and while not charging]
21 test_power_twl4030_batt_type ok 0 mV battery identification
22 test_power_twl4030_batt_backup ok 3228 mV backup battery voltage
23 test_power_hdq_status ok Charging Status
24 test_power_hdq_fuel ok 84 % Fuel level
25 test_power_hdq_temp ok 32 °C Temperature
26 test_power_hdq_volt ok 4091 mV main battery voltage
27 test_memory_ram ok 1009944 kB Memory size (/proc/meminfo)
28 test_memory_nand ok 527958 kB NAND size (/proc/mtd)
29 test_cpu_cpuid nfnd Die-ID stored in u-boot environment
30 test_cpu_mpurate ok 1000 MHz mpurate reported by U-Boot
31 test_cpu_frequency ok 800 MHz cpu clock frequency(ies)
32 test_cpu_temperature ok 67 °C cpu temperature
33 test_gpu nfnd GPU device [no kernel driver]
34 test_uboot ok U-Boot 2016.11-00225-gdc09145-di Version string of U-Boot in NAND
35 test_usb_ip ok 83.151.26.121 global IP access through Ethernet over USB/WLAN
36 test_lcd ok LCD driver has initialized [no test for colors etc.]
37 test_tvout ok enabling TVOut
38 test_tvout_off ok switching back to LCD
39 test_si47xx ok 1-0011 FM TRX [no kernel driver]
40 test_vibra ok running rumble effect demo
41 test_audio ok running audio demo
42 test_gps_interface ok /dev/ttyO1 GPS interface
43 test_gps nok GPS startup
44 test_wwan_usb_option ok Bus 002 Device 002: ID 0af0:8800 Option OPTION modem
45 test_wwan_interface ok /dev/ttyHS3 WWAN interface
46 test_wwan_option_imei ok 354154040182997 IMEI
47 test_wwan_option_serial ok LG3MCBF0C6 Serial Number
48 test_wwan_option_hwv ok 3.0 Hardware Version
49 test_wwan_option_fwv ok 2.2.39.0 UMTS Firmware Version
50 test_wwan_option_fbt ok (Date: Sep 28 2012, Time: 10:11:09) Firmware Build Time
51 test_wwan_option_product_name ok UNKNOWN Product Name
46 test_wwan_option_3gwoe ok /dev/ttyHS3 check for 3G Wakeup through AT_ORESET
47 test_wwan_off ok /dev/ttyHS3 WWAN power off command
48 test_bluetooth_scan nok Bluetooth scan
49 test_bluetooth_mac nok Bluetooth MAC
50 test_wlan_if ok wlan0 WLAN interface
51 test_wlan_scan ok 00:12:bf:7d:ce:e6(on wlan0) WLAN scan
52 test_wlan_mac ok 54:4a:16:2a:31:81 WLAN MAC
53 test_wlan_off ok WLAN off
54 Summary nok Fri Mar 17 09:08:01 UTC 2017 global test result
root at letux:~#
This reveals:
WLAN works :)
GPS does not work :( There seems to be a problem with the w2sg driver or serdev config. Or the device tree.
So we have good chances to fix these things soon.
BR,
Nikolaus
More information about the Letux-kernel
mailing list