* [Buildroot] [PATCH] board/qemu: Add ppc-e500mc configuration
@ 2021-02-28 7:45 Bin Meng
2021-02-28 20:40 ` Romain Naour
2021-03-01 22:52 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Bin Meng @ 2021-02-28 7:45 UTC (permalink / raw)
To: buildroot
This adds a 32-bit equivalent configuration of ppc64-e5500 board.
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
---
board/qemu/ppc-e500mc/linux.fragment | 10 ++++++++++
board/qemu/ppc-e500mc/readme.txt | 5 +++++
configs/qemu_ppc_e500mc_defconfig | 29 ++++++++++++++++++++++++++++
3 files changed, 44 insertions(+)
create mode 100644 board/qemu/ppc-e500mc/linux.fragment
create mode 100644 board/qemu/ppc-e500mc/readme.txt
create mode 100644 configs/qemu_ppc_e500mc_defconfig
diff --git a/board/qemu/ppc-e500mc/linux.fragment b/board/qemu/ppc-e500mc/linux.fragment
new file mode 100644
index 0000000000..35a8dccf89
--- /dev/null
+++ b/board/qemu/ppc-e500mc/linux.fragment
@@ -0,0 +1,10 @@
+# Enables generic PPC e500 base arch support for QEMU.
+# The e500mc is a variant of the e500 arch.
+CONFIG_PPC_QEMU_E500=y
+
+# Enable virtio (blk, rng and net devices)
+CONFIG_VIRTIO=y
+CONFIG_VIRTIO_PCI=y
+CONFIG_HW_RANDOM_VIRTIO=y
+CONFIG_VIRTIO_BLK=y
+CONFIG_VIRTIO_NET=y
diff --git a/board/qemu/ppc-e500mc/readme.txt b/board/qemu/ppc-e500mc/readme.txt
new file mode 100644
index 0000000000..77a864ed2b
--- /dev/null
+++ b/board/qemu/ppc-e500mc/readme.txt
@@ -0,0 +1,5 @@
+Run the emulation with:
+
+ qemu-system-ppc -M ppce500 -cpu e500mc -m 256 -kernel output/images/uImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -append "console=ttyS0 rootwait root=/dev/vda" -serial mon:stdio -nographic # qemu_ppc_e500mc_defconfig
+
+The login prompt will appear in the terminal that started Qemu.
diff --git a/configs/qemu_ppc_e500mc_defconfig b/configs/qemu_ppc_e500mc_defconfig
new file mode 100644
index 0000000000..69fc8dbc06
--- /dev/null
+++ b/configs/qemu_ppc_e500mc_defconfig
@@ -0,0 +1,29 @@
+# Architecture
+BR2_powerpc=y
+BR2_powerpc_e500mc=y
+
+# Serial port config
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+
+# Image
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)"
+
+# Linux headers same as the kernel
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.7"
+BR2_LINUX_KERNEL_DEFCONFIG="corenet32_smp"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/ppc-e500mc/linux.fragment"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+
+# Filesystem
+BR2_TARGET_ROOTFS_EXT2=y
+# BR2_TARGET_ROOTFS_TAR is not set
+
+# host-qemu for gitlab testing
+BR2_PACKAGE_HOST_QEMU=y
+BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
--
2.25.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] board/qemu: Add ppc-e500mc configuration
2021-02-28 7:45 [Buildroot] [PATCH] board/qemu: Add ppc-e500mc configuration Bin Meng
@ 2021-02-28 20:40 ` Romain Naour
2021-03-01 22:52 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Romain Naour @ 2021-02-28 20:40 UTC (permalink / raw)
To: buildroot
Hello,
Le 28/02/2021 ? 08:45, Bin Meng a ?crit?:
> This adds a 32-bit equivalent configuration of ppc64-e5500 board.
Reviewed-by: Romain Naour <romain.naour@gmail.com>
Best regards,
Romain
>
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
> ---
>
> board/qemu/ppc-e500mc/linux.fragment | 10 ++++++++++
> board/qemu/ppc-e500mc/readme.txt | 5 +++++
> configs/qemu_ppc_e500mc_defconfig | 29 ++++++++++++++++++++++++++++
> 3 files changed, 44 insertions(+)
> create mode 100644 board/qemu/ppc-e500mc/linux.fragment
> create mode 100644 board/qemu/ppc-e500mc/readme.txt
> create mode 100644 configs/qemu_ppc_e500mc_defconfig
>
> diff --git a/board/qemu/ppc-e500mc/linux.fragment b/board/qemu/ppc-e500mc/linux.fragment
> new file mode 100644
> index 0000000000..35a8dccf89
> --- /dev/null
> +++ b/board/qemu/ppc-e500mc/linux.fragment
> @@ -0,0 +1,10 @@
> +# Enables generic PPC e500 base arch support for QEMU.
> +# The e500mc is a variant of the e500 arch.
> +CONFIG_PPC_QEMU_E500=y
> +
> +# Enable virtio (blk, rng and net devices)
> +CONFIG_VIRTIO=y
> +CONFIG_VIRTIO_PCI=y
> +CONFIG_HW_RANDOM_VIRTIO=y
> +CONFIG_VIRTIO_BLK=y
> +CONFIG_VIRTIO_NET=y
> diff --git a/board/qemu/ppc-e500mc/readme.txt b/board/qemu/ppc-e500mc/readme.txt
> new file mode 100644
> index 0000000000..77a864ed2b
> --- /dev/null
> +++ b/board/qemu/ppc-e500mc/readme.txt
> @@ -0,0 +1,5 @@
> +Run the emulation with:
> +
> + qemu-system-ppc -M ppce500 -cpu e500mc -m 256 -kernel output/images/uImage -drive file=output/images/rootfs.ext2,if=virtio,format=raw -append "console=ttyS0 rootwait root=/dev/vda" -serial mon:stdio -nographic # qemu_ppc_e500mc_defconfig
> +
> +The login prompt will appear in the terminal that started Qemu.
> diff --git a/configs/qemu_ppc_e500mc_defconfig b/configs/qemu_ppc_e500mc_defconfig
> new file mode 100644
> index 0000000000..69fc8dbc06
> --- /dev/null
> +++ b/configs/qemu_ppc_e500mc_defconfig
> @@ -0,0 +1,29 @@
> +# Architecture
> +BR2_powerpc=y
> +BR2_powerpc_e500mc=y
> +
> +# Serial port config
> +BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
> +
> +# Image
> +BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh"
> +BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)"
> +
> +# Linux headers same as the kernel
> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y
> +
> +# Kernel
> +BR2_LINUX_KERNEL=y
> +BR2_LINUX_KERNEL_CUSTOM_VERSION=y
> +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.7"
> +BR2_LINUX_KERNEL_DEFCONFIG="corenet32_smp"
> +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/ppc-e500mc/linux.fragment"
> +BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
> +
> +# Filesystem
> +BR2_TARGET_ROOTFS_EXT2=y
> +# BR2_TARGET_ROOTFS_TAR is not set
> +
> +# host-qemu for gitlab testing
> +BR2_PACKAGE_HOST_QEMU=y
> +BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] board/qemu: Add ppc-e500mc configuration
2021-02-28 7:45 [Buildroot] [PATCH] board/qemu: Add ppc-e500mc configuration Bin Meng
2021-02-28 20:40 ` Romain Naour
@ 2021-03-01 22:52 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-03-01 22:52 UTC (permalink / raw)
To: buildroot
>>>>> "Bin" == Bin Meng <bmeng.cn@gmail.com> writes:
> This adds a 32-bit equivalent configuration of ppc64-e5500 board.
> Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Committed to next, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-01 22:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-28 7:45 [Buildroot] [PATCH] board/qemu: Add ppc-e500mc configuration Bin Meng
2021-02-28 20:40 ` Romain Naour
2021-03-01 22:52 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.