[Buildroot] Persistent U-Boot environment variables under QEMU

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Sun Feb 14 10:39:20 UTC 2010


Hello,o

On Sat, 13 Feb 2010 13:51:26 -0800 (PST)
Jim Thomas <jimthomasembedded at yahoo.com> wrote:

> With real hardware, the U-Boot environment variables are persistent
> in flash memory.
> 
> Is there a way to simulate this with QEMU?  I would not go to the
> trouble to manually enter the U-Boot environment variables each time
> I boot under QEMU, but if there is a persistence mechanism available
> then including U-Boot might be practical.

Qemu can emulate flash memory, so U-Boot can be used "normally". In
2008, I managed to get U-Boot working on the versatilepb board
emulation of Qemu, with few changes to Qemu and U-Boot. See
http://thomas.enix.org/Blog-20081002153859-Technologie for details. The
three first patches have been merged into Qemu since then, but the last
(and most important) patch was never merged.

Cheers,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the buildroot mailing list