Reading for the beginner
Vladimir Shevchenko (2094) 88 posts |
Hello. |
||
Chris Hall (132) 3554 posts |
You can try Getting Started with RISC OS on the Raspberyy Pi or the HowTo Guide on line. |
||
Vladimir Shevchenko (2094) 88 posts |
Thank you Chris. That’s a good guide. I have not seen it yet. But, for the time being, the word ‘kernel’ is not found there. So, if you (or anyone) know more, please add… |
||
Chris Hall (132) 3554 posts |
The SD card contains a FAT partition with the necessary files to bootstrap load an operating system kernel. There is a file ‘riscos.img’ which is the RISC OS rom image and this is loaded (instead of ‘kernel.img’ which is a Linux kernel) and you find that RISC OS starts up. The ‘config.txt’ file allows you to specify the name of the kernel file (with a line ‘kernel=riscos.img’). Simples. The CMOS values were (in the original RISC PC design) stored in battery backed non-volatile memory chips. On the Pi they are stored on the SD card with the rom image (actually in the rom image file). The operating system is modular and so if you type *rommodules it will list the modules present in the rom image. The system variables (seen using *show) are generated by the !Boot directory on the SD card filecore partition – for example Applications will specify what filetypes they will handle etc etc. |
||
Rick Murray (539) 13840 posts |
To extend on what Chris has said – auto booted applications (those in $.Apps) can also add to the system variables by setting up handlers for specific file types (for example a media player can add an action for MP3 files). The RISC OS kernel is fairly small, much of the functionality is provided by other modules – so when you wish to talk specifically about the kernel, it gets kind of technical very quickly. ;-) |
||
nemo (145) 2546 posts |
The CMOS configuration options are listed using As others have said, System Variables are created by Modules when they initialise, and by command scripts called Obey Files inside applications when they are booted (or first seen) – Obey files are a bit like Windows Batch files. You can also create and alter system variables at the command line, eg *Set me Vladimir *Echo Hello <me> |
||
Vladimir Shevchenko (2094) 88 posts |
I tried the Status command. It appears that ‘Unplug’ information is no longer stored in CMOS. Where is it now (RISC OS Pi)? |
||
Chris Johnson (125) 825 posts |
Enter *unplug at the command line or in a task window. It will list the modules currently unplugged. On my machine: *unplug |
||
Vladimir Shevchenko (2094) 88 posts |
How the system know that No modules are unplugged? Where it looked? |
||
Chris Hall (132) 3554 posts |
If you unplug a module, the OS works out its sequential number within the ROM and if that is within the maximum number it can count to (in this context) it sets the relevant flag provided within the ‘CMOS RAM’. On the Pi the ‘CMOS RAM’ is stored in the rom image in a defined place by the system. Next time the rom is loaded, this area is examined as it starts up and the settings applied. |
||
Vladimir Shevchenko (2094) 88 posts |
Vladimir Shevchenko wrote:
Chris Hall wrote:
Vladimir Shevchenko tried : |
||
Chris Hall (132) 3554 posts |
The ‘STATUS’ command does not display all the information in CMOS RAM. Type ‘UNPLUG’ to see what is unplugged. |
||
Vladimir Shevchenko (2094) 88 posts |
Clear. Thanks. |
||
nemo (145) 2546 posts |
The CMOS RAM can be read and written via OS_Byte, calls 161 and 162.
Keep asking the questions Vladimir! |
||
Vladimir Shevchenko (2094) 88 posts |
I would like to understand what occurs in the system at the initial stage (from loading of ROM image into RAM until WIMP interface appearance). |
||
patric aristide (434) 418 posts |
Hi Vladimir! I think Martin Avison’s tool !Reporter. might come in handy: |
||
Martin Avison (27) 1494 posts |
I am not sure which messages you are referring to. But all the commands issued from the start of Run can be logged, viewed and even saved by using my !Reporter module, if that would help. |
||
Vladimir Shevchenko (2094) 88 posts |
|
||
Raik (463) 2061 posts |
You can use the good old *spool command… Create a obey with !Edit with *Spool bootmessages inside. Name it !!!!Spoolstart *Spool inside. Name it Spoolend. The first take to After reboot you find a textfile named bootmessages in the root of your card. All screenmessages are stored in the file. |
||
Vladimir Shevchenko (2094) 88 posts |
01 FE 00 00 00 00 00 00 1C 50 60 9F 25 04 17 01 Hex-editor shows among these data some pieces of readable text. These are wanted bootmessages. But what kind of data is contained in the file? |
||
Raik (463) 2061 posts |
Open a taskwindow ([Strg]+[F12]) and type *help spool It reports all VDU output. |
||
Steve Pampling (1551) 8170 posts |
missed this previously. Vladimir, you might find this useful http://www.heyrick.co.uk/software/harinezumi/ It’s actually designed to step in and run the boot sequence while reporting and thereby ensure the sequence completes even when errors occur but for you it will show the sequence you are trying to follow. |
||
Vladimir Shevchenko (2094) 88 posts |
I’ve already read the reports. |
||
Vladimir Shevchenko (2094) 88 posts |
|
||
nemo (145) 2546 posts |
A useful bit of magic is to boot the machine holding shift and the numeric keypad *. (Does that work on the RasPi?) The Shift stops it from booting from the disc, and the * causes it to start up at the command line instead of the “configured language”, which will be the Desktop. This can also be achieved by You can then start the desktop manually with |