Hi Bram, On 5/25/22 2:10 PM, Bram Stolk wrote: > I have been following these instructions: > https://linux-sunxi.org/Allwinner_Nezha#Mainline_kernel > > But u-boot does not accept my kernel image. > I tried both Image.gz and Image > > => ext4load mmc 0:1 ${kernel_addr_r} Image > 20515704 bytes read in 1906 ms (10.3 MiB/s) > => bootm ${kernel_addr_r} > Wrong Image Format for bootm command > ERROR: can't get kernel image! > > The load command works fine. But when trying to boot it from memory, the > format > is not accepted?
"bootm" expects the kernel to be wrapped in a U-Boot-specific header. To boot an unmodified Linux "Image" file, you need to use the booti command[1]. There is a (rather non-obvious, I admit) note to this effect on the wiki[2], which I just edited to note that it also applies to RISC-V. Regards, Samuel [1]: https://u-boot.readthedocs.io/en/latest/usage/cmd/booti.html [2]: https://linux-sunxi.org/U-Boot#Booting_with_boot.cmd -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/86b30b8b-ee46-e591-05ee-b790c9c2e69f%40sholland.org.
