Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm32/stand Import of the new RISCOS bootloader in ...



details:   https://anonhg.NetBSD.org/src/rev/0a6f693e1bae
branches:  trunk
changeset: 503976:0a6f693e1bae
user:      reinoud <reinoud%NetBSD.org@localhost>
date:      Mon Feb 19 14:09:00 2001 +0000

description:
Import of the new RISCOS bootloader in the CVS tree with import and export scripts.
Start version is v 0.91

diffstat:

 sys/arch/arm32/stand/BtNetBSD/FBInstall                            |  126 +
 sys/arch/arm32/stand/BtNetBSD/README                               |   15 +
 sys/arch/arm32/stand/BtNetBSD/Settype                              |    7 +
 sys/arch/arm32/stand/BtNetBSD/misc/Mkrel/MkRelScr                  |   33 +
 sys/arch/arm32/stand/BtNetBSD/misc/Mkrel/MkRelease                 |    5 +
 sys/arch/arm32/stand/BtNetBSD/misc/SettScr                         |   66 +
 sys/arch/arm32/stand/BtNetBSD/misc/bb_netbsd                       |  140 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/!Boot                 |    7 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/!Edit                 |    9 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/!Run                  |   14 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/Banner,uue            |  977 ++++++++++
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/BtNetBSD              |  890 +++++++++
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/Files                 |   26 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/Legal                 |   16 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/MemFix,uue            |   20 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/PreBoot               |   13 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/TestBoot              |   96 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/checkro403            |   11 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/fastboot              |   20 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/Howto          |   63 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/KillUnixfs     |    3 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/MountUFS       |  102 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/OpenRoot       |    2 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/unixfs_res,uue |  860 ++++++++
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/wd0a           |    3 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/wd0d           |    3 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/wd0e           |    3 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/wd0f           |    3 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/native/wd0g           |    3 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/pling.Sprites,uue     |   24 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/pling.Sprites22,uue   |  434 ++++
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/src/Banner/!Path      |    4 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/src/Banner/Banner     |  295 +++
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/src/Banner/resutil    |  123 +
 sys/arch/arm32/stand/BtNetBSD/pling.BtNetBSD/src/Banner/sprite,uue |  961 +++++++++
 sys/arch/arm32/stand/export-BtNetBSD                               |   35 +
 sys/arch/arm32/stand/import-BtNetBSD                               |   39 +
 37 files changed, 5451 insertions(+), 0 deletions(-)

diffs (truncated from 5599 to 300 lines):

