x200.html 15 KB

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