In message <[EMAIL PROTECTED]> you wrote:
>
> > Waht's the best way to get the U-Boot version string (the one returned 
> > by U-Boot cmd "version") from userspace?
> > Arg passed to the kernel?
> > U-Boot env variables and use fw_getenv?
> 
> U-Boot disappears when the kernel loads, so the only cross-platform option is 
> to 
> pass a command-line parameter to the kernel.  Such a change would probably 
> not 
> be accepted into the mainline, however.

First, reading the kernel command line can be done in user space - no
need to change the kernel to do that.

Second, using the  command  line  is  not  the  only  way  to  access
envrionment  data.  Assuming  the  environment is stored in flash (or
similar), you can of course read (and write) it from Linux, too.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [EMAIL PROTECTED]
...when fits of creativity run strong, more than  one  programmer  or
writer  has  been  known to abandon the desktop for the more spacious
floor.                                             - Fred Brooks, Jr.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to