diff -r 08fcad3df66c -r 0a6f693e1bae sys/arch/arm32/stand/BtNetBSD/FBInstall
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm32/stand/BtNetBSD/FBInstall   Mon Feb 19 14:09:00 2001 +0000
@@ -0,0 +1,126 @@
+$NetBSD: FBInstall,v 1.1 2001/02/19 14:09:01 reinoud Exp $
+
+Note of FastBoot/AutoBoot Installation for !BtNetBSD V0.90
+based on !BtRiscBSD
+
+Updated by Reinoud Zandijk 18 Feb 2001
+Author: Mark Brinicombe 12th May 1995
+Updated: 20th June 1997
+
+Installation
+------------
+
+Two patches are required to the standard boot files
+
+The following lines should be added to the start of
+!Boot.Choices.Boot.PreDesktop
+
+----------------------- Cut here -----------------------
+
+|Start NetBSD !Boot FastBoot
+Run <Obey$Dir>.^.^.^.BtNetBSD.!BtNetBSD.!Boot
+Run <BtNetBSD$Dir>.TestBoot
+If "<NetBSD$FastBoot>" = "1" THEN Echo NetBSD FastBoot mode engaged
+If "<NetBSD$FastBoot>" = "2" THEN Echo NetBSD ConfBoot mode engaged
+If "<NetBSD$FastBoot>" = "3" THEN Echo NetBSD AutoBoot mode engaged
+If "<NetBSD$FastBoot>" = "4" THEN Echo NetBSD FastConf mode engaged
+|End
+
+----------------------- Cut here -----------------------
+
+These commands should be the first one run in the PreDesktop
+file. They boot the boot loader application (primarily to set
+BtNetBSD$Dir). The file <BtNetBSD$Dir>.TestBoot is then run
+to test for the ALT or CTRL keys are being held down. In addition
+it checks several CMOS RAM bits for boot configuration options.
+
+The following lines should be added to the start of
+!Boot.Choices.Boot.Desktop
+
+----------------------- Cut here -----------------------
+
+|Start NetBSD !Boot FastBoot
+Iconsprites <BtNetBSD$Dir>.!Sprites22
+If <NetBSD$FastBoot> = 4 THEN Run <BtNetBSD$Dir>.!Edit
+If <NetBSD$FastBoot> > 0 AND <NetBSD$FastBoot> < 4 THEN Obey <BtNetBSD$Dir>.fastboot
+|End
+
+----------------------- Cut here -----------------------
+
+This command should be the first one run in the Desktop file.
+It runs the NetBSD Bootloader with the configured parameters.
+
+
+There is a specific reason for not putting all the fastboot code in
+one file. The PreDesktop patch is run very early in the boot up so
+that the ALT and CTRL keys can be detected quickly. However, currently
+the actually bootloader cannot be run at this point unless a lot of
+memory is available in the module area (~1Meg) as currently the
+module area is used for temporary storage of the kernel being
+booted. 
+This means that the actual boot is prosponed until the start of
+the Desktop file. At this point the desktop has been started and
+the task manager is running so it will be possible to allocate
+a large amount of module space.
+
+
+Activation
+----------
+
+Once installed, to engage the fastboot hold ALT down immediately
+after a reset. As soon as the "fastboot engaged" message is printed
+the ALT key can be released.
+To engage the fastconf mode  hold CTRL down immediately
+after a reset. As soon as the "fastconf engaged" message is printed
+the CTRL key can be released.
+
+
+Configuration
+-------------
+
+Configuration is done via the !BtNetBSD application.
+When ever NetBSD is booted the commandline used to boot it is saved
+by the bootloader to the file <BtNetBSD$Dir>.FastBoot
+Rerunning this file will then boot NetBSD with the last parameters
+used. It is this file that the fastboot uses so the fast boot will
+boot NetBSD with the same parameters as were used for the last boot.
+
+
+ConfBoot mode
+-------------
+
+This mode is identified by NetBSD$FastBoot being set to 2. This indicates
+that the bootloader has been configured to always boot NetBSD. This is
+down by setting a bit in the CMOS RAM (via !BtNetBSD).
+If NetBSD boots are configured the action of the ALT is reversed so that
+holding down ALT will allow a RISC OS boot instead.
+
+
+AutoBoot mode
+-------------
+
+This mode is identified by NetBSD$FastBoot being set to 3. This indicates
+that an automatic boot was requested by NetBSD before it rebooted. This
+will happen when /sbin/reboot is used instead of /sbin/halt.
+
+
+FastBoot mode
+-------------
+
+This is the behaviour when ALT is held down at boot time and ConfBoot mode
+has not been configured. It just bypasses most of the normal startup and
+boots NetBSD.
+
+
+FastConf mode
+-------------
+
+This is the behaviour when CTRL is held down at boot time. This is similar to
+FastBoot mode except that the !BtNetBSD is provided to allow boot parameters
+to be changed.
+
+
+Bugs
+----
+
+Well hopefully there are no bugs :-)
diff -r 08fcad3df66c -r 0a6f693e1bae sys/arch/arm32/stand/BtNetBSD/README
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm32/stand/BtNetBSD/README      Mon Feb 19 14:09:00 2001 +0000
@@ -0,0 +1,15 @@
+$NetBSD: README,v 1.1 2001/02/19 14:09:01 reinoud Exp $
+
+Welcome to NetBSD for the Acorn RiscPC/A7000/NC and Imago !
+
+To get this distribution working run `settype' the file `Settype'
+to Obey and run this file. It will set all file types in this
+directory to the correct RISC OS types. Pity those file types get
+lost after retrieving them from the source repository....
+
+To read more about installing the bootloader, read the FBInstall file.
+
+Enjoy your installation !
+
+19 Februari 2001
+Reinoud Zandijk
diff -r 08fcad3df66c -r 0a6f693e1bae sys/arch/arm32/stand/BtNetBSD/Settype
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm32/stand/BtNetBSD/Settype     Mon Feb 19 14:09:00 2001 +0000
@@ -0,0 +1,7 @@
+| $NetBSD: Settype,v 1.1 2001/02/19 14:09:01 reinoud Exp $
+|
+|  !!!! please *settype Obey me and run me
+|
+
+*Set rel$dir <Obey$dir>
+*Exec <obey$Dir>.misc.SettScr
diff -r 08fcad3df66c -r 0a6f693e1bae sys/arch/arm32/stand/BtNetBSD/misc/Mkrel/MkRelScr
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm32/stand/BtNetBSD/misc/Mkrel/MkRelScr Mon Feb 19 14:09:00 2001 +0000
@@ -0,0 +1,33 @@
+| $NetBSD: MkRelScr,v 1.1 2001/02/19 14:09:02 reinoud Exp $
+
+*BASIC
+
+*DIR <rel$dir>.!BtNetBSD
+TEXTLOAD "BtNetBSD"
+TEXTSAVEO 8, "BtNetBSD"
+TEXTLOAD "checkro403"
+TEXTSAVEO 8, "checkro403"
+TEXTLOAD "TestBoot"
+TEXTSAVEO 8, "TestBoot"
+
+*DIR <rel$dir>.!BtNetBSD.native
+TEXTLOAD "MountUFS"
+TEXTSAVEO 8, "MountUFS"
+
+*DIR <rel$dir>.!BtNetBSD.src.Banner
+TEXTLOAD "Banner"
+TEXTSAVEO 8, "Banner"
+TEXTLOAD "resutil"
+TEXTSAVEO 8, "resutil"
+
+*DIR <rel$dir>.misc
+TEXTLOAD "bb_netbsd"
+TEXTSAVEO 8, "bb_netbsd"
+
+*DIR <rel$dir>.unixfs
+TEXTLOAD "mountufs"
+TEXTSAVEO 8, "mountufs"
+
+CLS:VDU 7:PRINT "Please dont forget to uuencode the binaries in NetBSD!"
+
+QUIT
diff -r 08fcad3df66c -r 0a6f693e1bae sys/arch/arm32/stand/BtNetBSD/misc/Mkrel/MkRelease
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm32/stand/BtNetBSD/misc/Mkrel/MkRelease        Mon Feb 19 14:09:00 2001 +0000
@@ -0,0 +1,5 @@
+| $NetBSD: MkRelease,v 1.1 2001/02/19 14:09:02 reinoud Exp $
+
+*Set rel$dir <Obey$dir>.^.^
+*Copy <rel$dir>.unixfs <rel$dir>.!BtNetBSD.native rfv~c
+*Exec <obey$Dir>.MkRelScr
diff -r 08fcad3df66c -r 0a6f693e1bae sys/arch/arm32/stand/BtNetBSD/misc/SettScr
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm32/stand/BtNetBSD/misc/SettScr        Mon Feb 19 14:09:00 2001 +0000
@@ -0,0 +1,66 @@
+| $NetBSD: SettScr,v 1.1 2001/02/19 14:09:01 reinoud Exp $
+
+*BASIC
+
+*DIR <rel$dir>
+*Settype FBInstall text
+*Settype README text
+
+*DIR <rel$dir>.!BtNetBSD
+TEXTLOAD "BtNetBSD"
+SAVE "BtNetBSD"
+TEXTLOAD "checkro403"
+SAVE "checkro403"
+TEXTLOAD "TestBoot"
+SAVE "TestBoot"
+*Settype !Boot Obey
+*Settype !Edit Obey
+*Settype !Run Obey
+*Settype !Sprites Sprite
+*Settype !Sprites22 Sprite
+*Settype Banner Module
+*Settype MemFix Module
+*Settype PreBoot obey
+*Settype fastboot Text
+*Settype Files Text
+*Settype Legal text
+
+*DIR <rel$dir>.!BtNetBSD.native
+TEXTLOAD "MountUFS"
+SAVE "MountUFS"
+*Settype KillUnixFS Obey
+*Settype OpenRoot Obey
+*Settype unixfs_res Module
+*Settype wd0a obey
+*Settype wd0d obey
+*Settype wd0e obey
+*Settype wd0f obey
+*Settype wd0g obey
+
+*DIR <rel$dir>.!BtNetBSD.src.Banner
+TEXTLOAD "Banner"
+SAVE "Banner"
+TEXTLOAD "resutil"
+SAVE "resutil"
+*Settype !Path Obey
+*Settype Sprite sprite
+
+*DIR <rel$dir>.misc
+TEXTLOAD "bb_netbsd"
+SAVE "bb_netbsd"
+*Settype SettScr text
+
+*DIR <rel$dir>.unixfs
+TEXTLOAD "mountufs"
+SAVE "mountufs"
+*Settype KillUnixFS Obey
+*Settype OpenRoot Obey
+*Settype unixfs_res module
+*Settype wd0a Obey
+*Settype wd0e Obey
+
+*DIR <rel$dir>.misc.MkRel
+*Settype MkRelease Obey
+*Settype MkRelScr Obey
+
+QUIT
diff -r 08fcad3df66c -r 0a6f693e1bae sys/arch/arm32/stand/BtNetBSD/misc/bb_netbsd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/arm32/stand/BtNetBSD/misc/bb_netbsd      Mon Feb 19 14:09:00 2001 +0000
@@ -0,0 +1,140 @@
+REM > bb_NetBSD
+REM $NetBSD: bb_netbsd,v 1.1 2001/02/19 14:09:01 reinoud Exp $
+REM
+REM Copyright (c) 1995 Mark Brinicombe
+REM All rights reserved
+REM
+REM Redistribution and use in source and binary forms, with or without
+REM modification, are permitted provided that the following conditions
+REM are met:
+REM 1. Redistributions of source code must retain the above copyright
+REM    notice, this list of conditions and the following disclaimer.
+REM 2. Redistributions in binary form must reproduce the above copyright
+REM    notice, this list of conditions and the following disclaimer in the
+REM    documentation and/or other materials provided with the distribution.
+REM 3. All advertising materials mentioning features or use of this software
+REM    must display the following acknowledgement:
+REM        This product includes software developed by Mark Brinicombe.
+REM 4. The name of the company nor the name of the author may be used to
+REM    endorse or promote products derived from this software without specific
+REM    prior written permission.



Home | Main Index | Thread Index | Old Index