board: Add PowerPC mac99
PATCH v3 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.
---
v3: Add ROOTFS_CPIO output as well as ext
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 | 11 +++++++++++ 4 files changed, 21 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
@@ -1147,6 +1147,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
@@ -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
@@ -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 +11 -0
@@ -0,0 +1,11 @@ +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_CPIO=y +BR2_TARGET_ROOTFS_EXT2=y +# BR2_TARGET_ROOTFS_TAR is not set
Signature · 1 line
2.20.1
PATCH v3 1/1 board: Add PowerPC mac99
Quoted 7 lines · Joel Stanley
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.
Signed-off-by Joel Stanley <[email protected]>Tested-by Daniel Axtens <[email protected]>
Ping
Quoted 66 lines
---
v3: AddROOTFS_CPIOoutput as well as ext
v2: Use default output directory for qemu command line in readmeDEVELOPERS | 2 ++ board/qemu/ppc-mac99/linux.fragment | 3 +++ board/qemu/ppc-mac99/readme.txt | 5 +++++ configs/qemu_ppc_mac99_defconfig | 11 +++++++++++ 4 files changed, 21 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_defconfigDEVELOPERS +2
-0@@ -1147,6 +1147,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@@ -0,0 +1,3 @@ +CONFIG_SERIAL_PMACZILOG=y +CONFIG_SERIAL_PMACZILOG_TTYS=y +CONFIG_SERIAL_PMACZILOG_CONSOLE=yboard/qemu/ppc-mac99/readme.txt new file +5
-0@@ -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.0configs/qemu_ppc_mac99_defconfig new file +11
-1@@ -0,0 +1,11 @@ +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_CPIO=y +BR2_TARGET_ROOTFS_EXT2=y +# BR2_TARGET_ROOTFS_TAR is not set --2.20.1
PATCH v3 1/1 board: Add PowerPC mac99
In reply to Joel StanleyQuoted 14 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Joel" == Joel Stanley <[email protected]> writes:
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.
Signed-off-by Joel Stanley <[email protected]>Tested-by Daniel Axtens <[email protected]>---
v3: AddROOTFS_CPIOoutput as well as ext
v2: Use default output directory for qemu command line in readme+++ b/configs/qemu_ppc_mac99_defconfig
configs/qemu_ppc_mac99_defconfig line 8
Quoted 8 lines
configs/qemu_ppc_mac99_defconfig new file +8
-0@@ -0,0 +1,11 @@ +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
You forgot to specify the version of the Linux kernel / kernel-headers. Committed with those set to 5.2.4, thanks.
With that said, we now have 4 32bit ppc qemu defconfigs which sounds like a lot to me. Are they all still interesting / useful?
cd configs && ls qemu_ppc_*qemu_ppc_g3beige_defconfigqemu_ppc_mac99_defconfigqemu_ppc_mpc8544ds_defconfigqemu_ppc_virtex_ml507_defconfig
Signature · 1 line
Bye, Peter Korsgaard
PATCH v3 1/1 board: Add PowerPC mac99
Quoted 13 lines · Peter Korsgaard
Quoted 12 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"Joel" == Joel Stanley <[email protected]> writes:
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.
Signed-off-by Joel Stanley <[email protected]>Tested-by Daniel Axtens <[email protected]>---
v3: AddROOTFS_CPIOoutput as well as ext
v2: Use default output directory for qemu command line in readme
Quoted 13 lines
configs/qemu_ppc_mac99_defconfig line 8
Quoted 10 lines
+++ b/configs/qemu_ppc_mac99_defconfig
configs/qemu_ppc_mac99_defconfig new file +8
-0@@ -0,0 +1,11 @@ +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=yYou forgot to specify the version of the Linux kernel / kernel-headers. Committed with those set to 5.2.4, thanks.
I didn't forget, I omitted them so the config would use the latest default.
Is there a reason we specify a fixed version?
Quoted 2 lines
With that said, we now have 4 32bit ppc qemu defconfigs which sounds like a lot to me. Are they all still interesting / useful?
I am not familiar with them. Michael?
They all target different CPUs which means there is no overlap at least:
$ grep -r BR2_powerpc_ configs/qemu_ppc_* configs/qemu_ppc_g3beige_defconfig:BR2_powerpc_750=y configs/qemu_ppc_mac99_defconfig:BR2_powerpc_7400=y configs/qemu_ppc_mpc8544ds_defconfig:BR2_powerpc_8548=y configs/qemu_ppc_virtex_ml507_defconfig:BR2_powerpc_440=y
Cheers,
Joel
PATCH v3 1/1 board: Add PowerPC mac99
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Joel" == Joel Stanley <[email protected]> writes:
Hi,
Quoted 6 lines
Quoted 2 lines
You forgot to specify the version of the Linux kernel / kernel-headers. Committed with those set to 5.2.4, thanks.
I didn't forget, I omitted them so the config would use the latest default.
Is there a reason we specify a fixed version?
Yes, reproducibility. If the defconfig is tested and working today, then it should preferably still work in (say) 6 months from now.
Quoted 5 lines
Quoted 2 lines
With that said, we now have 4 32bit ppc qemu defconfigs which sounds like a lot to me. Are they all still interesting / useful?
I am not familiar with them. Michael?
Quoted 7 lines
They all target different CPUs which means there is no overlap at least:
$ grep -r BR2_powerpc_ configs/qemu_ppc_* configs/qemu_ppc_g3beige_defconfig:BR2_powerpc_750=y configs/qemu_ppc_mac99_defconfig:BR2_powerpc_7400=y configs/qemu_ppc_mpc8544ds_defconfig:BR2_powerpc_8548=y configs/qemu_ppc_virtex_ml507_defconfig:BR2_powerpc_440=y
Correct. Ok, lets leave them for now then.
Signature · 1 line
Bye, Peter Korsgaard
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v3 1/1 board: Add PowerPC mac99
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Michael" == Michael Ellerman <[email protected]> writes:
Hi,
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
With that said, we now have 4 32bit ppc qemu defconfigs which sounds like a lot to me. Are they all still interesting / useful?
I am not familiar with them. Michael?
Well the kernel has ~100 different configs, so 4 seems like a fairly small number in comparison :)
So do we ;)
ls configs/*_defconfig | wc -l
213
Quoted 3 lines
None of the 32-bit powerpc platforms are really under heavy development any more, but they are still used by various people. It's hard to say how many of those people are also using buildroot.
Ok, lets just leave them for now. Thanks!
Signature · 1 line
Bye, Peter Korsgaard