Hi Gregoire,

On Jan 21, 2008 11:21 AM, Gregoire Banderet <[EMAIL PROTECTED]> wrote:
> Hi,
>
> 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?
> ...?
>
Yeah, I'd get it via the fw_getenv utility.  There's an environment
variable called 'ver', that should be accessible.  I say 'should',
because I've never looked at it before and don't currently have access
to a Linux-booted board to verify.  I have used fw_getenv/fw_setenv
extensively to read and write other variables and have never had any
problems.

regards,
Ben

-------------------------------------------------------------------------
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