Skip to contentSkip to conversation

board/qemu/ppc64le-pseries: use qemu-system-ppc64

PATCH New Thomas Petazzoni 2 participants 6 messages Mar 3, 2018 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 board/qemu/ppc64le-pseries: use qemu-system-ppc64

qemu-system-ppc64le doesn't necessarily exist: it isn't installed by Qemu, and only created as a symlink to qemu-system-ppc64 by some distributions (Ubuntu). Other distributions (Fedora) just have qemu-system-ppc64.

But qemu-system-ppc64 is capable of running little-endian PPC64 systems, so use this one instead.

---
 board/qemu/ppc64le-pseries/readme.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/qemu/ppc64le-pseries/readme.txt +1 -1
index dd188c505f..beda5c0618 100644
@@ -1,6 +1,6 @@
 Run the emulation with:
 
-qemu-system-ppc64le -M pseries -nographic \
+qemu-system-ppc64 -M pseries -nographic \
 		-kernel output/images/vmlinux \
 		-initrd output/images/rootfs.ext2
 
Signature · 1 line
2.14.3
#1 lore raw

PATCH 2/3 board/qemu/ppc64le-pseries: put Qemu command on one line

This allows the toolchain building machinery used by
https://toolchains.bootlin.com to automatically re-use this Qemu command line.

---
 board/qemu/ppc64le-pseries/readme.txt | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
board/qemu/ppc64le-pseries/readme.txt +1 -3
index beda5c0618..0fdb389828 100644
@@ -1,8 +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 -nographic -kernel output/images/vmlinux -initrd output/images/rootfs.ext2
 
 The login prompt will appear in the terminal window.
 
Signature · 1 line
2.14.3
#3 lore raw

PATCH 3/3 board/qemu/ppc64le-pseries: make Qemu command similar to ppc64-pseries

In reply to Thomas Petazzoni

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.

---
 board/qemu/ppc64le-pseries/readme.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/qemu/ppc64le-pseries/readme.txt +1 -1
index 0fdb389828..95455e9478 100644
@@ -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.
 
Signature · 1 line
2.14.3
#4 lore raw

PATCH 3/3 board/qemu/ppc64le-pseries: make Qemu command similar to ppc64-pseries

Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

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.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 1/3 board/qemu/ppc64le-pseries: use qemu-system-ppc64

In reply to Thomas Petazzoni
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

qemu-system-ppc64le doesn't necessarily exist: it isn't installed by Qemu, and only created as a symlink to qemu-system-ppc64 by some distributions (Ubuntu). Other distributions (Fedora) just have qemu-system-ppc64.

But qemu-system-ppc64 is capable of running little-endian PPC64 systems, so use this one instead.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard