Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/distrib altboot.img: altboot as U-Boot image to fake a Linux...



details:   https://anonhg.NetBSD.org/src/rev/6e4ac7a8c0f0
branches:  trunk
changeset: 762740:6e4ac7a8c0f0
user:      phx <phx%NetBSD.org@localhost>
date:      Sat Feb 26 20:38:49 2011 +0000

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

diffstat:

 distrib/notes/common/contents        |   4 +++-
 distrib/notes/sandpoint/install      |  22 +++++++++++++++++++++-
 distrib/sandpoint/Makefile           |   4 ++--
 distrib/sets/lists/base/md.sandpoint |   3 ++-
 4 files changed, 28 insertions(+), 5 deletions(-)

diffs (89 lines):

diff -r 40222ee8e800 -r 6e4ac7a8c0f0 distrib/notes/common/contents
--- a/distrib/notes/common/contents     Sat Feb 26 20:11:24 2011 +0000
+++ b/distrib/notes/common/contents     Sat Feb 26 20:38:49 2011 +0000
@@ -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] \{\
diff -r 40222ee8e800 -r 6e4ac7a8c0f0 distrib/notes/sandpoint/install
--- a/distrib/notes/sandpoint/install   Sat Feb 26 20:11:24 2011 +0000
+++ b/distrib/notes/sandpoint/install   Sat Feb 26 20:38:49 2011 +0000
@@ -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.
diff -r 40222ee8e800 -r 6e4ac7a8c0f0 distrib/sandpoint/Makefile
--- a/distrib/sandpoint/Makefile        Sat Feb 26 20:11:24 2011 +0000
+++ b/distrib/sandpoint/Makefile        Sat Feb 26 20:38:49 2011 +0000
@@ -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
diff -r 40222ee8e800 -r 6e4ac7a8c0f0 distrib/sets/lists/base/md.sandpoint
--- a/distrib/sets/lists/base/md.sandpoint      Sat Feb 26 20:11:24 2011 +0000
+++ b/distrib/sets/lists/base/md.sandpoint      Sat Feb 26 20:38:49 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index