Hi,
I have a a GIGABYTE GA-H270N-WIFI motherboard with DualBIOS feature.
Flashrom 1.2 is unable to select between the two flash chips with
dualbiosindex parameter, as the Super I/O chip (ITE IT8686E) is
unsupported:
"Super I/O ID 0x8686 is not on the list of flash-capable controllers."
In a naive attempt, I just tried to add the chip ID to the list:
--- a/it87spi.c
+++ b/it87spi.c
@@ -256,6 +256,7 @@ int init_superio_ite(void)
case 0x8718:
case 0x8720:
…
[View More] case 0x8728:
+ case 0x8686:
ret |= it87spi_probe(superios[i].port);
break;
default:
This modification made flashrom able to select between the flash chips:
# flashrom -p internal:dualbiosindex=
DualBIOS: Selected chip: 0
# flashrom -p internal:dualbiosindex=1
DualBIOS: Selected chip: 1
# flashrom -p internal:dualbiosindex=
DualBIOS: Selected chip: 1
Reading the flash content also seems to work:
# flashrom -p internal:dualbiosindex=0 -r M_BIOS.bin
Enabling flash write... SPI Configuration is locked down.
Enabling hardware sequencing because some important opcode is locked.
OK.
DualBIOS: Selected chip: 0
Found Programmer flash chip "Opaque flash chip" (16384 kB,
Programmer-specific) mapped at physical address 0x0000000000000000.
Reading flash... done.
# flashrom -p internal:dualbiosindex=1 -r B_BIOS.bin
Enabling flash write... SPI Configuration is locked down.
Enabling hardware sequencing because some important opcode is locked.
OK.
DualBIOS: Selected chip: 1
Found Programmer flash chip "Opaque flash chip" (16384 kB,
Programmer-specific) mapped at physical address 0x0000000000000000.
Reading flash... done.
Comparing the two firmware dumps, I find the only difference is that
M_BIOS.bin contains my current BIOS settings which B_BIOS.bin does not,
so I'm quite sure that these dumps are actually from two different
flash chips.
However, if enabling verbose (-VV) output while reading flash, I also
see this message, which I don't know if normal or not:
"No IT87* serial flash segment enabled."
I have not yet tried writing to any of the flash chips, as I would
really appreciate if someone with more experience than me could comment
on this modification first, and maybe highlight problems I'm not
currently aware of?
Thanks in advance.
Best regards,
Pete Smith
[View Less]
Hello,
just curious about my ROM, I used flashrom to see what is in and would
like, why not, replace it by a coreboot version, and let you know.
It seems that it wouldn't work as enable flash write seems not working.
My box is a DELL Precision T1700
Here is what I get :
flashrom v0.9.9-r1954 on Linux 4.9.0-14-amd64 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found chipset "Intel C226".
This chipset is marked as untested. …
[View More]If you are using an up-to-date version
of flashrom *and* were (not) able to successfully update your firmware
with it,
then please email a report to flashrom(a)flashrom.org including a verbose
(-V) log.
Thank you!
Enabling flash write... Error accessing ICH RCRB, 0x4000 bytes at
0x00000000fed1c000
/dev/mem mmap failed: Operation not permitted
FAILED!
FATAL ERROR!
Error: Programmer initialization failed.
Hope this can help
Regards
[View Less]
Hello,
if someone likes to update the wiki for FM25F02(A) :)
Managed to read corrupted GT730 GPU-BIOS and write back original rom via
raspberry pi 3 with rasbian buster. I had to git clone source + make + make
install. apt-Version of flashrom (1.0) didn't know the FM25F02(A) flash-chip,
but flashrom v1.2-174-g32f4cb4 worked. GPU now working again!
I had to pad the original rom to fit the flash chip size. The Size in the
error-message of flashrom was helpful for truncate-command (which in …
[View More]fact
extends the file if a bigger size is given):
[...]
Error: Image size (168960 B) doesn't match the flash chip's size (262144 B)!
pi@raspberrypi:~ $ cp -a pny_gt730_2g_orig.rom pny_gt730_2g_orig_extended.rom
pi@raspberrypi:~ $ truncate -s 262144 pny_gt730_2g_orig_extended.rom
pi@raspberrypi:~ $ sudo flashrom -p linux_spi:dev=/dev/spidev0.0 -w
pny_gt730_2g_orig_extended.rom
flashrom v1.2-174-g32f4cb4 on Linux 5.4.79-v7+ (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Using default 2000kHz clock. Use 'spispeed' parameter to override.
Found Fudan flash chip "FM25F02(A)" (256 kB, SPI) on linux_spi.
===
This flash part has status UNTESTED for operations: PROBE READ ERASE WRITE
The test status of this chip may have been updated in the latest development
version of flashrom. If you are running the latest development version,
please email a report to flashrom(a)flashrom.org if any of the above operations
work correctly for you with this flash chip. Please include the flashrom log
file for all operations you tested (see the man page for details), and mention
which mainboard or programmer you tested in the subject line.
Thanks for your help!
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.
--
░░░░░░░░░░░░░░░░░░░
░░█▀█░█▀█░█▀▀░█░█░░
░░█▀█░█▀▀░█░█░█▄█░░
░░▀░▀░▀░░░▀▀▀░▀░▀░░
░░░░░░░░░░░░░░░░░░░
André Plümer genannt Woistpeter
Fachinformatiker Systemintegration
Studierender BA Gestaltung
"Digital Media and Experiment"
Fachhochschule Bielefeld
https://apgw.de/fh
[View Less]
Hi, I'm the asker of this question: https://superuser.com/questions/1613342/why-do-windows-updates-make-linux-r…
I was hoping to use `flashrom` to gather before/after dumps, which I can (hopefully) compare to get to the bottom of my problem.
When I run: `sudo flashrom --programmer internal`
I get this:
--- begin output ---
flashrom on Linux 4.19.0-13-amd64 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, …
[View More]resolution: 1ns).
Found chipset "AMD FP4".
Enabling flash write... FCH device found but SMBus revision 0x59 does not match known values.
Please report this to flashrom(a)flashrom.org and include this log and
the output of lspci -nnvx, thanks!.
Could not determine chipset generation.PROBLEMS, continuing anyway
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found automatically.
--- end output ---
the output of lspci is attached.
Thanks,
Matt
[View Less]
need some help with erasing and writing to a w25q16jv .
its not in the supported list but i was able to read from it by forcing it
with a similar chip
i force read using w25q16.v but i cant erase or write
this is what it reads it at.
Probing for Winbond unknown Winbond (ex Nexcom) SPI chip, 0 kB: compare_id:
id1 0xef, id2 0x7015 Found Winbond flash chip "unknown Winbond (ex Nexcom)
SPI chip" (0 kB, SPI) on linux_spi. Probing for Generic Variable Size SPI
chip, 64 kB: Probing for Generic …
[View More]unknown SPI chip (RDID), 0 kB: compare_id:
id1 0xef, id2 0x7015 Probing for Generic unknown SPI chip (REMS), 0 kB:
compare_id: id1 0xef, id2 0x14 Found Winbond flash chip "unknown Winbond
(ex Nexcom) SPI chip" (0 kB, SPI).
btw i got three valid dumps
[View Less]
Hello,
I have been failing to flash libreboot rom on a X200 with a Beaglebone
external flashing.
Please check logs and tell me what the cause do you think.
I succeeded just once between the two logs.
But this is not the first time succeeded. I mean I have been using the
laptop for around a year with libreboot.
thanks.
Masaru Suzuqi
--
To run a command as administrator (user "root"), use "sudo <command>".
To become root use "sudo -i".
See "man sudo_root" for details.
trisquel@trisquel:~$…
[View More] ssh debian(a)beaglebone.local
The authenticity of host 'beaglebone.local (192.168.6.2)' can't be
established.
ECDSA key fingerprint is
SHA256:7UPnDqxHhM/cTjLfwf3nuKfeZermAMP4AxOaUCARZpk.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'beaglebone.local,192.168.6.2' (ECDSA) to the
list of known hosts.
Debian GNU/Linux 9
BeagleBoard.org Debian Image 2019-08-03
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
default username:password is [debian:temppwd]
debian(a)beaglebone.local's password:
The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Aug 4 02:41:43 2019 from 192.168.7.1
debian@beaglebone:~$ su
Password:
su: Authentication failure
debian@beaglebone:~$ sudo config-pin P9.17 spi_cs
[sudo] password for debian:
debian@beaglebone:~$ sudo config-pin P9.18 spi_cs
Invalid mode: spi_cs
debian@beaglebone:~$ sudo config-pin P9.18 spi
debian@beaglebone:~$ sudo config-pin P9.21 spi
debian@beaglebone:~$ sudo config-pin P9.22 spi_sclk
debian@beaglebone:~$ ls /dev/spides*
ls: cannot access '/dev/spides*': No such file or directory
debian@beaglebone:~$ sudo ls /dev/spides*
ls: cannot access '/dev/spides*': No such file or directory
debian@beaglebone:~$ ls /dev/spidev*
/dev/spidev1.0 /dev/spidev1.1 /dev/spidev2.0 /dev/spidev2.1
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512
[sudo] password for debian:
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
No operations were specified.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
[sudo] password for debian:
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003001! Expected=0x5f, Found=0xcf,
failed byte count from 0x00000000-0x007fffff: 0x17d9
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003001! Expected=0x5f, Found=0x31,
failed byte count from 0x00000000-0x007fffff: 0x12fb
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... done.
Erasing and writing flash chip... FAILED at 0x00003000! Expected=0xff,
Found=0x5f, failed byte count from 0x00003000-0x00003fff: 0xb7c
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase
function.
FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
0x00000000-0x0000ffff: 0x5da5
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase
function.
FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
0x00000000-0x007fffff: 0xf7613
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase
function.
FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
0x00000000-0x007fffff: 0xf7613
ERASE FAILED!
Looking for another erase function.
No usable erase functions left.
FAILED!
Uh oh. Erase/write failed. Checking if anything has changed.
Reading current flash chip contents... done.
Good, writing to the flash chip apparently didn't do anything.
Please check the connections (especially those to write protection pins)
between
the programmer and the flash chip. If you think the error is caused by
flashrom
please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
[sudo] password for debian:
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003001! Expected=0x5f, Found=0x31,
failed byte count from 0x00000000-0x007fffff: 0xc9c
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003000! Expected=0x5f, Found=0x46,
failed byte count from 0x00000000-0x007fffff: 0x2f45
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003000! Expected=0x5f, Found=0x46,
failed byte count from 0x00000000-0x007fffff: 0x3605
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... done.
Erasing and writing flash chip... FAILED at 0x00003000! Expected=0xff,
Found=0x46, failed byte count from 0x00003000-0x00003fff: 0x6c0
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase
function.
FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
0x00000000-0x0000ffff: 0x47a3
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase
function.
FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
0x00000000-0x007fffff: 0xf59d8
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase
function.
FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
0x00000000-0x007fffff: 0xf59d8
ERASE FAILED!
Looking for another erase function.
No usable erase functions left.
FAILED!
Uh oh. Erase/write failed. Checking if anything has changed.
Reading current flash chip contents... done.
Good, writing to the flash chip apparently didn't do anything.
Please check the connections (especially those to write protection pins)
between
the programmer and the flash chip. If you think the error is caused by
flashrom
please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
[sudo] password for debian:
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003000! Expected=0x5f, Found=0x43,
failed byte count from 0x00000000-0x007fffff: 0x56d9
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... delay loop is unreliable, trying to continue
OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003000! Expected=0x5f, Found=0x43,
failed byte count from 0x00000000-0x007fffff: 0x3daaf
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003000! Expected=0x5f, Found=0x43,
failed byte count from 0x00000000-0x007fffff: 0x12066
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... done.
Erasing and writing flash chip... FAILED at 0x00003000! Expected=0xff,
Found=0x43, failed byte count from 0x00003000-0x00003fff: 0x6a8
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase
function.
FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
0x00000000-0x0000ffff: 0x4292
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase
function.
FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
0x00000000-0x007fffff: 0xb9a82
ERASE FAILED!
Reading current flash chip contents... done. Looking for another erase
function.
FAILED at 0x00000000! Expected=0xff, Found=0x5a, failed byte count from
0x00000000-0x007fffff: 0xb9a82
ERASE FAILED!
Looking for another erase function.
No usable erase functions left.
FAILED!
Uh oh. Erase/write failed. Checking if anything has changed.
Reading current flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w txt.rom
[sudo] password for debian:
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Generic flash chip "unknown SPI chip (RDID)" (0 kB, SPI) on
linux_spi.
===
This flash part has status NOT WORKING for operations: PROBE READ ERASE
WRITE
The test status of this chip may have been updated in the latest
development
version of flashrom. If you are running the latest development version,
please email a report to flashrom(a)flashrom.org if any of the above
operations
work correctly for you with this flash chip. Please include the flashrom
log
file for all operations you tested (see the man page for details), and
mention
which mainboard or programmer you tested in the subject line.
Thanks for your help!
Read is not working on this chip. Aborting.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Generic flash chip "unknown SPI chip (RDID)" (0 kB, SPI) on
linux_spi.
===
This flash part has status NOT WORKING for operations: PROBE READ ERASE
WRITE
The test status of this chip may have been updated in the latest
development
version of flashrom. If you are running the latest development version,
please email a report to flashrom(a)flashrom.org if any of the above
operations
work correctly for you with this flash chip. Please include the flashrom
log
file for all operations you tested (see the man page for details), and
mention
which mainboard or programmer you tested in the subject line.
Thanks for your help!
Read is not working on this chip. Aborting.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Generic flash chip "unknown SPI chip (RDID)" (0 kB, SPI) on
linux_spi.
===
This flash part has status NOT WORKING for operations: PROBE READ ERASE
WRITE
The test status of this chip may have been updated in the latest
development
version of flashrom. If you are running the latest development version,
please email a report to flashrom(a)flashrom.org if any of the above
operations
work correctly for you with this flash chip. Please include the flashrom
log
file for all operations you tested (see the man page for details), and
mention
which mainboard or programmer you tested in the subject line.
Thanks for your help!
Read is not working on this chip. Aborting.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003000! Expected=0x5f, Found=0x46,
failed byte count from 0x00000000-0x007fffff: 0x1507
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003000! Expected=0x5f, Found=0x46,
failed byte count from 0x00000000-0x007fffff: 0x1564
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
No operations were specified.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003000! Expected=0x5f, Found=0x46,
failed byte count from 0x00000000-0x007fffff: 0x40fe
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 -w v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00003000! Expected=0x5f, Found=0x41,
failed byte count from 0x00000000-0x007fffff: 0xd9f1
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$
--
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0xff,
failed byte count from 0x00000000-0x007fffff: 0x2978
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0x08,
failed byte count from 0x00000000-0x007fffff: 0x28fb
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ logout
Connection to beaglebone.local closed.
trisquel@trisquel:~$ ssh debian(a)beaglebone.local
Debian GNU/Linux 9
BeagleBoard.org Debian Image 2019-08-03
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
default username:password is [debian:temppwd]
debian(a)beaglebone.local's password:
The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Aug 4 02:40:49 2019 from 192.168.6.1
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
[sudo] password for debian:
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0x08,
failed byte count from 0x00000000-0x007fffff: 0x28a5
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ logout
Connection to beaglebone.local closed.
trisquel@trisquel:~$ ssh debian(a)beaglebone.local
Debian GNU/Linux 9
BeagleBoard.org Debian Image 2019-08-03
Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
default username:password is [debian:temppwd]
debian(a)beaglebone.local's password:
The programs included with the Debian GNU/Linux system are free
software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Aug 4 03:38:32 2019 from 192.168.6.1
debian@beaglebone:~$ ls /dev/spidev*
/dev/spidev1.0 /dev/spidev1.1 /dev/spidev2.0 /dev/spidev2.1
debian@beaglebone:~$ sudo config-pin P9.17 spi_cs
[sudo] password for debian:
Sorry, try again.
[sudo] password for debian:
debian@beaglebone:~$ sudo config-pin p9.18 spi
debian@beaglebone:~$ sudo config-pin p9.21 spi
debian@beaglebone:~$ sudo config-pin p9.22 spi_sclk
debian@beaglebone:~$ ls /dev/spidev*
/dev/spidev1.0 /dev/spidev1.1 /dev/spidev2.0 /dev/spidev2.1
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
No EEPROM/flash device found.
Note: flashrom can never write if the flash chip isn't found
automatically.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0x08,
failed byte count from 0x00000000-0x007fffff: 0x1aa0
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0x08,
failed byte count from 0x00000000-0x007fffff: 0x19bc
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ ls /dev/spidev*
/dev/spidev1.0 /dev/spidev1.1 /dev/spidev2.0 /dev/spidev2.1
debian@beaglebone:~$ sudo config-pin P9.17 spi_cs
debian@beaglebone:~$ sudo config-pin p9.18 spi
debian@beaglebone:~$ sudo config-pin p9.21 spi
debian@beaglebone:~$ sudo config-pin p9.22 spi_sclk
debian@beaglebone:~$ ls /dev/spidev*
/dev/spidev1.0 /dev/spidev1.1 /dev/spidev2.0 /dev/spidev2.1
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000e00! Expected=0xff, Found=0x15,
failed byte count from 0x00000000-0x007fffff: 0xec4
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000e00! Expected=0xff, Found=0x15,
failed byte count from 0x00000000-0x007fffff: 0xb48
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --force --write
/home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000e00! Expected=0xff, Found=0x15,
failed byte count from 0x00000000-0x007fffff: 0xa24
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000e00! Expected=0xff, Found=0x15,
failed byte count from 0x00000000-0x007fffff: 0xe29
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo config-pin P9.17 spi_cs
debian@beaglebone:~$ sudo config-pin p9.18 spi
debian@beaglebone:~$ sudo config-pin p9.21 spi
debian@beaglebone:~$ sudo config-pin p9.22 spi_sclk
debian@beaglebone:~$ ls /dev/spidev*
/dev/spidev1.0 /dev/spidev1.1 /dev/spidev2.0 /dev/spidev2.1
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000001! Expected=0xa5, Found=0x08,
failed byte count from 0x00000000-0x007fffff: 0x11f8
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ ls /dev/spidev*
/dev/spidev1.0 /dev/spidev1.1 /dev/spidev2.0 /dev/spidev2.1
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
No operations were specified.
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Error: WIP bit after WRSR never cleared
spi_write_status_register failed.
Reading old flash chip contents... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/txt.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/txt.rom
[sudo] password for debian:
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... ^C
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... FAILED at 0x00000000! Expected=0x5a, Found=0x08,
failed byte count from 0x00000000-0x007fffff: 0x8be85
Your flash chip is in an unknown state.
Please report this on IRC at chat.freenode.net (channel #flashrom) or
mail flashrom(a)flashrom.org, thanks!
debian@beaglebone:~$ sudo ./flashrom -p
linux_spi:dev=/dev/spidev1.0,spispeed=512 --write /home/debian/v.rom
[sudo] password for debian:
flashrom v0.9.9-unknown on Linux 4.14.108-ti-r113 (armv7l)
flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK.
Found Macronix flash chip "MX25L6405D" (8192 kB, SPI) on linux_spi.
Reading old flash chip contents... done.
Erasing and writing flash chip...
[View Less]
I'm trying to use flashrom 1.2 on a GIGABYTE GA-H270N-WIFI motherboard
with DualBIOS feature. According to manpage, one can check which of the
two flash chips is currently selected like this:
flashrom -p internal:dualbiosindex
This error message is shown instead:
Unhandled programmer parameters: dualbiosindex
Aborting.
Error: Programmer initialization failed.
If I don't specify the dualbiosindex parameter this message is shown:
Found Programmer flash chip "Opaque flash chip"
(16384 kB, …
[View More]Programmer-specific) mapped at physical address
0x0000000000000000.
No operations were specified.
I'm also able to dump a valid copy of the firmware without problems,
but I'm unable to control which of the two flash chips are being read
(or written).
flashrom -V -p internal:dualbiosindex
=======================================================================
flashrom 1.2 on Linux 4.19.164_1 (x86_64)
flashrom is free software, get the source code at https://flashrom.org
flashrom was built with libpci 3.7.0, GCC 9.3.0, little endian
Command line (3 args): flashrom -V -p internal:dualbiosindex
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
Initializing internal programmer
/sys/class/mtd/mtd0 does not exist
No coreboot table found.
Using Internal DMI decoder.
DMI string chassis-type: "Desktop"
DMI string system-manufacturer: "Gigabyte Technology Co., Ltd."
DMI string system-product-name: "H270N-WIFI"
DMI string system-version: "Default string"
DMI string baseboard-manufacturer: "Gigabyte Technology Co., Ltd."
DMI string baseboard-product-name: "H270N-WIFI-CF"
DMI string baseboard-version: "x.x"
Found ITE Super I/O, ID 0x8686 on port 0x2e
Found chipset "Intel H270" with PCI ID 8086:a2c4.
This chipset is marked as untested. If you are using an up-to-date version
of flashrom *and* were (not) able to successfully update your firmware with it,
then please email a report to flashrom(a)flashrom.org including a verbose (-V) log.
Thank you!
Enabling flash write... BIOS_SPI_BC = 0xa88: BIOS Interface Lock-Down: enabled, Boot BIOS Straps: 0x0 (SPI)
Top Swap: not enabled
SPI Read Configuration: prefetching enabled, caching enabled,
BIOS_CNTL = 0x89: BIOS Lock Enable: disabled, BIOS Write Enable: enabled
SPIBAR = 0x00007fbbfbbcb000 (phys = 0xfe010000)
0x04: 0xe004 (HSFS)
HSFS: FDONE=0, FCERR=0, AEL=1, SCIP=0, PRR34_LOCKDN=0, WRSDIS=0, FDOPSS=1, FDV=1, FLOCKDN=1
SPI Configuration is locked down.
Reading OPCODES... done
0x06: 0x3f00 (HSFC)
HSFC: FGO=0, HSFC=0, WET=0, FDBC=63, SME=0
0x0c: 0x00000000 (DLOCK)
DLOCK: BMWAG_LOCKDN=0, BMRAG_LOCKDN=0, SBMWAG_LOCKDN=0, SBMRAG_LOCKDN=0,
PR0_LOCKDN=0, PR1_LOCKDN=0, PR2_LOCKDN=0, PR3_LOCKDN=0, PR4_LOCKDN=0,
SSEQ_LOCKDN=0
0x50: 0x0000ffff (FRAP)
BMWAG 0x00, BMRAG 0x00, BRWA 0xff, BRRA 0xff
0x54: 0x00000000 FREG0: Flash Descriptor region (0x00000000-0x00000fff) is read-write.
0x58: 0x0fff0200 FREG1: BIOS region (0x00200000-0x00ffffff) is read-write.
0x5C: 0x01ff0003 FREG2: Management Engine region (0x00003000-0x001fffff) is read-write.
0x60: 0x00020001 FREG3: Gigabit Ethernet region (0x00001000-0x00002fff) is read-write.
0xa0: 0x90 (SSFS)
SSFS: SCIP=0, FDONE=0, FCERR=0, AEL=1
0xa1: 0xfe0000 (SSFC)
SSFC: SCGO=0, ACS=0, SPOP=0, COP=0, DBC=0, SME=0, SCF=6
0xa4: 0x0000 (PREOP)
0xa6: 0x0000 (OPTYPE)
0xa8: 0x00000000 (OPMENU)
0xac: 0x00000000 (OPMENU+4)
0xc4: 0xf3d82005 (LVSCC)
LVSCC: BES=0x1, WG=1, WSR=0, WEWS=0, EO=0x20, VCL=1
0xc8: 0x20452045 (UVSCC)
UVSCC: BES=0x1, WG=1, WSR=0, WEWS=0, EO=0x20
Enabling hardware sequencing because some important opcode is locked.
OK.
Unhandled programmer parameters: dualbiosindex
Aborting.
Error: Programmer initialization failed.
Restoring PCI config space for 00:1f:5 reg 0xdc
=======================================================================
Any ideas why this happens?
Thanks.
Best regards,
Pete Smith
[View Less]