[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#998663: installation-reports: Installation of the Bullseye Kernel on BeagleBone Black is Hanging



Thanks for the report... a little more detail below...

On 2021-11-05, David Kaiser wrote:
> Comments/Problems:
>
> U-Boot 2021.01+dfsg-5 (May 23 2021 - 04:32:45 +0000)  successfully loads and starts up.
> U-Boot attempts to run bootscript from mmc0:
>   This installer medium does not contain a suitable device-tree file for this system (am335x-boneblack.dtb)...
>   Scanning mmc 0:1...
>   #3 Executing script at 8000000...
>   Starting kernel ...
>   Main lines, eventual hang.

That version of u-boot has some legacy boot stuff, but the second
attempt should actually boot a kernel.

A more complete (but still trimmed a bit log):

U-Boot SPL 2021.01+dfsg-5 (May 23 2021 - 04:32:45 +0000)
Trying to boot from MMC1


U-Boot 2021.01+dfsg-5 (May 23 2021 - 04:32:45 +0000)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
WDT:   Started with servicing (60s timeout)
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
1575 bytes read in 2 ms (768.6 KiB/s)
Running bootscript from mmc0 ...
## Executing script at 82000000
Mainline u-boot / new-style environment detected.
This installer medium does not contain a suitable device-tree file for
this system (am335x-boneblack.dtb). Aborting boot process.
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
1575 bytes read in 2 ms (768.6 KiB/s)
## Executing script at 80000000
Mainline u-boot / new-style environment detected.
4956672 bytes read in 322 ms (14.7 MiB/s)
62852 bytes read in 70 ms (876 KiB/s)
15339358 bytes read in 995 ms (14.7 MiB/s)
Booting the Debian installer...

## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8f15f000, end 8fffff5e ... OK
   Loading Device Tree to 8f14c000, end 8f15e583 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.0-9-armmp (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 SMP Debian 5.10.70-1 (2021-09-30)
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d

...

[    7.618476] sdhci-omap 48060000.mmc: Got CD GPIO
[    7.634915] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    7.743541] omap_rng 48310000.rng: Random Number Generator ver. 20
[    7.750300] random: crng init done
[    7.757462] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[    7.795631] 8<--- cut here ---
[    7.799036] Unable to handle kernel NULL pointer dereference at virtual address 00000008
[    7.807506] pgd = 451ad4e6
[    7.810353] [00000008] *pgd=00000000
[    7.814116] Internal error: Oops: 5 [#1] SMP ARM
[    7.818929] Modules linked in: omap_rng(E) rng_core(E) musb_dsps(E) sdhci_omap(E) sdhci_pltfm(E) musb_hdrc(E) udc_core(E) sdhci(E) usbcore(E) phy_am335x(E) phy_generic(E) phy_am335x_control(E) leds_gpio(E)
[    7.838023] CPU: 0 PID: 66 Comm: kworker/0:4 Tainted: G            E     5.10.0-9-armmp #1 Debian 5.10.70-1
[    7.848166] Hardware name: Generic AM33XX (Flattened Device Tree)
[    7.854533] Workqueue: events deferred_probe_work_func
[    7.859902] PC is at dsps_musb_init+0x38/0x1e8 [musb_dsps]
[    7.865662] LR is at musb_probe+0x1cc/0xdd8 [musb_hdrc]
[    7.871103] pc : [<bf13c2d0>]    lr : [<bf0e75cc>]    psr: a0000013
[    7.877628] sp : c1e5fc98  ip : c1e5fcc8  fp : c1e5fcc4
[    7.883069] r10: 00000010  r9 : bf0ff048  r8 : 00000000
[    7.888509] r7 : bf101580  r6 : c1953040  r5 : c1952040  r4 : c1eb0410
[    7.895310] r3 : bf13c298  r2 : bf13d344  r1 : 00000200  r0 : c1d92400
[    7.902108] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    7.909541] Control: 10c5387d  Table: 81f20019  DAC: 00000051
[    7.915525] Process kworker/0:4 (pid: 66, stack limit = 0xcd207b19)
[    7.922055] Stack: (0xc1e5fc98 to 0xc1e60000)
[    7.926591] fc80:                                                       00000000 c0d0e22c
[    7.935114] fca0: c1e5fcc4 c1952040 e0000400 c1953040 bf101580 c15ed5ec c1e5fd8c c1e5fcc8
[    7.943639] fcc0: bf0e75cc bf13c2a4 c0ae5e98 c0d0e22c 00000000 c1e5fd28 c105a4b0 df96e300
[    7.952161] fce0: c1e5fd1c c1e5fcf0 00000034 c0ae5e20 00000000 c1eb0410 c1eb0400 cf864200
[    7.960682] fd00: bf0ff048 00000000 c15ed5ec bf0ff048 c1e5fd64 c1e5fd20 c0ae649c c0ae5ed0
[    7.969207] fd20: ffffffff c10a3558 00000000 00000000 00000000 00000000 00000000 00000000
[    7.977724] fd40: 00000000 00000000 00000000 76ccd31d c1e5fd84 c1eb0410 c1e5fd7c 76ccd31d
[    7.986243] fd60: c09ab5f8 00000000 c1eb0410 bf0ff048 00000000 c15ed5ec bf0ff048 00000010
[    7.994763] fd80: c1e5fdac c1e5fd90 c0991a34 bf0e740c c1eb0410 c15ed5e4 00000000 00000000
[    8.003283] fda0: c1e5fdec c1e5fdb0 c098ee58 c09919e8 c1eb0410 c1eb0410 c1eb0518 00000000
[    8.011804] fdc0: c1e5fdec c1eb0410 bf0ff048 c1e5fe74 c1eb0410 00000000 c1068510 c1590788
[    8.020325] fde0: c1e5fe1c c1e5fdf0 c098f6f0 c098ed5c c1e5fe74 c1eb0410 00000001 bf0ff048
[    8.028846] fe00: c1e5fe74 c1eb0410 00000000 c1068510 c1e5fe3c c1e5fe20 c098f9b8 c098f5fc
[    8.037365] fe20: 00000000 c1e5fe74 c098f924 c1554d60 c1e5fe6c c1e5fe40 c098c718 c098f930
[    8.045886] fe40: c1e5fe6c c18fbc6c c1f36138 76ccd31d c1eb0410 c1eb0410 00000001 c1eb0454
[    8.054405] fe60: c1e5fe9c c1e5fe70 c098f32c c098c694 c1554d0c c1eb0410 00000001 76ccd31d
[    8.062922] fe80: c1e5feb4 cf865f54 c1554fd8 c1eb0410 c1e5feac c1e5fea0 c098fa38 c098f258
[    8.071441] fea0: c1e5fecc c1e5feb0 c098dc78 c098fa28 cf865f54 c1eb0410 c1554d0c c1554d60
[    8.079964] fec0: c1e5fefc c1e5fed0 c098e5d8 c098dbf0 c098e530 c1554d44 c1e12e00 df940500
[    8.088486] fee0: df943900 00000000 00000000 00000000 c1e5ff3c c1e5ff00 c036dcf8 c098e53c
[    8.097005] ff00: c1e36e80 c1e5e000 c1e5ff24 c1e5ff18 c036f3a8 c1e12e00 df940500 c1e12e14
[    8.105524] ff20: df940518 c1404d00 00000008 df940500 c1e5ff74 c1e5ff40 c036e0b4 c036db28
[    8.114046] ff40: c1e5ff64 c1e5e000 c1e5ff74 c1e46b00 c1e46cc0 00000000 c1e5e000 c036e04c
[    8.122567] ff60: c1e12e00 c1969e84 c1e5ffac c1e5ff78 c0374be0 c036e058 ffffe000 c1e46b24
[    8.131089] ff80: c1e5ffac c1e46cc0 c0374a78 00000000 00000000 00000000 00000000 00000000
[    8.139608] ffa0: 00000000 c1e5ffb0 c03001a8 c0374a84 00000000 00000000 00000000 00000000
[    8.148126] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.156645] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    8.165159] Backtrace:
[    8.167732] [<bf13c298>] (dsps_musb_init [musb_dsps]) from [<bf0e75cc>] (musb_probe+0x1cc/0xdd8 [musb_hdrc])
[    8.177973]  r8:c15ed5ec r7:bf101580 r6:c1953040 r5:e0000400 r4:c1952040
[    8.184975] [<bf0e7400>] (musb_probe [musb_hdrc]) from [<c0991a34>] (platform_drv_probe+0x58/0xa8)
[    8.194312]  r10:00000010 r9:bf0ff048 r8:c15ed5ec r7:00000000 r6:bf0ff048 r5:c1eb0410
[    8.202464]  r4:00000000
[    8.205105] [<c09919dc>] (platform_drv_probe) from [<c098ee58>] (really_probe+0x108/0x4fc)
[    8.213714]  r7:00000000 r6:00000000 r5:c15ed5e4 r4:c1eb0410
[    8.219612] [<c098ed50>] (really_probe) from [<c098f6f0>] (driver_probe_device+0x100/0x1d4)
[    8.228312]  r10:c1590788 r9:c1068510 r8:00000000 r7:c1eb0410 r6:c1e5fe74 r5:bf0ff048
[    8.236467]  r4:c1eb0410
[    8.239107] [<c098f5f0>] (driver_probe_device) from [<c098f9b8>] (__device_attach_driver+0x94/0xf8)
[    8.248535]  r9:c1068510 r8:00000000 r7:c1eb0410 r6:c1e5fe74 r5:bf0ff048 r4:00000001
[    8.256603] [<c098f924>] (__device_attach_driver) from [<c098c718>] (bus_for_each_drv+0x90/0xe0)
[    8.265755]  r7:c1554d60 r6:c098f924 r5:c1e5fe74 r4:00000000
[    8.271651] [<c098c688>] (bus_for_each_drv) from [<c098f32c>] (__device_attach+0xe0/0x1d4)
[    8.280257]  r6:c1eb0454 r5:00000001 r4:c1eb0410
[    8.285067] [<c098f24c>] (__device_attach) from [<c098fa38>] (device_initial_probe+0x1c/0x20)
[    8.293945]  r6:c1eb0410 r5:c1554fd8 r4:cf865f54
[    8.298756] [<c098fa1c>] (device_initial_probe) from [<c098dc78>] (bus_probe_device+0x94/0x9c)
[    8.307728] [<c098dbe4>] (bus_probe_device) from [<c098e5d8>] (deferred_probe_work_func+0xa8/0xec)
[    8.317058]  r7:c1554d60 r6:c1554d0c r5:c1eb0410 r4:cf865f54
[    8.322966] [<c098e530>] (deferred_probe_work_func) from [<c036dcf8>] (process_one_work+0x1dc/0x530)
[    8.332483]  r10:00000000 r9:00000000 r8:00000000 r7:df943900 r6:df940500 r5:c1e12e00
[    8.340637]  r4:c1554d44 r3:c098e530
[    8.344363] [<c036db1c>] (process_one_work) from [<c036e0b4>] (worker_thread+0x68/0x57c)
[    8.352793]  r10:df940500 r9:00000008 r8:c1404d00 r7:df940518 r6:c1e12e14 r5:df940500
[    8.360947]  r4:c1e12e00
[    8.363594] [<c036e04c>] (worker_thread) from [<c0374be0>] (kthread+0x168/0x16c)
[    8.371301]  r10:c1969e84 r9:c1e12e00 r8:c036e04c r7:c1e5e000 r6:00000000 r5:c1e46cc0
[    8.379454]  r4:c1e46b00
[    8.382096] [<c0374a78>] (kthread) from [<c03001a8>] (ret_from_fork+0x14/0x2c)
[    8.389613] Exception stack(0xc1e5ffb0 to 0xc1e5fff8)
[    8.394873] ffa0:                                     00000000 00000000 00000000 00000000
[    8.403392] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.411908] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    8.418796]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0374a78
[    8.426948]  r4:c1e46cc0
[    8.429588] Code: e34b2f13 e5940024 e2400010 e5908050 (e5987008)
[    8.436015] ---[ end trace 69b2557998c3dfd4 ]---
[    8.704513] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[    8.761782] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA


I was able to confirm the issue... and dig a little further.

Booting the older bullseye image got further:

https://deb.debian.org/debian/dists/bullseye/main/installer-armhf/20210731/

... but was unable to detect an ethernet card.

Same with the daily images, boots but no ethernet card:

https://d-i.debian.org/daily-images/armhf/20211105-04:46/netboot/SD-card-images/

Current buster images also hang completely, never starting the
installer... arg.



Apparently this commit upstream (which has been backported to earlier
series) caused some of the above issues:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/usb/musb/musb_dsps.c?id=7c75bde329d7e2a93cf86a5c15c61f96f1446cdc

Might be fixed in 5.10.75...

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/drivers/usb/musb/musb_dsps.c?id=c2115b2b16421d93d4993f3fe4c520e91d6fe801


Hope to be able to look into this further at some point...


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature


Reply to: