Module Name:    src
Committed By:   phx
Date:           Sat Feb 26 20:38:50 UTC 2011

Modified Files:
        src/distrib/notes/common: contents
        src/distrib/notes/sandpoint: install
        src/distrib/sandpoint: Makefile
        src/distrib/sets/lists/base: md.sandpoint

Log Message:
altboot.img: altboot as U-Boot image to fake a Linux kernel module


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/distrib/notes/common/contents
cvs rdiff -u -r1.8 -r1.9 src/distrib/notes/sandpoint/install
cvs rdiff -u -r1.6 -r1.7 src/distrib/sandpoint/Makefile
cvs rdiff -u -r1.7 -r1.8 src/distrib/sets/lists/base/md.sandpoint

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/notes/common/contents
diff -u src/distrib/notes/common/contents:1.166 src/distrib/notes/common/contents:1.167
--- src/distrib/notes/common/contents:1.166	Thu Feb 10 00:56:34 2011
+++ src/distrib/notes/common/contents	Sat Feb 26 20:38:49 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: contents,v 1.166 2011/02/10 00:56:34 jym Exp $
+.\"	$NetBSD: contents,v 1.167 2011/02/26 20:38:49 phx Exp $
 .\"
 .\" Copyright (c) 1999-2005 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -371,6 +371,8 @@
 \*M bootloader in ELF format; see below
 .		It Pa altboot.bin
 \*M bootloader in binary format; see below
+.		It Pa altboot.img
+\*M bootloader as an U-Boot/PPCBoot image, suitable for bootm; see below
 .\}
 .
 .if \n[sgimips] \{\

Index: src/distrib/notes/sandpoint/install
diff -u src/distrib/notes/sandpoint/install:1.8 src/distrib/notes/sandpoint/install:1.9
--- src/distrib/notes/sandpoint/install:1.8	Thu Feb  3 21:04:52 2011
+++ src/distrib/notes/sandpoint/install	Sat Feb 26 20:38:49 2011
@@ -1,4 +1,4 @@
-.\"	$NetBSD: install,v 1.8 2011/02/03 21:04:52 phx Exp $
+.\"	$NetBSD: install,v 1.9 2011/02/26 20:38:49 phx Exp $
 .
 .Ss2 Prepare the NFS or TFTP server
 .
@@ -26,6 +26,12 @@
 .It
 Flash ROM
 .bullet)
+.Pp
+When your firmware is restricted to
+.Pa bootm
+as the only command to run a program you should use
+.Pa altboot.img
+, which fakes a Linux kernel module.
 .
 .Ss2 Booting the installer
 Depending on whether the serial console is attached to the first or the
@@ -59,6 +65,20 @@
 .Pp
 when the kernel resides on NFS.
 .Pp
+Note, that when using
+.Pa altboot.img
+with
+.Pa bootm
+instead of
+.Pa altboot.bin
+you have to pass arguments like
+.Pa tftp:
+or
+.Pa nfs:
+in the
+.Pa bootargs
+enviroment variable.
+.Pp
 The installation kernel will run
 .Pa sysinst
 from an internal memory disk image.

Index: src/distrib/sandpoint/Makefile
diff -u src/distrib/sandpoint/Makefile:1.6 src/distrib/sandpoint/Makefile:1.7
--- src/distrib/sandpoint/Makefile:1.6	Fri Jan 28 22:15:35 2011
+++ src/distrib/sandpoint/Makefile	Sat Feb 26 20:38:50 2011
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.6 2011/01/28 22:15:35 phx Exp $
+#	$NetBSD: Makefile,v 1.7 2011/02/26 20:38:50 phx Exp $
 
 .include <bsd.own.mk>
 .include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
@@ -9,7 +9,7 @@
 TARGETS+=	release
 
 BOOTOBJ!=	cd ${KERNSRCDIR}/arch/sandpoint/stand/altboot && ${PRINTOBJDIR}
-ALTBOOTERS=	${BOOTOBJ}/altboot ${BOOTOBJ}/altboot.bin
+ALTBOOTERS=	${BOOTOBJ}/altboot ${BOOTOBJ}/altboot.bin ${BOOTOBJ}/altboot.img
 
 release: check_RELEASEDIR .WAIT ${ALTBOOTERS}
 	${RELEASE_INSTALL} ${ALTBOOTERS} ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation

Index: src/distrib/sets/lists/base/md.sandpoint
diff -u src/distrib/sets/lists/base/md.sandpoint:1.7 src/distrib/sets/lists/base/md.sandpoint:1.8
--- src/distrib/sets/lists/base/md.sandpoint:1.7	Fri Jan 28 22:15:35 2011
+++ src/distrib/sets/lists/base/md.sandpoint	Sat Feb 26 20:38:50 2011
@@ -1,4 +1,5 @@
-# $NetBSD: md.sandpoint,v 1.7 2011/01/28 22:15:35 phx Exp $
+# $NetBSD: md.sandpoint,v 1.8 2011/02/26 20:38:50 phx Exp $
 ./dev/pms0					base-obsolete		obsolete
 ./usr/mdec/altboot				base-sysutil-bin
 ./usr/mdec/altboot.bin				base-sysutil-bin
+./usr/mdec/altboot.img				base-sysutil-bin

Reply via email to