1 1.1 bjh21 $NetBSD: FBInstall,v 1.1 2006/07/23 13:33:53 bjh21 Exp $ 2 1.1 bjh21 3 1.1 bjh21 Note of FastBoot/AutoBoot Installation for !BtNetBSD V0.90 4 1.1 bjh21 based on !BtRiscBSD 5 1.1 bjh21 6 1.1 bjh21 Updated by Reinoud Zandijk 18 Feb 2001 7 1.1 bjh21 Author: Mark Brinicombe 12th May 1995 8 1.1 bjh21 Updated: 20th June 1997 9 1.1 bjh21 10 1.1 bjh21 Installation 11 1.1 bjh21 ------------ 12 1.1 bjh21 13 1.1 bjh21 Two patches are required to the standard boot files 14 1.1 bjh21 15 1.1 bjh21 The following lines should be added to the start of 16 1.1 bjh21 !Boot.Choices.Boot.PreDesktop 17 1.1 bjh21 18 1.1 bjh21 ----------------------- Cut here ----------------------- 19 1.1 bjh21 20 1.1 bjh21 |Start NetBSD !Boot FastBoot 21 1.1 bjh21 Run <Obey$Dir>.^.^.^.BtNetBSD.!BtNetBSD.!Boot 22 1.1 bjh21 Run <BtNetBSD$Dir>.TestBoot 23 1.1 bjh21 If "<NetBSD$FastBoot>" = "1" THEN Echo NetBSD FastBoot mode engaged 24 1.1 bjh21 If "<NetBSD$FastBoot>" = "2" THEN Echo NetBSD ConfBoot mode engaged 25 1.1 bjh21 If "<NetBSD$FastBoot>" = "3" THEN Echo NetBSD AutoBoot mode engaged 26 1.1 bjh21 If "<NetBSD$FastBoot>" = "4" THEN Echo NetBSD FastConf mode engaged 27 1.1 bjh21 |End 28 1.1 bjh21 29 1.1 bjh21 ----------------------- Cut here ----------------------- 30 1.1 bjh21 31 1.1 bjh21 These commands should be the first one run in the PreDesktop 32 1.1 bjh21 file. They boot the boot loader application (primarily to set 33 1.1 bjh21 BtNetBSD$Dir). The file <BtNetBSD$Dir>.TestBoot is then run 34 1.1 bjh21 to test for the ALT or CTRL keys are being held down. In addition 35 1.1 bjh21 it checks several CMOS RAM bits for boot configuration options. 36 1.1 bjh21 37 1.1 bjh21 The following lines should be added to the start of 38 1.1 bjh21 !Boot.Choices.Boot.Desktop 39 1.1 bjh21 40 1.1 bjh21 ----------------------- Cut here ----------------------- 41 1.1 bjh21 42 1.1 bjh21 |Start NetBSD !Boot FastBoot 43 1.1 bjh21 Iconsprites <BtNetBSD$Dir>.!Sprites22 44 1.1 bjh21 If <NetBSD$FastBoot> = 4 THEN Run <BtNetBSD$Dir>.!Edit 45 1.1 bjh21 If <NetBSD$FastBoot> > 0 AND <NetBSD$FastBoot> < 4 THEN Obey <BtNetBSD$Dir>.fastboot 46 1.1 bjh21 |End 47 1.1 bjh21 48 1.1 bjh21 ----------------------- Cut here ----------------------- 49 1.1 bjh21 50 1.1 bjh21 This command should be the first one run in the Desktop file. 51 1.1 bjh21 It runs the NetBSD Bootloader with the configured parameters. 52 1.1 bjh21 53 1.1 bjh21 54 1.1 bjh21 There is a specific reason for not putting all the fastboot code in 55 1.1 bjh21 one file. The PreDesktop patch is run very early in the boot up so 56 1.1 bjh21 that the ALT and CTRL keys can be detected quickly. However, currently 57 1.1 bjh21 the actually bootloader cannot be run at this point unless a lot of 58 1.1 bjh21 memory is available in the module area (~1Meg) as currently the 59 1.1 bjh21 module area is used for temporary storage of the kernel being 60 1.1 bjh21 booted. 61 1.1 bjh21 This means that the actual boot is prosponed until the start of 62 1.1 bjh21 the Desktop file. At this point the desktop has been started and 63 1.1 bjh21 the task manager is running so it will be possible to allocate 64 1.1 bjh21 a large amount of module space. 65 1.1 bjh21 66 1.1 bjh21 67 1.1 bjh21 Activation 68 1.1 bjh21 ---------- 69 1.1 bjh21 70 1.1 bjh21 Once installed, to engage the fastboot hold ALT down immediately 71 1.1 bjh21 after a reset. As soon as the "fastboot engaged" message is printed 72 1.1 bjh21 the ALT key can be released. 73 1.1 bjh21 To engage the fastconf mode hold CTRL down immediately 74 1.1 bjh21 after a reset. As soon as the "fastconf engaged" message is printed 75 1.1 bjh21 the CTRL key can be released. 76 1.1 bjh21 77 1.1 bjh21 78 1.1 bjh21 Configuration 79 1.1 bjh21 ------------- 80 1.1 bjh21 81 1.1 bjh21 Configuration is done via the !BtNetBSD application. 82 1.1 bjh21 When ever NetBSD is booted the commandline used to boot it is saved 83 1.1 bjh21 by the bootloader to the file <BtNetBSD$Dir>.FastBoot 84 1.1 bjh21 Rerunning this file will then boot NetBSD with the last parameters 85 1.1 bjh21 used. It is this file that the fastboot uses so the fast boot will 86 1.1 bjh21 boot NetBSD with the same parameters as were used for the last boot. 87 1.1 bjh21 88 1.1 bjh21 89 1.1 bjh21 ConfBoot mode 90 1.1 bjh21 ------------- 91 1.1 bjh21 92 1.1 bjh21 This mode is identified by NetBSD$FastBoot being set to 2. This indicates 93 1.1 bjh21 that the bootloader has been configured to always boot NetBSD. This is 94 1.1 bjh21 down by setting a bit in the CMOS RAM (via !BtNetBSD). 95 1.1 bjh21 If NetBSD boots are configured the action of the ALT is reversed so that 96 1.1 bjh21 holding down ALT will allow a RISC OS boot instead. 97 1.1 bjh21 98 1.1 bjh21 99 1.1 bjh21 AutoBoot mode 100 1.1 bjh21 ------------- 101 1.1 bjh21 102 1.1 bjh21 This mode is identified by NetBSD$FastBoot being set to 3. This indicates 103 1.1 bjh21 that an automatic boot was requested by NetBSD before it rebooted. This 104 1.1 bjh21 will happen when /sbin/reboot is used instead of /sbin/halt. 105 1.1 bjh21 106 1.1 bjh21 107 1.1 bjh21 FastBoot mode 108 1.1 bjh21 ------------- 109 1.1 bjh21 110 1.1 bjh21 This is the behaviour when ALT is held down at boot time and ConfBoot mode 111 1.1 bjh21 has not been configured. It just bypasses most of the normal startup and 112 1.1 bjh21 boots NetBSD. 113 1.1 bjh21 114 1.1 bjh21 115 1.1 bjh21 FastConf mode 116 1.1 bjh21 ------------- 117 1.1 bjh21 118 1.1 bjh21 This is the behaviour when CTRL is held down at boot time. This is similar to 119 1.1 bjh21 FastBoot mode except that the !BtNetBSD is provided to allow boot parameters 120 1.1 bjh21 to be changed. 121 1.1 bjh21 122 1.1 bjh21 123 1.1 bjh21 Bugs 124 1.1 bjh21 ---- 125 1.1 bjh21 126 1.1 bjh21 Well hopefully there are no bugs :-) 127