REGRESSION: LIME2 kernel or u-boot keeps rebooting

Started by IvanSB, July 07, 2021, 01:00:44 PM

Previous topic - Next topic

IvanSB

Just updated via apt

u-boot-olinuxino:armhf
2021.04+olimex-1-20210529.190314 -> 2021.04+olimex-1-20210707.070354

u-boot-tools-olinuxino:armhf
2021.04+olimex-1-20210529.190314 -> 2021.04+olimex-1-20210707.070354

linux-image-olimex:armhf
5.10.36-20210513-105318 -> 5.10.47-20210707-080601

if I have a datalogic barcode reader plugged in a usb port LIME2 keeps rebooting

U-Boot SPL 2021.04+olimex-1-20210507.081028 (May 07 2021 - 08:11:19 +0000)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Loading configuration from EEPROM: OK
Verifying data: OK
Trying to boot from MMC2


U-Boot 2021.04+olimex-1-20210507.081028 (May 07 2021 - 08:11:19 +0000) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
ID:    A20-OLinuXino-LIME2-e16Gs16M Rev.L
SN:    0001ABAD
MAC:   30:1F:9A:D0:DE:49
I2C:   ready
DRAM:  1 GiB
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
MMC:   mmc@1c0f000: 0, mmc@1c11000: 1
Loading Environment from EXT4... *** Warning - bad CRC, using default environment

