Hi, Today I experienced a crash, just before I got uSD card busy and system freeze. On reboot LEDs=11000111, freeze. I tried to boot `Oberon0.bin' over serial using `ORC.Load', same LEDs=11000111 and freeze. I already recovered from crash, and restored uSD card backup image. I was surprised I could not run `Oberon0.bin', it did not enter the command loop, why is that? Many thanks. -- Tomas Kral <thomas.kral@email.cz>
On Fri, 11 May 2018 13:26:08 +0200 Tomas Kral <thomas.kral@email.cz> wrote:
I was surprised I could not run `Oberon0.bin', it did not enter the command loop, why is that?
Hi, I realised Oberon-0 calls inner core Modules and Files, but these are not loaded yet at this stage on a fresh or corrupt SD card. Correct? MODULE Oberon0; ... BEGIN IF Modules.importing # "Oberon0" THEN (*loaded by the boot loader*) Init; Modules.Init; Loop END END Oberon0. Should it be replaced with: MODULE Oberon0; ... BEGIN Loop END END Oberon0. ? Many thanks -- Tomas Kral <thomas.kral@email.cz>
On Fr, 2018-05-11 at 23:07 +0200, Tomas Kral wrote:
I realised Oberon-0 calls inner core Modules and Files, but these are not loaded yet at this stage on a fresh or corrupt SD card. Correct?
Aren't they included in the binary file by the special linker which produces Oberon0.bin? Hellwig
On Fri, 11 May 2018 23:16:41 +0200 Hellwig Geisse <hellwig.geisse@mni.thm.de> wrote:
Aren't they included in the binary file by the special linker which produces Oberon0.bin?
Yes, you are right, they should be. OR Linker CP 22.05.14 / AP 11.11.17 Oberon0 at 000434B0 ( 000096F0) 00000006 RS232 at 00042FF0 ( 00009230) 00000005 Modules at 00041AB0 ( 00007CF0) 00000004 Files at 0003F350 ( 00005590) 00000003 FileDir at 0003D310 ( 00003550) 00000002 Kernel at 00039F10 ( 00000150) 00000001 Oberon0.bin binary written 47456 bytes But, when transferred over serial line, it seems, it tries to load inner core from the disk rather then jumping to that core already present in the memory? Possible? -- Tomas Kral <thomas.kral@email.cz>
On Fri, 11 May 2018 23:29:08 +0200 Tomas Kral <thomas.kral@email.cz> wrote:
But, when transferred over serial line, it seems, it tries to load inner core from the disk rather then jumping to that core already present in the memory? Possible?
Actually No, it seems it does what it should. connection open Oberon0.bin 11808 loading ............done 0 1234| Mirror 1234~ 10 | ShowModules Oberon0 6 000096A0 00009990 0 RS232 5 000091E0 00009230 1 Modules 4 00007CA0 00007D68 1 Files 3 00005540 00005624 2 FileDir 2 00003500 0000358C 2 Kernel 1 00000100 00002184 3~ Inner core loaded. But, when `Oberon-0' is run on a corrupt file system, it fails at Kernel with trap 7, cannot proceed further. The question to ask, how a corrupt system can be fixed then? Many thanks -- Tomas Kral <thomas.kral@email.cz>
-----Original Message----- From: Oberon [mailto:oberon-bounces@lists.inf.ethz.ch] On Behalf Of Tomas Kral Sent: Saturday, 12 May 2018 4:00 PM To: oberon@lists.inf.ethz.ch Subject: Re: [Oberon] FPGA - System Crash
The question to ask, how a corrupt system can be fixed then?
a. If you are not already doing so, you should backup your diskimage whenever you have made changes that you do not want to lose. Then if your SD card is corrupted you can restore it from the most recent valid backup. dd, Win32DiskImage or similar SDHC raw-device tools can be used to make these backups. The full 320 MB (255 MB FAT partition + 64 MB Project Oberon partition) image zips up to less than 1 MB so they don't take up much space. b. Alternatively you can use our HCFiler system to backup individual files to the disk space beyond the Project Oberon partition. If it is only the Project Oberon partition that is corrupted, then you should be able to retrieve the HCFiler backup copies directly from the SDHC card. c. If you haven't backed up anything and your disk isn't too fragmented and you want to salvage some source code try copying the diskimage to a PC and then use a HEX editor to search for the text 'MODULE' and then copy / paste the subsequent text to a file. If you are using Windows you can do all of this using the XVI32 HEX editor. Regards, Chris Burrows CFB Software http://www.astrobe.com/RISC5
On Sat, 12 May 2018 16:41:47 +0930 Chris Burrows <chris@cfbsoftware.com> wrote: Chris thanks you.
a. If you are not already doing so, you should backup your diskimage This is what I do, but not not on daily basis.
b. Alternatively you can use our HCFiler system to backup individual files to the disk space beyond the Project Oberon partition.
Did not know about HCFiler, currently I just copy my *.Mod files over PCLink. Also I was given a code some time ago to access ISO partition, it probably comes from other Oberon system. Need to find that source again.
c. use a HEX editor Yes, doing that know, just need to recover System.Tool, plus one module, that did not make its way to my backup.
-- Tomas Kral <thomas.kral@email.cz>
Hi Tomas,
c. use a HEX editor Yes, doing that know, just need to recover System.Tool, plus one module, that did not make its way to my backup.
The on-disk data structures help quite a lot here - each file is stored with a header, with the filename and the sector map. See Files.Mod. In the original Project Oberon, since (a) disk failures were more common, and (b) it was less than trivial to back up the whole filesystem, tools were built to recover the file data (e.g. DiskCheck and Scavenger) - the original edition of the book describes these. In the updated system and book, the tools and their description were omitted since they were no longer nearly as essential. HTH Paul
If the two highest LEDs are on, it says: a Trap occured. Then the lower LEDs tell you the trap number. As the least 3 bits are on, it’s trap number „7“. Trap 7 occurs when an ASSERT went wrong. As the low layer disk access procedures in Kernel.Mod have a lot of ASSERTs, I assume the error is caused by a corrupt Disk (SD memory card) Jörg
Am 11.05.2018 um 13:26 schrieb Tomas Kral <thomas.kral@email.cz>:
Hi,
Today I experienced a crash, just before I got uSD card busy and system freeze. On reboot LEDs=11000111, freeze. I tried to boot `Oberon0.bin' over serial using `ORC.Load', same LEDs=11000111 and freeze.
I already recovered from crash, and restored uSD card backup image. I was surprised I could not run `Oberon0.bin', it did not enter the command loop, why is that?
Many thanks.
-- Tomas Kral <thomas.kral@email.cz> -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
On Fri, 11 May 2018 23:25:12 +0200 Jörg Straube <joerg.straube@iaeth.ch> wrote:
As the low layer disk access procedures in Kernel.Mod have a lot of ASSERTs, I assume the error is caused by a corrupt Disk (SD memory card)
Yes, true. This where the boot fails, also Oberon-0 never gets to the command loop, as it fails on a corrupt file system. Could it also fail on blank card? It does some init of the root directory. PROCEDURE Init*; (*initialize the file system if needed*) VAR a: FileDir.DirPage; BEGIN Kernel.GetSector(FileDir.DirRootAdr, a); IF a.mark # FileDir.DirMark THEN a.mark := FileDir.DirMark; a.m := 0; a.p0 := 0; Kernel.PutSector(FileDir.DirRootAdr, a) END END Init; -- Tomas Kral <thomas.kral@email.cz>
participants (5)
-
Chris Burrows -
Hellwig Geisse -
Jörg Straube -
Paul Reed -
Tomas Kral