From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwNDt-0002Co-FZ for qemu-devel@nongnu.org; Tue, 10 Nov 2015 23:41:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwNDq-0000et-8I for qemu-devel@nongnu.org; Tue, 10 Nov 2015 23:41:29 -0500 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:33409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwNDp-0000eY-W8 for qemu-devel@nongnu.org; Tue, 10 Nov 2015 23:41:26 -0500 Received: by pabfh17 with SMTP id fh17so19555138pab.0 for ; Tue, 10 Nov 2015 20:41:25 -0800 (PST) References: <1447201710-10229-1-git-send-email-benh@kernel.crashing.org> <564290E1.3090205@redhat.com> <1447203387.31884.126.camel@kernel.crashing.org> <5642B59E.2070101@ozlabs.ru> <1447213139.31884.136.camel@kernel.crashing.org> <5642BEF9.90406@ozlabs.ru> <1447215397.31884.140.camel@kernel.crashing.org> From: Alexey Kardashevskiy Message-ID: <5642C6F0.9040200@ozlabs.ru> Date: Wed, 11 Nov 2015 15:41:20 +1100 MIME-Version: 1.0 In-Reply-To: <1447215397.31884.140.camel@kernel.crashing.org> Content-Type: text/plain; charset=koi8-r; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-ppc] [PATCH 00/77] ppc: Add "native" POWER8 platform List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Benjamin Herrenschmidt , Eric Blake , qemu-ppc@nongnu.org Cc: qemu-devel@nongnu.org On 11/11/2015 03:16 PM, Benjamin Herrenschmidt wrote: > On Wed, 2015-11-11 at 15:07 +1100, Alexey Kardashevskiy wrote: >> >> p/qemu-powernv/ppc64-softmmu/qemu-system-ppc64 -m 2048 -machine >> powernv \ >> -nographic -vga none -initrd t/le.cpio -kernel t/vml420le -bios \ >> skiboot.lid -smp 1,threads=1 >> >> just hangs at: >> >> [1491287872,5] INIT: Waiting for kernel... >> [1493257423,5] Assuming kernel at 0x20000000 >> [1494710040,5] INIT: Kernel loaded, size: 0 bytes (0 = unknown >> preload) >> [1497506414,5] INIT: 64-bit LE kernel discovered >> [1500827972,5] INIT: 64-bit kernel entry at 0x20010000 >> [1505594383,3] OCC: No HOMER detected, assuming no pstates >> [1507983930,3] ELOG: Error getting buffer to log error >> [1556792870,5] Free space in HEAP memory regions: >> [1559724738,5] Region ibm,firmware-heap free: 12778984 >> [1561377946,5] Region ibm,firmware-allocs-memory@0000000000000000 >> free: 376992 >> [1563789914,5] Total free: 13155976 >> [1565066925,5] INIT: Starting kernel at 0x20010000, fdt at 0x30350610 >> (size >> 0x2ce4) > > Hrm, works for me, I've been testing various LE kernels including a > full ubuntu distro in there, we need to debug that further. Does that > same kernel actually work on real HW ? Ok, as we figured out, CONFIG_PPC_EARLY_DEBUG is responsible for this as it does hypercalls in the very beginning. >> If I try LE disk image (ubuntu 14), it just crashes: >> >> p/qemu-powernv/ppc64-softmmu/qemu-system-ppc64 -m 2048 -machine >> powernv \ >> -nographic -vga none img/u14_32GB_cuda7.qcow2 -bios skiboot.lid \ >> -smp 1,threads=1 >> qemu: hardware error: qemu: could not load kernel'(null)' > > Right, we don't load kernels from disk, you need to pass a -kernel that Worth mentioning as well ;) > typically is the openpower bootloader (Linux + petitboot). My plan is > to make the pnv platform automatically extract these things from a ROM > image of an openpower eval board (aka palmetto) which you can build > from github. It's a bit too big to include as a binary in qemu however > (about 16M). git submodule? Another note. I tried to know what the default devices are and got another crash: (qemu) info qtree bus: main-system-bus type System dev: phb3-msi, id "" /home/aik/p/qemu-powernv/hw/core/sysbus.c:276:sysbus_dev_print: Object 0x100279e9500 is not an instance of type sys-bus-device -- Alexey