On 10/19/23 03:51, Ben Schneider wrote:
How old is the u-boot build on this platform?
U-Boot 2018.03-devel-18.12.3-g926d08c7ce (Apr 11 2022 - 15:48:13 +0800)
This appears to be the most recent version the manufacturer has released for this device. Source: https://github.com/globalscaletechnologies/u-boot-marvell.
arch/arm64/boot/marvell/armada-3720-espressobin-ultra.dts
This is a uboot path, right? Not a linux path? Are you sure this DTS is compatible with the v6.5 kernel?
Sorry for the confusion; that is the path in the linux source to the DTS used to compile the DTB that I am using to boot the device. I booted v5.15.135 using the DTB compiled from v6.5.7 source and that works fine. I also tried to boot v6.5.7 with the factory DTB and that failed.
To which kernel and device-tree are the messages below related?
Please add message inside the update_fdt() routine...
I added a bunch and here's what I got back:
EFI stub: Booting Linux Kernel...
EFI stub: ERROR: FIRMWARE BUG: efi_loaded_image_t::image_base has bogus value
EFI stub: ERROR: FIRMWARE BUG: kernel image not aligned on 64k boundary
EFI stub: ERROR: Failed to install memreserve config table!
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
EFI stub: Starting update_fdt()...
EFI stub: fdt_num_mem_rsv() returned 1
EFI stub: fdt_subnode_offset() returned 8944
EFI stub: Setting bootargs=console=ttyMV0,115200 earlycon=ar3700_uart,0xd0012000 root=/dev/sda1 rw rootwait
EFI stub: Adding FDT entries...
EFI stub: fdt_setprop_var() for linux,uefi-system-table returned 0
EFI stub: fdt_setprop_var() for linux,uefi-mmap-start returned -11
11 = FDT_ERR_BADSTRUCTURE
This is probably set in scripts/dtc/libfdt/fdt_ro.c.
Something in the structure of your device-tree is invalid.
Please, check the load addresses in U-Boot. Is something overwriting the
tail of the device-tree?
Compiling upstream U-Boot's qemu_arm64_defconfig yields
lib/efi_loader/dtbdump.efi. If you run this instead of the kernel, you
can write the device-tree as it is passed in a configuration table to
the ESP.
Best regards
Heinrich
EFI stub: update_fdt() failed with status -11
EFI stub: ERROR: Unable to construct new device tree.
EFI stub: ERROR: Failed to update FDT and exit boot services
That's as far as I could get today but hopefully that starts to narrow it down. Appreciate the help!
Sincerely,
Ben