All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Cédric Le Goater" <clg@kaod.org>
To: buildroot@buildroot.org
Cc: "Gerome Burlats" <gerome.burlats@smile.fr>,
	"Romain Naour" <romain.naour@gmail.com>,
	"Cédric Le Goater" <clg@kaod.org>
Subject: [Buildroot] [PATCH 2/3] configs/qemu: Add a ppc-bamboo configuration
Date: Mon, 10 Jan 2022 21:58:43 +0100	[thread overview]
Message-ID: <20220110205844.815899-2-clg@kaod.org> (raw)
In-Reply-To: <20220110205844.815899-1-clg@kaod.org>

The Bamboo board is an evaluation board for PowerPC 440EP CPUs.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
 board/qemu/ppc-bamboo/linux.fragment |  6 +++++
 board/qemu/ppc-bamboo/readme.txt     |  5 ++++
 configs/qemu_ppc_bamboo_defconfig    | 36 ++++++++++++++++++++++++++++
 3 files changed, 47 insertions(+)
 create mode 100644 board/qemu/ppc-bamboo/linux.fragment
 create mode 100644 board/qemu/ppc-bamboo/readme.txt
 create mode 100644 configs/qemu_ppc_bamboo_defconfig

diff --git a/board/qemu/ppc-bamboo/linux.fragment b/board/qemu/ppc-bamboo/linux.fragment
new file mode 100644
index 000000000000..cc272d0541f0
--- /dev/null
+++ b/board/qemu/ppc-bamboo/linux.fragment
@@ -0,0 +1,6 @@
+# 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-bamboo/readme.txt b/board/qemu/ppc-bamboo/readme.txt
new file mode 100644
index 000000000000..0b70d2fa5443
--- /dev/null
+++ b/board/qemu/ppc-bamboo/readme.txt
@@ -0,0 +1,5 @@
+Run the emulation with:
+
+qemu-system-ppc -nographic -M bamboo -kernel vmlinux -net nic,model=virtio-net-pci -net user # qemu_ppc_bamboo_defconfig
+
+The login prompt will appear in the terminal that started Qemu.
diff --git a/configs/qemu_ppc_bamboo_defconfig b/configs/qemu_ppc_bamboo_defconfig
new file mode 100644
index 000000000000..d6abbeb45296
--- /dev/null
+++ b/configs/qemu_ppc_bamboo_defconfig
@@ -0,0 +1,36 @@
+# Architecture
+BR2_powerpc=y
+BR2_powerpc_440fp=y
+
+# System
+BR2_SYSTEM_DHCP="eth0"
+
+# Filesystem
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_ROOTFS_INITRAMFS=y
+
+# Image
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)"
+
+# Linux headers same as kernel
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15=y
+
+# Kernel
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15"
+BR2_LINUX_KERNEL_DEFCONFIG="44x/bamboo"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/qemu/ppc-bamboo/linux.fragment"
+BR2_LINUX_KERNEL_VMLINUX=y
+
+# Serial port config
+BR2_TARGET_GENERIC_GETTY=y
+BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
+
+# Kernel needs mkimage
+BR2_PACKAGE_HOST_UBOOT_TOOLS=y
+
+# host-qemu for gitlab testing
+BR2_PACKAGE_HOST_QEMU=y
+BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
-- 
2.31.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2022-01-10 21:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-10 20:58 [Buildroot] [PATCH 1/3] configs/qemu: Add a ppc64le-powernv8 configuration Cédric Le Goater
2022-01-10 20:58 ` Cédric Le Goater [this message]
2022-01-10 20:58 ` [Buildroot] [PATCH 3/3] package/qemu: Add support for PPC970 processors Cédric Le Goater
2022-01-10 21:02 [Buildroot] [PATCH 1/3] configs/qemu: Add a ppc64le-powernv8 configuration Cédric Le Goater
2022-01-10 21:02 ` [Buildroot] [PATCH 2/3] configs/qemu: Add a ppc-bamboo configuration Cédric Le Goater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220110205844.815899-2-clg@kaod.org \
    --to=clg@kaod.org \
    --cc=buildroot@buildroot.org \
    --cc=gerome.burlats@smile.fr \
    --cc=romain.naour@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.