[U-Boot-Users] Scripting in ppcboot 1.1.5
Chris Elston
elston at radstone.co.uk
Fri Mar 7 11:24:13 CET 2003
As I have been finding out, the hush shell in PPCBoot is severely limited.
It doesn't have support for shell variables (and many other things too, much
of hush.c is #ifdef'd out). You could try using "setenv" to set a PPCBoot
environment variable, but I think you'll have more luck writing a c program
(see examples/hello_world.c for an example of a c program that uses PPCBoot
monitor functions for I/O)
Hope this helps,
Chris.
> -----Original Message-----
> From: Ole Andreas Torvmark [mailto:ole.torvmark at radionor.no]
> Sent: 07 March 2003 10:09
> To: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] Scripting in ppcboot 1.1.5
>
>
> Hi !
>
> I'm trying to write a script that check which image our
> system shall use
> this is based on last known good configuration.
>
> My question is :
>
> How do i send the output of a command like md into a variable ?
>
> I tried to use the normal shell script way :
>
> => A=`version`
> => echo $A
> `version`
> =>
>
> It didn't work out like I had planned :)
>
> I want to do this because the system will write to an address in flash
> to tell ppcboot that the image was OK last time it was used.
>
> Is this an easy task for ppcboot's hush shell or is it better
> to write a c program and use that in ppcboot instead ?
>
>
> best regards
>
> Ole Andreas Torvmark
> R & D Engineer
> Radionor Communications
> Ingvald Ystgårds Vei 3A
> NO7030 Trondheim
> Norway
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Etnus, makers of
> TotalView, The debugger
> for complex code. Debugging C/C++ programs can leave you
> feeling lost and
> disoriented. TotalView can help you find your way. Available
> on major UNIX
> and Linux platforms. Try it free. www.etnus.com
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
> ______________________________________________________________
> __________
> This e-mail has been scanned for all viruses by Star Internet. The
> service is powered by MessageLabs. For more information on a proactive
> anti-virus service working around the clock, around the globe, visit:
> http://www.star.net.uk
> ______________________________________________________________
> __________
>
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
More information about the U-Boot
mailing list