[SLOF] Loading file from disk image

Jd Lyons lyons_dj at yahoo.com
Wed Jan 3 00:09:39 AEDT 2018



> On Jan 2, 2018, at 7:50 AM, Thomas Huth <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> 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
0 > .properties  
assigned-addresses               82000830  00000000  83000000  00000000
                                 00020000  82000810  00000000  81000000
                                 00000000  01000000  c3000814  00002100
                                 00000000  00000000  10000000  8200081c
                                 00000000  82000000  00000000  01000000
                                 
name                             vga
                                 76676100  
ibm,req#msi                      00000001  
vendor-id                        000010de  
device-id                        00000141  
revision-id                      000000a2  
class-code                       00030000  
interrupts                       00000001  
min-grant                        00000000  
max-latency                      00000000  
subsystem-id                     00000050  
subsystem-vendor-id              000010de  
cache-line-size                  00000000  
devsel-speed                     00000000  
ibm,loc-code                     vfio_vfio-pci:0000:00:01.0
                                 7666696f  5f766669  6f2d7063  693a3030
                                 30303a30  303a3031  2e3000
ibm,my-drc-index                 40000008  
#address-cells                   00000003  
#size-cells                      00000002  
reg                              00000800  00000000  00000000  00000000
                                 00000000  02000810  00000000  00000000
                                 00000000  01000000  03000814  00000000
                                 00000000  00000000  10000000  0300081c
                                 00000000  00000000  00000000  01000000
                                 02000830  00000000  00000000  00000000
                                 00020000  
ibm,pci-config-space-type        00000001   ok

0 > 3e0944 100 dump  
003e0940:             08 10 00 00 00 06 23 10 00 00 00 04      ......#.....
003e0950: 3c 14 00 09 11 09 c1 c3 09 c0 b2 b2 0d df 0e 04  <...............
003e0960: 0e 38 0e 06 0c e5 0d b0 0e 07 0e 1a 0c 5b 0e 28  .8...........[.(
003e0970: 0e 20 0d fa 0e 37 0e 2c 0e 2d 12 0b 4e 56 44 41  . ...7.,.-..NVDA
003e0980: 2c 50 61 72 65 6e 74 02 01 a6 01 11 12 0e 23 61  ,Parent.......#a
003e0990: 64 64 72 65 73 73 2d 63 65 6c 6c 73 01 10 a5 01  ddress-cells....
003e09a0: 11 12 0b 23 73 69 7a 65 2d 63 65 6c 6c 73 01 10  ...#size-cells..
003e09b0: 09 c7 09 3d 10 00 00 00 35 42 14 00 0d a6 09 33  ...=....5B.....3
003e09c0: 27 09 35 24 c3 09 35 b2 09 41 10 00 00 00 10 27  '.5$..5..A.....'
003e09d0: 09 35 24 01 11 12 0d 4e 56 44 41 2c 46 65 61 74  .5$....NVDA,Feat
003e09e0: 75 72 65 73 01 10 a6 01 11 12 0a 4e 56 44 41 2c  ures.......NVDA,
003e09f0: 4c 65 76 65 6c 01 10 a5 a5 0e 2e 09 bc 09 c3 0e  Level...........
003e0a00: 2e 01 12 09 c0 09 c6 0e 2e 01 12 09 be 09 c4 0e  ................
003e0a10: 2e 01 12 09 bf 09 c5 0e 2e 01 12 12 03 72 65 67  .............reg
003e0a20: 01 10 a6 01 11 12 0e 23 61 64 64 72 65 73 73 2d  .......#address-
003e0a30: 63 65 6c 6c 73 01 10 a5 01 11 12 0b 23 73 69 7a  cells.......#siz
003e0a40: 65 2d 63 65                                      e-ce             ok

> 
>> Also trying to change to load-base always seem to end up with 3d0900, rather than what I try and set it too.
>> 
>> Setenv load-base 8000000
> 
> I think SLOF interprets the values as decimal during setenv (not sure
> whether that's correct). Anyway, try:
> 
> setenv load-base 0x8000000
> 

Ok, I’ll give that a try.

> HTH,
>  Thomas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/slof/attachments/20180102/6b99c616/attachment-0001.html>


More information about the SLOF mailing list