board/qemu/ppc64le-pseries: make Qemu command similar to ppc64-pseries
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 3 Mar 2018 14:36:53 +0000 (15:36 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 Mar 2018 16:20:16 +0000 (17:20 +0100)
In particular:

 - Explicitly specify the CPU to be used, POWER8, which matches
   qemu_ppc64le_pseries_defconfig

 - Use hard disk emulation to access the root filesystem instead of an
   initrd.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
board/qemu/ppc64le-pseries/readme.txt

index 0fdb389828b54b66042264c54baf038f1701e5d2..95455e94781f08d8ab857d890418c3778e35c53d 100644 (file)
@@ -1,6 +1,6 @@
 Run the emulation with:
 
-qemu-system-ppc64 -M pseries -nographic -kernel output/images/vmlinux -initrd output/images/rootfs.ext2
+qemu-system-ppc64 -M pseries -cpu POWER8 -m 256 -kernel output/images/vmlinux -append "console=hvc0 root=/dev/sda" -drive file=output/images/rootfs.ext2,if=scsi,index=0,format=raw -serial stdio -display curses
 
 The login prompt will appear in the terminal window.