index   prev   next RISC OS Notes

Boot notes

# Paul Middleton's diagram of RISC OS boot 4.02 :-

ADFS::HardDisc5.$.DOCZ.miscellaneous.BootDiagram/pdf (looks best at 200%) Link to Rob Sprowson Boot notes

#

RISCOS is initialized; power-on self-test the system is loaded from the ROMS then the !Boot app is run which can over-ride the ROM modules Hold down Ctrl and Shift while booting. Release Shift a bit at a time to see if any error message appears on screen. Better still use !Reporter {!Boot.!Boot set paths:- Boot$Dir : !BOOT Run$Path : !BOOT.Library. Filer_Boot !Boot.Resources -Applications -Tasks !armovie !unicode ... !Boot.!Run /!Boot.Resources.!System. !Run System$Dir ... System$Path : Sys:500.,Sys:400...,Sys:310.,...!System. check - UtilityModule (CallASWI) check - FPEmulator check - SharedClibrary (Clib) /!Boot.Utils.BootVars no info as it is type Absolute /!Boot.Utils.BootRun RMLoad Boot:Utils.VProtect !Territory WimpSlot 256K !Boot.Utils.SetChoices Choices$Path :!BOOT.RO500Hook. !Boot.Utils.Netchoices Set Boot$ToBeLoaded : Choices.Boot.PreDesk ****? Set Boot$ToBeTasks : Choices.Boot.Tasks Aliases mouse pointer ...!Scrap !Boot.Choices.Boot.PreDesktop Aliases Paths Options Country UK Add Apps to Resources.$ ... ****** anything in !Boot.Apps. anything in R0500Hook.Apps. !Printers any apps added via !Configure !Boot.Choices.Boot.PreDesk !Boot.Choices.Boot.PreDesk.MsgTrans !Boot.Choices.Boot.PreDesk.!!DeepKeys !Boot.Choices.Boot.PreDesk.ARPlayer BootLoad : Choices.Boot.PreDesk -files !!DeepKeys ARPlayer DiscSetup RAM disc NewLook Sprites22, Tools22 SetUpNet Internet SndSetup sound mix and volume ...... etc BootRun : Choices.Boot.PreDesk -directories various modules in directories Configure Monitor settings Interim DOSFS,USB,Loaders508 MsgTrans SoftSCSSI misc Set Unsets AppSize 514000K !Boot.Choices.Boot.Desktop boot !Boot.RO500Hook.Res !Boot.RO500Hook.Res.!Configure boot !Boot.Resources !Boot.Resources.!Manuals !Boot.Resources.!Internet !Boot.Resources.!PlayIt !Boot.Resources.!NewsDir !Boot.Resources.!Fonts !Boot.Resources.!SpecialFX !Boot.Resources.!Unicode ... note some already booted eg !System,( !Scrap ) !Boot !Boot.!Sprites ....... /!Boot.Choices.Boot.Tasks !Boot.Choices.Boot.Tasks.ScrnSetup !Boot.Choices.Boot.Tasks.PinSetup !Boot.Choices.Boot.Tasks.Pinboard - done by JRDesktop !Boot.Choices.Boot.Tasks.FlrSetup !Boot.Choices.Boot.Tasks.!PCARes Boot my Apps ...!PDF ...!Oregano ...!PSUtils Boot and Run my Apps ...!jrdesk ****************** ... Internet stuff WimpSlot -next 640k }

# - show boot*

Boot$Dir : ADFS::HardDisc4.$.!BOOT Boot$OSVersion : 500 Boot$Path : ADFS::HardDisc4.$.!BOOT. Boot$State : commands Boot$ToBeLoaded : Boot:Choices.Boot.PreDesk Boot$ToBeTasks : Boot:Choices.Boot.Tasks Boot$Unique : Local BootNet$File : Freeway BootResources$Dir : ADFS::HardDisc4.$.!BOOT.Resources BootResources$Path : Boot:RO500Hook.Res.,ADFS::HardDisc4.$.!BOOT. Resources.

# - modules - gives a list of modules in the order in which they were

