Skip to contentSkip to conversation

board: Add PowerPC mac99

PATCH Superseded Joel Stanley 1 participant 1 message Jun 13, 2019

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 board: Add PowerPC mac99

PowerPC kernel developers were after a userspace for testing 32-bit powerpc kernels. This machine both suits that requirement and has support in qemu. It's also a fairly common piece of 32-bit ppc hardware.

---
v2: Use default output directory for qemu command line in readme

 DEVELOPERS                          |  2 ++
 board/qemu/ppc-mac99/linux.fragment |  3 +++
 board/qemu/ppc-mac99/readme.txt     |  5 +++++
 configs/qemu_ppc_mac99_defconfig    | 10 ++++++++++
 4 files changed, 20 insertions(+)
 create mode 100644 board/qemu/ppc-mac99/linux.fragment
 create mode 100644 board/qemu/ppc-mac99/readme.txt
 create mode 100644 configs/qemu_ppc_mac99_defconfig
DEVELOPERS +2 -0
index b64f8b8a94ce..691ce719a276 100644
@@ -1143,6 +1143,8 @@ N:	Joel Stanley <[email protected]>
 F:	package/pdbg/
 F:	board/qemu/ppc64le-pseries/
 F:	configs/qemu_ppc64le_pseries_defconfig
+F:	board/qemu/ppc-mac99/
+F:	configs/qemu_ppc_mac99_defconfig
 
 N:	Johan Derycke <[email protected]>
 F:	package/python-libconfig/
board/qemu/ppc-mac99/linux.fragment new file +3 -0
new file mode 100644
index 000000000000..b1975f8253f7
@@ -0,0 +1,3 @@
+CONFIG_SERIAL_PMACZILOG=y
+CONFIG_SERIAL_PMACZILOG_TTYS=y
+CONFIG_SERIAL_PMACZILOG_CONSOLE=y
board/qemu/ppc-mac99/readme.txt new file +5 -0
new file mode 100644
index 000000000000..a8a18db5b9ab
@@ -0,0 +1,5 @@
+Run the emulation with:
+
+  qemu-system-ppc -nographic -vga none -M mac99 -cpu g4 -m 1G -kernel output/images/vmlinux -drive file=output/images/rootfs.ext2,format=raw -net nic,model=sungem -net user -append "root=/dev/sda"
+
+Tested with QEMU 3.1.0
configs/qemu_ppc_mac99_defconfig new file +10 -0
new file mode 100644
index 000000000000..daddaddb369f
@@ -0,0 +1,10 @@
+BR2_powerpc=y
+BR2_powerpc_7400=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+BR2_SYSTEM_DHCP="eth0"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_DEFCONFIG="pmac32"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/ppc-mac99/linux.fragment"
+BR2_LINUX_KERNEL_VMLINUX=y
+BR2_TARGET_ROOTFS_EXT2=y
+# BR2_TARGET_ROOTFS_TAR is not set
Signature · 1 line
2.20.1