From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [patch 0/2] Add flash emulation to the ARM Versatile PB platform
Date: Fri, 10 Oct 2008 16:52:24 +0200 [thread overview]
Message-ID: <20081010165224.3cc64dc6@surf> (raw)
In-Reply-To: <20081010140252.GB7013@game.jcrosoft.org>
Le Fri, 10 Oct 2008 16:02:52 +0200,
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> a écrit :
> > > I suppose that if you propose such a change, you are using the
> > > flash with a bootloader in it. Could you please give us more
> > > details about it?
> >
> > Sure. With these patches in place, I'm able to boot U-Boot in Qemu,
> > use TFTP to load a kernel, flash it, and boot it. I've detailed
> > what I've done at
> > http://thomas.enix.org/Blog-20081002153859-Technologie.
> >
> > It works pretty well, except that I add to hack the CFG_HZ and timer
> > configuration values in U-Boot to get some same network timeout
> > values and such. Any help in this area would be appreciated.
> >
> > If you want more details, I'll be glad to give them.
> I think I'll nice to add u-boot ML too and the ARM maintainer in copy
> maybe
Yes, maybe I should contact the U-Boot people. To get U-Boot to work on
the Versatile PB platform, I had to make several modifications to the
U-Boot configuration :
* Switch to a custom versatile flash driver to the generic CFI driver.
The custom versatile flash driver used by the default U-Boot
versatile configuration doesn't play well with Qemu flash emulation
for reasons that I haven't investigated.
At least one people in 2005 sent patches to convert U-Boot versatile
to use the generic CFI flash driver, but it seems that the patches
haven't been integrated:
http://lists.denx.de/pipermail/u-boot/2005-October/012334.html
I'd be glad to send the patch to the U-Boot people, but I couldn't
test it on the hardware, so I'm not sure they work properly.
* Switch to an external phy for the ethernet adapter. This works on
Qemu, but probably won't work on the real hardware. But again, I
couldn't test this on the hardware, so I'm not sure about posting a
patch that I haven't been able to test.
* Tune the CFG_HZ and CFG_TIMER_CTRL to get some sane timing
behaviour. Here again, I wasn't able to test this on real hardware.
And I don't even understand the new values, I just changed them
until I found a combination that "worked".
Having a U-Boot configuration that works on Qemu would certainly be
nice, but I'm not sure how to proceed with these three problems. Any
hint maybe ?
Thanks !
Thomas
--
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2008-10-10 14:52 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-10 8:36 [Qemu-devel] [patch 0/2] Add flash emulation to the ARM Versatile PB platform Thomas Petazzoni
2008-10-10 8:36 ` [Qemu-devel] [patch 1/2] Increase write buffer size in pflash emulation Thomas Petazzoni
2008-10-10 8:36 ` [Qemu-devel] [patch 2/2] Add Flash support to the Versatile PB platform Thomas Petazzoni
2008-10-10 13:02 ` Paul Brook
2008-10-10 13:17 ` Thomas Petazzoni
2008-10-10 13:32 ` Paul Brook
2008-10-10 14:37 ` Thomas Petazzoni
2008-10-10 9:01 ` [Qemu-devel] [patch 0/2] Add flash emulation to the ARM " Aurelien Jarno
2008-10-10 9:48 ` Thomas Petazzoni
2008-10-10 14:02 ` Jean-Christophe PLAGNIOL-VILLARD
2008-10-10 14:52 ` Thomas Petazzoni [this message]
2008-10-10 21:20 ` Jean-Christophe PLAGNIOL-VILLARD
2008-10-10 14:45 ` [Qemu-devel] [PATCH] Update documentation Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20081010165224.3cc64dc6@surf \
--to=thomas.petazzoni@free-electrons.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).