From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZipP9-0007Wg-G5 for qemu-devel@nongnu.org; Sun, 04 Oct 2015 15:57:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZipP8-0005H5-M5 for qemu-devel@nongnu.org; Sun, 04 Oct 2015 15:57:07 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:34616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZipP8-0005Gx-FD for qemu-devel@nongnu.org; Sun, 04 Oct 2015 15:57:06 -0400 Received: by wicfx3 with SMTP id fx3so93339997wic.1 for ; Sun, 04 Oct 2015 12:57:05 -0700 (PDT) Date: Sun, 4 Oct 2015 21:56:57 +0200 From: Beniamino Galvani Message-ID: <20151004195627.GA17883@gmail.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] QEMU+Linux ARMv7A current state List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Crosthwaite Cc: Peter Maydell , Rob Herring , Igor Mitsyanko , "qemu-devel@nongnu.org Developers" , Nathan Rossi , Sai Pavan Boddu , Richard Purdie , Alistair Francis , John Snow , Guenter Roeck On Sat, Oct 03, 2015 at 02:31:08PM -0700, Peter Crosthwaite wrote: > QEMU cubieboard has no usable storage media, but the real hardware > does have AHCI sata. I added sysbus-ahci at the right place but turns > out the SATA controller has some custom power/clock (not really > sure??) registers specific to this SoC. It sets/clears bits then polls > them back expecting them to change to the other value asynchronously. > The kernel device probe then times-out. So I subclassed sysbus-ahci > and added the missing registers and forced the polled registers to the > "I'm done" state. It works. Cool, are you going to submit patches for this? > I am using meta-sunxi Yocto-layer to build out the allwinner custom > kernel/rootfs etc, and with the clock and Sata changes I get a boot. > But when I change to the unedited kernel+dtb+rootfs I get stuck. RTC > messages are around the point of failure which is not modelled in > QEMU, so that is suspect. I don't know, this needs some investigation; on my side a recent multi_v7_defconfig kernel, unmodified sun4i-a10-cubieboard.dtb and a rootfs built with buildroot mounted through NFS work just fine, with the mentioned warnings regarding clk registers and also these: Ignoring attempt to switch CPSR_A flag from non-secure world with SCR.AW bit clear Ignoring attempt to switch CPSR_F flag from non-secure world with SCR.FW bit clear which probably would be solved by setting the property 'has_el3' of the CPU to false before realization. Beniamino