Loading Environment from FAT... ** No device specified **
In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Net:   eth0: ethernet@1c50000, eth1: usb_ether
starting USB...
Bus usb@1c14000: USB EHCI 1.00
Bus usb@1c14400: USB OHCI 1.0
Bus usb@1c1c000: USB EHCI 1.00
Bus usb@1c1c400: USB OHCI 1.0
scanning bus usb@1c14000 for devices... 1 USB Device(s) found
scanning bus usb@1c14400 for devices... 2 USB Device(s) found
scanning bus usb@1c1c000 for devices... 1 USB Device(s) found
scanning bus usb@1c1c400 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
2274 bytes read in 1 ms (2.2 MiB/s)
## Executing script at 43100000
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
1156 bytes read in 1 ms (1.1 MiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
16072747 bytes read in 877 ms (17.5 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-9604' configuration
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel 5.10.47-olimex
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x580000d0
     Data Size:    6418296 Bytes = 6.1 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x40080000
     Entry Point:  0x40080000
     Hash algo:    crc32
     Hash value:   fe59de1b
     Hash algo:    sha1
     Hash value:   b51787164127bddb59ef6b96bf3067f9935f829e
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 58000000 ...
   Using 'config-9604' configuration
   Trying 'ramdisk-1' ramdisk subimage
     Description:  Ramdisk for kernel 5.10.47-olimex
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x5861f17c
     Data Size:    9199696 Bytes = 8.8 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x4fe00000
     Entry Point:  0x4fe00000
     Hash algo:    crc32
     Hash value:   db6e57d1
     Hash algo:    sha1
     Hash value:   1dc6c99cc357f40c0b563f6f43f809584f332bc7
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading ramdisk from 0x5861f17c to 0x4fe00000
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 58000000 ...
   Using 'config-9604' configuration
   Trying 'fdt-4' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58f04f80
     Data Size:    43639 Bytes = 42.6 KiB
     Architecture: ARM
     Load Address: 0x4fa00000
     Hash algo:    crc32
     Hash value:   e3e37001
     Hash algo:    sha1
     Hash value:   667e11969b2536fb0ded11edebc801e461e7cc14
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58f04f80 to 0x4fa00000
## Loading fdt from FIT Image at 58000000 ...
   Trying 'overlay-1' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58f509c8
     Data Size:    1001 Bytes = 1001 Bytes
     Architecture: ARM
     Load Address: 0x4fa10000
     Hash algo:    crc32
     Hash value:   d1d51f29
     Hash algo:    sha1
     Hash value:   fa0c14efb55dbe4bdf8aa7241a3e600b486e3ef6
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58f509c8 to 0x4fa10000
## Loading fdt from FIT Image at 58000000 ...
   Trying 'overlay-2' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58f50e94
     Data Size:    436 Bytes = 436 Bytes
     Architecture: ARM
     Load Address: 0x4fa20000
     Hash algo:    crc32
     Hash value:   00f3a93c
     Hash algo:    sha1
     Hash value:   efa518e1ffcc7c09a7d8010de6a7b363f1345b30
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58f50e94 to 0x4fa20000
   Booting using the fdt blob at 0x4fa00000
data abort
pc : [<7ef80ac8>]          lr : [<00000011>]
reloc pc : [<4a015ac8>]    lr : [<cb095011>]
sp : 7af3ea68  ip : 00000000     fp : 7efdcd4c
r10: 00000020  r9 : 7af4aec0     r8 : 7af887b8
r7 : 6c616972  r6 : 00000010     r5 : e759f132  r4 : 7af887b8
r3 : 7af887c0  r2 : 7af887b0     r1 : 7af8c058  r0 : 00000019
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32 (T)
Code: d005 f027 0501 441d (686d) 07ed
Resetting CPU ...

previous kernel/u-boot didn't have this problem

Once the board has finished to boot I can plug in the datalogic barcode scanner.

BTW where can I find the previous versions of u-boot?

thanks

IvanSB

Even powering off isn't clean with the datalogic barcode scanner plugged in:

[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Load Kernel Modules.
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Create System Users.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
[  OK  ] Finished Power-Off.
[  OK  ] Reached target Power-Off.
[  119.391700] reboot: Power down
[  119.394975] ------------[ cut here ]------------
[  119.399638] WARNING: CPU: 0 PID: 1 at drivers/i2c/i2c-core.h:41 i2c_transfer+0x108/0x114
[  119.407728] No atomic I2C transfer handler for 'i2c-0'
[  119.412867] Modules linked in: rfkill input_leds panel_olimex_lcd_olinuxino at24 evdev axp20x_adc axp20x_ac_power axp20x_battery industrialio sun4i_can lima can_dev gpu_scl
[  119.455696] CPU: 0 PID: 1 Comm: systemd-shutdow Tainted: G         C        5.10.47-olimex #080601
[  119.464651] Hardware name: Allwinner sun7i (A20) Family
[  119.469877] Backtrace:
[  119.472358] [<c0a6e3b0>] (dump_backtrace) from [<c0a6e778>] (show_stack+0x20/0x24)
[  119.479936]  r7:00000029 r6:600f0093 r5:00000000 r4:c0facbfc
[  119.485610] [<c0a6e758>] (show_stack) from [<c0a71ce4>] (dump_stack+0xa4/0xb8)
[  119.492847] [<c0a71c40>] (dump_stack) from [<c0124030>] (__warn+0xfc/0x114)
[  119.499816]  r7:00000029 r6:00000009 r5:c07ccca8 r4:c0ccebc0
[  119.505489] [<c0123f34>] (__warn) from [<c0a6ee74>] (warn_slowpath_fmt+0xa4/0xc0)
[  119.512977]  r7:00000029 r6:c0ccebc0 r5:c0f04fc8 r4:c0ccec60
[  119.518649] [<c0a6edd4>] (warn_slowpath_fmt) from [<c07ccca8>] (i2c_transfer+0x108/0x114)
[  119.526835]  r9:00000001 r8:00000000 r7:c1fc8181 r6:00000001 r5:c14fbd30 r4:c1fab8a8
[  119.534586] [<c07ccba0>] (i2c_transfer) from [<c07ccd10>] (i2c_transfer_buffer_flags+0x5c/0x80)
[  119.543286]  r6:c1fc8181 r5:00000002 r4:c0f04fc8
[  119.547925] [<c07cccb4>] (i2c_transfer_buffer_flags) from [<c06971d8>] (regmap_i2c_write+0x24/0x40)
[  119.556969]  r5:00000001 r4:00000002
[  119.560563] [<c06971b4>] (regmap_i2c_write) from [<c06920b8>] (_regmap_raw_write_impl+0x6e4/0x834)
[  119.569521]  r5:00000001 r4:c1f9d400
[  119.573113] [<c06919d4>] (_regmap_raw_write_impl) from [<c0692290>] (_regmap_bus_raw_write+0x88/0xb0)
[  119.582339]  r10:00000058 r9:c0f0ed80 r8:4321fedc r7:00000080 r6:00000032 r5:c068d7cc
[  119.590166]  r4:c1f9d400
[  119.592719] [<c0692208>] (_regmap_bus_raw_write) from [<c06916fc>] (_regmap_write+0x6c/0x12c)
[  119.601248]  r7:c1f9d400 r6:00000080 r5:00000032 r4:c1f9d400
[  119.606921] [<c0691690>] (_regmap_write) from [<c0692ec0>] (regmap_write+0x4c/0x6c)
[  119.614586]  r9:c0f0ed80 r8:4321fedc r7:fee1dead r6:00000080 r5:00000032 r4:c1f9d400
[  119.622342] [<c0692e74>] (regmap_write) from [<c06a1c10>] (axp20x_power_off+0x3c/0x48)
[  119.630263]  r7:fee1dead r6:00000000 r5:4321fedc r4:c0f04fc8
[  119.635936] [<c06a1bd4>] (axp20x_power_off) from [<c010aa44>] (machine_power_off+0x34/0x38)
[  119.644297] [<c010aa10>] (machine_power_off) from [<c014d1c8>] (kernel_power_off+0x7c/0x80)
[  119.652656] [<c014d14c>] (kernel_power_off) from [<c014d320>] (__do_sys_reboot+0x154/0x1e8)
[  119.661016] [<c014d1cc>] (__do_sys_reboot) from [<c014d424>] (sys_reboot+0x18/0x1c)
[  119.668682]  r9:c14fa000 r8:c0100264 r7:00000058 r6:00000000 r5:00000003 r4:00000000
[  119.676433] [<c014d40c>] (sys_reboot) from [<c0100060>] (ret_fast_syscall+0x0/0x54)
[  119.684089] Exception stack(0xc14fbfa8 to 0xc14fbff0)
[  119.689153] bfa0:                   00000000 00000003 fee1dead 28121969 4321fedc 4321fedc
[  119.697338] bfc0: 00000000 00000003 00000000 00000058 be8efb5c fffff000 04c37c50 be8efb54
[  119.705517] bfe0: 00000058 be8efac4 b688e255 b680cc66
[  119.710573] ---[ end trace acc3f2ae90b123dc ]---

att2