1 .\" $NetBSD: prep,v 1.14 2009/01/26 00:14:43 snj Exp $
3 .Ss2 Deciding on partition sizes
7 for the first time it's a good idea
8 to look at the partition sizes of the disk you plan to install
10 on. Will you be installing
15 or will you be netbooting? While
17 can work just fine on a disk shared with
21 installer does not currently support this. The limitation is that the
24 writes partition info that
26 is not familiar with. Therefore, if you are sharing a disk with
28 any time you change a partition table, you must do it from
31 Assuming a classic partition scheme with
35 file systems, a comfortable size for the
38 partition is about 200 MB.
39 A full binary installation including X takes over 600 MB in
41 Since the pkgsrc binaries are typically installed in
43 you may want a significantly larger
46 A good initial size for the swap partition is the amount of physical
47 memory in your machine if you've got more than 128 MB RAM. If you've got
48 less RAM, you may want swap to be at least 128 MB.
50 Note that the OBP on Ultra 1 and Ultra 2 machines can only boot from the first
51 4Gb of the disk, so this limits the size of the root partition on these models.
53 .Ss2 Setting up Open Firmware
55 First, you need to stop your system from automatically booting when
56 powered on. Pressing the
58 key (sometimes called the
60 key, found on the left side of your keyboard) and the
62 key will halt your system and give you the
64 prompt. If you are using a serial console, send a
66 signal from your terminal (the method of sending
68 varies from terminal to terminal).
70 If the ethernet address of your \*M system is
72 (check with the Open Firmware
75 then your NVRAM battery is dead and you will have trouble using
76 ethernet (among other problems). Read the Sun NVRAM/Hostid FAQ.
77 .Lk http://www.squirrel.com/squirrel/sun-nvram-hostid.faq.html
79 If you have a valid ethernet address and you plan to netboot, write down
80 your system's ethernet address.
82 You cannot use the security modes of the SPARC OpenFirmware.
84 .No ok Ic "setenv security-mode none"
87 If you are using a serial console, the
89 installer defaults to using 9600 bps, 8N1 settings. You may want to
90 configure your system and serial terminal like this prior to booting the
91 installer. A new installation of
93 will default to these settings as well.
95 SCSI devices are specified by an Open Firmware
97 which provides simple mnemonics for the full path to the device. Type
99 to get a list of all of the available aliases.
100 At a minimum, the alias and partition are necessary when booting.
102 Therefore, to boot from the swap partition on the internal hard drive
106 .No ok Ic "boot disk:b"
109 To boot from a CD-ROM (Open Firmware assumes SCSI CD-ROMs are at target 6),
113 .No ok Ic "boot cdrom"
116 And to boot from a kernel named
118 on the fourth partition (
122 partition) on an external SCSI hard drive (target 2, partition 3), one
126 .No ok Ic "boot disk2:d netbsd-GENERIC"
130 .Dq .... Fast Data MMU Miss
131 when booting after the NetBSD installation, your OpenBoot PROM may
132 need updating. It has been reported that version 3.31 lead to a
133 successful boot on an Ultra Enterprise 420R, while version 3.23 did
134 not. Exact values may vary, depending on your hardware, current
135 OpenBoot PROM version and moon phase.
138 .Ss2 Determining how to boot from an SBUS or PCI card
140 Some SBUS and PCI cards have firmware that lets you use them as boot
141 devices. These cards do not automatically create
143 entries, so you must traverse the device tree to figure out what
144 Open Firmware calls your card. You will be using Open Firmware commands
147 prompt. First `cd' to the top of the device tree and list the
148 nodes there. The following is the procedure to boot from an IDE card in
153 f006cf08 SUNW,ffb@1e,0
154 f006c32c SUNW,UltraSPARC-II@0,0
155 f006002c counter-timer@1f,1c00
158 f004cf84 virtual-memory
166 Usually, you can simply type in the name before the at (@) sign and
167 OpenFirmware will fill in the rest.
169 .No ok Ic "cd pci@1f,4000"
182 /pci@1f,4000/ide@2/disk
184 OK, now we know the path to the IDE device in this example. Now, we need
185 to determine if it's capable of booting. If it is, it will have the
190 close load write read seek
191 open write-blocks read-blocks max-transfer
192 block-size dma-free dma-alloc spin-down spin-up
195 Also, in case you're interested in further details about your
196 hardware, you can use the
200 So, when it's time to type in a boot command, use the shortened version of
203 command. You need to be more specific if there are two devices with the
204 same name (in this case, two /pci entries). In this example, you'd type:
206 .No ok Ic "boot /pci@1f,4000/ide/disk@0,0"
208 You can also store this device path across reboots using the
212 .No ok Ic "nvalias wd0 /pci@1f,4000/ide/disk@0,0:a"
215 And when the kernel is done booting, it may not automatically use your
216 card as the root device -- you may need to type in the
221 root on sd0a dumps on sd0b
222 no file system for sd0 (dev 0x700)
223 cannot mount root, error = 79
224 .No "root device (default sd0a):" Ic "?"
225 use one of: hme0 sd0[a-h] wd0[a-h] halt
226 .No "root device (default sd0a):" Ic "wd0a"
227 .No "dump device:" Ic "wd0a"
228 .No "file system (default generic):" Ic "ffs"
232 The root device can also be specified in your kernel config file.
234 .Ss2 Configuration of network interfaces
236 Some network devices (i.e., certain SBus cards)
237 allow a choice between operating on a UTP or a AUI port.
240 driver supports automatic detection of the port which is actually connected to
242 If automatic detection is not available or not working properly in your
243 environment, you may have to specify the type connection using the
247 During installation, you'll get the
248 opportunity to specify the appropriate medium.
251 to select the AUI connector, or
253 to select the UTP connector.