Skip to contentSkip to conversation

bootm and script images

U-Boot-Users Matthias Fuchs 2 participants 3 messages Sep 16, 2005

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · In message <[email protected]> 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

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Name one thing windows is better than unix in?
                                          Making money for Microsoft?
         -- Randal L. Schwartz in <[email protected]>
#2 lore raw

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.

Quoted 3 lines · Wolfgang Denk

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.

Quoted 3 lines

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