All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Persistent U-Boot environment variables under QEMU
@ 2010-02-13 21:51 Jim Thomas
  2010-02-14 10:39 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Thomas @ 2010-02-13 21:51 UTC (permalink / raw)
  To: buildroot

I am experimenting with Buildroot under QEMU, using buildroot-2009.11 and buildroot-2010.02-rc1.

So far, so good.  I can boot a Linux kernel and RFS built by Buildroot under QEMU (versatilepb) where the RFS is exported via NFS.

QEMU includes a boot loader, so U-Boot is not needed.  But I use U-Boot with real ARM hardware, so I would like to experiment with U-Boot under QEMU, adding DHCP and TFTP to the mix.

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.

Thanks.

Jim



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100213/f1ccaebb/attachment-0001.htm>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Persistent U-Boot environment variables under QEMU
  2010-02-13 21:51 [Buildroot] Persistent U-Boot environment variables under QEMU Jim Thomas
@ 2010-02-14 10:39 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2010-02-14 10:39 UTC (permalink / raw)
  To: buildroot

Hello,o

On Sat, 13 Feb 2010 13:51:26 -0800 (PST)
Jim Thomas <jimthomasembedded@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-14 10:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-13 21:51 [Buildroot] Persistent U-Boot environment variables under QEMU Jim Thomas
2010-02-14 10:39 ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.