From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KpVTm-0002TN-Fd for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:01:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KpVTl-0002Rz-RR for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:01:30 -0400 Received: from [199.232.76.173] (port=54511 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KpVTl-0002Rq-OG for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:01:29 -0400 Received: from mail.free-electrons.com ([88.191.76.200]:45880) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KpVTl-0004s6-67 for qemu-devel@nongnu.org; Mon, 13 Oct 2008 18:01:29 -0400 Date: Tue, 14 Oct 2008 00:01:26 +0200 From: Thomas Petazzoni Subject: Re: [Qemu-devel] [patch 1/2] Add Flash support to the Versatile PB platform Message-ID: <20081014000126.2bee9248@surf> In-Reply-To: <34115e380810131335u7dd35f65g2a5203adbb5f585a@mail.gmail.com> References: <20081013082238.042379564@free-electrons.com> <20081013082655.952440747@free-electrons.com> <34115e380810131335u7dd35f65g2a5203adbb5f585a@mail.gmail.com> 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: Cedric Hombourger Cc: qemu-devel@nongnu.org, michael@free-electrons.com Hi C=C3=A9dric ! Le Mon, 13 Oct 2008 22:35:54 +0200, "Cedric Hombourger" a =C3=A9crit : > Well done! I have had a modified qemu for sometime now to do this as > well but never got to the point where the Linux kernel could mount the > root file-system from flash. I quickly gave a try to your patch using > the latest svn and it seems to be the same (i.e. u-boot ok, kernel > gets loaded from flash to memory and then boots but it fails to mount > a root file-system). I have started to look into this but not yet deep > enough to understand what is going on.... my kernel seems to be > reading zeros instead of the cramfs magic number while the address > that I am reading from seems to be correct. Is this something that you > have tested and works for you? I will be happy to help if you also > have issues. So far, I've only tested : * Starting U-Boot from the Flash ; * Loading the kernel to RAM from TFTP in U-Boot ; * Saving the kernel to Flash ; * Saving the U-Boot environment to Flash ; * Booting the kernel from Flash ; * Having the kernel detect the Flash partitions ; * Erase one block of Flash from Linux using flash_erase. I haven't tested yet mounting root filesystems from Flash, so it's possible that it doesn't work completely. I'll try to have a look at this during this week. Thanks for testing and thanks for your feedback ! Thomas --=20 Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com