x200.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <style type="text/css">
  7. @import url('../css/main.css');
  8. </style>
  9. <title>ThinkPad X200</title>
  10. </head>
  11. <body>
  12. <div class="section">
  13. <h1 id="pagetop">ThinkPad X200</h1>
  14. <p>
  15. It is believed that all X200 laptops are compatible. X200S and X200 Tablet will
  16. also work, <a href="#x200s">depending on the configuration</a>.
  17. </p>
  18. <p>
  19. It *might* be possible to put an X200 motherboard in an X201 chassis, though this is currently untested
  20. by the libreboot project. The same may also apply between X200S and X201S; again, this is untested.
  21. <b>It's most likely true.</b>
  22. </p>
  23. <p>
  24. There are two possible flash chip sizes for the X200: 4MiB (32Mbit) or 8MiB (64Mbit).
  25. This can be identified by the type of flash chip below the palmrest: 4MiB is SOIC-8, 8MiB
  26. is SOIC-16.
  27. </p>
  28. <p>
  29. <b>The X200 laptops come with the ME (and sometimes AMT in addition) before flashing libreboot. Libreboot disables and removes it
  30. by using a modified descriptor: see <a href="gm45_remove_me.html">gm45_remove_me.html</a></b> (contains notes, plus
  31. instructions)
  32. </p>
  33. <p>
  34. Flashing instructions can be found at <a href="../install/index.html#flashrom">../install/index.html#flashrom</a>
  35. </p>
  36. <p>
  37. <a href="index.html">Back to previous index</a>.
  38. </p>
  39. </div>
  40. <div class="section">
  41. <h2 id="compatibility_noblobs">Compatibility (without blobs)</h2>
  42. <div class="subsection">
  43. <h3 id="hwvirt">Hardware virtualization (vt-x)</h3>
  44. <p>
  45. The X200, when run without CPU microcode updates in coreboot, currently kernel panics
  46. if running QEMU with vt-x enabled on 2 cores for the guest. With a single core enabled
  47. for the guest, the guest panics (but the host is fine). Working around this in QEMU
  48. might be possible; if not, software virtualization should work fine (it's just slower).
  49. </p>
  50. <p>
  51. On GM45 hardware (with libreboot), make sure that the <i>kvm</i> and <i>kvm_intel</i> kernel modules
  52. are not loaded, when using QEMU.
  53. </p>
  54. <p>
  55. The following errata datasheet from Intel might help with investigation:
  56. <a href="http://download.intel.com/design/mobile/specupdt/320121.pdf">http://download.intel.com/design/mobile/specupdt/320121.pdf</a>
  57. </p>
  58. </div>
  59. </div>
  60. <div class="section">
  61. <h2 id="x200s">X200S and X200 Tablet.</h2>
  62. <p>
  63. X200S and X200 Tablet have raminit issues at the time of writing
  64. (GS45 chipset. X200 uses GM45).
  65. </p>
  66. <p>
  67. X200S and X200 Tablet are known to work, but only with certain CPU+RAM configurations.
  68. The current stumbling block is RCOMP and SFF, mentioned in
  69. <a href="https://www.cs.cmu.edu/~410/doc/minimal_boot.pdf">https://www.cs.cmu.edu/~410/doc/minimal_boot.pdf</a>.
  70. </p>
  71. <p>
  72. The issues mostly relate to raminit (memory initialization). With an
  73. unpatched coreboot, you get the following: <a href="text/x200s/cblog00.txt">text/x200s/cblog00.txt</a>.
  74. No SODIMM combination that was tested would work. At first glance, it looks
  75. like GS45 (chipset that X200S uses. X200 uses GM45) is unsupported, but
  76. there is a workaround that can be used to make certain models of the X200S
  77. work, depending on the RAM.
  78. </p>
  79. <p>
  80. The datasheet for GS45 describes two modes: low-performance and
  81. high-performance. Low performance uses the SU range of ultra-low
  82. voltage procesors (SU9400, for example), and high-performance uses the
  83. SL range of processors (SL9400, for example). According to datasheets,
  84. GS45 behaves very similarly to GM45 when operating in high-performance
  85. mode.
  86. </p>
  87. <p>
  88. The theory then was that you could simply remove
  89. the checks in coreboot and make it pass GS45 off as GM45; the idea is
  90. that, with a high-performance mode CPU (SL9400, for example) it would
  91. just boot up and work.
  92. </p>
  93. <p>
  94. This suspicion was confirmed with the following log:
  95. <a href="text/x200s/cblog01.txt">text/x200s/cblog01.txt</a>.
  96. The memory modules in this case are 2x4GB. <s><b>However, not all
  97. configurations work: <a href="text/x200s/cblog02.txt">text/x200s/cblog02.txt</a> (2x2GB)
  98. and <a href="text/x200s/cblog03.txt">text/x200s/cblog03.txt</a> (1x2GB)
  99. show a failed bootup.</b></s> <i>False alarm. The modules were mixed (non-matching). X200S
  100. with high-performance mode CPU will work so long as you use matching memory modules
  101. (doesn't matter what size).</i>
  102. </p>
  103. <p>
  104. This was then pushed as a patch for coreboot, which can be found at
  105. <a href="http://review.coreboot.org/#/c/7786/">http://review.coreboot.org/#/c/7786/</a>
  106. (libreboot merges this patch in coreboot-libre now. Check the 'getcb' script in
  107. src or git).
  108. </p>
  109. <div class="subsection">
  110. <h3 id="x200s_raminit">Proper GS45 raminit</h3>
  111. <p>
  112. A new northbridge gs45 should be added to coreboot, based on gm45,
  113. and a new port x200st (X200S and X200T) should be added based on
  114. the x200 port.
  115. </p>
  116. <p>
  117. This port would have proper raminit. Alternatively, gs45 (if
  118. raminit is taken to be the only issue with it) can be part of
  119. gm45 northbridge support (and X200S/Tablet being part of the X200
  120. port) with conditional checks in the raminit that make raminit
  121. work differently (as required) for GS45. nico_h and pgeorgi/patrickg
  122. in the coreboot IRC channel should know more about raminit on gm45
  123. and likely gs45.
  124. </p>
  125. <p>
  126. pgeorgi recommends to run SerialICE on the factory BIOS (for X200S),
  127. comparing it with X200 (factory BIOS) and X200 (gm45 raminit code
  128. in coreboot), to see what the differences are. Then tweak raminit
  129. code based on that.
  130. </p>
  131. </div>
  132. </div>
  133. <div class="section">
  134. <h2>Trouble undocking (button doesn't work)</h2>
  135. <p>
  136. This person seems to have a workaround:
  137. <a href="https://github.com/the-unconventional/libreboot-undock">https://github.com/the-unconventional/libreboot-undock</a>
  138. </p>
  139. </div>
  140. <div class="section">
  141. <h2 id="lcd_supported_list">LCD compatibility list</h2>
  142. <p>
  143. LCD panel list (X200 panels listed there):
  144. <a href="http://www.thinkwiki.org/wiki/TFT_display">http://www.thinkwiki.org/wiki/TFT_display</a>
  145. </p>
  146. <p>
  147. All LCD panels for the X200, X200S and X200 Tablet are known to work.
  148. </p>
  149. <p>
  150. <a href="#pagetop">Back to top of page.</a>
  151. </p>
  152. <div class="subsection">
  153. <h3 id="ips">
  154. AFFS/IPS panels
  155. </h3>
  156. <h4>X200</h4>
  157. <p>
  158. Adapted from <a href="https://github.com/bibanon/Coreboot-ThinkPads/wiki/ThinkPad-X200">https://github.com/bibanon/Coreboot-ThinkPads/wiki/ThinkPad-X200</a>
  159. </p>
  160. <p>
  161. Look at wikipedia for difference between TN and IPS panels. IPS have much better colour/contrast than
  162. a regular TN, and will typically have good viewing angles.
  163. </p>
  164. <p>
  165. These seem to be from the X200 tablet. You need to find one without the glass touchscreen protection on it
  166. (might be able to remove it, though). It also must not have a digitizer on it (again, might be possible to
  167. just simply remove the digitizer).
  168. </p>
  169. <ul>
  170. <li>BOE-Hydis HV121WX4-120, HV121WX4-110 or HV121WX4-100 - cheap-ish, might be hard to find</li>
  171. <li>Samsung LTN121AP02-001 - common to find, cheap</li>
  172. </ul>
  173. <p>
  174. <b>If your X200 has an LED backlit panel in it, then you also need to get an inverter and harness cable
  175. that is compatible with the CCFL panels. To see which panel type you have, see
  176. <a href="#led_howtotell">#led_howtotell</a>. If you need the inverter/cable, here are part numbers:
  177. 44C9909 for CCFL LVDS cable with bluetooth and camera connections, and 42W8009 or 42W8010 for the
  178. inverter.</b>
  179. </p>
  180. <p>
  181. There are glossy and matte versions of these. Matte means anti-glare, which is what you want (in this authors opinion).
  182. </p>
  183. <p>
  184. Refer to the HMM (hardware maintenance manual) for how to replace the screen.
  185. </p>
  186. <p>Sources:</p>
  187. <ul>
  188. <li><a href="http://forum.thinkpads.com/viewtopic.php?f=2&t=84941">ThinkPad Forums - Matte AFFS Panel on X200</a></li>
  189. <li><a href="http://forum.thinkpads.com/viewtopic.php?p=660662#p660662">ThinkPad Forums - Parts for X200 AFFS Mod</a></li>
  190. <li><a href="http://thinkwiki.de/X200_Displayumbau">ThinkWiki.de - X200 Displayumbau</a> (achtung: du musst lesen und/oder spreche deutsch;
  191. oder ein freund fur hilfe)</li>
  192. </ul>
  193. </div>
  194. <div class="subsection">
  195. <h3>X200S</h3>
  196. <p>
  197. <a href="http://forum.thinkpads.com/viewtopic.php?p=618928#p618928">http://forum.thinkpads.com/viewtopic.php?p=618928#p618928</a>
  198. explains that the X200S screens/assemblies are thinner. You need to replace the whole lid with one from a normal X200/X201.
  199. </p>
  200. </div>
  201. <p>
  202. <a href="#pagetop">Back to top of page.</a>
  203. </p>
  204. </div>
  205. <div class="section">
  206. <h2 id="led_howtotell">How to tell if it has an LED or CCFL?</h2>
  207. <p>
  208. Some X200s have a CCFL backlight and some have an LED backlight, in their LCD panel. This
  209. also means that the inverters will vary, so you must be careful if ever replacing either
  210. the panel and/or inverter. (a CCFL inverter is high-voltage and will destroy an LED backlit panel).
  211. </p>
  212. <p>
  213. CCFLs contain mercury. An X200 with a CCFL backlight will (<b></b>unless it has been changed to an LED,
  214. with the correct inverter. Check with your supplier!</b>) the following: <i>&quot;This product
  215. contains Lithium Ion Battery, Lithium Battery and a lamp which contains mercury; dispose according to
  216. local, state or federal laws&quot;</i> (one with an LED backlit panel will say something different).
  217. </p>
  218. <p>
  219. <a href="#pagetop">Back to top of page.</a>
  220. </p>
  221. </div>
  222. <div class="section">
  223. <h2 id="regdumps">Hardware register dumps</h2>
  224. <p>
  225. The coreboot wiki <a href="http://www.coreboot.org/Motherboard_Porting_Guide">shows</a>
  226. how to collect various logs useful in porting to new
  227. boards. Following are outputs from the X200:
  228. </p>
  229. <ul>
  230. <li>
  231. BIOS 3.15, EC 1.06
  232. <ul>
  233. <li><a href="hwdumps/x200/">hwdumps/x200/</a></li>
  234. </ul>
  235. </li>
  236. </ul>
  237. </div>
  238. <div class="section">
  239. <h1 id="ram_s3_microcode">RAM, S3 and microcode updates</h1>
  240. <p>
  241. Not all memory modules work. Most of the default ones do, but you have to be careful
  242. when upgrading to 8GiB; some modules work, some don't.
  243. </p>
  244. <p>
  245. pehjota started collecting some steppings for different CPUs on several X200 laptops.
  246. You can get the CPUID by running: <br/>
  247. $ <b>dmesg | sed -n 's/^.* microcode: CPU0 sig=0x\([^,]*\),.*$/\1/p'</b>
  248. </p>
  249. <p>
  250. What pehjota wrote:
  251. The laptops that have issues resuming from suspend, as well as a laptop that (as I mentioned earlier in #libreboot) won't boot with any Samsung DIMMs, all have CPUID 0x10676 (stepping M0).
  252. </p>
  253. <p>
  254. What pehjota wrote:
  255. Laptops with CPUID 0x167A (stepping R0) resume properly every time and work with Samsung DIMMs. I'll
  256. need to do more testing on more units to better confirm these trends, but it looks like the M0 microcode
  257. is very buggy. That would also explain why I didn't have issues with Samsung DIMMs with the Lenovo BIOS
  258. (which would have microcode updates). I wonder if VT-x works on R0.
  259. </p>
  260. <p>
  261. What pehjota wrote:
  262. As I said, 10676 is M0 and 1067A is R0; those are the two CPUIDs and steppings for Intel Core 2 Duo P8xxx CPUs with factory microcode. (1067 is the family and model, and 6 or A is the stepping ID.)
  263. </p>
  264. <p>
  265. <b>
  266. TODO: check the CPUIDs and test S3 resume and/or KVM on any C2D systems (including non-P8xxx ones, which I don't have here) you have available. I'd be curious if you could confirm these results.
  267. </b>
  268. It might not be coreboot that's buggy with raminit/S3; it might just be down to the microcode updates.
  269. </p>
  270. </div>
  271. <div class="section">
  272. <h2 id="unsorted">Unsorted notes</h2>
  273. <pre>
  274. &lt;sgsit&gt; do you know if it's possible to flash thinkpads over the LPC debug connector at the front edge?
  275. &lt;sgsit&gt; that would make life much easier for systems like this
  276. &lt;sgsit&gt; all the Wistron manufactured systems have this thing called a "golden finger", normally at the front edge of the board
  277. &lt;sgsit&gt; you can plug a board in which gives diagnostic codes but i'm wondering whether it is capable of more
  278. &lt;sgsit&gt; <a href="http://www.endeer.cz/bios.tools/bios.html">http://www.endeer.cz/bios.tools/bios.html</a>
  279. </pre>
  280. </div>
  281. <div class="section">
  282. <p>
  283. Copyright &copy; 2014, 2015 Francis Rowe &lt;info@gluglug.org.uk&gt;<br/>
  284. Copyright &copy; 2015 Patrick &quot;P. J.&quot; McDermott &lt;pj@pehjota.net&gt;<br/>
  285. Permission is granted to copy, distribute and/or modify this document
  286. under the terms of the GNU Free Documentation License, Version 1.3
  287. or any later version published by the Free Software Foundation;
  288. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
  289. A copy of the license can be found at <a href="../gfdl-1.3.txt">../gfdl-1.3.txt</a>
  290. </p>
  291. <p>
  292. Updated versions of the license (when available) can be found at
  293. <a href="https://www.gnu.org/licenses/licenses.html">https://www.gnu.org/licenses/licenses.html</a>
  294. </p>
  295. <p>
  296. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
  297. EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
  298. AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
  299. ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
  300. IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
  301. WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
  302. PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
  303. ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
  304. KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
  305. ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
  306. </p>
  307. <p>
  308. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
  309. TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
  310. NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
  311. INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
  312. COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
  313. USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
  314. ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
  315. DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
  316. IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
  317. </p>
  318. <p>
  319. The disclaimer of warranties and limitation of liability provided
  320. above shall be interpreted in a manner that, to the extent
  321. possible, most closely approximates an absolute disclaimer and
  322. waiver of all liability.
  323. </p>
  324. </div>
  325. </body>
  326. </html>