<div dir="ltr">Also am I correct in saying the help listing needs to be updated with more --programmer options? I don't see the 2232H device in there. I'll Google it in the meantime.<div><br></div><div>It's really (really) nice to see such fast and comprehensive support for an open source project. Many thanks.<br><div><br></div><div>=]</div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">--<br>Anders Nelson<br><br>+1 (517) 775-6129<br><br><a href="http://www.erogear.com" target="_blank">www.erogear.com</a></div></div>
<br><div class="gmail_quote">On Tue, Nov 7, 2017 at 7:56 PM, Anders Nelson <span dir="ltr"><<a href="mailto:anders.k.nelson@gmail.com" target="_blank">anders.k.nelson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi guys, sorry for the delay again!<div><br></div><div>TL;DR: I did "make clean CONFIG_INTERNAL=no" and it looks like it built successfully! Here's the email as I assembled it before doing the "make clean":<br><div><br></div><div>===</div><div><div><br></div><div>root@chrx:/home/chrx/Github/<wbr>flashrom# git describe</div><div>v0.9.9-86-ge1a960e</div></div><div><br></div><div>=== </div><div><br></div><div>I've attached the output files you asked for to this message.</div><div><br></div><div>I did not change the code at all and I pulled from the master branch here IIRC: <a href="https://github.com/flashrom/flashrom" target="_blank">https://github.com/<wbr>flashrom/flashrom</a></div><div><br></div><div>I tried to build using "make CONFIG_INTERNAL=no" early on but this was the error output:</div><div><br></div><div>===</div><div><br></div><div><div>cli_classic.o: In function `main':</div><div>cli_classic.c:(.text.startup+<wbr>0xaac): undefined reference to `force_boardmismatch'</div><div>print.o: In function `print_supported_boards_<wbr>helper':</div><div>print.c:(.text+0x245): undefined reference to `board_matches'</div><div>print.o: In function `print_supported':</div><div>print.c:(.text+0xf11): undefined reference to `chipset_enables'</div><div>print.c:(.text+0xff3): undefined reference to `chipset_enables'</div><div>spi.o: In function `spi_get_valid_read_addr':</div><div>spi.c:(.text+0x12c): undefined reference to `ichspi_bbar'</div><div>collect2: error: ld returned 1 exit status</div><div>Makefile:1018: recipe for target 'flashrom' failed</div><div>make: *** [flashrom] Error 1</div></div><div><br></div><div>===</div><div><br></div><div>Everything above that in the build process looked ok!</div><div><br></div></div></div><div class="gmail_extra"><span class=""><br clear="all"><div><div class="m_4184030239755532905gmail_signature" data-smartmail="gmail_signature">--<br>Anders Nelson<br><br>+1 (517) 775-6129<br><br><a href="http://www.erogear.com" target="_blank">www.erogear.com</a></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Sat, Nov 4, 2017 at 11:21 AM, Nico Huber <span dir="ltr"><<a href="mailto:nico.h@gmx.de" target="_blank">nico.h@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Anders,<br>
<span><br>
On 03.11.2017 21:35, Anders Nelson wrote:<br>
> Hi guys,<br>
><br>
> Here's the error I get trying to apply the patch:<br>
><br>
> "root@chrx:/home/chrx/Github/f<wbr>lashrom# git apply --check<br>
> /home/chrx/Downloads/ich_descr<wbr>iptors-amd64.patch<br>
> error: patch failed: ich_descriptors.c:1064<br>
> error: ich_descriptors.c: patch does not apply"<br>
<br>
</span>sorry, I was looking at the wrong version of the code. Doesn't matter,<br>
see below.<br>
<span><br>
><br>
> Derp? Here's my output from "cc -v":<br>
><br>
</span>> ...<br>
<span>><br>
> And here's the output from the second command you asked for:<br>
><br>
> "root@chrx:/home/chrx/Github/f<wbr>lashrom# cc -dM -E - < /dev/null<br>
</span>> ...<br>
> #define __x86_64__ 1<br>
> ...<br>
> #define __amd64__ 1<br>
> ...<br>
<br>
Both are there that's fine. And I think now, that my original assumption<br>
that this could be an issue was wrong: We do check for x86 not only in<br>
the Makefile but also in ichspi.c too (pretty weird redundancy) and the<br>
latter check is in sync with ich_descriptors.c.<br>
<br>
I've also tried to build flashrom on Ubuntu 16.04 with the same compiler<br>
version... and it worked *shrug*.<br>
<span><br>
><br>
> Whaaatsa goin' onnn? Thanks for your help!<br>
<br>
</span>No clue, actually. Did you already try to build with `make<br>
CONFIG_INTERNAL=no`? Just want to know, that this doesn't stall<br>
your work. We are ofc very interested to understand and fix the<br>
actual problem.<br>
<br>
Can you please send us a copy of the `ichspi.o` and `ich_descriptors.o`<br>
of the failing build.<br>
<br>
Did you change anything in the code? or tried to build different<br>
versions? switch branches? in case, you could try a `make clean`<br>
(although, I can't imagine why it would be necessary).<br>
<br>
Oh, I nearly forgot: Please show us the output of `git describe` (I'm<br>
loosing track of our branches atm).<br>
<span class="m_4184030239755532905HOEnZb"><font color="#888888"><br>
Nico<br>
</font></span></blockquote></div><br></div></div></div>
</blockquote></div><br></div>