agherzan / meta-raspberrypi

Yocto/OE BSP layer for the Raspberry Pi boards
https://www.yoctoproject.org/
MIT License
505 stars 395 forks source link

u-boot failing to boot from uSD with raspberrypi4-64 #1338

Closed shr-project closed 2 weeks ago

shr-project commented 2 weeks ago

v2023.01 in mickledore is OK v2024.01 in scarthgap is OK only this v2023.10 version in nanbield needs some backport

It's reproducible with: ENABLE_UART = "1" RPI_USE_U_BOOT = "1" in local.conf and core-image-minimal on uSD.

The simplest work around which worked for me is to use 2024.01 from scarthgap with .bbappend adding: PV = "2024.01" SRCREV = "866ca972d6c3cabeaf6dbac431e8e08bb30b3c8e"

  U-Boot 2023.10 (Oct 02 2023 - 14:39:59 +0000)

  DRAM:  724 MiB (effective 3.6 GiB)
  RPI 4 Model B (0xc03111)
  Core:  211 devices, 16 uclasses, devicetree: board
  MMC:   mmcnr@7e300000: 1, mmc@7e340000: 0
  Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
  In:    serial,usbkbd
  Out:   serial,vidconsole
  Err:   serial,vidconsole
  Net:   eth0: ethernet@7d580000
  Hit any key to stop autoboot:  0
  Card did not respond to voltage select! : -110
  No working controllers found
  PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
  ethernet@7d580000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
  bcmgenet: PHY startup failed: -110
  ethernet@7d580000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
  bcmgenet: PHY startup failed: -110
  U-Boot>
  U-Boot 2024.01 (Jan 08 2024 - 15:37:48 +0000)

  DRAM:  724 MiB (effective 3.6 GiB)
  RPI 4 Model B (0xc03111)
  Core:  211 devices, 16 uclasses, devicetree: board
  MMC:   mmcnr@7e300000: 1, mmc@7e340000: 0
  Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
  In:    serial,usbkbd
  Out:   serial,vidconsole
  Err:   serial,vidconsole
  Net:   eth0: ethernet@7d580000
  Hit any key to stop autoboot:  0
  Card did not respond to voltage select! : -110
  ** Booting bootflow 'mmc@7e340000.bootdev.part_1' with script
  2097 bytes read in 12 ms (169.9 KiB/s)
  ## Error: "active_part_id" not defined
  Set active_part_id as default (2)
  Saving Environment to FAT... OK
  Working FDT set to 2d3e2300
  26489344 bytes read in 1106 ms (22.8 MiB/s)
  Moving Image from 0x80000 to 0x200000, end=1c60000
  ## Flattened Device Tree blob at 2d3e2300
     Booting using the fdt blob at 0x2d3e2300
  Working FDT set to 2d3e2300
     Using Device Tree in place at 000000002d3e2300, end 000000002d3f2f9d
  Working FDT set to 2d3e2300

  Starting kernel ...

I'll try to guess which commit to backport, but in the meantime sharing this issue ticket with work around (with nanbield already EOL it might not be worth bisecting the 1691 commits v2023.10..v2024.01 or 5213 v2023.01..v2023.10)

agherzan commented 2 weeks ago

Fix merged. Thanks @shr-project.