U-boot not booting on H64 model B - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: PINE H64 (https://forum.pine64.org/forumdisplay.php?fid=92) +--- Forum: Linux on Pine H64 (https://forum.pine64.org/forumdisplay.php?fid=95) +--- Thread: U-boot not booting on H64 model B (/showthread.php?tid=15653) |
U-boot not booting on H64 model B - CGNZVV - 01-01-2022 I am trying to get mainline U-Boot to run on the H64 B. I'm able to boot Armbian successfully, but the U-Boot I compile never works. Any help would be appreciated. I've tried these two scenarios: - Flash Armbian to an SD card, it boots successfully, then overwrite my U-Boot onto that card, and it fails to boot. Filesystem and partitioning unmodified from what Armbian had, just overwrite U-Boot with dd. - create an Arch Linux SD card using my U-Boot and rootfs. It fails to boot on the H64. I'm using a very similar method to what I do for an Odroid C4, and it works on the C4 - the C4 has a different uboot, but the process I use to make the SD card is the same. In both cases, the UART shows: Code: U-Boot SPL 2022.01-rc4-00030-gb3f84a939f (Jan 01 2022 - 00:28:05 -0700) And it hangs at that last line. Using the reset button just results in that message being printed again: Code: U-Boot SPL 2022.01-rc4-00030-gb3f84a939f (Jan 01 2022 - 00:28:05 -0700) I've also tried doing a power cycle instead of using the reset button, that leads to the same result. I think I'm creating U-Boot in the right way. Here's what I'm doing (based off of https://github.com/qemu/u-boot/blob/master/board/sunxi/README.sunxi64, and seems to match what as365n4 is doing in his post @ https://forum.pine64.org/showthread.php?tid=11703): Code: # compile ATF I've tried master ATF & U-Boot both with and without SCP, compiled as such: Code: git clone https://github.com/crust-firmware/crust The or1k-elf toolchain is a bit different from the or1k-linux-musl that the sunxi readme suggests, but SCP shouldn't be required anyway in the first place. I've also tried ATF v2.3 with U-Boot 2020.10, since as365n4 reported that working for him on post 24 of his thread... but same result, hangs at "Trying to boot from MMC1". Flashing U-Boot to the SD with: Code: dd if=u-boot-sunxi-with-spl.bin of=/dev/sda bs=8k seek=1 I've spent a few hours banging my head against this but haven't been able to get any result other than "Trying to boot from MMC1"... RE: U-boot not booting on H64 model B - CGNZVV - 02-19-2022 Solution: when compiling ATF, the PLAT must come after make. Instead of: CROSS_COMPILE=aarch64-linux-gnu- PLAT=sun50i_h6 make bl31 Use: CROSS_COMPILE=aarch64-linux-gnu- make PLAT=sun50i_h6 bl31 And then this step: cp ../arm-trusted-firmware/build/fvp/release/bl31.bin . Will change to: cp ../arm-trusted-firmware/build/sun50i_h6/release/bl31.bin . RE: U-boot not booting on H64 model B - as365n4 - 06-08-2022 Compiling u-boot for the H64B caused me some sleepless nights too, but here is my solution --> Compiling u-boot on H64B board (Debian) |