[flashrom] [Patch] NVIDIA Tegra2 SPI controller support

Stefan Reinauer reinauer at google.com
Wed Jun 29 03:32:13 CEST 2011


On Tue, Jun 28, 2011 at 5:54 PM, Carl-Daniel Hailfinger
<c-d.hailfinger.devel.2006 at gmx.net> wrote:


>> 2. Due to issues with libpci, you can't use the same binary on machines with
>> PCI and without PCI. So for example, you can't program a SPI ROM onboard a
>> PCI card that is connected to your ARM SoC.
>
> Could you explain more? IIRC some people were using flashrom on ARM
> (independent patch) with PCI support. Not calling any PCI functions
> should be enough to avoid any and all interactions between libpci and
> the hardware.

One of the problems is that if you call libpci's init function on a
system with no PCI support, libpci will not return an error but just
end the program right away. This makes it hard to have one binary that
works on PCI and non-PCI ARM systems.

Stefan

-- 
Stefan Reinauer
Google Inc.




More information about the flashrom mailing list