From: Christian Zigotzky Date: Fri, 18 May 2018 10:30:44 +0000 Subject: Re: [Qemu-devel] [PPC64] P5020DS: Booting from img possible (-drive)? Message-Id: <886dc490-c96a-ad5a-e1f7-8e41a686a53e@xenosoft.de> List-Id: References: <4521b265-855f-7f06-ffff-3fa394380922@xenosoft.de> <5BD35D0B-E490-4693-8858-E11B7401709F@xenosoft.de> <1821476d-7724-ad71-eb3f-69c731633582@tuxfamily.org> In-Reply-To: <1821476d-7724-ad71-eb3f-69c731633582@tuxfamily.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: Thomas Huth Cc: qemu-devel@nongnu.org, "kvm-ppc@vger.kernel.org" , Alexander Graf , qemu-ppc@nongnu.org On 18 May 2018 at 11:24PM, Thomas Huth wrote: > On 18.05.2018 11:06, Christian Zigotzky wrote: >> It works on my AmigaOne X5000 (P5020 board with 2x e5500 cores). >> >> Screenshots: https://plus.google.com/115515624056477014971 > Interesting ... but you still use your own kernel, and not the stock > Ubuntu kernel, right? That would explain how this can work... > > Anyway, having a quick look at the sources, it seems to me that the > ppce500 / mpc8544ds machines in QEMU do not support any mass storage > controllor by default, so you got to specify the interface type. > > For example: > > -drive if=3Dvirtio,file=3D... > > or: > > -device virtio-scsi -drive if=3Dnone,id=C1,file=3D... \ > -device scsi-cd,drive=C1 > > Same for the graphics card, there does not seem to be support for a > default here, so try to specify it like this: > > -device VGA > > or: > > -device virtio-vga > > HTH, > Thomas > Hello Thomas, Thanks for your reply. ./qemu-system-ppc64 -M ppce500 -cpu e5500 -m 2048 -nographic -kernel=20 /home/christian/Downloads/vmlinux-4.17-rc5-AmigaOne_X1000_X5000/X5000/uImag= e-4.17=20 -machine dt_compatible=3Dfsl,,P5020DS -drive=20 if=3Dvirtio,file=3D/home/christian/Dokumente/ubuntu_MATE_16.04.3_LTS_PowerP= C_QEMU/ubuntu_MATE_16.04_PowerPC.img=20 -append "root=3D/dev/sda3" Output: [=C2=A0=C2=A0=C2=A0 0.880961] VFS: Cannot open root device "sda3" or=20 unknown-block(0,0): error -6 [=C2=A0=C2=A0=C2=A0 0.881150] Please append a correct "root=3D" boot option= ; here are the=20 available partitions: [=C2=A0=C2=A0=C2=A0 0.881446] 0100=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram0 [=C2=A0=C2=A0=C2=A0 0.881478]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.881709] 0101=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram1 [=C2=A0=C2=A0=C2=A0 0.881715]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.881875] 0102=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram2 [=C2=A0=C2=A0=C2=A0 0.881879]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.882033] 0103=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram3 [=C2=A0=C2=A0=C2=A0 0.882037]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.882189] 0104=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram4 [=C2=A0=C2=A0=C2=A0 0.882193]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.882347] 0105=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram5 [=C2=A0=C2=A0=C2=A0 0.882350]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.882503] 0106=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram6 [=C2=A0=C2=A0=C2=A0 0.882507]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.882700] 0107=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram7 [=C2=A0=C2=A0=C2=A0 0.882705]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.882862] 0108=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram8 [=C2=A0=C2=A0=C2=A0 0.882866]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.883018] 0109=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram9 [=C2=A0=C2=A0=C2=A0 0.883021]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.883174] 010a=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram10 [=C2=A0=C2=A0=C2=A0 0.883178]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.883330] 010b=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram11 [=C2=A0=C2=A0=C2=A0 0.883333]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.883487] 010c=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram12 [=C2=A0=C2=A0=C2=A0 0.883490]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.883694] 010d=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram13 [=C2=A0=C2=A0=C2=A0 0.883699]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.883858] 010e=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram14 [=C2=A0=C2=A0=C2=A0 0.883863]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.884020] 010f=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 131072 ram15 [=C2=A0=C2=A0=C2=A0 0.884024]=C2=A0 (driver?) [=C2=A0=C2=A0=C2=A0 0.884265] Kernel panic - not syncing: VFS: Unable to mo= unt root fs=20 on unknown-block(0,0) [=C2=A0=C2=A0=C2=A0 0.884883] Rebooting in 180 seconds.. ./qemu-system-ppc64 -M ppce500 -cpu e5500 -m 2048 -nographic -kernel=20 /home/christian/Downloads/vmlinux-4.17-rc5-AmigaOne_X1000_X5000/X5000/uImag= e-4.17=20 -machine dt_compatible=3Dfsl,,P5020DS -device virtio-scsi -drive=20 if=3Dnone,id=C1,file=3D/home/christian/Dokumente/ubuntu_MATE_16.04.3_LTS_Po= werPC_QEMU/ubuntu_MATE_16.04_PowerPC.img=20 -device scsi-cd,drive=C1 -append "root=3D/dev/sda3" Unfortunately without any success. (same errors like before) Boot with U-Boot: ./qemu-system-ppc64 -M ppce500 -cpu e5500 -m 2048 -nographic -bios=20 /home/christian/Downloads/u-boot -machine dt_compatible=3Dfsl,,P5020DS=20 -device virtio-scsi -drive=20 if=3Dnone,id=C1,file=3D/home/christian/Dokumente/ubuntu_MATE_16.04.3_LTS_Po= werPC_QEMU/ubuntu_MATE_16.04_PowerPC.img=20 -device scsi-cd,drive=C1 Output: U-Boot 2017.09-00322-g1f6049e (Sep 25 2017 - 20:50:48 +0200) CPU:=C2=A0=C2=A0 Unknown, Version: 0.0, (0x00000000) Core:=C2=A0 e5500, Version: 2.0, (0x80240020) Clock Configuration: =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CPU0:400=C2=A0 MHz, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CCB:400=C2=A0 MHz, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 DDR:200=C2=A0 MHz (400 MT/s data rate= ), LBC: unknown (LCRR[CLKDIV] =3D=20 0x00) L1:=C2=A0=C2=A0=C2=A0 D-cache 32 KiB enabled =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 I-cache 32 KiB enabled DRAM:=C2=A0 2 GiB L2:=C2=A0=C2=A0=C2=A0 disabled Using default environment PCI: base address e0008000 =C2=A0 00:01.0=C2=A0=C2=A0=C2=A0=C2=A0 - 1af4:1000 - Network controller =C2=A0 00:02.0=C2=A0=C2=A0=C2=A0=C2=A0 - 1af4:1004 - Mass storage controll= er PCI1: Bus 00 - 00 In:=C2=A0=C2=A0=C2=A0 serial Out:=C2=A0=C2=A0 serial Err:=C2=A0=C2=A0 serial Net:=C2=A0=C2=A0 No ethernet found. Hit any key to stop autoboot:=C2=A0 0 =3D> Any other hints? Thanks, Christian