<html><head></head><body><div style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><br>
<div><br></div><div>Ok, now I think we're getting somewhere:</div><div><br></div><div><br></div><div>4010006 : (compile) encode-bytes [ 0x115 ]</div>4010008 : (compile) encode+ [ 0x112 ]<br>4010009 : (compile) b(endof) [ 0xc6 ]<br> (offset) 5 <br>401000d : (compile) [ 0xe05 ]<br>401000e : (compile) b(endcase) [ 0xc5 ]<br>401000f : (compile) over [ 0x48 ]<br>4010010 : (compile) b(to) [ 0xc3 ]<br>4010014 : (compile) [ 0xe36 ]<br>4010016 : (compile) encode+ [ 0x112 ]<br>4010017 : (compile) 2dup [ 0x53 ]<br>4010018 : (compile) b(to) [ 0xc3 ]<br>401001b : (compile) b(to) [ 0xc3 ]<br>401001f : (compile) [ 0xc7b ]<br>4010021 : (compile) property [ 0x110 ]<br>4010022 : (compile) b(;) [ 0xc2 ]<br>4010023 : b(') [ 0x11 ]<br>4010026 : b(to) [ 0xc3 ]<br>401002a : [ 0xe34 ]<br><br>byte-load: exception caught!<br><div> ok</div><div><br></div><div><br></div></div><div><br></div><div><br></div>
<div id="yahoo_quoted_4364547204" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Sunday, December 17, 2017, 11:21:11 AM EST, Tarl Neustaedter <tarl-b2@tarl.net> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">On 2017-Dec-17 11:00 , Jd Lyons wrote:<br clear="none">[...]<br clear="none">> 0 > load hd:,\ppc\6600.fcode ok<br clear="none">> 0 > 4000000 400 dump<br clear="none">> 4000000 55 aa 40 00 00 00 00 00 00 00 00 00 00 00 00 00 <br clear="none">> U�@.............<br clear="none">> 4000010 00 00 00 00 00 00 00 00 20 00 00 00 00 00 00 00 ........<br clear="none">> .......<br clear="none">> 4000020 50 43 49 52 de 10 41 01 00 00 20 00 00 00 00 03 <br clear="none">> PCIR�.A... .....<br clear="none">> 4000030 84 00 00 00 01 80 00 00 00 00 00 00 00 00 00 00 <br clear="none">> �....�..........<br clear="none"><br clear="none">That looks like stuff from a PCI option ROM. But you can't start at<br clear="none">4000020, that's still in the PCI header overhead.<br clear="none"><br clear="none">See<br clear="none"><br clear="none"><a shape="rect" href="https://code.coreboot.org/p/openboot/source/tree/1/obp/dev/pci/fcode-rom.fth" target="_blank">https://code.coreboot.org/p/openboot/source/tree/1/obp/dev/pci/fcode-rom.fth</a><br clear="none"><br clear="none">Follow the code in locate-fcode and fcode-image? to find where the code<br clear="none">starts. From my recollection, this looks like the FCode is for a card<br clear="none">with vendor ID 10de and device ID 0141. It looks like the FCode should<br clear="none">start at 4000040, so that's the address you should feel into byte-load.<br clear="none"><br clear="none">> 0 > 0 0 " 4,0" " /<a shape="rect" ymailto="mailto:pci@80000000" href="mailto:pci@80000000">pci@80000000</a>" begin-package ok<br clear="none">> 0 > dev /pci ls<br clear="none"><br clear="none">That "dev" is harmful, it's taking you out of the PCI node, you need to<br clear="none">stay inside unnamed node. Don't do that.<br clear="none"><br clear="none">> 0 > setenv focde-debug? true ok<br clear="none">> 0 > 4000020 1 byte-load ok<br clear="none"><br clear="none">If this had worked with fcode-debug? set to true, I think you would<br clear="none">normally have gotten the name of the device printed out.<br clear="none"><br clear="none">> 0 > dev /pci ls<br clear="none">This is again taking you out of wherever you had run the FCode.<br clear="none">> 0 > setenv fcode-debug? true ok<br clear="none">> 0 > 4000020 1 byte-load<br clear="none">> byte-load: warning stack overflow, diff -3<br clear="none">> ok<br clear="none">> 0 ><br clear="none">><br clear="none"><br clear="none">At this point, you're doing a second execution of the PCI header, and I<br clear="none">have no idea what "PCIR" does as FCodes. It undoubtedly got confused and<br clear="none">did something dumb.<div class="yqt8371160014" id="yqtfd41510"><br clear="none"><br clear="none"><br clear="none"><br clear="none"><br clear="none">-- <br clear="none">OpenBIOS </div><a shape="rect" href="http://openbios.org/" target="_blank">http://openbios.org/</a><br clear="none">Mailinglist: <a shape="rect" href="http://lists.openbios.org/mailman/listinfo" target="_blank">http://lists.openbios.org/mailman/listinfo</a><br clear="none">Free your System - May the Forth be with you</div></div>
</div>
</div></div></body></html>