Skip to contentSkip to conversation

configs/qemu_ppc_bamboo: new defconfig

Buildroot Thomas Petazzoni 1 participant 1 message Jan 11, 2022

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=8ac0775130426e1ebc6d291bb3b131e19afc92fa
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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

---
 DEVELOPERS                           |  2 ++
 board/qemu/ppc-bamboo/linux.fragment |  6 ++++++
 board/qemu/ppc-bamboo/readme.txt     |  5 +++++
 configs/qemu_ppc_bamboo_defconfig    | 36 ++++++++++++++++++++++++++++++++++++
 4 files changed, 49 insertions(+)
DEVELOPERS +2 -0
index bac58ffc7b..c8242df8a6 100644
@@ -505,7 +505,9 @@ N:	Cédric Chépied <[email protected]>
 F:	package/znc/
 
 N:	Cédric Le Goater <[email protected]>
+F:	board/qemu/ppc-bamboo/
 F:	board/qemu/ppc64le-powernv8/readme.txt
+F:	configs/qemu_ppc_bamboo_defconfig
 F:	configs/qemu_ppc64le_powernv8_defconfig
 
 N:	Charles Hardin <[email protected]>
board/qemu/ppc-bamboo/linux.fragment new file +6 -0
new file mode 100644
index 0000000000..cc272d0541
@@ -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
board/qemu/ppc-bamboo/readme.txt new file +5 -0
new file mode 100644
index 0000000000..0b70d2fa54
@@ -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.
configs/qemu_ppc_bamboo_defconfig new file +36 -0
new file mode 100644
index 0000000000..d6abbeb452
@@ -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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot