Module Name: src Committed By: tsutsui Date: Sun Feb 2 17:04:20 UTC 2025
Modified Files: src/distrib/hppa: Makefile Added Files: src/distrib/hppa/liveimage: Makefile src/distrib/hppa/liveimage/emuimage: Makefile Log Message: Add "build.sh live-image" support for hppa. Confirmed on qemu-9.2.0. XXX: there is something wrong in qemu esiop(4) SCSI emulation etc. --- qemu-system-hppa -m 512 -machine B160L \ -drive file=NetBSD-10.99.12-hppa-live.img,media=disk,format=raw,if=none,id=disk0 \ -device lsi53c895a,id=scsi0 -device scsi-hd,bus=scsi0.0,drive=disk0 \ -device scsi-cd,bus=scsi0.0 -netdev user,id=net0 -device tulip,netdev=net0 \ -nographic SeaBIOS PA-RISC 32-bit Firmware Version 17 (QEMU 9.2.0) Duplex Console IO Dependent Code (IODC) revision 17 ------------------------------------------------------------------------------ (c) Copyright 2017-2024 Helge Deller <del...@gmx.de> and SeaBIOS developers. ------------------------------------------------------------------------------ Processor Speed State Coprocessor State Cache Size --------- -------- --------------------- ----------------- ---------- 0 250 MHz Active Functional 0 KB Emulated machine: HP B160L (32-bit PA1.1), 32-bit PDC, OS32 Available memory: 512 MB Good memory required: 16 MB Primary boot path: FWSCSI.0.0 Alternate boot path: FWSCSI.1.0 Console path: SERIAL_1.9600.8.none Keyboard path: SERIAL_1.9600.8.none Available boot devices: FWSCSI.0.0 : lsi 00:01.0 0:0 Drive QEMU QEMU HARDDISK 2.5+ FWSCSI.1.0 : DVD/CD [lsi 00:01.0 1:0 Drive QEMU QEMU CD-ROM 2.5+] Booting from FWSCSI.0.0 ... Booting... Boot IO Dependent Code (IODC) revision 153 HARD Booted. NetBSD/hppa FFS/LFS Primary Bootstrap 32bit firmware booting from partition a filesystem: FFS looking up boot.hp700 looking up boot loading boot at 0x20800...done >> NetBSD/hppa LIF/FFS/LFS Boot, Revision 1.4 (Sun Feb 2 06:03:23 UTC 2025) >> Enter "reset" to reset system. Boot: [[[dk0a:]netbsd][-a][-c][-d][-s][-v][-q]] :- 10959960+299476+339500 [400640+377370]=0xd5b520 Start @ 0x200000 [1=0xe9c000-0xf5a520]... [ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, [ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, [ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, [ 1.0000000] 2024, 2025 [ 1.0000000] The NetBSD Foundation, Inc. All rights reserved. [ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993 [ 1.0000000] The Regents of the University of California. All rights reserved. [ 1.0000000] NetBSD 10.99.12 (GENERIC) #0: Sun Feb 2 06:20:14 UTC 2025 [ 1.0000000] runner@fv-az1065-242:/home/runner/work/netbsd-src/netbsd-src/sys/arch/hppa/compile/obj.hppa/GENERIC [ 1.0000000] HP9000/778/B160L (Merlin L2 160) [ 1.0000000] real mem = 512 MB (73728 reserved for PROM, 498 MB used by NetBSD) [ 1.0000000] avail mem = 487 MB [ 1.0000000] mainbus0 (root) [flex fff80000] [ 1.0000000] pdc0 at mainbus0 [ 1.0000000] power0 at mainbus0 [ 1.0000000] cpu0 at mainbus0 hpa 0xfffb0000 path 48 irq 31: PA7300LC (Velociraptor) rev 0 [ 1.0000000] cpu0: PCXL2, PA-RISC 1.1e, lev 1, cat A, 250 MHz clk [ 1.0000000] cpu0: shadows, 1K/1K D/I caches, 240 shared TLB, 16 shared BTLB [ 1.0000000] cpu0: VR floating point, rev 1 : --- To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/distrib/hppa/Makefile cvs rdiff -u -r0 -r1.1 src/distrib/hppa/liveimage/Makefile cvs rdiff -u -r0 -r1.1 src/distrib/hppa/liveimage/emuimage/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/hppa/Makefile diff -u src/distrib/hppa/Makefile:1.1 src/distrib/hppa/Makefile:1.2 --- src/distrib/hppa/Makefile:1.1 Mon Feb 24 07:23:38 2014 +++ src/distrib/hppa/Makefile Sun Feb 2 17:04:19 2025 @@ -1,9 +1,14 @@ -# $NetBSD: Makefile,v 1.1 2014/02/24 07:23:38 skrll Exp $ +# $NetBSD: Makefile,v 1.2 2025/02/02 17:04:19 tsutsui Exp $ -SUBDIR= ramdisk .WAIT kernel cdroms sysnbsd -TARGETS+=release +SUBDIR= ramdisk .WAIT kernel cdroms sysnbsd +SUBDIR+= .WAIT +SUBDIR+= liveimage +TARGETS+= release iso_image: ${MAKEDIRTARGET} cdroms iso_image +live_image: + ${MAKEDIRTARGET} liveimage live_image + .include <bsd.subdir.mk> Added files: Index: src/distrib/hppa/liveimage/Makefile diff -u /dev/null src/distrib/hppa/liveimage/Makefile:1.1 --- /dev/null Sun Feb 2 17:04:20 2025 +++ src/distrib/hppa/liveimage/Makefile Sun Feb 2 17:04:19 2025 @@ -0,0 +1,8 @@ +# $NetBSD: Makefile,v 1.1 2025/02/02 17:04:19 tsutsui Exp $ + +SUBDIR= +SUBDIR+= emuimage + +TARGETS+= release live_image + +.include <bsd.subdir.mk> Index: src/distrib/hppa/liveimage/emuimage/Makefile diff -u /dev/null src/distrib/hppa/liveimage/emuimage/Makefile:1.1 --- /dev/null Sun Feb 2 17:04:20 2025 +++ src/distrib/hppa/liveimage/emuimage/Makefile Sun Feb 2 17:04:20 2025 @@ -0,0 +1,11 @@ +# $NetBSD: Makefile,v 1.1 2025/02/02 17:04:20 tsutsui Exp $ + +LIVEIMGBASE= NetBSD-${DISTRIBVER}-hppa-live # gives ${IMGBASE}.img + +EMUIMAGEMB?= 2048 # firmware has 2GB limitation to load a kernel +SWAPMB?= 64 +LIVEIMAGEMB= ${EMUIMAGEMB} +PRIMARY_BOOT= xxboot +SECONDARY_BOOT= boot + +.include "${.CURDIR}/../../../common/bootimage/Makefile.liveimage"