Difference between revisions of "Board:lenovo/t420"

From coreboot
Jump to: navigation, search
(tested: memory,msata,bluetooth)
(Windows & VGA option ROM)
Line 5: Line 5:
  
 
Issues:
 
Issues:
* The USB beside express card cannot funtion after S3 resume (work around: reload ehci-pci module)
+
* The USB beside express card cannot funtion after S3 resume if CONFIG_USBDEBUG is set (work around: reload ehci-pci module)
 +
* Badly seated RAM may prevent booting (not really a problem but coreboot is more suspicious to this than vendor BIOS)
  
 
Tested:
 
Tested:
 
* Ivy Bridge processor (see below. you need to modify the config, and it needs more testing)
 
* Ivy Bridge processor (see below. you need to modify the config, and it needs more testing)
* RAM module combinations of 4G+0, 4G+8G, 8G+8G
+
* RAM module combinations of 2G+0, 4G+0, 8G+0, 0+8G, 4G+8G, 8G+8G
 
* S3 (Suspend to RAM)
 
* S3 (Suspend to RAM)
 
* msata
 
* msata
Line 19: Line 20:
 
* bluetooth
 
* bluetooth
 
* Linux (through GRUB-as-payload)
 
* Linux (through GRUB-as-payload)
 +
* Windows (Sandy Bridge only, through SeaBIOS using a VGA blob from X230 vendor firmware, but still do not support Ivy Bridge)
 
* DVD-ROM drive
 
* DVD-ROM drive
 
* SD card slot
 
* SD card slot
Line 31: Line 33:
 
* Video (VGA and Displayport)
 
* Video (VGA and Displayport)
 
* Expresscard slot (including hotplugging)
 
* Expresscard slot (including hotplugging)
* Windows
 
 
* mini pci-e wwan
 
* mini pci-e wwan
 
* Fingerprint reader.
 
* Fingerprint reader.
Line 61: Line 62:
  
 
== Ivy Bridge processor support ==
 
== Ivy Bridge processor support ==
Sandy Bridge and Ivy Bridge processor use the same socket, so an Ivy Bridge processor can be installed. You must modify your .config file and replace all 'SANDYBRIDGE' to 'IVYBRIDGE' to support Ivy Bridge processor, otherwise system will halt when booting. And you can use a [http://review.coreboot.org/#/c/12087/ patch on gerrit] so you don't need to manually modify the config file.
+
Sandy Bridge and Ivy Bridge processor use the same socket, so an Ivy Bridge processor can be installed. Up to now only native graphics init works normally, using a VGA option ROM from an Ivy Bridge laptop (I tested it with an X230 VGA option ROM) still only supports Sandy Bridge graphics. You should use a [http://review.coreboot.org/#/c/12087/ patch on gerrit] so that coreboot can use the correct code for native graphics init.
  
 
Up to now, an i7-3720QM(QS version) is tested. You need the CPU microcode to make the system stable, otherwise VMX will not work and strange kernel panics will occur.
 
Up to now, an i7-3720QM(QS version) is tested. You need the CPU microcode to make the system stable, otherwise VMX will not work and strange kernel panics will occur.

Revision as of 12:57, 23 November 2015

Status

Thanks for your interest in Lenovo T420 port. The code has not been merged yet, you can see the code on gerrit and check it out.

ATTENTION: You must cherry-pick this patch before building.

Issues:

  • The USB beside express card cannot funtion after S3 resume if CONFIG_USBDEBUG is set (work around: reload ehci-pci module)
  • Badly seated RAM may prevent booting (not really a problem but coreboot is more suspicious to this than vendor BIOS)

Tested:

  • Ivy Bridge processor (see below. you need to modify the config, and it needs more testing)
  • RAM module combinations of 2G+0, 4G+0, 8G+0, 0+8G, 4G+8G, 8G+8G
  • S3 (Suspend to RAM)
  • msata
  • USB
  • Video (internal)
  • Sound (integrated speakers, integrated mic, external headphones, external mic)
  • LAN
  • mini-PCIe slots (wlan)
  • bluetooth
  • Linux (through GRUB-as-payload)
  • Windows (Sandy Bridge only, through SeaBIOS using a VGA blob from X230 vendor firmware, but still do not support Ivy Bridge)
  • DVD-ROM drive
  • SD card slot
  • trackpoint
  • touchpad
  • webcam
  • Fn hotkeys (backlight control, suspend, thinklight)
  • Thinklight
  • dock (tested with a TYPE 4337)

Not Tested:

  • Video (VGA and Displayport)
  • Expresscard slot (including hotplugging)
  • mini pci-e wwan
  • Fingerprint reader.
  • Thermal management

proprietary components status

  • CPU Microcode: strongly recommended if you want to use an Ivy Bridge processor
  • VGA option rom (optional): you need it if you want graphics in SeaBIOS but most payloads should work without it (text mode or corebootfb mode)
  • ME(Management Engine) => you do not have to touch it(just leave it where it is)
  • EC(Embedded Controller) => you do not have to touch it(just leave it where it is)

Flashing

T420 has an SOIC-8 flash chip of 8M. It's subdivided in roughly in 3 parts:

  • Descriptor (12K)
  • ME firmware (5M-12K)
  • System flash (3M)

ME firmware is not readable. Vendor firmware locks the flash and so you need to flash externally (unless until someone figures out a way around it).

Proceeds as follows:

  • Turn off your laptop, remove battery and AC adapter.
  • Disassemble the T420 laptop as the hardware maintenance manual says. You have to take out the mainboard, because the flash chip is under the magnesium stucture frame.
  • Connect your external SPI flasher to the SPI chip and flash it. Using an SOIC-8 clip is recommended.

When the laptop is running coreboot, you can reflash the firmware using flashrom:

 flashrom -p internal:laptop=force_I_want_a_brick -w <coreboot image>

Ivy Bridge processor support

Sandy Bridge and Ivy Bridge processor use the same socket, so an Ivy Bridge processor can be installed. Up to now only native graphics init works normally, using a VGA option ROM from an Ivy Bridge laptop (I tested it with an X230 VGA option ROM) still only supports Sandy Bridge graphics. You should use a patch on gerrit so that coreboot can use the correct code for native graphics init.

Up to now, an i7-3720QM(QS version) is tested. You need the CPU microcode to make the system stable, otherwise VMX will not work and strange kernel panics will occur.