I have a suspicion that maybe you are hitting a known issue, can you
check if this applied to you:
https://flashrom.org/release_notes/devel.html#known-issues ?
sorry if this is your case :(

If not, then you can run the same thing again with adding verbose
mode, by appending -VV at the end of the command line. It will print a
lot, but there could be more detailed messages which help to identify
the issue.

On Sat, Sep 13, 2025 at 10:52 AM Victor Camacho
<[email protected]> wrote:
>
> Hi Anastasia,
> Thank you for the information.
> You were correct.
> The terminal output showed:
> Non active: internal (dependency libpci not found)
> Along with a long list of other non active programmers.
>
> You were also correct that I had not installed the dependencies.
> Thank you for the link.
> That fixed the issue, and the internal programmer was available and worked.
>
> Unfortunately, I am back to "Failed to read fmap from ROM"
> If you have any thoughts on that error, I would appreciate hearing them.
> Below are the 2 times I tried to flash with the 2 chip names that were 
> detected when running without the -c option.
> Thank you again for your help,
> Victor
>
>
>
> =================
> root@pce04:/home/victorc# /usr/local/sbin/flashrom -p internal -w 
> apu4_v4.17.0.3.rom -c W25Q64JV-.Q --fmap -i COREBOOT
> flashrom v1.6.0 on Linux 6.12.43+deb13-amd64 (x86_64)
> flashrom is free software, get the source code at https://flashrom.org
>
> coreboot table found at 0xdffce000.
> Found chipset "AMD FCH".
> Enabling flash write... OK.
> Found Winbond flash chip "W25Q64JV-.Q" (8192 kB, SPI) mapped at physical 
> address 0x00000000ff800000.
> Failed to read fmap from ROM.
>
> =========================
> root@pce04:/home/victorc# /usr/local/sbin/flashrom -p internal -w 
> apu4_v4.17.0.3.rom -c W25Q64BV/W25Q64CV/W25Q64FV --fmap -i COREBOOT
> flashrom v1.6.0 on Linux 6.12.43+deb13-amd64 (x86_64)
> flashrom is free software, get the source code at https://flashrom.org
>
> coreboot table found at 0xdffce000.
> Found chipset "AMD FCH".
> Enabling flash write... OK.
> Found Winbond flash chip "W25Q64BV/W25Q64CV/W25Q64FV" (8192 kB, SPI) mapped 
> at physical address 0x00000000ff800000.
> Failed to read fmap from ROM.
>
> root@pce04:/home/victorc#
>
>
>
> > -----Original Message-----
> > From: Anastasia Klimchuk <[email protected]>
> > Sent: Thursday, September 11, 2025 8:21 PM
> > To: Victor Camacho <[email protected]>
> > Cc: [email protected]
> > Subject: Re: [flashrom] Ver1.6 -p internal not available
> >
> > Hello Victor,
> >
> > On the first look, your environment probably missing libpci which is 
> > required
> > for the internal programmer. For lots of others too, that's why the list of
> > available programmers is very small.
> >
> > For Debian, you need to install libpci-dev (see here
> > https://flashrom.org/dev_guide/building_from_source.html#linux)
> >
> > You can check the theory before installing the library, if you still have 
> > terminal
> > output from building flashrom. Meson prints the info about all dependencies
> > which it found / or not found, also it prints the list of all programmers 
> > that are
> > enabled on the environment. You can check the status of pci dependency, and
> > see if internal was enabled.
> >
> > On Fri, Sep 12, 2025 at 6:02 AM Victor Camacho <victorc@your-it-
> > group.com> wrote:
> > >
> > > Hi,
> > >
> > > First, thank to developers for all their hard work.
> > >
> > >
> > >
> > > Short background, I have a few PC Engines computer 2x apu2 and 2 x
> > > apu4
> > >
> > > Working on updating all to recommended v4.17.
> > >
> > > TinyCore on old PC engines did not work for me.
> > >
> > > Install Debian 13, apt install flashrom which installed flashrom 1.4.
> > >
> > > I was able to update the 2 apu2 devices.
> > >
> > > Install Debian 13 on apu4.
> > >
> > > Install flashrom and received error about failed to read fmap.
> > >
> > > Research implied using updated flashrom 1.6.
> > >
> > > Build and install flashrom 1.6
> > >
> > > (your instructions are simple and spot on, thank you)
> > >
> > >
> > >
> > > Used command that I used on apu2
> > >
> > > flashrom -p internal -w apu4_v4.17.0.3.rom -c W25Q64JV-.Q --fmap -i
> > > COREBOOT
> > >
> > >
> > >
> > > ====
> > >
> > > /usr/local/sbin/flashrom -p internal -w apu4_v4.17.0.3.rom -c
> > > W25Q64JV-.Q --fmap -i COREBOOT
> > >
> > > flashrom v1.6.0 on Linux 6.12.43+deb13-amd64 (x86_64)
> > >
> > > flashrom is free software, get the source code at https://flashrom.org
> > >
> > >
> > >
> > > Error: Unknown programmer "internal". Valid choices are:
> > >
> > > dummy, serprog, buspirate_spi, rayer_spi, pony_spi, linux_mtd,
> > > linux_spi,
> > >
> > > spidriver.
> > >
> > > Please run "flashrom --help" for usage info.
> > >
> > > ===
> > >
> > > I could not figure out what programmer to use.
> > >
> > > Any advice would be appreciated,
> > >
> > > Victor
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > flashrom mailing list -- [email protected] To unsubscribe send an
> > > email to [email protected]
> >
> >
> >
> > --
> > Anastasia.



-- 
Anastasia.
_______________________________________________
flashrom mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to