Module Name:    src
Committed By:   tsutsui
Date:           Sun Feb  2 20:11:02 UTC 2025

Modified Files:
        src/distrib/alpha: Makefile
Added Files:
        src/distrib/alpha/liveimage: Makefile
        src/distrib/alpha/liveimage/emuimage: Makefile

Log Message:
Add "build.sh live-image" support for alpha.

Confirmed on qemu-9.2.0 (with pkgsrc patch-hw_rtc_mc146818rtc.c).

---
qemu-system-alpha -m 1024 -machine clipper \
 -drive 
file=NetBSD-10.99.12-alpha-live.img,media=disk,format=raw,if=none,id=disk0 \
 -device ide-hd,bus=ide.0,drive=disk0 \
 -netdev user,id=net0 -device tulip,netdev=net0 \
 -nographic -kernel netbsd-GENERIC -append root=wd0
PCI: 0:1:0 class 0300 id 1013:00b8
PCI:   region 0 (BAR 10): 10000000
PCI:   region 1 (BAR 14): 12000000
PCI: 0:2:0 class 0101 id 1095:0646
PCI:   region 0 (BAR 10): 0000c000
PCI:   region 1 (BAR 14): 0000c008
PCI:   region 2 (BAR 18): 0000c010
PCI:   region 3 (BAR 1c): 0000c018
PCI:   region 4 (BAR 20): 0000c020
PCI:   intr pin 1 -> irq 12
PCI: 0:3:0 class 0200 id 1011:0019
PCI:   region 0 (BAR 10): 0000c080
PCI:   region 1 (BAR 14): 12001000
PCI:   intr pin 1 -> irq 16
PCI: 0:7:0 class 0601 id 8086:0484
[   1.0000000] [ Kernel symbol table missing! ]
[   1.0000000] consinit: not using prom console
[   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: Thu Jan 30 16:13:51 UTC 2025
[   1.0000000]  
mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/alpha/compile/GENERIC
[   1.0000000] AlphaServer ES40 ("Clipper"), 250MHz, s/n QEMU
[   1.0000000] 8192 byte page size, 1 processor.
[   1.0000000] total memory = 1024 MB
[   1.0000000] (120 KB reserved for PROM, 1023 MB used by NetBSD)
[   1.0000000] avail memory = 996 MB
[   1.0000000] mainbus0 (root)
[   1.0000000] cpu0 at mainbus0: ID 0 (primary), 21264A-0 (EV67)
[   1.0000000] cpu0: Architecture extensions: 0x1307<PMI,PAT,MVI,CIX,FIX,BWX>
[   1.0000000] qemu0 at mainbus0: Qemu virtual machine services

 :

[   7.2872719] root on wd0a dumps on wd0b
[   7.2872719] root file system type: ffs
[   7.3086672] kern.module.path=/stand/alpha/10.99.12/modules
Sun Feb  2 19:56:48 UTC 2025

 :
---


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/distrib/alpha/Makefile
cvs rdiff -u -r0 -r1.1 src/distrib/alpha/liveimage/Makefile
cvs rdiff -u -r0 -r1.1 src/distrib/alpha/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/alpha/Makefile
diff -u src/distrib/alpha/Makefile:1.23 src/distrib/alpha/Makefile:1.24
--- src/distrib/alpha/Makefile:1.23	Mon Jun 23 02:16:53 2008
+++ src/distrib/alpha/Makefile	Sun Feb  2 20:11:02 2025
@@ -1,9 +1,11 @@
-#	$NetBSD: Makefile,v 1.23 2008/06/23 02:16:53 matt Exp $
+#	$NetBSD: Makefile,v 1.24 2025/02/02 20:11:02 tsutsui Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
 
 SUBDIR=		instkernel cdroms # floppy-GENERIC
+SUBDIR+=	.WAIT
+SUBDIR+=	liveimage
 TARGETS+=	release
 
 release: check_RELEASEDIR .WAIT README.files
@@ -15,4 +17,7 @@ release: check_RELEASEDIR .WAIT README.f
 iso_image:
 	${MAKEDIRTARGET} cdroms iso_image
 
+live_image:
+	${MAKEDIRTARGET} liveimage live_image
+
 .include <bsd.subdir.mk>

Added files:

Index: src/distrib/alpha/liveimage/Makefile
diff -u /dev/null src/distrib/alpha/liveimage/Makefile:1.1
--- /dev/null	Sun Feb  2 20:11:02 2025
+++ src/distrib/alpha/liveimage/Makefile	Sun Feb  2 20:11:02 2025
@@ -0,0 +1,8 @@
+# $NetBSD: Makefile,v 1.1 2025/02/02 20:11:02 tsutsui Exp $
+
+SUBDIR=
+SUBDIR+=	emuimage
+
+TARGETS+=	release live_image
+
+.include <bsd.subdir.mk>

Index: src/distrib/alpha/liveimage/emuimage/Makefile
diff -u /dev/null src/distrib/alpha/liveimage/emuimage/Makefile:1.1
--- /dev/null	Sun Feb  2 20:11:02 2025
+++ src/distrib/alpha/liveimage/emuimage/Makefile	Sun Feb  2 20:11:02 2025
@@ -0,0 +1,15 @@
+#	$NetBSD: Makefile,v 1.1 2025/02/02 20:11:02 tsutsui Exp $
+
+LIVEIMGBASE=	NetBSD-${DISTRIBVER}-alpha-live	# gives ${IMGBASE}.img
+
+.include <bsd.own.mk>
+
+KERN_SET=		kern-GENERIC
+.if defined(EMUIMAGEMB)
+LIVEIMAGEMB=		${EMUIMAGEMB}
+.endif
+IMGFFSVERSION=		2
+PRIMARY_BOOT=		bootxx_ffsv2
+SECONDARY_BOOT=		boot
+
+.include "${.CURDIR}/../../../common/bootimage/Makefile.liveimage"

Reply via email to