[Buildroot] [PATCH 4/6 v2] configs/qemu_hppa_b160l: new defconfig
Vincent Stehlé
vincent.stehle at laposte.net
Sun Sep 21 12:54:20 UTC 2025
Add a defconfig to run Linux on a HP Visualize B160L PA-RISC
Workstation, emulated with Qemu.
While at it, add this defconfig to myself in DEVELOPERS.
Signed-off-by: Vincent Stehlé <vincent.stehle at laposte.net>
Cc: Romain Naour <romain.naour at gmail.com>
---
Changes v1 -> v2:
- Add a link to OpenPA in the README
- Follow Linux version of all Qemu defconfigs, which has been bumped
since
DEVELOPERS | 2 ++
board/qemu/hppa-b160l/readme.txt | 33 +++++++++++++++++++++++++++++++
configs/qemu_hppa_b160l_defconfig | 18 +++++++++++++++++
3 files changed, 53 insertions(+)
create mode 100644 board/qemu/hppa-b160l/readme.txt
create mode 100644 configs/qemu_hppa_b160l_defconfig
diff --git a/DEVELOPERS b/DEVELOPERS
index f464871da4..0d8a25308a 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -3364,8 +3364,10 @@ F: arch/Config.in.hppa
F: arch/arch.mk.hppa
F: board/arm/foundation-v8/
F: board/bananapi/bananapi-m2-zero/
+F: board/qemu/hppa-b160l/
F: configs/arm_foundationv8_defconfig
F: configs/bananapi_m2_zero_defconfig
+F: configs/qemu_hppa_b160l_defconfig
F: configs/uevm5432_defconfig
F: package/i7z/
F: package/msr-tools/
diff --git a/board/qemu/hppa-b160l/readme.txt b/board/qemu/hppa-b160l/readme.txt
new file mode 100644
index 0000000000..052ca9b848
--- /dev/null
+++ b/board/qemu/hppa-b160l/readme.txt
@@ -0,0 +1,33 @@
+Introduction
+============
+
+The qemu_hppa_b160l_defconfig is meant to run Linux on a HP Visualize B160L
+PA-RISC Workstation[1], emulated with Qemu.
+
+Building
+========
+
+ $ make qemu_hppa_b160l_defconfig
+ $ make
+
+Generated files under output/images:
+
+* rootfs.ext4: the root filesystem.
+* vmlinux: the Linux kernel.
+
+Running under Qemu
+==================
+
+Run the emulation with:
+
+ qemu-system-hppa \
+ -machine B160L \
+ -append "rootwait root=/dev/sda" \
+ -hda output/images/rootfs.ext4 \
+ -kernel output/images/vmlinux \
+ -nographic \
+ -smp 2 # qemu_hppa_b160l_defconfig
+
+The login prompt will appear in the terminal that started Qemu.
+
+[1] https://www.openpa.net/systems/hp-visualize_b132l_b160l_b180l.html
diff --git a/configs/qemu_hppa_b160l_defconfig b/configs/qemu_hppa_b160l_defconfig
new file mode 100644
index 0000000000..222b1411f6
--- /dev/null
+++ b/configs/qemu_hppa_b160l_defconfig
@@ -0,0 +1,18 @@
+BR2_hppa=y
+BR2_parisc11=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_12=y
+BR2_GLOBAL_PATCH_DIR="board/qemu/patches"
+BR2_DOWNLOAD_FORCE_CHECK_HASHES=y
+BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="board/qemu/post-image.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="$(BR2_DEFCONFIG)"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION=y
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.12.47"
+BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG=y
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_PACKAGE_HOST_QEMU=y
+BR2_PACKAGE_HOST_QEMU_SYSTEM_MODE=y
--
2.51.0
More information about the buildroot
mailing list