Question

I am working on a simple OS for arm using qemu and uboot. I can load uboot fine and can load the image with using the 'bootm' command followed by the corresponding address. I want the kernel image to load automatically without having to call bootm. I added "#define CONFIG_BOOTCOMMAND "bootm 0x28124"" to the versatile.h file and it loads automatically, but the issue is that this address can change. I am using versatilepb and I thought it was strange that uboot is missing a lot of the commands that the documentations says it should have.

Était-ce utile?

La solution

u-boot copy compressed kernel image onto memory and then jump to this kernel image's entry point. Then the kernel decompress and put kernel onto proper location at memory. As the offset of kernel entry to kernel image is fixed, and the location of compressed kernel is determined by u-boot and usually fixed. You wont need to change your bootm address when kernel size changes

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top