[U-Boot-Users] U-Boot version string in kernel/userspace
Ben Warren
biggerbadderben at gmail.com
Mon Jan 21 23:14:06 CET 2008
Hi Gregoire,
On Jan 21, 2008 11:21 AM, Gregoire Banderet <Gregoire.Banderet at 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
More information about the U-Boot
mailing list