
21 Jan
2008
21 Jan
'08
11:14 p.m.
Hi Gregoire,
On Jan 21, 2008 11:21 AM, Gregoire Banderet Gregoire.Banderet@ge.com 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