xref: /netbsd-src/share/man/man8/man8.amiga/boot.8 (revision 68242e9d67d772f61bd40e375874fc27bd1e2061)
1*68242e9dSwiz.\"	$NetBSD: boot.8,v 1.18 2021/02/26 10:44:31 wiz Exp $
25c0a42a3Sis.\"
35c0a42a3Sis.\" Copyright (c) 1990, 1991 The Regents of the University of California.
45c0a42a3Sis.\" All rights reserved.
55c0a42a3Sis.\"
65c0a42a3Sis.\" This code is derived from software contributed to Berkeley by
75c0a42a3Sis.\" the Systems Programming Group of the University of Utah Computer
85c0a42a3Sis.\" Science Department.
95c0a42a3Sis.\"
105c0a42a3Sis.\" Redistribution and use in source and binary forms, with or without
115c0a42a3Sis.\" modification, are permitted provided that the following conditions
125c0a42a3Sis.\" are met:
135c0a42a3Sis.\" 1. Redistributions of source code must retain the above copyright
145c0a42a3Sis.\"    notice, this list of conditions and the following disclaimer.
155c0a42a3Sis.\" 2. Redistributions in binary form must reproduce the above copyright
165c0a42a3Sis.\"    notice, this list of conditions and the following disclaimer in the
175c0a42a3Sis.\"    documentation and/or other materials provided with the distribution.
18075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors
195c0a42a3Sis.\"    may be used to endorse or promote products derived from this software
205c0a42a3Sis.\"    without specific prior written permission.
215c0a42a3Sis.\"
225c0a42a3Sis.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
235c0a42a3Sis.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
245c0a42a3Sis.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
255c0a42a3Sis.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
265c0a42a3Sis.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
275c0a42a3Sis.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
285c0a42a3Sis.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
295c0a42a3Sis.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
305c0a42a3Sis.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
315c0a42a3Sis.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
325c0a42a3Sis.\" SUCH DAMAGE.
335c0a42a3Sis.\"
345c0a42a3Sis.\"	From:
355c0a42a3Sis.\"	@(#)boot_hp300.8	8.2 (Berkeley) 4/19/94
365c0a42a3Sis.\"
37fe456cecSrin.Dd February 25, 2021
38f6ec16baSwiz.Dt BOOT 8 amiga
395c0a42a3Sis.Os
405c0a42a3Sis.Sh NAME
415c0a42a3Sis.Nm boot
425c0a42a3Sis.Nd
435c0a42a3Sissystem bootstrapping procedures
445c0a42a3Sis.Sh DESCRIPTION
45c13612f8Swiz.Ss Power fail and crash recovery
465c0a42a3SisWhen the
475c0a42a3Sis.Nx
485c0a42a3Siskernel is booted normally (using one of the two methods discussed below),
49ed449c06Swizit initializes itself and proceeds to boot the system.
50ed449c06SwizAn automatic consistency check of the file systems takes place,
51ed449c06Swizand unless this fails, the system comes up to multi-user operations.
52ed449c06SwizThe proper way to shut the system down is with the
535c0a42a3Sis.Xr shutdown 8
545c0a42a3Siscommand.
555c0a42a3Sis.Pp
565c0a42a3SisIf the system crashes, it will enter the kernel debugger,
57c13612f8Swiz.Xr ddb 4 ,
58ed449c06Swizif it is configured in the kernel.
59ed449c06SwizIf the debugger is not present,
605c0a42a3Sisor the debugger is exited, the system will attempt a dump to the
615c0a42a3Sisconfigured dump device (which will be automatically recovered with
625c0a42a3Sis.Xr savecore 8
63ed449c06Swizduring the next boot cycle).
64ed449c06SwizAfter the dump is complete (successful
655c0a42a3Sisor not), the system will attempt a reboot.
66c13612f8Swiz.Ss Booting NetBSD using the bootloader
675c0a42a3SisWhen a bootable
685c0a42a3Sis.Nx
695c0a42a3Sispartition is created by means of HDTOOLBOX or another RDB editing program
705c0a42a3Sisand a bootblock has been copied there by
713af2acdcSchristos.Xr amiga/installboot 8
725c0a42a3Sisand the boot priority of the
735c0a42a3Sis.Nx
74374c0319Sispartition is either the highest or the
755c0a42a3Sis.Nx
765c0a42a3Sispartition is selected by means of the boot menu,
775c0a42a3Sisthe Amiga ROM will automatically start the
785c0a42a3Sis.Nx
79ed449c06Swizbootloader.
80ed449c06SwizBy default it will, after a short timeout, load the kernel image
815c0a42a3Sis.Pa /netbsd
82ed449c06Swizand attempt to boot it into multi-user mode.
83ed449c06SwizThis behaviour can be changed by
84ed449c06Swiztyping in an alternate command sequence.
85ed449c06SwizThe command line looks like:
865c0a42a3Sis.Bd -ragged -offset indent
875c0a42a3Sis.Ar kernel-path
882aacffe1Smlelstv.Op Fl abkpqsvACDS
895c0a42a3Sis.Op Fl c Ar model
905c0a42a3Sis.Op Fl m Ar memsize
915c0a42a3Sis.Op Fl n Ar memsegments
925c0a42a3Sis.Op Fl I Ar mask
935c0a42a3Sis.Ed
945c0a42a3Sis.Bl -tag -width flag
955c0a42a3Sis.It kernel-path
965c0a42a3SisThis gives you the opportunity to boot another kernel, say:
97c13612f8Swiz.Pa /netbsd.old .
985c0a42a3SisThe default is
99c13612f8Swiz.Pa /netbsd .
1005c0a42a3Sis.It Fl a
1015c0a42a3SisAutoboot into multi-user mode (default).
1025c0a42a3Sis.It Fl b
1035b7b2b65SlukemPrompt for the root file system device, the system crash dump
1045b7b2b65Slukemdevice, and the path to
1055b7b2b65Slukem.Xr init 8 .
1065c0a42a3Sis.It Fl c Ar model
1075c0a42a3Sisforce machine
1085c0a42a3Sis.Ar model .
1095c0a42a3SisUse 32000+(Qlogic chip revision) for the DraCo.
1105c0a42a3Sis.It Fl k
1115c0a42a3SisReserve the first 4M of fastmem.
1125c0a42a3Sis.It Fl m Ar memsize
1135c0a42a3SisForce fastmem size to be
1145c0a42a3Sis.Ar memsize
1155c0a42a3SiskBytes.
1165c0a42a3Sis.It Fl n
1175c0a42a3Sismaximum number of
1185c0a42a3Sis.Ar segments
1195c0a42a3Sisof memory to use, encoded as follows: 0 (default): 1 segment, 1:
1205c0a42a3Sis2 segments, 2: 3 or more segments.
1215c0a42a3Sis.It Fl p
1225c0a42a3SisSelect kernel load segment by priority instead of size.
123b333be39Sjdolecek.It Fl q
124b333be39SjdolecekBoot in quiet mode.
1255c0a42a3Sis.It Fl s
1265b7b2b65SlukemBoot into single-user mode.
127b333be39Sjdolecek.It Fl v
128b333be39SjdolecekBoot in verbose mode.
1292aacffe1Smlelstv.It Fl A
1302aacffe1SmlelstvEnable AGA display modes.
1312aacffe1Smlelstv.It Fl C
1322aacffe1SmlelstvUse the serial port as console.
1335c0a42a3Sis.It Fl D
1342aacffe1SmlelstvEnter the kernel debugger (best used with
1352aacffe1Smlelstv.Fl S ) .
1365c0a42a3Sis.It Fl I Ar mask
1375c0a42a3Sisinhibit sync negotiation as follows: The
1385c0a42a3Sis.Ar mask
1395c0a42a3Sisis a bitmap expressed in C notation (e.g., 0xff)
1405c0a42a3Siswith 4*8bits, each bit, if set to 1, disabling sync negotiation for
141ed449c06Swizthe corresponding target.
142ed449c06SwizNote that this only applies to (some of the)
143ed449c06Swizreal SCSI busses, but not, e.g., to internal IDE.
144ed449c06SwizThe bytes are used up
1455c0a42a3Sisfrom right to left by SCSI bus drivers using this convention.
1465c0a42a3Sis.It Fl S
1472aacffe1Smlelstvinclude kernel debug symbols (for use by
1482aacffe1Smlelstv.Fl D ) .
1495c0a42a3Sis.El
150c13612f8Swiz.Ss Booting NetBSD using the loadbsd program
1515c0a42a3SisWhen you want (or have to) start
152caef0a7cSis.Nx
1535c0a42a3Sisfrom AmigaOS, you have to use the
154c13612f8Swiz.Ic loadbsd
1555c0a42a3Sisprogram that is supplied in the utils directory of the distribution.
1565c0a42a3SisThe loadbsd command line specification is:
1575c0a42a3Sis.Bd -ragged -offset indent
1585c0a42a3Sis.Nm loadbsd
1592aacffe1Smlelstv.Op Fl abkpqstvACDSZ
1605c0a42a3Sis.Op Fl c Ar model
1615c0a42a3Sis.Op Fl m Ar memsize
1625c0a42a3Sis.Op Fl n Ar memsegments
1635c0a42a3Sis.Op Fl I Ar mask
1645c0a42a3Sis.Ar kernel-path
1655c0a42a3Sis.Ed
1665c0a42a3Sis.Pp
1675c0a42a3SisDescription of options:
1685c0a42a3Sis.Bl -tag -width flag
1695c0a42a3Sis.It Fl a
1705c0a42a3SisAutoboot into multi-user mode.
1715c0a42a3Sis.It Fl b
1725b7b2b65SlukemPrompt for the root file system device, the system crash dump
1735b7b2b65Slukemdevice, and the path to
1745b7b2b65Slukem.Xr init 8 .
1755c0a42a3Sis.It Fl c
1765c0a42a3Sisforce machine model.
1775c0a42a3Sis.It Fl k
1785c0a42a3SisReserve the first 4M of fastmem.
1795c0a42a3Sis.It Fl m
1805c0a42a3SisForce fastmem size to be
1815c0a42a3Sis.Ar memsize
1825c0a42a3SiskBytes.
1835c0a42a3Sis.It Fl n
1845c0a42a3Sismaximum number of
1855c0a42a3Sis.Ar segments
1865c0a42a3Sisof memory to use, encoded as follows: 0 (default): 1 segment, 1:
1875c0a42a3Sis2 segments, 2: 3 or more segments.
1885c0a42a3Sis.It Fl p
1895c0a42a3SisSelect kernel load segment by priority instead of size.
1902aacffe1Smlelstv.It Fl q
1912aacffe1SmlelstvBoot in quiet mode.
1925c0a42a3Sis.It Fl s
1935c0a42a3SisBoot into single-user mode.
1945c0a42a3Sis.It Fl t
1955c0a42a3SisTest loading of the kernel but don't start
1965c0a42a3Sis.Nx .
1972aacffe1Smlelstv.It Fl v
1982aacffe1SmlelstvBoot in verbose mode.
1995c0a42a3Sis.It Fl A
2002aacffe1Smlelstvenable AGA display modes.
2012aacffe1Smlelstv.It Fl C
2022aacffe1SmlelstvUse the serial port as console
2035c0a42a3Sis.It Fl D
2042aacffe1SmlelstvEnter the kernel debugger (best used with
2052aacffe1Smlelstv.Fl S ) .
2065c0a42a3Sis.It Fl I Ar mask
2075c0a42a3Sisinhibit sync negotiation as follows: The
2085c0a42a3Sis.Ar mask
2095c0a42a3Sisis a bitmap expressed in hexadecimal (e.g., ff)
2105c0a42a3Siswith 4*8bits, each bit, if set to 1, disabling sync negotiation for
211ed449c06Swizthe corresponding target.
212ed449c06SwizNote that this only applies to (some of the)
213ed449c06Swizreal SCSI busses, but not, e.g., to internal IDE.
214ed449c06SwizThe bytes are used up
2155c0a42a3Sisfrom right to left by SCSI bus drivers using this convention.
2165c0a42a3Sis.It Fl S
2172aacffe1Smlelstvinclude kernel debug symbols (for use by
2182aacffe1Smlelstv.Fl D ) .
2195c0a42a3Sis.It Fl Z
220ed449c06SwizForce load via chip memory.
221ed449c06SwizWon't work if kernel is larger than the chip memory size or on the
222ed449c06SwizDraCo.
2235c0a42a3Sis.El
2245c0a42a3Sis.Pp
2255c0a42a3SisNote: Because the loadbsd program can only read kernels from a AmigaOS
2265c0a42a3Sisfilesystem, the file
2275c0a42a3Sis.Ar /netbsd
228ed449c06Swizis often not the same as the actual kernel booted.
229ed449c06SwizThis can cause some programs to fail.
230ed449c06SwizHowever, note that you can use third-party Berkeley
231c13612f8Swizfilesystems such as bffs to access the
232c13612f8Swiz.Nx
233c13612f8Swizroot partition from AmigaOS.
2345c0a42a3Sis.Sh FILES
235fe456cecSrin.Bl -tag -width /usr/mdec/bootxx_ffsv1 -compact
2365c0a42a3Sis.It Pa /netbsd
2375c0a42a3Sissystem kernel
238fe456cecSrin.It Pa /usr/mdec/bootxx_ffsv1
239fe456cecSrinRDB device primary boot block for FFSv1 (and ustarfs)
240fe456cecSrin.It Pa /usr/mdec/bootxx_ffsv2
241fe456cecSrinRDB device primary boot block for FFSv2
242576463d9Smhitch.It Pa /usr/mdec/bootxx_fd
243576463d9Smhitchfloppy disk primary boot block
244576463d9Smhitch.It Pa /usr/mdec/boot.amiga
245576463d9Smhitchsecondary bootstrap
246576463d9Smhitch.It Pa /boot.amiga
247576463d9Smhitchsecondary bootstrap (installed)
2485c0a42a3Sis.El
2495c0a42a3Sis.Sh SEE ALSO
250c13612f8Swiz.Xr ddb 4 ,
2513af2acdcSchristos.Xr amiga/installboot 8 ,
25299f13c16Swiz.Xr fsck_ffs 8 ,
2535c0a42a3Sis.Xr newfs 8 ,
2545c0a42a3Sis.Xr savecore 8 ,
2555c0a42a3Sis.Xr shutdown 8
256c13612f8Swiz.Sh BUGS
2578a940b23SuebayasiDue to code size restrictions, you can't currently use an old-style file
258c13612f8Swizsystem (created with
259c13612f8Swiz.Xr newfs 8
260c13612f8Swiz-O
261c13612f8Swizor with
262c13612f8Swiz.Nx 0.9 )
263ed449c06Swizwith the boot block.
264ed449c06SwizYou can use
265c13612f8Swiz.Ic loadbsd
266c13612f8Swizto boot from AmigaOS, or upgrade the file system with
267c13612f8Swiz.Ar fsck_ffs -c 2 .
268