Hello! Gregoire Banderet schrieb: > 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?
fw_getenv works fine for userspace programs. But I find it quite usefull to forward U-Boot configuration parameters to Linux kernel space via ATAGs, especially regarding different hardware versions and vice versa. Accessing the data which has been provided by ATAGs can be very fast because the ATAG data can be copied to global structures which can be accessed by the kernel and also be kernel modules. Typical applications are information about slightly different hardware versions, like GPIO mapping or polarity. With best regards Andreas -- Dipl.-Phys. Andreas Schweigstill Schweigstill IT | Embedded Systems Schauenburgerstraße 116, D-24118 Kiel, Germany Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436 Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/ ------------------------------------------------------------------------- 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