[U-Boot-Users] OS dependencies on the bootloader

Hello everyone,
A general bootloader question: How much hardware initialization should a bootloader perform for the target OS?
I see a minimal memory controller setup to allow subsequent loading of an OS image. ECC might also be setup but all remaining resources would typically be setup by the OS.
Although I haven't tried booting Linux (we boot the vxworks bootrom), does an embedded Linux make any assumptions about what the bootloader initializes?
Thank you and best regards, Andy

In message 43BC4A51.9050203@mc.com you wrote:
A general bootloader question: How much hardware initialization should a bootloader perform for the target OS?
As little as possible, as much as necessary.
I see a minimal memory controller setup to allow subsequent loading of an OS image. ECC might also be setup but all remaining resources would typically be setup by the OS.
Right.
Although I haven't tried booting Linux (we boot the vxworks bootrom), does an embedded Linux make any assumptions about what the bootloader initializes?
Yes. Depending on architecture and kernel versions certain parameters (ATAGs, bd_info structure, OF tree, whatever) have to be initialized and passed to the kernel.
Best regards,
Wolfgang Denk
participants (2)
-
Andrew Wozniak
-
Wolfgang Denk