[U-Boot-Users] u-boot boot options
Wolfgang Denk
wd at denx.de
Mon Apr 21 20:52:45 CEST 2003
In message <EGEGIJHKDKJGAJMGIDPNIEBJCLAA.jwalden at digitalatlantic.com> you wrote:
> I feel like I'm setting myself up for another "Wolfgang RTFM" response -
> however here it goes.
;-)
> It appears now that everything works with u-boot! I can even do a tftpboot
> etc.
Great.
> What I'd like to do is to write a script (I read the section on scripts),
> that
> will:
>
> tftpboot 0x100000 mykernel.PPCBoot
> tftpboot 0x300000 myinitrd.PPCBoot
> bootm 0x100000 0x300000
>
> What is the best way to do this? I cannot figure it out from the docs.
There is no "best" way, as TIMTOWTDI.
1) Enter:
=> setenv myboot 'tftp 100000 mykernel.PPCBoot;tftp 300000 myinitrd.PPCBoot;bootm 100000 300000'
=> run myboot
2) Create a multifile image which can be loaded / booted in one step.
3) Put your 3 lines above in atext file, use "mkimage ... -T script"
to create a script image which you can store somewhere in RAM or
flash, and use "autoscr <addr>" to exeecute the script.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Einstein argued that there must be simplified explanations of nature,
because God is not capricious or arbitrary. No such faith comforts
the software engineer. - Fred Brooks, Jr.
More information about the U-Boot
mailing list