From d214905353be2227290243e85554f817e1d0253c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Stehl=C3=A9?= Date: Sun, 21 Sep 2025 14:54:20 +0200 Subject: [PATCH] configs/qemu_hppa_b160l: new defconfig MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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é Cc: Romain Naour [Julien: update kernel to 6.18.7 to align with other qemu defconfigs] Signed-off-by: Julien Olivain --- 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 cb5fc3a4ee..7cc4fcbace 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -3372,8 +3372,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..7e3e561e3f --- /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_18=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.18.7" +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