Zerocat’s Coreboot Machines  v0.8.1
How to create Zerocat’s Coreboot Machines like the ZC-X200 and others...
Flashrom User Space Utility

Main Page | Related Pages | List of Files

Warning
This documentation is “Work In Progress”!

Sources

See webpage: https://www.flashrom.org/

Clone git repository, change into flashrom folder, checkout tag “v1.0” and type

make

Multiple Chip Definitions

Note if flashrom stops due to multiple matching chip definitions in case of a Macronix chip, add...

...and try again.

Coreboot Readout Examples

X60 Readout

$ sudo ./flashrom -p internal -r coreboot.bin

X200 Readout

$ sudo ./flashrom -p internal -c "MX25L6405D" -r coreboot.bin

X230 Readout

Warning
Note this is dangerous and might brick your Laptop.
$ sudo ./flashrom -p internal:laptop=force_I_want_a_brick --layout layout.txt --image bios -r coreboot.bin
[sudo] password for trisquel:
flashrom v1.0 on Linux 4.4.0-131-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
coreboot table found at 0xbff79000.
========================================================================
WARNING! You seem to be running flashrom on an unsupported laptop.
Laptops, notebooks and netbooks are difficult to support and we
recommend to use the vendor flashing utility. The embedded controller
(EC) in these machines often interacts badly with flashing.
See the manpage and https://flashrom.org/Laptops for details.
If flash is shared with the EC, erase is guaranteed to brick your laptop
and write may brick your laptop.
Read and probe may irritate your EC and cause fan failure, backlight
failure and sudden poweroff.
You have been warned.
========================================================================
Proceeding anyway because user forced us to.
Found chipset "Intel QM77".
Enabling flash write... Warning: SPI Configuration Lockdown activated.
Enabling hardware sequencing due to multiple flash chips detected.
OK.
Found Programmer flash chip "Opaque flash chip" (12288 kB, Programmer-specific) mapped at physical address 0x0000000000000000.
Reading flash... done.

A “typical” SPI Chip layout.txt file, created from an original lenovo firmware dump with coreboot’s ifdtool, looks like this:

$ ./ifdtool lenovo.bin -f layout.txt
$ cat layout.txt
00000000:00000fff fd
00500000:00bfffff bios
00003000:004fffff me
00001000:00002fff gbe

Write Examples

X200 Write

$ sudo ./flashrom -p internal -w coreboot.rom

X230 Write

Warning
This might brick your Laptop.

In order keep the EC idle (hopefully), speakers have been muted and radio has been switched off by kill-switch. All user applications (Browser, File Viewer, etc.) have been shut down except one terminal window. Host System: Trisquel8

To get a typical SPI Chip layout file, see section “X230 Readout”, above.

trisquel@ZC-Machine:~/Desktop/flashrom$ sudo ./flashrom -p internal:laptop=force_I_want_a_brick --layout x230-layout.txt --image bios -w x230-coreboot.rom
[sudo] password for trisquel:
flashrom v1.0 on Linux 4.4.0-131-generic (x86_64)
flashrom is free software, get the source code at https://flashrom.org
Using region: "bios".
Using clock_gettime for delay loops (clk_id: 1, resolution: 1ns).
coreboot table found at 0xbff79000.
========================================================================
WARNING! You seem to be running flashrom on an unsupported laptop.
Laptops, notebooks and netbooks are difficult to support and we
recommend to use the vendor flashing utility. The embedded controller
(EC) in these machines often interacts badly with flashing.
See the manpage and https://flashrom.org/Laptops for details.
If flash is shared with the EC, erase is guaranteed to brick your laptop
and write may brick your laptop.
Read and probe may irritate your EC and cause fan failure, backlight
failure and sudden poweroff.
You have been warned.
========================================================================
Proceeding anyway because user forced us to.
Found chipset "Intel QM77".
Enabling flash write... Warning: SPI Configuration Lockdown activated.
Enabling hardware sequencing due to multiple flash chips detected.
OK.
Found Programmer flash chip "Opaque flash chip" (12288 kB, Programmer-specific) mapped at physical address 0x0000000000000000.
Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.

Main Page | Related Pages | List of Files