[U-Boot-Users] bootm and script images

Hi,
I am wondering if there is a special reason why bootm currently cannot handle script images. Does anything speak against bootm calling autoscript() for AU_SCRIPT marked images?
Matthias

In message 432A9D2A.2060501@esd-electronics.com you wrote:
I am wondering if there is a special reason why bootm currently cannot handle script images. Does anything speak against bootm calling autoscript() for AU_SCRIPT marked images?
Yes. Bootm is intended to boot (Linux) kernel images, that's all. There are other commands to deal with other objects, like "go" for standalone images, "autoscr" for scripts,
Please keep the design smalland simple. We don't need no eierlegende Woll-Milch-Säue in U-Boot :-)
Best regards,
Wolfgang Denk

Wolfgang,
this is what I need to do: we have u-boot running on a PCI adapter card. The whatever-image is directly loaded into the card's RAM over the PCI bus. Then we trigger booting the image by modifying a magic RAM cell.
Currently only Linux kernel images and combined kernel + initrd images are supported. Now we want to allow using u-boot scripts with the same mechanism.
So if you think that a "universal" boot command would blow things up to much, I will think of a mofication of our loadpci BSP command. I will decide inside this command if bootm or autoscr must be used.
Wolfgang Denk wrote:
Yes. Bootm is intended to boot (Linux) kernel images, that's all. There are other commands to deal with other objects, like "go" for standalone images, "autoscr" for scripts,
Yes, I know.
Please keep the design smalland simple. We don't need no eierlegende Woll-Milch-Säue in U-Boot :-)
Well, it would be just one more case in the bootm switch statement.
Matthias
participants (2)
-
Matthias Fuchs
-
Wolfgang Denk