[SLOF] Loading file from disk image

Thomas Huth thuth at redhat.com
Wed Jan 3 00:20:46 AEDT 2018


On 02.01.2018 14:09, Jd Lyons wrote:
> 
> 
>> On Jan 2, 2018, at 7:50 AM, Thomas Huth <thuth at redhat.com
>> <mailto:thuth at redhat.com>> wrote:
>>
>> On 02.01.2018 13:23, Jd Lyons wrote:
>>>
>>>
>>>> On Jan 2, 2018, at 4:35 AM, Thomas Huth <thuth at redhat.com
>>>> <mailto:thuth at redhat.com>> wrote:
>>>>
>>>> On 29.12.2017 10:09, Jd Lyons wrote:
>>>> [...]
>>>>> Now if there was only a byte-load word:-(
>>>>
>>>> The FCode interpreter is currently disabled in SLOF by default - since
>>>> nobody was actively using it in years and pulling in all the required
>>>> Forth code slowed down the boot process quite a bit.
>>>>
>>>> But you can enable it manually by typing this at the firmware prompt:
>>>>
>>>> include evaluator.fs
>>>>
>>>> After that, the "byte-load" word should be available.
>>>> I hope that's good enough for your experiments ... if there's a real
>>>> good reason for enabling it permanently again, please let us know, then
>>>> we should maybe come up with a better solution for this...
>>>>
>>>> Thomas
>>>
>>> Thanks Tom, is there a way to enable fcode-verbose?
>>
>> What is fcode-verbose? That's not a standard Open Firmware Forth word,
>> is it?
>>
>> There's a "eva-debug?" flag in the Fcode evaluator of SLOF, so that
>> might be related. You can enable it with:
>>
>> true to eva-debug?
> 
> Thanks, this seems to do the same thing as ?fcode-verbose.
> 
> Let’s me see where the option rom’s forced is aborting, oddly enough it
> seem to be the around the same place I’m catching and exception in
> openbios, so if I can get it working in one, I maybe able to get it to
> work for the other.
> 
>  3e0935: [ 14] b?branch 3e0944 0 2 1 5e77e878 
>   3e0939: [9bd] x9bd 3e0944 0 2 1 5e77e878 2000014 
>   3e093a: [ 10] b(lit) 3e0944 0 2 1 5e77e878 2000014 ff 
>   3e093f: [ 23] AND 3e0944 0 2 1 5e77e878 14 
>   3e0941: [103] my-space 3e0944 0 2 1 5e77e878 14 800 
>   3e0942: [ 1e] + 3e0944 0 2 1 5e77e878 814 
>   3e0944: [a08] xa08  Aborted
> 0 > dev /pci   ok
> 0 > ls  
> 5e72ad60 :  /pci at 800000020000000
> 5e72d2e8 :  |-- ethernet
> 5e72d9d8 :  +-- vga ok
> 0 > dev vga   ok

Note that if you want to run the FCODE manually, you should make sure
that you've got an open instance of the corresponding device tree node
first. In SLOF, you can do this by typing:

s" /pci/vga" select-dev

 Thomas


More information about the SLOF mailing list