Install Libreboot on Lenovo ThinkPad W541/W540


Return to index

Specifications
Manufacturer Lenovo
Name ThinkPad w540/w541
Released 2013
Chipset Intel QM87
CPU Socket G3, Intel Haswell
Graphics Intel HD 4600
Display 15.6" 1920x1080 -> 2880x1620
Memory 32/16GB DDR3L DIMMs (4/2x8 GB)
Architecture x86-64-v3 (+ older)
Original boot firmware Lenovo UEFI firmware
Intel ME/AMD PSP Present. Disabled with me_cleaner.
Flash chip SOIC-8 16MB/128Mbit
W+: Works without vendor firmware; 
N: Doesn't work; 
W*: Works with vendor firmware; 
U: Untested; 
P+: Partially works; 
P*: Partially works with vendor firmware
?: UNKNOWN AT THIS TIME
Features
Internal flashing with original boot firmware N
Display (if Intel GPU) W+
Display (discrete GPU, SeaBIOS payload only) N
Audio W+
RAM Init W*

Get the ROM image

Download from release

If you’re using a release ROM, please ensure that you’ve inserted extra firmware required refer to the guide for that (, failure to adhere to this advice will result in a bricked machine):

Build from source

./mk -b coreboot lenovo_thinkpad_w541_12mb

Internal/Software Flashing

Default Libreboot firmwares updatable.

External/Hardware Flashing

You can use dd to easily split your rom into the two separate portions for external flashing. SPI1 is an 8MB flash, representing the first 8MB from offset zero, in your ROM image file. Thus:

dd if=libreboot.rom of=spi1_8mb.rom bs=1M count=8
dd if=libreboot.rom of=spi2_4mb.rom bs=1M skip=8

Flash the 4MB chip with spi2_4mb.rom, and the 8MB chip with spi1_8mb.rom. Don’t worry about knowing which chip is which on a standard setup; flashprog will let you know if the image size is incorrect for the chip you’re flashing.

Disassembly

No disassembly pics yet. The W540/T540p hardware maintenance manual also applies to W541:

This shows disassembly. When you disassemble, and get to flashing, please note:

MOSI/MISO lines are linked between the two flash ICs, at zero ohms. This is OK for internal flashing and normal operation, because the PCH turns each chip on or off as needed, by controlling each IC’s own chip select pin, which is pin 1.

When you wire the clip, to flash one of the ICs, the same voltage rail also turns on the other IC and the other IC’s own chip-select is in a floating state, which in practice means random logic state; in other words, the other flash may or may not be active, randomly.

This means that external flashing would not ordinarily work, unless you use the following trick:

Use a test hook wired to VCC (+3.3v), to pull the other flash’s chip-select high. So: when flashing one of the two ICs, the other chip must have pin 1 connected to VCC. You can do this with the same 3.3v power source that you use on pin 8 of the chip that you’re flashing. Ideally you should pull the other chip select high via 47ohm resistor, which should be enough to prevent damage in the case of accidentally shorting the wrong pin.

Doing this means that you disable the chip you’re not flashing. It’s very important that you ensure only the one you want to flash is active, when using an external flasher.

This is not required for internal flashing. It is only required for external flashing.

If you do it right, the chips should flash reliably. This same trick must be used when flashing either of the chips.

You can now proceed to flash this machine.

Device Specific Quirks

thinkpad_acpi Issue

Does not load correctly on the W540/W541. If you encounter this issue, check this page for details as to how to fix this.

Expanded_Specifications

Specifications
Manufacturer Lenovo
Name/Variant Thinkpad W540/W541
Released 2013
Chipset Intel QM87
CPU Socket G3, Intel 4th gen. processors
Graphics Intel HD 4600
Display 15.6" 1920x1080 -> 2880x1620
Memory DDR3L SODIMMs (max. 32/16 GB, 4/2x8 GB)
Audio Realtek ALC3232
Networking Intel I217-LM, Intel Dual Band Wireless-AC 7260, Optional modules for 8470p; 3G/4G
Storage connectors 2x SATA III (2nd from replaced CD/DVD RW drive), mSATA III in place of WWAN
I/O Ports on Left VGA, mDisplayPort, USB 2.0, USB 3.0, ExpressCard 34, SD/MMC card reader, Jack audio in (mic, speaker)
I/O Ports on Right Security cable slot (Kensington lock), USB 2.0, USB 3.0, CD/DVD RW, Smartcard Reader
I/O Ports on Back RJ-45 1GbE (Ethernet)
I/O Ports on Bottom Custom dock connector*1

*1 Compatible ThinkPad Docks: 40A0 (Basic), 40A1 (Pro), 40A2 (Ultra)

Markdown file for this page: https://libreboot.org/docs/install/w541_external.md

Site map

This HTML page was generated by the Libreboot Static Site Generator.