xref: /netbsd-src/share/man/man8/man8.acorn32/boot32.8 (revision 8f864f8f01b50ec80fa33284baf18698c3ff0848)
1*8f864f8fSjakllsch.\" $NetBSD: boot32.8,v 1.4 2016/04/30 14:32:22 jakllsch Exp $
2de7e86e2Sreinoud.\"
3de7e86e2Sreinoud.\" Copyright (c) 2000, 2001 Ben Harris
4de7e86e2Sreinoud.\" Copyright (c) 2004 Reinoud Zandijk
5de7e86e2Sreinoud.\" All rights reserved.
6de7e86e2Sreinoud.\"
7de7e86e2Sreinoud.\" Redistribution and use in source and binary forms, with or without
8de7e86e2Sreinoud.\" modification, are permitted provided that the following conditions
9de7e86e2Sreinoud.\" are met:
10de7e86e2Sreinoud.\" 1. Redistributions of source code must retain the above copyright
11de7e86e2Sreinoud.\"    notice, this list of conditions and the following disclaimer.
12de7e86e2Sreinoud.\" 2. Redistributions in binary form must reproduce the above copyright
13de7e86e2Sreinoud.\"    notice, this list of conditions and the following disclaimer in the
14de7e86e2Sreinoud.\"    documentation and/or other materials provided with the distribution.
15de7e86e2Sreinoud.\" 3. The name of the author may not be used to endorse or promote products
16de7e86e2Sreinoud.\"    derived from this software without specific prior written permission.
17de7e86e2Sreinoud.\"
18de7e86e2Sreinoud.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
19de7e86e2Sreinoud.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
20de7e86e2Sreinoud.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
21de7e86e2Sreinoud.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
22de7e86e2Sreinoud.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
23de7e86e2Sreinoud.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24de7e86e2Sreinoud.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25de7e86e2Sreinoud.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26de7e86e2Sreinoud.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27de7e86e2Sreinoud.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28de7e86e2Sreinoud.\"
29a9dda51fSapb.Dd September 4, 2009
30de7e86e2Sreinoud.Dt BOOT32 8 acorn32
31de7e86e2Sreinoud.Os
32de7e86e2Sreinoud.Sh NAME
33de7e86e2Sreinoud.Nm boot32
34de7e86e2Sreinoud.Nd Bootloader for
35de7e86e2Sreinoud.Nx Ns /acorn32
36de7e86e2Sreinoud.Sh SYNOPSIS
37de7e86e2Sreinoud.Nm *boot32
38de7e86e2Sreinoud.Op Fl acdqsv
39de7e86e2Sreinoud.Op Ar root=rootdir
40de7e86e2Sreinoud.Op Ar file
41de7e86e2Sreinoud.Sh DESCRIPTION
42de7e86e2Sreinoud.Nm
43de7e86e2Sreinoudis a program that runs under
44de7e86e2Sreinoud.Tn RISC OS
45de7e86e2Sreinoudand launches the
46de7e86e2Sreinoud.Nx Ns /acorn32
473679535dSwizkernel.
483679535dSwizIt needs to be installed in a RISC OS filesystem and given file
493679535dSwiztype FFA (Module).
503679535dSwizThe kernel it is to load also needs to be stored in a
51de7e86e2Sreinoud.Tn RISC OS
52de7e86e2Sreinoudfilesystem.
53de7e86e2Sreinoud.Pp
54de7e86e2SreinoudIt takes the following standard
55de7e86e2Sreinoud.Nx
56de7e86e2Sreinoudoptions, which set flags in the
57de7e86e2Sreinoud.Va boothowto
58a9dda51fSapbvariable in the booted kernel (see
59a9dda51fSapb.Xr boothowto 9 ) .
60a9dda51fSapbNot all flags may be effective.
61de7e86e2Sreinoud.Bl -tag -width Fl
62de7e86e2Sreinoud.It Fl a
63de7e86e2Sreinoud.Pq Dv RB_ASKNAME
64de7e86e2SreinoudCause the kernel to prompt the user for the name of the device containing the
653679535dSwizroot filesystem.
663679535dSwizThis also causes
67de7e86e2Sreinoud.Nm
68de7e86e2Sreinoudto prompt for the name of the kernel to be loaded.
69de7e86e2Sreinoud.It Fl s
70de7e86e2Sreinoud.Pq Dv RB_SINGLE
71de7e86e2SreinoudCause the kernel to ask
72de7e86e2Sreinoud.Nm init
73de7e86e2Sreinoudto boot into single-user mode.
74de7e86e2Sreinoud.It Fl d
75de7e86e2Sreinoud.Pq Dv RB_KDB
76de7e86e2SreinoudCause the kernel to enter the kernel debugger as soon as possible.
77de7e86e2Sreinoud.It Fl c
78de7e86e2Sreinoud.Pq Dv RB_USERCONF
79de7e86e2SreinoudEnter the in-kernel device configuration manager before attaching any
80de7e86e2Sreinouddevices.
81de7e86e2Sreinoud.It Fl q
82*8f864f8fSjakllsch.Pq Dv AB_QUIET
83de7e86e2SreinoudCause the kernel to emit fewer messages than normal while starting up.
84de7e86e2Sreinoud.It Fl v
85*8f864f8fSjakllsch.Pq Dv AB_VERBOSE
86de7e86e2SreinoudCause the kernel to emit more messages than normal while starting up.
87de7e86e2Sreinoud.El
88de7e86e2Sreinoud.Pp
89de7e86e2Sreinoud.Nm
90de7e86e2Sreinoudattempts to load the kernel from the RISC OS file specified as
91de7e86e2Sreinoud.Ar file ,
92de7e86e2Sreinoudor from
93de7e86e2Sreinoud.Pa netbsd
94de7e86e2Sreinoudif
95de7e86e2Sreinoud.Ar file
963679535dSwizis not specified.
973679535dSwizThe file must be an ELF image, and may have been compressed using
98de7e86e2Sreinoud.Xr gzip 1 .
99de7e86e2Sreinoud.Ss Use as a module
100de7e86e2Sreinoud.Nm
1013679535dSwizis implemented as a RISC OS relocatable module.
1023679535dSwizIt can be loaded into memory by running
103de7e86e2Sreinoud.Ql *RMLoad boot32 .
104de7e86e2SreinoudAfter this,
105de7e86e2Sreinoud.Nx
106de7e86e2Sreinoudcan be booted by running
107de7e86e2Sreinoud.Ql *boot32
108de7e86e2Sreinoudas usual, but the command will be handled by the module.
109de7e86e2Sreinoud.Pp
110de7e86e2SreinoudIt should also be possible to arrange for
111de7e86e2Sreinoud.Nm
1123679535dSwizto be loaded from ROM (e.g., from the ROM on an expansion card), in which case
113de7e86e2Sreinoud.Nx
114de7e86e2Sreinoudcould be made to boot automatically by making
115de7e86e2Sreinoud.Nm
116de7e86e2Sreinoudthe configured language using
117de7e86e2Sreinoud.Ql *Configure Language .
118de7e86e2Sreinoud.Ss Screen display
119de7e86e2SreinoudWhen it starts up,
120de7e86e2Sreinoud.Nm
121de7e86e2Sreinouddisplays the number of 4 kilobyte memory pages it has been delegated by RISC-OS
122de7e86e2Sreinoudand gives a summary about the memory map as reported by RISC-OS followed by a
1233679535dSwiztable of physical memory ranges available to the bootloader.
1243679535dSwizAll this information is mainly for bughunting booting problems.
125de7e86e2Sreinoud.Pp
126de7e86e2SreinoudIt then checks its internal structures and kicks out RISC-OS, relocates all
127de7e86e2Sreinoudmemory pages loaded in to their final destinations and kickstarts
1283679535dSwiz.Nm .
129de7e86e2Sreinoud.Sh FILES
130de7e86e2Sreinoud.Bl -tag -width Pa
131de7e86e2Sreinoud.It Pa /usr/mdec/boot32,ffa
132de7e86e2SreinoudThe location of
133de7e86e2Sreinoud.Nm
134de7e86e2Sreinoudin the
135de7e86e2Sreinoud.Nx
136de7e86e2Sreinoudfilesystem.
137de7e86e2Sreinoud.El
138de7e86e2Sreinoud.Sh SEE ALSO
139de7e86e2Sreinoud.Xr gzip 1 ,
140de7e86e2Sreinoud.Xr reboot 2 ,
141de7e86e2Sreinoud.Xr ddb 4 ,
142de7e86e2Sreinoud.Xr userconf 4 ,
143a9dda51fSapb.Xr init 8 ,
144a9dda51fSapb.Xr boothowto 9
145de7e86e2Sreinoud.Sh HISTORY
146de7e86e2Sreinoud.Nm
147de7e86e2Sreinoudwas introduced in
148de7e86e2Sreinoud.Nx 1.6
149de7e86e2Sreinoudas a replacement for the original
150de7e86e2Sreinoud.Nx Ns /arm32
151de7e86e2Sreinoudbootloader, which was written in BBC BASIC.
152de7e86e2Sreinoud.Sh BUGS
153de7e86e2Sreinoud.Nm
154de7e86e2Sreinoudcannot load kernels from a
155de7e86e2Sreinoud.Nx
156de7e86e2Sreinoudfilesystem.
157