1 1.23 snj $NetBSD: prep.RISCOS,v 1.23 2015/05/09 08:13:34 snj Exp $ 2 1.1 bjh21 3 1.22 sborrill These instructions are specific to NetBSD/acorn32 on Acorn RISC OS platforms 4 1.22 sborrill (RiscPC/A7000/A7000+/NC). 5 1.1 bjh21 6 1.12 reinoud Last updated for the BtNetBSD bootloader version 0.99a at 10 July 2002 by 7 1.14 salo Reinoud Zandijk (reinoud (a] NetBSD.org), portmaster of NetBSD/acorn32. 8 1.5 reinoud 9 1.20 snj For a more detailed acknowledgement and list of contributors see Appendix B 10 1.7 wiz at the bottom. 11 1.5 reinoud 12 1.5 reinoud 13 1.5 reinoud 14 1.1 bjh21 0 Before you start 15 1.1 bjh21 16 1.20 snj Read this document and one of the INSTALL documents completely before 17 1.20 snj continuing. There might be some things mentioned twice, but this document 18 1.22 sborrill ought to help with the RISC OS installation specifically. 19 1.5 reinoud 20 1.5 reinoud 21 1.1 bjh21 22 1.1 bjh21 1 Requirements 23 1.1 bjh21 24 1.5 reinoud 25 1.1 bjh21 1.1 Hardware 26 1.1 bjh21 27 1.23 snj Refer to the NetBSD installation notes and/or the website 28 1.18 pavel http://www.NetBSD.org/ports/acorn32/ for a list of supported hardware. 29 1.5 reinoud 30 1.1 bjh21 31 1.1 bjh21 1.2 Software 32 1.1 bjh21 33 1.22 sborrill You will need the following RISC OS software: 34 1.1 bjh21 35 1.1 bjh21 A program that will unpack sparchives. We recommend that you 36 1.4 wiz get David Pilling's !SparkPlug. A self-extracting version of this 37 1.23 snj can be found at David Pilling's website 38 1.19 mjf (http://www.davidpilling.net/free.html). 39 1.1 bjh21 40 1.1 bjh21 A program to report your disk's geometry: 41 1.1 bjh21 42 1.4 wiz Not really needed, you can simply boot the installation 43 1.1 bjh21 kernel and look for the geometry in the boot messages. 44 1.1 bjh21 45 1.1 bjh21 Sergio Monesi's fsck suite (a good thing to have around 46 1.1 bjh21 anyway). Available from: 47 1.19 mjf http://www.monesi.com/sergio/fsck.html 48 1.1 bjh21 49 1.1 bjh21 !Zap (The read disk facility). Available from HENSA. 50 1.1 bjh21 51 1.1 bjh21 The partition software/formatter for your desired installation 52 1.1 bjh21 target: 53 1.1 bjh21 54 1.1 bjh21 IDE disks on motherboard interface: !HForm 55 1.1 bjh21 IDE disks on Simtec interface: UNKNOWN 56 1.1 bjh21 IDE disks on ICS interface: UNKNOWN 57 1.1 bjh21 IDE disks on RapIDE interface: UNKNOWN 58 1.1 bjh21 Acorn SCSI cards: ScsiDM 59 1.1 bjh21 Power-tec SCSI cards: !PowerMgr 60 1.1 bjh21 Cumana SCSI-2: !SCSIMgr 61 1.1 bjh21 oak SCSI-1 card: UNKNOWN 62 1.1 bjh21 MCS Connect32 SCSI: UNKNOWN 63 1.1 bjh21 Morley SCSI: UNKNOWN 64 1.1 bjh21 65 1.20 snj Additionally you will require the following: 66 1.1 bjh21 67 1.22 sborrill The Bootloader and RISC OS tools: BtNetBSD.tar.Z as found in 68 1.20 snj the installation/misc directory. This archive, which can be 69 1.21 sborrill unpacked with !SparkPlug, *includes the installation-kernel* 70 1.17 wiz so you don't have to download it separately. 71 1.1 bjh21 72 1.22 sborrill The NetBSD/acorn32 distribution sets (will be on the CD-ROM, or 73 1.1 bjh21 available from your nearest NetBSD ftp site). 74 1.1 bjh21 75 1.1 bjh21 A hardcopy of this document, along with a hardcopy of the 76 1.1 bjh21 NetBSD installation instructions "INSTALL"). 77 1.1 bjh21 78 1.20 snj 1.3 Preliminary steps: 79 1.5 reinoud 80 1.8 reinoud Unpack your BtNetBSD archive in whatever way, set the type of 81 1.8 reinoud the `Settype' file in the BtNetBSD directory to `Obey' and run 82 1.22 sborrill it. This will set the files' RISC OS filetypes correctly. This is 83 1.9 reinoud also explained in a bit more detail in the enclosed README file. 84 1.12 reinoud It will also type the `InstKern' file that is the installation 85 1.22 sborrill kernel itself which contains the embedded ramdisk. 86 1.5 reinoud 87 1.1 bjh21 2 Preparing your hard disk 88 1.1 bjh21 89 1.1 bjh21 Terms: 90 1.1 bjh21 91 1.1 bjh21 Device: The actual physical hard disk 92 1.1 bjh21 Partition: A section of a device. 93 1.1 bjh21 File system: A structured partition that is able to hold files. 94 1.22 sborrill Disc: A RISC OS file system in a partition. There can be 95 1.1 bjh21 more than one Disc per Device. 96 1.1 bjh21 97 1.1 bjh21 You will have to decide which device you wish to install NetBSD on. 98 1.1 bjh21 You will also have to decide whether you want to split the device 99 1.22 sborrill between one or more RISC OS discs and NetBSD or dedicate a whole 100 1.9 reinoud Device for NetBSD. 101 1.1 bjh21 102 1.1 bjh21 In making this decision you should consider the possibility that if 103 1.1 bjh21 NetBSD is incorrectly configured on a shared device then your shared 104 1.1 bjh21 data is at risk. 105 1.1 bjh21 106 1.1 bjh21 It is still recommended that if you decide to dedicate a device to 107 1.1 bjh21 NetBSD that you set aside a small RISC OS partition at the beginning 108 1.22 sborrill of the device. This is a useful place to store the RISC OS side of 109 1.1 bjh21 NetBSD, and will make the use of UnixFS easier to configure. If you 110 1.22 sborrill do decide to create a minimal RISC OS partition at the beginning of 111 1.1 bjh21 the device, a size of 10-20 MB is recommended (some partitioning 112 1.1 bjh21 software has problems with partitions smaller than this). 113 1.1 bjh21 114 1.1 bjh21 The point is that you will have to repartition your device to make 115 1.1 bjh21 room for a separate partition after the RISC OS one for NetBSD. This 116 1.1 bjh21 means backing up your device, re-partitioning it and then copying all 117 1.1 bjh21 the data back afterwards. We recommend that you only copy the needed 118 1.1 bjh21 data back and put off installing the rest until you have NetBSD up 119 1.1 bjh21 and running. This way you will save yourself a lot of work if 120 1.1 bjh21 something goes wrong and you have to start all over again. 121 1.1 bjh21 122 1.5 reinoud 123 1.1 bjh21 2.1 Sharing your device 124 1.1 bjh21 125 1.5 reinoud 126 1.1 bjh21 2.1.1 Acorn IDE 127 1.1 bjh21 128 1.1 bjh21 Use !HForm for this interface. This is a program that is delivered 129 1.1 bjh21 with your computer and is located in the Utilities directory on your 130 1.4 wiz hard disk. 131 1.1 bjh21 132 1.1 bjh21 With this software you only have the possibility of using one 133 1.1 bjh21 partition for RISC OS, so you have to set the rest aside for NetBSD. 134 1.1 bjh21 135 1.1 bjh21 Use this procedure to set up your device: 136 1.1 bjh21 137 1.4 wiz Start !HForm by double-clicking on its icon. 138 1.1 bjh21 139 1.1 bjh21 Choose the "custom" or "other" option when prompted (usually 140 1.1 bjh21 the last). 141 1.1 bjh21 142 1.1 bjh21 Use the default values for the geometry but do not enter the 143 1.1 bjh21 full number of cylinders. Just enter the number you want to 144 1.1 bjh21 use for RISC OS. Make a note of this number. 145 1.1 bjh21 146 1.1 bjh21 Continue to accept the default answers until you're asked 147 1.4 wiz whether you want to format or initialize, choose initialize. 148 1.1 bjh21 149 1.1 bjh21 Go to the section about running bb_riscbsd. 150 1.1 bjh21 151 1.5 reinoud 152 1.1 bjh21 2.1.2 Cumana SCSI-2 card 153 1.1 bjh21 154 1.1 bjh21 It is recommended that you use a newer version of !SCSIMgr (newer 155 1.1 bjh21 than v1.55) since this will be easier to use when you want to leave 156 1.1 bjh21 part of the device unused by RISC OS. You should check for the latest 157 1.1 bjh21 version of this software at the following URL: 158 1.1 bjh21 http://www.cumana.demon.co.uk 159 1.1 bjh21 160 1.1 bjh21 You need to create one or more RISC OS partitions, and you do it in 161 1.1 bjh21 in the following way: 162 1.1 bjh21 Run !SCSIMgr by double-clicking on it. 163 1.1 bjh21 164 1.1 bjh21 Select the device you wish to repartition. 165 1.1 bjh21 166 1.1 bjh21 Click on the clear icon in the partitions subwindow. 167 1.1 bjh21 168 1.1 bjh21 This will give you a dialogue box where you can specify the 169 1.1 bjh21 size of the RISC OS partitions. Do not select all since you 170 1.1 bjh21 want to use part of it for NetBSD. 171 1.1 bjh21 172 1.1 bjh21 Enter the amount of the device you wish to reserve for 173 1.22 sborrill RISC OS. This will be the whole device size less the amount 174 1.1 bjh21 you want to reserve for NetBSD. Make a note of this number. 175 1.1 bjh21 176 1.1 bjh21 If you like, split the RISC OS portion of the device into 177 1.22 sborrill several partition (you should only "see" the RISC OS portion). 178 1.1 bjh21 179 1.4 wiz Click on Execute when you are happy with the partitions. This 180 1.4 wiz will create your partitions, and wipe your device. 181 1.1 bjh21 182 1.1 bjh21 Go to the section about running bb_riscbsd. 183 1.1 bjh21 184 1.5 reinoud 185 1.1 bjh21 2.1.3 Alsystems Power-tec SCSI-2 card 186 1.1 bjh21 187 1.1 bjh21 You must use the !PowerMgr program to partition the device. 188 1.1 bjh21 189 1.1 bjh21 The RISC OS partitions should be called RiscOs:, and the NetBSD one 190 1.1 bjh21 should be called Empty:. 191 1.1 bjh21 192 1.1 bjh21 Here is the procedure you should use: 193 1.1 bjh21 Start !PowerMgr by double-clicking on its icon. 194 1.1 bjh21 195 1.1 bjh21 Click on advanced in the main window 196 1.1 bjh21 197 1.1 bjh21 Click on Define/create partitions 198 1.4 wiz Click on the device you want to set up for NetBSD. 199 1.1 bjh21 200 1.6 reinoud Set up the RISC OS partitions as "RiscOs:" and the 201 1.6 reinoud remaining one as "Empty:". 202 1.1 bjh21 203 1.4 wiz Click on each figure and press RETURN. 204 1.1 bjh21 205 1.4 wiz Click on partition drive. 206 1.1 bjh21 207 1.1 bjh21 Click on yes to warning as you really want to wipe 208 1.4 wiz the device. 209 1.1 bjh21 210 1.1 bjh21 Click on yes to proceed, this will lead you to the 211 1.1 bjh21 partition init. 212 1.1 bjh21 213 1.1 bjh21 Partition init 214 1.1 bjh21 Set a tick on all RiscOs: partitions, give them a name 215 1.1 bjh21 and set LFAU to auto. 216 1.1 bjh21 217 1.1 bjh21 Unset the tick on your Empty: partition. 218 1.1 bjh21 219 1.20 snj Click on Initialize selected partitions. 220 1.1 bjh21 221 1.1 bjh21 Click on yes to proceed init as you want to wipe the 222 1.4 wiz selected partitions. 223 1.1 bjh21 224 1.4 wiz Click on yes to proceed to configure. 225 1.1 bjh21 226 1.1 bjh21 Configure 227 1.1 bjh21 Here you should set up the RISC OS partitions as you 228 1.1 bjh21 like them. Normally the default will be ok. 229 1.1 bjh21 230 1.1 bjh21 Click on configure. This will configure your computer 231 1.1 bjh21 and give you access to the Discs. 232 1.1 bjh21 233 1.6 reinoud You *Must Not* run bb_riscbsd. 234 1.5 reinoud 235 1.5 reinoud 236 1.1 bjh21 237 1.1 bjh21 2.1.4 Acorn SCSI card 238 1.1 bjh21 239 1.1 bjh21 You can only have one RISC OS partition with this card. The rest has 240 1.1 bjh21 to be set aside for NetBSD. 241 1.1 bjh21 242 1.1 bjh21 This card does not have a friendly WIMP-based interface on the SCSI 243 1.1 bjh21 management program, but the command line version is very good. You 244 1.1 bjh21 should run this in a task window (press CTRL-F12): 245 1.1 bjh21 dir <location_of_scsidm> 246 1.1 bjh21 247 1.1 bjh21 scsidm 248 1.1 bjh21 249 1.1 bjh21 You will get the following prompt: 250 1.1 bjh21 scsidm> 251 1.1 bjh21 252 1.1 bjh21 Now you should enter the following commands: 253 1.1 bjh21 probe (to see which devices are available) 254 1.1 bjh21 255 1.1 bjh21 device <no> (replace <no> with the no of your device) 256 1.1 bjh21 257 1.1 bjh21 section (to divide the device between RISC OS and 258 1.1 bjh21 NetBSD) 259 1.1 bjh21 Answer yes to the question: 260 1.1 bjh21 Include RISCiX partitions? 261 1.1 bjh21 262 1.1 bjh21 Enter the size of the RISC OS area in blocks 263 1.1 bjh21 (sectors) 264 1.1 bjh21 265 1.1 bjh21 SCSIDM will round this up to the nearest cylinder 266 1.1 bjh21 boundary. 267 1.1 bjh21 268 1.1 bjh21 Answer yes to the question: 269 1.1 bjh21 Do you really want to section device <no>? 270 1.1 bjh21 271 1.1 bjh21 This will section the device into two partitions. 272 1.1 bjh21 273 1.1 bjh21 quit 274 1.1 bjh21 275 1.6 reinoud Go to the section on running bb_riscbsd. 276 1.5 reinoud 277 1.5 reinoud 278 1.1 bjh21 279 1.1 bjh21 2.1.5 Other interfaces 280 1.1 bjh21 281 1.1 bjh21 It may not be possible to partition devices on other interface. If 282 1.1 bjh21 you are using a different interface you have 2 options: 283 1.12 reinoud 284 1.1 bjh21 Try to work out how to partition devices on it 285 1.1 bjh21 286 1.1 bjh21 Use the entire device for NetBSD 287 1.1 bjh21 288 1.5 reinoud 289 1.1 bjh21 2.2 Using a whole device for NetBSD 290 1.1 bjh21 291 1.2 reinoud As a safety precaution NetBSD/acorn32 looks for a filecore bootblock 292 1.1 bjh21 at the beginning of any device it labels. If it finds one and it 293 1.2 reinoud looks as though it is in use then NetBSD/acorn32 will not touch it. 294 1.1 bjh21 295 1.22 sborrill Because of this, if you've ever used your device for RISC OS, you will 296 1.1 bjh21 need to invalidate this bootblock. 297 1.1 bjh21 298 1.1 bjh21 To do this you need to: 299 1.12 reinoud 300 1.4 wiz Be absolutely sure you want to do this. 301 1.1 bjh21 302 1.4 wiz Run bb_trash and follow the instructions. 303 1.1 bjh21 304 1.22 sborrill Ensure that this device is now not configured for RISC OS. 305 1.1 bjh21 306 1.1 bjh21 You are now ready to boot NetBSD and continue the installation. 307 1.1 bjh21 308 1.5 reinoud 309 1.5 reinoud 310 1.1 bjh21 3 Running bb_riscbsd 311 1.1 bjh21 312 1.1 bjh21 When you run this program, you will first be asked whether you are 313 1.1 bjh21 installing to an ADFS drive or a SCSI drive. You can just press A or 314 1.1 bjh21 S respectively. (The bb_riscbsd program assumes that you are using a 315 1.1 bjh21 non-Acorn SCSI card, so if you are using an Acorn card, then you may 316 1.12 reinoud have to edit this program and replace SCSI_DiscOp with SCSIFS_DiscOp.) 317 1.1 bjh21 318 1.1 bjh21 Then you will be asked which disc you want to install NetBSD on. This 319 1.1 bjh21 *must* be the first disc on the device. bb_riscbsd will now 320 1.1 bjh21 scrutinize the device and see how it has been laid out. 321 1.1 bjh21 322 1.22 sborrill It will then tell you how much of the device is occupied by RISC OS in 323 1.1 bjh21 cylinders, and you will then be asked for the NetBSD starting 324 1.1 bjh21 cylinder. Normally you should just enter the number given to you 325 1.1 bjh21 since the RISC OS starting cylinder is 0 and therefore the last 326 1.1 bjh21 cylinder in use is one less than the figure given. If no figure is 327 1.1 bjh21 displayed, then your partitioning software failed to fill in the 328 1.1 bjh21 bootblock completely (it doesn't have to do this for you but most do) 329 1.1 bjh21 or you selected the wrong device. If you are convinced that this is 330 1.4 wiz the correct device then you must calculate a cylinder offset using 331 1.1 bjh21 the numbers noted down during partitioning (if it is not a whole 332 1.1 bjh21 number *always* round up, you might waste a little of the device but 333 1.4 wiz it'll be safer). 334 1.1 bjh21 335 1.1 bjh21 Make a note of this number. 336 1.1 bjh21 337 1.1 bjh21 bb_riscbsd will make a backup of the original bootblock, but it 338 1.1 bjh21 can be non-trivial to put it back. 339 1.1 bjh21 340 1.5 reinoud 341 1.5 reinoud 342 1.1 bjh21 4 Booting 343 1.1 bjh21 344 1.1 bjh21 Now that your device is ready for the installation you need to 345 1.12 reinoud unpack the bootloader archive. 346 1.12 reinoud 347 1.12 reinoud In the archive you'll find the tools mentioned in this document as well as 348 1.20 snj the bootloader !BtNetBSD itself and a file called `InstKern' 349 1.20 snj which is the actual installation kernel with embedded ramdisk containing the 350 1.20 snj NetBSD userland necessary for installation. 351 1.5 reinoud 352 1.5 reinoud 353 1.12 reinoud 4.1 [Optional] Configuring the !BtNetBSD bootloader before installation 354 1.5 reinoud 355 1.5 reinoud Open the !BtNetBSD application and edit the `fastboot' file to specify 356 1.12 reinoud a known kernel location; an example is already given. 357 1.1 bjh21 358 1.5 reinoud You can also set other details like tweaking with the amount of memory in 359 1.5 reinoud the WimpSlot of the bootloader when this is too much. Remember however that 360 1.5 reinoud this shouldn't be set too low for it can crash the bootloader. 361 1.1 bjh21 362 1.5 reinoud When you think you've filled in the proper details save the file again 363 1.7 wiz and proceed. 364 1.1 bjh21 365 1.1 bjh21 366 1.12 reinoud 4.2 Starting the installation! 367 1.5 reinoud 368 1.12 reinoud To start the installation just double click on the InstKern file. This will 369 1.12 reinoud startup !BtNetBSD with the proper kernel argument and start its installation. 370 1.1 bjh21 371 1.1 bjh21 NetBSD should now start to boot, install NetBSD as per the NetBSD 372 1.1 bjh21 installation notes. 373 1.1 bjh21 374 1.5 reinoud When you finish the installation you can restarted the computer as 375 1.7 wiz instructed. 376 1.5 reinoud 377 1.1 bjh21 378 1.12 reinoud 4.3 [Optional] Configuring !BtNetBSD after installation 379 1.1 bjh21 380 1.5 reinoud Open the !BtNetBSD application again and edit the `fastboot' file again 381 1.20 snj to customise details like the mode definition file you want to use. 382 1.1 bjh21 383 1.5 reinoud Save the file and run !BtNetBSD again (see above). 384 1.1 bjh21 385 1.1 bjh21 386 1.1 bjh21 387 1.1 bjh21 5 Advanced stuff 388 1.1 bjh21 389 1.5 reinoud 390 1.1 bjh21 5.1 Using UnixFS to copy the sets. 391 1.1 bjh21 392 1.1 bjh21 Once the required sets are installed and you can boot from your 393 1.1 bjh21 newly installed NetBSD setup, you can use UnixFS to copy the 394 1.22 sborrill remaining sets from RISC OS to NetBSD. 395 1.1 bjh21 396 1.1 bjh21 In order to be able to use unixfs to transfer the sets you must have 397 1.1 bjh21 a certain setup. 398 1.1 bjh21 399 1.22 sborrill 1) You must have the RISC OS disc that corresponds to the NetBSD 400 1.22 sborrill device configured (e.g., *con. IDEdiscs 2) even if it has no RISC OS 401 1.1 bjh21 section. 402 1.1 bjh21 2) If you have RISC OS 3.5 without the new FileCore, then you must 403 1.1 bjh21 also have the NetBSD file system *completely* below the 511 MB 404 1.1 bjh21 boundary of the device. 405 1.1 bjh21 3) You must know the SWI base of the <filesys>_DiscOp SWI. Here 406 1.1 bjh21 <filesys> is SCSIFS, SCSI or ADFS depending upon which controller 407 1.1 bjh21 type you have you NetBSD device on. 408 1.1 bjh21 Some common ones: 409 1.1 bjh21 Power-tec SCSI-2 card: &40980 410 1.1 bjh21 RapIDE: &4BBC0 411 1.1 bjh21 412 1.1 bjh21 There are small obey files for some interfaces supplied with UnixFS. 413 1.1 bjh21 4) Have given the directory you want to write into write permission for 414 1.1 bjh21 everyone. This should have been done above. For example to make 415 1.1 bjh21 /usr/distrib world writable type (as root): 416 1.1 bjh21 chmod 1777 /usr/distrib 417 1.1 bjh21 418 1.1 bjh21 To mount a Unix partition: 419 1.1 bjh21 420 1.1 bjh21 1) Double-click on the unixfs_res module to load it. 421 1.1 bjh21 2) Run a unixfs_mount command to mount the partition. 422 1.1 bjh21 3) Open the root directory by double-clicking on the openroot file. 423 1.1 bjh21 4) Open the distrib directory and just copy the sets to this. 424 1.1 bjh21 5) Shut down unixfs by double-clicking on the kill_unixfs file. 425 1.1 bjh21 THIS STEP IS VERY IMPORTANT as it works like dismount on MS-DOS floppies. 426 1.1 bjh21 427 1.1 bjh21 The difficult step here is step number 2). If you are using an 428 1.1 bjh21 ADFS IDE disc, then you can just double-click on one of the 429 1.22 sborrill following obey files (always choose the RISC OS disc number that 430 1.1 bjh21 corresponds to the *first* disc on the NetBSD device): 431 1.12 reinoud - wd0a (ADFS::4 drive, not disc, root file system) 432 1.12 reinoud - wd0e (ADFS::4 drive, not disc, /usr file system) 433 1.12 reinoud - wd1a (ADFS::5 drive, not disc, root file system) 434 1.12 reinoud - wd1e (ADFS::5 drive, not disc, /usr file system) 435 1.1 bjh21 436 1.1 bjh21 If you are not using an ADFS IDE device, you need to create such 437 1.1 bjh21 an obey file yourself. We recommend that you copy one of the 438 1.1 bjh21 above and change that. These files normally only contain a 439 1.1 bjh21 unixfs_mount command. If you go to the command line (or a task 440 1.1 bjh21 window), and you type *help unixfs_mount you will see that the 441 1.1 bjh21 unixfs_mount command has a very incomprehensible syntax. 442 1.1 bjh21 443 1.1 bjh21 The unixfs_mount command normally only takes one argument. That 444 1.1 bjh21 is composed of the following: 445 1.1 bjh21 (discop_swibase + (disc << 3) + partition) 446 1.1 bjh21 447 1.22 sborrill To mount the root partition of the third Powertec SCSI-2 disc, the 448 1.22 sborrill following commands can be used in a task window (press CTRL-F12) to 449 1.1 bjh21 find the argument to unixfs_mount: 450 1.1 bjh21 *basic 451 1.1 bjh21 PRINT ~(&40980 + (6 << 3) + 0) 452 1.1 bjh21 QUIT 453 1.1 bjh21 454 1.1 bjh21 The PRINT command calculates the value to use and will in this 455 1.1 bjh21 context give the value 409B0 which also is in hexadecimal. The 456 1.1 bjh21 interesting things above are: 457 1.1 bjh21 - &40980 The SWI base for SCSIFS_DiscOp. 458 1.1 bjh21 - 6 The disc number in RISC OS. 459 1.1 bjh21 - 0 The RiscBSD partition no. with a=0, b=1 etc. 460 1.1 bjh21 - ~ Tell the PRINT command to show the result in hexadecimal. 461 1.1 bjh21 - << Shifts the first number with the second number 462 1.1 bjh21 places left. 463 1.1 bjh21 In this case, it shifts 6 with 3 places to the left. 464 1.1 bjh21 - & Denotes that the number is in hexadecimal. 465 1.1 bjh21 - ( and ) Used to group the sub-expressions. 466 1.1 bjh21 467 1.1 bjh21 When you have calculated the figure to give to unixfs_mount you 468 1.1 bjh21 just change it in the copy of the file you made above and run it by 469 1.1 bjh21 double-clicking on it. 470 1.1 bjh21 471 1.1 bjh21 When you have mounted the unixfs file system, you can open the 472 1.1 bjh21 directory and copy the sets to it. 473 1.1 bjh21 Don't forget to copy the file "checksums" too. As its name suggests, it 474 1.1 bjh21 contains checksums to check if the files are OK. 475 1.1 bjh21 476 1.1 bjh21 When you are finished with the transfer, run the file 477 1.1 bjh21 kill_unixfs to dismount the unixfs file system. 478 1.1 bjh21 479 1.5 reinoud 480 1.5 reinoud 481 1.1 bjh21 Appendix A - Device naming 482 1.1 bjh21 483 1.1 bjh21 The names of the devices in NetBSD are not at all like the ones 484 1.1 bjh21 in RISC OS. We will here try to explain the naming scheme used 485 1.1 bjh21 in NetBSD. This is pretty much the same in all UNIXes, but 486 1.1 bjh21 there will be some differences. NetBSD is derived from BSD and 487 1.1 bjh21 differs from the ones that are derived from System V. Most of 488 1.1 bjh21 the dominant operating systems in the UNIX market today are 489 1.1 bjh21 based on System V (Sun Solaris, SGI Irix, HP HP-UX 10.xx, Linux 490 1.1 bjh21 etc.). Some of them are actually hybrids of both. 491 1.1 bjh21 492 1.4 wiz The file systems in UNIX use the slash character (/) as the 493 1.1 bjh21 directory separator. The top (or bottom if you like) directory 494 1.4 wiz is called the root and is denoted by a single slash (/). All 495 1.4 wiz absolute filenames are addressed starting with the root, so the 496 1.1 bjh21 temporary directory is called /tmp. 497 1.1 bjh21 498 1.1 bjh21 The devices in UNIX are addressed as special files in the 499 1.1 bjh21 file system, and they all start with /dev, so e.g. the quadrature 500 1.1 bjh21 mouse is called /dev/quadmouse. 501 1.1 bjh21 502 1.4 wiz Also some devices can be addressed in two different ways; as a 503 1.1 bjh21 raw (character by character) or block device. This is especially 504 1.1 bjh21 true with discs, and they therefore have two different names. 505 1.1 bjh21 The raw device is called the same as the block device except 506 1.1 bjh21 that it has an 'r' in front of the name. E.g. the first internal 507 1.1 bjh21 hard drive is called /dev/wd0 as a block device, but /dev/rwd0 508 1.1 bjh21 as a raw device. See also later. 509 1.1 bjh21 510 1.1 bjh21 For now, the only needed devices are the storage devices, so we 511 1.1 bjh21 will hereby describe the naming convention used for these. 512 1.1 bjh21 Please note that when you have different partitions on a device, 513 1.1 bjh21 they will get the same number in NetBSD, but different letters, 514 1.1 bjh21 whereas in RISC OS they will get different numbers. See the 515 1.1 bjh21 examples at the end of this section. 516 1.1 bjh21 517 1.1 bjh21 The (block) device names are mostly composed of 4 characters: 518 1.1 bjh21 1. The type 519 1.1 bjh21 - w Winchester drives (i.e. standard ADFS drives) 520 1.1 bjh21 - s SCSI drives 521 1.1 bjh21 - c CD-ROM drives 522 1.1 bjh21 - r RAM drives (obsolete in newer kernels) 523 1.1 bjh21 - m Memory drives (only in newer kernels) 524 1.1 bjh21 - f Floppy drives 525 1.1 bjh21 2. A 'd' indicating a disc device 526 1.1 bjh21 3. The number of the device of that type starting with 0. 527 1.1 bjh21 - For IDE drives, the master will be 0, and the slave 1. 528 1.1 bjh21 - For SCSI drives, the target ID will be used to 529 1.1 bjh21 determine the number. They start on 0 and increase with 530 1.1 bjh21 each device found. The drive with the lowest target ID will get 531 1.1 bjh21 0, the second lowest target ID will get 1 etc. 532 1.1 bjh21 Also, if you have different controllers, all devices on controller 533 1.1 bjh21 0 (lowest expansion slot) will be added first. 534 1.1 bjh21 - The CD-ROM drives act the same way as SCSI drives. 535 1.1 bjh21 - The floppy drive is numbered as in RISC OS. 536 1.1 bjh21 - At present you can only have one RAM drive, so it is 0. 537 1.1 bjh21 4. The name of the partition. There are eight of these (along with 538 1.1 bjh21 common allocations): 539 1.1 bjh21 - a The root partition 540 1.1 bjh21 - b The swap partition 541 1.22 sborrill - c The complete and whole disc ; all OSes and partitions 542 1.22 sborrill - d Part of the disc that is not used by NetBSD; normally RISC OS 543 1.6 reinoud - e The first additional partition. 544 1.1 bjh21 i.e. if you have only /usr, then this will be /usr 545 1.1 bjh21 if you have both /var and /usr this will be /var 546 1.5 reinoud - f The second additional partition. 547 1.1 bjh21 i.e. if you have /var and /usr, this will be /usr 548 1.7 wiz - g The third ... 549 1.7 wiz - h The fourth ... 550 1.1 bjh21 551 1.1 bjh21 If you only have one partition on the drive this can normally be 552 1.1 bjh21 accessed with either partition a (root partition) or c (whole 553 1.1 bjh21 disc). This has not been verified to work. 554 1.1 bjh21 555 1.1 bjh21 A couple of examples of how to map RISC OS names to NetBSD ones 556 1.1 bjh21 (the partition names have been left out): 557 1.1 bjh21 ADFS::0 fd0 558 1.1 bjh21 ADFS::1 fd1 559 1.1 bjh21 ADFS::4 wd0 560 1.1 bjh21 ADFS::5 (same drive as :4) wd0 561 1.1 bjh21 ADFS::5 (other drive than :4) wd1 562 1.1 bjh21 SCSI::4 sd0 563 1.1 bjh21 SCSI::5 (same drive as :4) sd0 564 1.1 bjh21 SCSI::5 (other drive than :4) sd1 565 1.1 bjh21 566 1.1 bjh21 So, if you have one ADFS IDE drive, and want to install NetBSD 567 1.1 bjh21 at the after ADFS::5, you should still use wd0. If on the other 568 1.1 bjh21 hand, ADFS::5 is a second drive, then you will have to use wd1. 569 1.1 bjh21 570 1.5 reinoud 571 1.4 wiz Appendix B - Acknowledgments 572 1.1 bjh21 573 1.1 bjh21 This document was based upon the document 574 1.1 bjh21 "Installing RiscBSD 1.2-Release" 575 1.1 bjh21 (C) 1996 The RiscBSD Documentation Project 576 1.1 bjh21 577 1.1 bjh21 That has the following acknowledgement: 578 1.1 bjh21 579 1.1 bjh21 This manual has been written from scratch based on version 1.2 580 1.1 bjh21 of the installation manual that Mark Brinicombe wrote. 581 1.1 bjh21 582 1.1 bjh21 It was mainly written by Kjetil B. Thomassen 583 1.6 reinoud (kjetil (a] thomassen.priv.no) with contributions from: 584 1.6 reinoud Neil Hoggarth (neil.hoggarth (a] physiol.ox.ac.uk) 585 1.6 reinoud Markus Baeurle (emw4maba (a] gp.fht-esslingen.de) 586 1.6 reinoud Jasper Wallace (jasper (a] ivision.co.uk) 587 1.6 reinoud Mark Brinicombe (amb (a] physig.ph.kcl.ac.uk) 588 1.6 reinoud Scott Stevens (s.k.stevens (a] ic.ac.uk) 589 1.7 wiz and a lot more people posting to the original RiscBSD mailing list. 590