Board:lenovo/x60: Difference between revisions

From coreboot
Jump to navigation Jump to search
(→‎cbmem console: Obsolete)
(clean up. remove obsolete info.)
Line 104: Line 104:
== proprietary components status ==
== proprietary components status ==
* CPU Microcode (optional?) - works fine without. See [http://download.intel.com/design/mobile/SPECUPDT/30922214.pdf http://download.intel.com/design/mobile/SPECUPDT/30922214.pdf]
* CPU Microcode (optional?) - works fine without. See [http://download.intel.com/design/mobile/SPECUPDT/30922214.pdf http://download.intel.com/design/mobile/SPECUPDT/30922214.pdf]
* VGA option rom (optional): without it you will get no graphics during early boot, old kernel versions(like the one in trisquel 6) are able to initializes the intel graphic card. Note that the replacement doesn't work yet with seabios but works with grub(as a payload) or libpayload based payloads.
* VGA option rom (optional): Native graphics initialization (free replacement) is also available and merged in the master repo. Note that the replacement doesn't work yet with seabios but works with grub(as a payload) or libpayload based payloads. SeaBIOS can be used with SeaVGABIOS (coreboot linear framebuffer option in seabios menuconfig) but the native graphics implementation currently lacks INT 10H and VBT.
* EC(Embedded Controller) =>  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)


== TODO ==
== TODO ==
=== Non-free components replacements ===
=== Non-free components replacements ===
* <s>Replace the non-free VGA option rom by making native graphics init work.</s> submited for review. (see http://review.coreboot.org/#/c/5320)
* <s>Replace the non-free VGA option rom by making native graphics init work.</s> submited for review. (native graphics available in master)
* Create a Native graphics<->VGA option rom. '''SeaVGABIOS (part of SeaBIOS) might be the answer. We need to look into that.'''
* Create a Native graphics<->VGA option rom. '''SeaVGABIOS (part of SeaBIOS) might be the answer. INT 10H and VBT are missing in native graphics.'''
* <s>Make backlight work without the non-free option rom.</s> See [http://www.coreboot.org/Board:lenovo/x60#Enable_backlight_controls_on_X60_.28with_native_gpu_init_instead_of_VGA_ROM.29]
* <s>Make backlight work without the non-free option rom.</s> See 6731 on review.coreboot.org
==== VGA Option ROM / VBIOS replacement (native graphics) ====
The [[VGA_support|VGA option ROM]] is proprietary. If you have an X60,X60s or X60t, GNUtoo (et al) has developed a free replacement which is under review, but you can use it right now:
* [http://www.coreboot.org/User:Fchmmr HOWTO: Build coreboot.rom with GRUB2, native graphics (free replacement for the proprietary VBIOS / VGA Option ROM) and without the nonfree microcode]


==== Problems in native graphics code exposed by recent kernels ====
== Enable backlight controls on X60 (with native gpu init instead of VGA ROM) ==
 
It was discovered that while this code seems to work fine on kernels older than linux 3.12.
 
On 3.12 and later kernels the i915 driver became unstable. Causing broken/glitchy 3D. and performance bugs.
 
The current suspicion is that linux had a bug which caused it to miss stolen memory altogether on this machine and hence disable parts of code.
This bug was corrected in:
[https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=17fec8a08698bcab98788e1e89f5b8e7502ababd 17fec8a08698bcab98788e1e89f5b8e7502ababd]
 
Which was identified by git bisect, to be the cause of the driver crashes using native vga on the x60.
 
The native vga init code in coreboot needs to be corrected to have more engineered memory management.
In the interim users have attempted running patched linux 3.12 kernels which revert commit 17fec. To apparent success.


Reported upstream in the Freedesktop Bugzilla as [https://bugs.freedesktop.org/show_bug.cgi?id=79038 ticket #79038][https://01.org/linuxgraphics/documentation/how-report-bugs How to file a good bug report?].
See [http://libreboot.org/docs/future/old.html#x60_native_notes x60 notes] and [http://libreboot.org/docs/future/old.html#t60_native_notes t60 notes].


'''There is a fix now. [http://review.coreboot.org/#/c/5927/] (for replay code) and has been adapted in libreboot.
This is one way to get backlight controls working. Another method is shown in changeset 6731 on review.coreboot.org.
Apply the following patch on top of coreboot with 5320 or 5320+5345: [http://paste.debian.net/plain/115409 patch].  
This was investigated by PaulePanter in coreboot IRC channel, notes were stored at: [http://libreboot.org/docs/future/index.html#x60_cb5927_testing here] and [http://libreboot.org/docs/future/index.html#5320_kernel312fix here]'''
 
== Enable backlight controls on X60 (with native gpu init instead of VGA ROM) ==
 
[http://libreboot.org/docs/release.html libreboot has changeset 5320 and 5345 from gerrit] with [http://libreboot.org/docs/future/index.html#x60_native_notes backlight controls]




=== Other things ===
=== Other things ===
Battery indictor in various DE's can be unreliable. (showing 50% available for instance, when fully charged).
Using CLI tools to show battery info can show a sudden(brief) spike in reported power usage when disconnecting AC.
* Add support for more batteries in ACPI.
* Add support for more batteries in ACPI.
* Make the wifi card and/or the laptop produce less heat.
* Make the wifi card and/or the laptop produce less heat.
* Finish and merge support for thinkpad_acpi linux kernel module
* Sometimes some dock USB port aren't initialized => fix that
* Sometimes some dock USB port aren't initialized => fix that
* Fix that warning:  
* Fix that warning:  
Line 188: Line 162:
Note:
Note:
Boot without these options, and there will be a high pitched noise coming from the board when the system is idle.
Boot without these options, and there will be a high pitched noise coming from the board when the system is idle.
A better workaround is to boot without these options, and run '''sudo powertop'''
A better workaround is to boot without these options, and run '''sudo powertop --auto-tune'''


Under "tunables", set all options to "Good" settings. This kills the noise.
Alternatively run powertop without arguments. Under "tunables", set all options to "Good" settings. This kills the noise.
'''By using this, power consumption falls lower: near the levels in Lenovo BIOS''' (better battery life).
'''By using this, power consumption falls lower: near the levels in Lenovo BIOS''' (better battery life).



Revision as of 08:47, 23 September 2014

works fine with Linux, some ACPI issues with Windows needs to be fixed.

Lenovo ThinkPad X60

Except where noted all status items apply to:

  • x60
  • x60s
  • x60 tablet

Aside from pre-sales configuration (display, processor speed, optional components) the three models appear identical. It is believed that they share a single schematic.

Installation and Flashing

Tutorial on Installation and flashing the x60 or t60:

Which used to be the main x60 page:

Board:lenovo/x60/Installation

Status

Device/functionality Status Comments
CPU
CPU works OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK Core Duo Mobile (L2300), PBGA479
L1 cache enabled OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
L2 cache enabled OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
L3 cache enabled OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Multiple CPU support OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Multi-core support OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
Hardware virtualization OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
RAM
EDO OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
SDRAM OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
SO-DIMM OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
DDR OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
DDR2 OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
DDR3 OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Dual channel support OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
ECC support OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
On-board Hardware
On-board IDE 3.5" OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
On-board IDE 2.5" OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
On-board SATA OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
On-board SCSI OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
On-board USB OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
On-board VGA OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
On-board Ethernet OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK Intel 82573L
On-board Audio OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
On-board Modem OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | Untested
On-board FireWire OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
On-board Smartcard reader OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
On-board CompactFlash OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
On-board PCMCIA OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK Ricoh rl5c476
On-board Wifi OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
On-board Bluetooth OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
On-board SD card reader OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Add-on slots/cards
ISA add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Audio/Modem-Riser (AMR/CNR) cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
PCI add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Mini-PCI add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
Mini-PCI-Express add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | Unknown
PCI-X add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
AGP graphics cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
PCI Express x1 add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
PCI Express x2 add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
PCI Express x4 add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
PCI Express x8 add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
PCI Express x16 add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
PCI Express x32 add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
HTX add-on cards OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Legacy / Super I/O
Floppy OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Serial port 1 (COM1) OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK located in Ultrabase X6
Serial port 2 (COM2) OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Parallel port OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
PS/2 keyboard OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
PS/2 mouse OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Game port OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Infrared OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | WIP Submited for review
PC speaker OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
DiskOnChip OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Input
Trackpoint OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Touchpad OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Fn Hotkeys OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Fingerprint Reader OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Laptop
Docking VGA OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Docking LAN OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Docking USB OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Docking Audio OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Docking Displayport OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Thinklight OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Webcam OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Miscellaneous
Sensors / fan control OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
Hardware watchdog OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
SMBus OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
CAN bus OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
CPU frequency scaling OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
Other powersaving features OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
ACPI OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
Reboot OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
Poweroff OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
Suspend OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
Nonstandard LEDs OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK LEDs are controlled by Embedded Controller (EC). Working without special support.
High precision event timers (HPET) OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK
Random number generator (RNG) OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | N/A
Wake on modem ring OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | Unknown
Wake on LAN OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | Unknown
Wake on keyboard OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | Unknown
Wake on mouse OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | Unknown
TPM OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | Unknown
Flashrom OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK See Lenovo_x60x
Laptop specific
Tablet Touchscreen OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK x60 tablet wacom "penabled"
thinkpad_acpi module compatibility OK=lime | TODO=red | No=red | WIP=orange | Untested=yellow | N/A=lightgray | yellow }}" | OK modprobe thinkpad_acpi works

proprietary components status

  • CPU Microcode (optional?) - works fine without. See http://download.intel.com/design/mobile/SPECUPDT/30922214.pdf
  • VGA option rom (optional): Native graphics initialization (free replacement) is also available and merged in the master repo. Note that the replacement doesn't work yet with seabios but works with grub(as a payload) or libpayload based payloads. SeaBIOS can be used with SeaVGABIOS (coreboot linear framebuffer option in seabios menuconfig) but the native graphics implementation currently lacks INT 10H and VBT.
  • EC(Embedded Controller) => you do not have to touch it(just leave it where it is)

TODO

Non-free components replacements

  • Replace the non-free VGA option rom by making native graphics init work. submited for review. (native graphics available in master)
  • Create a Native graphics<->VGA option rom. SeaVGABIOS (part of SeaBIOS) might be the answer. INT 10H and VBT are missing in native graphics.
  • Make backlight work without the non-free option rom. See 6731 on review.coreboot.org

Enable backlight controls on X60 (with native gpu init instead of VGA ROM)

See x60 notes and t60 notes.

This is one way to get backlight controls working. Another method is shown in changeset 6731 on review.coreboot.org.


Other things

  • Add support for more batteries in ACPI.
  • Make the wifi card and/or the laptop produce less heat.
  • Sometimes some dock USB port aren't initialized => fix that
  • Fix that warning:
[   14.566817] ACPI Warning: 0x00000400-0x0000041f SystemIO conflicts with Region \_SB_.PCI0.SBUS.SMBI 1 (20130117/utaddress-251)

By using that advise:

<phcoder> GNUtoo-x60: in this case it looks like same range is declared twice in DSDT/SSDT

Features

nvramtool

Without the VGA optiorn rom nvramtool says:

# ./nvramtool -a
nvramtool: coreboot table not found.  coreboot does not appear to
        be installed on this system.  Scanning for the table produced the
        following results:

            0 valid signatures were found with bad header checksums.
            0 valid headers were found with bad table checksums.

Fortunately there is a workarround:

# ./nvramtool -y ../../src/mainboard/lenovo/x60/cmos.layout -a
boot_option = Fallback
last_boot = Fallback
baud_rate = 115200
debug_level = Emergency
hyper_threading = Enable
nmi = Disable
# Bad value -> boot_devices
boot_default = 0x40
cmos_defaults_loaded = Yes
lpt = Disable
volume = 0xc
tft_brightness = 0xf
first_battery = Primary
bluetooth = Disable

"whining" (buzzing) noise when idle

Use "idle=halt" (higher power consumption) or "processor.max_cstate=2" (higher power consumption, but not as bad) kernel parameter in GRUB.

Note: Boot without these options, and there will be a high pitched noise coming from the board when the system is idle. A better workaround is to boot without these options, and run sudo powertop --auto-tune

Alternatively run powertop without arguments. Under "tunables", set all options to "Good" settings. This kills the noise. By using this, power consumption falls lower: near the levels in Lenovo BIOS (better battery life).

cbmem console Howto

When configuring coreboot with "make menuconfig" Go in console:

Console  --->

Enable it:

[*] Send console output to a CBMEM buffer
(0x20000) Room allocated for console output in CBMEM
(0xc00) Room allocated for console output in Cache as RAM

Documentation