[uClinux-dev] bootloader environment

Thomas Chen tchen at on-go.com
Sat Mar 8 19:23:54 EST 2003


richard

that seem pretty cool idea...
but what shell are you running that you can do `cat ...` ???

i wonder if you can even do a "echo xxxxx > /proc/viola/buadrate

to change the config for the next reboot???





on 3/8/03 3:04 AM, Richard Klingler at richard.klingler at violasystems.com
wrote:

> Good afternoon...(o;
> 
> 
> Someone needs to access bootloader environment in uClinux?
> 
> 
> Wrote some really small proc handler which gives
> dynamically all environments defined in ppcboot
> and u-boot as individual files under /proc:
> 
> # ls -l proc/viola
> -rw-r--r--    1 0        0               0 Jan  1 00:31 baudrate
> -rw-r--r--    1 0        0               0 Jan  1 00:31 bootcmd
> -rw-r--r--    1 0        0               0 Jan  1 00:31 bootdelay
> -rw-r--r--    1 0        0               0 Jan  1 00:31 ethaddr
> -rw-r--r--    1 0        0               0 Jan  1 00:31 filesize
> -rw-r--r--    1 0        0               0 Jan  1 00:31 gatewayip
> -rw-r--r--    1 0        0               0 Jan  1 00:31 hostname
> -rw-r--r--    1 0        0               0 Jan  1 00:31 ipaddr
> -rw-r--r--    1 0        0               0 Jan  1 00:31 loadaddr
> -rw-r--r--    1 0        0               0 Jan  1 00:31 netmask
> -rw-r--r--    1 0        0               0 Jan  1 00:31 serverip
> -rw-r--r--    1 0        0               0 Jan  1 00:31 stderr
> -rw-r--r--    1 0        0               0 Jan  1 00:31 stdin
> -rw-r--r--    1 0        0               0 Jan  1 00:31 stdout
> 
> 
> So configuring ethernet is just like:
> 
> ifconfig eth0 `cat /proc/viola/ipaddr` netmask `cat /proc/viola/netmask` up
> 
> 
> Rick
> (maybe time to submit an article, but it's so easy to do ;o)
> 
> Richard Klingler             mail: richard.klingler at violasystems.com
> Viola Systems Ltd.           http://www.violasystems.com/
> Lemminkäisenkatu 32          phon: +358 (0)201 226 226
> 20520 Turku, Finland         mobile: +358 (0)40 748 4711
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> 




More information about the uClinux-dev mailing list