What boot LEDs mean, point me to some docs
HI A collegue is rying to make cleaner rework of SDRAM and cache for oberon at ulx3s board https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/ob_video.tgz Old code which works has this boot LED sequence (or bits): D7+D1, D7+D2, D5 ... then video, mouse and kbd work New code under development boots D7+D1, D7+2 and stays there Need some description or pointing to docs describing what LED combinations mean
leds in boot loader 80H cold boot 81H load Oberon from serial 82H load Oberon from CF 84H transfer from boot loader to Oberon leds in Oberon 21H garbage collector mark phase 23H garbage collector restore files 27H garbage collector scan phase 20H garbage collector ends C0H+w Trap w br Jörg
Am 24.10.2020 um 15:50 schrieb D EMARD <vordah@gmail.com>:
HI
A collegue is rying to make cleaner rework of SDRAM and cache for oberon at ulx3s board https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/ob_video.tgz
Old code which works has this boot LED sequence (or bits): D7+D1, D7+D2, D5 ... then video, mouse and kbd work
New code under development boots D7+D1, D7+2 and stays there
Need some description or pointing to docs describing what LED combinations mean -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hello, Am 24.10.2020 um 15:50 schrieb D EMARD:
HI
A collegue is rying to make cleaner rework of SDRAM and cache for oberon at ulx3s board https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/ob_video.tgz
Old code which works has this boot LED sequence (or bits): D7+D1, D7+D2, D5 ... then video, mouse and kbd work
New code under development boots D7+D1, D7+2 and stays there
Bootloader successfully loads the inner core, but the inner core fails before it could set any other LED value.
Need some description or pointing to docs describing what LED combinations mean
The only documentation I know of is the source code... LEDs are only set in four core modules: BootLoad, Kernel, Modules, Oberon. The values are written in Hex, so D7+D1 would be 82H, D5 would be 20H. BootLoad: 80H: Just started booting, will initialize SPI 81H: SPI initialized, will load core from serial 82H: SPI initialized, will load core from disk 84H: core loaded, will hand over to loaded core Kernel: Will only set LEDs if a TRAP happens during loading of core modules. Value will be C0H + trap number (so something between C1H and C9H). Modules: Will set LEDs if loading a core module fails with an error code: 02H: file not available; 03H: key conflict; 04H: bad file version; 05H: corrupted file; 07H: no space Oberon: Will set LEDs duing garbage collection: 21H: GC started 23H: Mark phase finished 27H: Handling of weak references finished 20H: GC finished So what you are seeing during the boot are only some of the values, the others just appear too short to be seen. In general, to ease debugging, as you have a working machine, I would probably recompile the inner core and add some more LED statements there, so you can see where the actual loading gets to and if the loaded image is actually loaded correctly. Regards, Michael
As it’s stuck on 82H it could be that the boot loader could not not load the oberon core from CF to memory. If the boot loader finished loading the oberon core, but the core hangs, leds would stick on 80H. If something is wrong with the memory, the behaviour is difficult to predict. When I added SDRAM and did something wrong in the beginning, the inner core created „strange“ C2H sometimes C4H traps. Br, Jörg
Am 24.10.2020 um 16:22 schrieb Michael Schierl <schierlm@gmx.de>:
Hello,
Am 24.10.2020 um 15:50 schrieb D EMARD: HI
A collegue is rying to make cleaner rework of SDRAM and cache for oberon at ulx3s board https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/ob_video.tgz
Old code which works has this boot LED sequence (or bits): D7+D1, D7+D2, D5 ... then video, mouse and kbd work
New code under development boots D7+D1, D7+2 and stays there
Bootloader successfully loads the inner core, but the inner core fails before it could set any other LED value.
Need some description or pointing to docs describing what LED combinations mean
The only documentation I know of is the source code... LEDs are only set in four core modules: BootLoad, Kernel, Modules, Oberon. The values are written in Hex, so D7+D1 would be 82H, D5 would be 20H.
BootLoad:
80H: Just started booting, will initialize SPI 81H: SPI initialized, will load core from serial 82H: SPI initialized, will load core from disk 84H: core loaded, will hand over to loaded core
Kernel:
Will only set LEDs if a TRAP happens during loading of core modules. Value will be C0H + trap number (so something between C1H and C9H).
Modules:
Will set LEDs if loading a core module fails with an error code:
02H: file not available; 03H: key conflict; 04H: bad file version; 05H: corrupted file; 07H: no space
Oberon:
Will set LEDs duing garbage collection: 21H: GC started 23H: Mark phase finished 27H: Handling of weak references finished 20H: GC finished
So what you are seeing during the boot are only some of the values, the others just appear too short to be seen.
In general, to ease debugging, as you have a working machine, I would probably recompile the inner core and add some more LED statements there, so you can see where the actual loading gets to and if the loaded image is actually loaded correctly.
Regards,
Michael -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Hello Jörg, D7+D2 is 84H, not 82H. (D0=1H, D1=2H, D2=4H, D3=8H, D4=10H, D5=20H, D6=40H, D7=80H) If reading from RAM or writing to RAM were totally broken, it would not get that far. One possible reason (just a guess) would be if RAM reading as data works, but reading as code would not. Since at that point a RAM instruction is executed for the first time (before it was all in ROM). But as for most memory problems, it could be many other things as well. Regards, Michael Am 24.10.2020 um 16:49 schrieb Jörg:
As it’s stuck on 82H it could be that the boot loader could not not load the oberon core from CF to memory. If the boot loader finished loading the oberon core, but the core hangs, leds would stick on 80H.
If something is wrong with the memory, the behaviour is difficult to predict. When I added SDRAM and did something wrong in the beginning, the inner core created „strange“ C2H sometimes C4H traps.
Br, Jörg
Am 24.10.2020 um 16:22 schrieb Michael Schierl <schierlm@gmx.de>:
Hello,
Am 24.10.2020 um 15:50 schrieb D EMARD: HI
A collegue is rying to make cleaner rework of SDRAM and cache for oberon at ulx3s board https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/ob_video.tgz
Old code which works has this boot LED sequence (or bits): D7+D1, D7+D2, D5 ... then video, mouse and kbd work
New code under development boots D7+D1, D7+2 and stays there
Thank you for the comments, I will copy them to Paul at ulx3s chat yes the RAM and cache is being reworked and issues could be around instruction and data bus to the CPU On 10/24/20, Michael Schierl <schierlm@gmx.de> wrote:
Hello Jörg,
D7+D2 is 84H, not 82H. (D0=1H, D1=2H, D2=4H, D3=8H, D4=10H, D5=20H, D6=40H, D7=80H)
If reading from RAM or writing to RAM were totally broken, it would not get that far.
One possible reason (just a guess) would be if RAM reading as data works, but reading as code would not. Since at that point a RAM instruction is executed for the first time (before it was all in ROM).
But as for most memory problems, it could be many other things as well.
Regards,
Michael
Am 24.10.2020 um 16:49 schrieb Jörg:
As it’s stuck on 82H it could be that the boot loader could not not load the oberon core from CF to memory. If the boot loader finished loading the oberon core, but the core hangs, leds would stick on 80H.
If something is wrong with the memory, the behaviour is difficult to predict. When I added SDRAM and did something wrong in the beginning, the inner core created „strange“ C2H sometimes C4H traps.
Br, Jörg
Am 24.10.2020 um 16:22 schrieb Michael Schierl <schierlm@gmx.de>:
Hello,
Am 24.10.2020 um 15:50 schrieb D EMARD: HI
A collegue is rying to make cleaner rework of SDRAM and cache for oberon at ulx3s board https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/ob_video.tgz
Old code which works has this boot LED sequence (or bits): D7+D1, D7+D2, D5 ... then video, mouse and kbd work
New code under development boots D7+D1, D7+2 and stays there -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
Michael You‘re right. These LED states are handled by code in ROM: D7 = 80H = Init SPI D7 + D0 = 81H = load inner core from RS232 D7 + D1 = 82H = load inner core from CF D7 + D2 = 84H = transfer execution to inner core (RAM address 0) br Jörg
Am 24.10.2020 um 22:56 schrieb Michael Schierl <schierlm@gmx.de>:
Hello Jörg,
D7+D2 is 84H, not 82H. (D0=1H, D1=2H, D2=4H, D3=8H, D4=10H, D5=20H, D6=40H, D7=80H)
If reading from RAM or writing to RAM were totally broken, it would not get that far.
One possible reason (just a guess) would be if RAM reading as data works, but reading as code would not. Since at that point a RAM instruction is executed for the first time (before it was all in ROM).
But as for most memory problems, it could be many other things as well.
Regards,
Michael
Am 24.10.2020 um 16:49 schrieb Jörg: As it’s stuck on 82H it could be that the boot loader could not not load the oberon core from CF to memory. If the boot loader finished loading the oberon core, but the core hangs, leds would stick on 80H.
If something is wrong with the memory, the behaviour is difficult to predict. When I added SDRAM and did something wrong in the beginning, the inner core created „strange“ C2H sometimes C4H traps.
Br, Jörg
Am 24.10.2020 um 16:22 schrieb Michael Schierl <schierlm@gmx.de>:
Hello,
Am 24.10.2020 um 15:50 schrieb D EMARD: HI
A collegue is rying to make cleaner rework of SDRAM and cache for oberon at ulx3s board https://gitlab.com/pnru/ulx3s-misc/-/blob/master/oberonstation/ob_video.tgz
Old code which works has this boot LED sequence (or bits): D7+D1, D7+D2, D5 ... then video, mouse and kbd work
New code under development boots D7+D1, D7+2 and stays there -- Oberon@lists.inf.ethz.ch mailing list for ETH Oberon and related systems https://lists.inf.ethz.ch/mailman/listinfo/oberon
participants (4)
-
D EMARD -
Joerg -
Jörg -
Michael Schierl