#: This will be slow, and shall generate an erase error at e.g. 0x1f0000 when working with a 2 Mbyte flash chip. See [http://www.flashrom.org/pipermail/flashrom/2012-April/009121.html Peter's mail] before you start to panic.

+

#: This will be slow, it will output errors for addresses 0x0 and 0x1f0000 when working with a 2 Mbyte flash chip, and it will say "FAILED!" at the end, see [http://www.flashrom.org/pipermail/flashrom/2012-April/009121.html Peter's mail] before you panic.

# Power cycle the machine (i.e. a cold boot, not just a reboot), now starting with coreboot

# Power cycle the machine (i.e. a cold boot, not just a reboot), now starting with coreboot

# Undo the flashrom patch, so that you have a stock flashrom

# Undo the flashrom patch, so that you have a stock flashrom

−

# Run <code>bucts 0</code> (if you run bucts 0, do not power off and run the next command(s))

+

# Run <code>bucts 0</code> (do '''NOT''' power off before running flashrom in the next step, or you '''will''' brick the machine!)

#: This will successfully overwrite the entire flash chip, including the last 64k that were write protected with the factory BIOS.

#: This will successfully overwrite the entire flash chip, including the last 64k that were write protected with the factory BIOS.

Revision as of 19:12, 24 September 2012

Flashing on the laptop instructions.

Lenovo X60, X60s, T60 and T60p flashing instructions.

These Lenovo laptops have a register that must be flipped before coreboot can be flashed.

For those/some models with SPI flash chips you have also to modify flashrom. Because the chipset locks down the available commands that flashrom can send to the flash chip, you also need to change the flashrom source in a way that is not suitable to upstream. Flash chips can be identified by various commands (REMS*, RDID etc.). Some of them reply with an ID for the vendor and the exact chip model; others just reply with a single byte which is fine if there is only a small number of chips to distinguish, but won't work for the huge number of flash chips known to flashrom. The problem with the vendor BIOS is that it forbids the higher quality identification commands, so you need to force flashrom to use the lower quality opcode for the chip in your Thinkpad. You have to know the chip model beforehand (e.g. by inspection).