On Dec 18, 2017, at 7:29 PM, Segher Boessenkool segher@kernel.crashing.org wrote:
Hi!
On Mon, Dec 18, 2017 at 06:37:54PM -0500, Jd Lyons wrote:
I must not be doing init correct
“ /pci/pci10de,141,@f” open-dev”
But my-self . Returns 0?
Something like
“ /pci/pci10de,141,@f” open-dev to my-self
is all you need :-)
But, I think you mistyped it, it is
“ /pci/pci10de,141@f” open-dev to my-self
(or even just
“ /pci/@f” open-dev to my-self
if you are just as lazy as I am).
Thanks, Segher, I was missing the "to my-self”. I think we’re almost to the end of the file, and it’s at least changing the value of the subsystem ID.
C>> annot manage 'VGA controller' PCI device type 'display':
10de 141 (3 0 0)
============================================================= OpenBIOS 1.1 [Dec 17 2017 13:36] Configuration device id QEMU version 1 machine id 1 CPUs: 1 Memory: 1536M UUID: 00000000-0000-0000-0000-000000000000 CPU type PowerPC,G4
milliseconds isn't unique. Welcome to OpenBIOS v1.1 built on Dec 17 2017 13:36
0 > dev /pci/@f .properties name "pci10de,141" vendor-id 10de device-id 141 revision-id a2 class-code 30000 interrupts 1 min-grant 0 max-latency 0 devsel-speed 0 subsystem-vendor-id 10de subsystem-id 50 cache-line-size 10 assigned-addresses -- 3c : 02 00 78 10 00 00 00 00 81 00 00 00 00 00 00 00 01 00 00 00 c3 00 78 14 00 00 00 00 90 00 00 00 00 00 00 00 10 00 00 00 83 00 78 1c 00 00 00 00 a0 00 00 00 00 00 00 00 01 00 00 00 reg 00007800 00000000 00000000 00000000 00000000 02007810 00000000 00000000 00000000 01000000 c3007814 00000000 00000000 00000000 10000000 8300781c 00000000 00000000 00000000 01000000 ok 0 > : us ( n -- ) d# 1000 / 1+ ms ; ok 0 > " /pci/@f" open-dev to my-self ok 0 > load hd:,\ppc\6600.fcode ok 0 > 4000040 1 byte-load (offset) 26 4010039 : (compile) [ 0x9bd ] 401003a : (compile) b(lit) [ 0x10 ] 401003f : (compile) and [ 0x23 ] 4010041 : (compile) my-space [ 0x103 ] 4010042 : (compile) + [ 0x1e ] 4010044 : (compile) [ 0xa08 ] 4010045 : (compile) b(lit) [ 0x10 ] 401004a : (compile) and [ 0x23 ] 401004b : (compile) b(lit) [ 0x10 ] 4010050 : (compile) = [ 0x3c ] 4010051 : (compile) b?branch [ 0x14 ] (offset) 9 4010054 : (compile) b(') [ 0x11 ] 4010057 : (compile) b(to) [ 0xc3 ] 401005a : (compile) b(>resolve) [ 0xb2 ] 401005b : (compile) b(>resolve) [ 0xb2 ]
byte-load: exception caught! ok 0 > here 200 - 400 dump fffcd7d0 50 80 08 00 93 01 6c 02 12 05 6e 29 60 2a 00 2e P�..�.l...n)`*.. fffcd7e0 00 2f 20 74 80 3e 71 50 80 08 00 93 ff f6 e2 b0 ./ t�>qP�..����� fffcd7f0 ff f6 e2 e4 ff f6 6c 78 00 00 00 fc 01 6c 02 12 ������lx...�.l.. fffcd800 05 6e 29 60 2a 00 2e 00 2f 20 74 80 3e 71 50 80 .n)`*.../ t�>qP� fffcd810 08 00 93 01 6b 02 12 05 6e 29 60 2a 00 2e 00 2f ..�.k...n)`*.../ fffcd820 20 50 81 08 00 93 01 6b 02 12 05 6e 29 60 2a 00 P�..�.k...n)`*. fffcd830 2e 00 2f 20 74 80 3e 71 50 80 08 00 93 01 6c 02 ../ t�>qP�..�.l. fffcd840 12 05 6e 29 60 2a 00 2e 00 2f 20 50 81 08 00 93 ..n)`*.../ P�..� fffcd850 01 6c 02 12 05 6e 29 60 2a 00 2e 00 2f 20 74 80 .l...n)`*.../ t� fffcd860 3e 71 50 80 08 00 93 01 6c 02 12 05 6e 29 60 2a >qP�..�.l...n)`* fffcd870 00 2e 00 2f 20 50 81 08 00 93 01 6c 02 12 05 6e .../ P�..�.l...n fffcd880 29 60 2a 00 2e 00 2f 20 74 80 3e 71 50 80 09 00 )`*.../ t�>qP�.. fffcd890 93 01 6c 02 12 04 89 05 6e 31 00 32 00 33 00 2e �.l...�.n1.2.3.. fffcd8a0 15 74 50 c3 74 50 c3 50 80 01 01 62 50 81 06 3b .tP�tP�P�..bP�.; fffcd8b0 00 3c 00 3d 00 3e 00 3f 00 3a 81 71 50 80 09 00 .<.=.>.?.:�qP�.. fffcd8c0 13 01 71 02 32 04 89 05 6e 30 00 31 00 32 00 33 ..q.2.�.n0.1.2.3 fffcd8d0 00 50 81 0a 00 13 01 71 02 32 04 81 05 2e 30 00 .P�....q.2.�..0. fffcd8e0 31 00 32 00 33 00 3a 80 74 50 c3 74 50 c3 71 50 1.2.3.:�tP�tP�qP fffcd8f0 80 06 00 93 01 6b 02 52 ff f6 e2 b0 ff f6 e2 e4 �..�.k.R�������� fffcd900 ff f6 6c 78 00 00 00 6b 04 81 05 6e 3a 80 6e 88 ��lx...k.�.n:�n� fffcd910 15 00 00 00 00 00 00 25 20 00 00 71 71 6e 80 08 .......% ..qqn�. fffcd920 68 00 ff ff ff df 00 00 00 00 71 6e 80 28 68 00 h.����....qn�(h. fffcd930 ff ff ff cf 00 00 00 00 71 7a 04 13 00 00 00 08 ����....qz...... fffcd940 00 00 58 00 14 00 00 04 a2 1d a8 a9 23 1e b7 7f ..X.....�.��#.� fffcd950 d7 25 c8 c9 16 c2 27 7f 6e 98 10 00 00 f7 ff ff �%��.�'n�...��� fffcd960 ff 00 00 00 00 6e 10 13 00 00 ff ff ff ff 00 00 �....n....����.. fffcd970 00 00 71 00 ff f6 e2 b0 ff f6 e2 e4 ff f6 44 d0 ..q.����������D� fffcd980 00 00 00 08 ff fc 8f c0 ff f6 41 88 ff f6 41 58 ....������A���AX fffcd990 ff f6 40 d4 ff fa c9 58 ff f6 4b c0 ff fc b6 7c ��@����X��K����| fffcd9a0 ff f6 e2 e4 ff f6 41 38 ff f6 40 d4 ff fa c9 68 ������A8��@����h fffcd9b0 ff f6 4b c0 ff f6 40 d4 ff fa c9 58 ff f6 4b c0 ��K���@����X��K� fffcd9c0 ff fb 65 24 ff f6 e4 bc ff f6 40 c4 00 00 00 10 ��e$������@�.... fffcd9d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcd9e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcd9f0 00 34 30 30 66 34 30 30 66 34 30 30 66 66 31 32 .400f400f400ff12 fffcda00 ff fc d9 fe 00 00 00 00 00 00 00 00 00 00 00 00 ����............ fffcda10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcda20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcda30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcda40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcda50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcda60 00 00 00 00 00 00 00 00 00 00 00 00 00 34 30 31 .............401 fffcda70 30 34 30 31 30 34 30 31 30 30 63 35 ff 34 30 31 0401040100c5�401 fffcda80 30 34 30 31 30 34 30 31 30 34 30 31 30 30 63 33 04010401040100c3 fffcda90 ff fc da 8e 00 34 30 31 30 34 30 31 30 34 30 31 ��ڎ.40104010401 fffcdaa0 30 34 30 31 30 30 63 33 ff fc da a6 00 34 30 31 040100c3��ڦ.401 fffcdab0 30 30 63 33 ff fc da b2 00 34 30 31 30 34 30 31 00c3��ڲ.4010401 fffcdac0 30 34 30 31 30 34 30 31 66 66 66 63 64 61 63 30 04010401fffcdac0 fffcdad0 ff fc da c8 00 00 00 00 00 00 00 00 00 00 00 00 ����............ fffcdae0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdaf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdb90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdba0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdbb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ fffcdbc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ ok 0 > my-self . 5fc5ac34 ok 0 > dev /pci/@f .properties name "pci10de,141" vendor-id 10de device-id 141 revision-id a2 class-code 30000 interrupts 1 min-grant 0 max-latency 0 devsel-speed 0 subsystem-vendor-id 10de subsystem-id 10 cache-line-size 10 assigned-addresses -- 3c : 02 00 78 10 00 00 00 00 81 00 00 00 00 00 00 00 01 00 00 00 c3 00 78 14 00 00 00 00 90 00 00 00 00 00 00 00 10 00 00 00 83 00 78 1c 00 00 00 00 a0 00 00 00 00 00 00 00 01 00 00 00 reg 00007800 00000000 00000000 00000000 00000000 02007810 00000000 00000000 00000000 01000000 c3007814 00000000 00000000 00000000 10000000 8300781c 00000000 00000000 00000000 01000000 ok 0 >
Segher