loaded to see if an app brings in any modules, do a *mod. command load the app and do another *mod. and compare the ends of the two lists. (Verma gives a good way to look at and for modules) # - Here is what happens when your Risc PC starts up (*): 0. RISC OS is initialized; power-on self-test is run and if all is well, the messages 'Risc OS ..MB' and 'Acorn ADFS' appear. 1. $.!Boot.!Run is executed. After setting some variables, it calls 2. $.!Boot.Utils.BootRun. This a. Runs $.!Boot.Choices.Boot.PreDesktop. This contains the pre-desktop sequence, runs anything that you want loaded before the desktop is started, such as: obey files that define aliases, paths, set the library, a BBC font file, to replace the system font sprite files with replacements for Wimp sprites toolsprite files, for customized window borders b. Searches directory $.!Boot.Choices.Boot.PreDesk for modules, and loads them. c. Searches $.!Boot.Choices.Boot.PreDesk for sprite files, and merges them in the wimp sprite area (*IconSprite). d. Searches $.!Boot.Choices.Boot.PreDesk for Obey files, and runs them. e. Searches $.!Boot.Choices.Boot.PreDesk for subdirectories, and runs them (i.e. executes !Run in that subdirectory). f. Runs $.!Boot.Choices.Boot.Desktop. This is the desktop sequence, which usually contains: applications that you want 'seen' by the filer, e.g.!Paint,!Draw or !ArcFS. That way the Wimp knows what to do when you double-click a Sprite or Archive file. (*): At least, in the factory setting of my RiscPC it does.

# system modules

When you use the boot sequence with a given OS it sets up System$Path to be all the directories from the current version and earlier so it's all safe, thus the higher numbered ones get ignored. Of course that does mean that when you're running the highest number it will appear that modules will "work" regardless of where you put them, doing so is at your own risk!

# - emergency when m/c wont finish boot

# - (1) John P

Rapidly and repeatedly pressing Escape key (not holding) should boot without running !Boot, if the keyboard is directly in a rear socket.

# - (2) Evan Clark.

My boot sequence goes something like this: Power, HD lights come on, CD light flashes. The loudspeaker crackles briefly. There is a short pause. The Floppy disc is accessed and its light flashes. There is a longer pause (USB is being initialised, I think). ** The loudspeaker beeps and the HD light dims. The screen display comes on and !Boot runs. ** Pressing escape (and holding to be sure) at this point has for me never failed to prevent !Boot from running.

# - (3) Druck

Well you need the keyboard to work to do anything else. Holding down shift and * on the numeric keypad should boot to a command prompt. Do a *Rename !Boot Boot to stop it going through the boot sequence on subsequent reboots. Then do a *Desktop If that still hangs, its probably an application being booted from the root directory of the disc thats causing the problem. In which case repeat the above procedure and rename it without the !

# - booting from a second drive

> I have a second HD for back up. How do I use it if the first fails? Assumptions: you have both drives fitted at the time of the problem Therefore you are booting normally from drive 4. About now, go to a command prompt and type Drive 5 opt 4,2 and exit the prompt. Your copied disc can now be used to boot. When you want to change over, if the boot disc isn't working: Hold down shift when booting, and at the * prompt type: configure drive 5. Then you reboot. If the original was working you can do this from a * prompt before you reboot. Fix up all the error messages caused by the boot drive now having a different name. Tip: after the first, very slow boot while you acknowledge all the errors, rename the original boot disc (if it is still recognised) then rename the new boot disc to be the original name of the disc you use to boot from. The next reboot should be clean. Alan Adams, from Northamptonshire alan.adams@orchard-way.freeserve.co. uk

# - dont do this in boot.predesktop :-

Filer_Run ADFS::HardDisc5.$.SCRAPZ.!Scrap |**** above command causes mayhem eg | boot failure and no keyboard among other things

# - restore ADFS icons to iconbar

You can easily bring back the ADFSFiler icons when you stop the module task or kill the module. I do this this all the time. I've written my own ADFSFiler (with the help of Director) but sometimes I need the ADFSFiler for some tasks like formatting. Anyway just open (with shift doubleclick) !Internet in Boot.Resources and go to dir Utils. Doubleclick on the absolute file NewFiler and voilą the ADFSFiler icons are back again. This works for every killed FSFiler (RAMFS, SCSIFS etc) task. If you accidentally killed the ADFSFiler module, you have to *RMReinit it first. does not work if you kill filer harddisc5 disappears

# emergency reset CMOS

There is an emergency reset from the command line: *fx 162,239,0 which corrupts the cmos checksum, then a reboot, which loads the default cmos settings. thanks to Dave Wisnia

© JR 2013