From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KoJLz-0006q6-3u for qemu-devel@nongnu.org; Fri, 10 Oct 2008 10:52:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KoJLx-0006ov-92 for qemu-devel@nongnu.org; Fri, 10 Oct 2008 10:52:30 -0400 Received: from [199.232.76.173] (port=38909 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KoJLx-0006oq-5C for qemu-devel@nongnu.org; Fri, 10 Oct 2008 10:52:29 -0400 Received: from mail.free-electrons.com ([88.191.76.200]:36833) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KoJLw-0001PP-7k for qemu-devel@nongnu.org; Fri, 10 Oct 2008 10:52:28 -0400 Received: from surf (humanoidz.org [82.247.183.72]) by mail.free-electrons.com (Postfix) with ESMTPA id 89776E4C8 for ; Fri, 10 Oct 2008 16:55:18 +0200 (CEST) Date: Fri, 10 Oct 2008 16:52:24 +0200 From: Thomas Petazzoni Subject: Re: [Qemu-devel] [patch 0/2] Add flash emulation to the ARM Versatile PB platform Message-ID: <20081010165224.3cc64dc6@surf> In-Reply-To: <20081010140252.GB7013@game.jcrosoft.org> References: <20081010083602.692750032@free-electrons.com> <20081010090123.GY16823@hall.aurel32.net> <20081010114805.35da4e48@surf> <20081010140252.GB7013@game.jcrosoft.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Le Fri, 10 Oct 2008 16:02:52 +0200, Jean-Christophe PLAGNIOL-VILLARD a =C3=A9crit : > > > 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? > >=20 > > 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. > >=20 > > 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. > >=20 > > 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 --=20 Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com