t500_external.html 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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 T500: flashing tutorial (BeagleBone Black)</title>
  10. </head>
  11. <body>
  12. <div class="section">
  13. <h1 id="pagetop">Flashing the T500 with a BeagleBone Black</h1>
  14. <p>Initial flashing instructions for T500.</p>
  15. <p>
  16. This guide is for those who want libreboot on their ThinkPad T500
  17. while they still have the original Lenovo BIOS present. This guide
  18. can also be followed (adapted) if you brick your T500, to know how
  19. to recover.
  20. </p>
  21. <p><a href="index.html">Back to main index</a></p>
  22. </div>
  23. <div class="section">
  24. <h2 id="serial_port">Serial port</h2>
  25. <p>
  26. EHCI debug might not be needed. It has been reported that the docking station
  27. for this laptop has a serial port, so it might be possible to use that instead.
  28. </p>
  29. </div>
  30. <div class="section" id="cpu_compatibility">
  31. <h1>A note about CPUs</h1>
  32. <p>
  33. <a href="http://www.thinkwiki.org/wiki/Category:T500">ThinkWiki</a> has a list of CPUs
  34. for this system. The Core 2 Duo P8400, P8600 and P8700 are believed to work in libreboot.
  35. The T9600 was also tested on the T400 and confirmed working, so the T9400/T9500/T9550 probably
  36. also work, but they are untested.
  37. </p>
  38. <h2>Quad-core CPUs</h2>
  39. <p>
  40. Although blocked by lenovobios (as was reported), it is reported that there are quad-core CPUs
  41. for GM45. This laptop has socketed CPUs, so it might be possible to use them
  42. (they are untested in coreboot; support may have to be added).
  43. Core 2 Quad Q9000, Q9100 or QX9300.
  44. </p>
  45. <p>
  46. Look at this link:<br/>
  47. <a href="https://en.wikipedia.org/wiki/List_of_Intel_Core_2_microprocessors#Quad-Core_Notebook_processors">https://en.wikipedia.org/wiki/List_of_Intel_Core_2_microprocessors#Quad-Core_Notebook_processors</a>
  48. </p>
  49. </div>
  50. <div class="section" id="switchable_graphics">
  51. <h1>A note about GPUs</h1>
  52. <p>
  53. Some models have an Intel GPU, while others have both an ATI and an Intel GPU; this
  54. is referred to as &quot;switchable graphics&quot;. In the <i>BIOS setup</i> programme
  55. for lenovobios, you can specify that the system will use one or the other (but not both).
  56. </p>
  57. <p>
  58. Libreboot is known to work on systems with only the Intel GPU, using native graphics initialization.
  59. On systems with switchable graphics, the Intel GPU is used and the ATI GPU is disabled, so
  60. native graphics initialization works all the same.
  61. </p>
  62. <h1>CPU paste required</h1>
  63. <p>
  64. See <a href="#paste">#paste</a>.
  65. </p>
  66. </div>
  67. <div class="section">
  68. <h1 id="flashchips">Flash chips</h1>
  69. <p>
  70. The T500 will use an 8MiB or 64Mb SOIC-16 chip (rare models
  71. will use a 4MiB or 32Mb SOIC-8 chip).
  72. </p>
  73. <p>
  74. To easily identify which size chip is present, before fully disassemblying:<br/>
  75. # <b>dmidecode | grep ROM\ Size</b><br/>
  76. or (on some distributions):<br/>
  77. $ <b>sudo dmidecode | grep ROM\ Size</b><br/>
  78. Example output:
  79. </p>
  80. <pre>
  81. # ROM Size: 8192 kB
  82. </pre>
  83. <p>
  84. <a href="#pagetop">Back to top of page.</a>
  85. </p>
  86. </div>
  87. <div class="section photos">
  88. <h1 id="macaddress">MAC address</h1>
  89. <p>
  90. On the T500, the MAC address for the onboard
  91. gigabit ethernet chipset is stored inside the flash chip,
  92. along with other configuration data.
  93. </p>
  94. <p>
  95. Keep a note of the MAC address before disassembly; this is
  96. very important, because you will need to insert this into
  97. the libreboot ROM image before flashing it.
  98. It will be written in one of these locations:
  99. </p>
  100. <p>
  101. <img src="images/t400/macaddress0.jpg" alt="" />
  102. <img src="images/t400/macaddress1.jpg" alt="" />
  103. <img src="images/x200/disassembly/0001.jpg" alt="" />
  104. </p>
  105. </div>
  106. <div class="section photos">
  107. <h1>Initial BBB configuration</h1>
  108. <p>
  109. Refer to <a href="bbb_setup.html">bbb_setup.html</a> for how to
  110. configure the BBB for flashing.
  111. </p>
  112. <p>
  113. The following shows how to connect clip to the BBB (on the P9 header), for SOIC-16 (clip: Pomona 5252):
  114. </p>
  115. <pre>
  116. POMONA 5252 (correlate with the BBB guide)
  117. === ethernet jack and VGA port ====
  118. NC - - 21
  119. 1 - - 17
  120. NC - - NC
  121. NC - - NC
  122. NC - - NC
  123. NC - - NC
  124. 18 - - 3.3V (PSU)
  125. 22 - - NC - this is pin 1 on the flash chip
  126. === SATA port ===
  127. <i>This is how you will connect. Numbers refer to pin numbers on the BBB, on the plugs near the DC jack.</i><br/>
  128. <img src="images/t400/0065.jpg" alt="" />
  129. </pre>
  130. <p>
  131. The following shows how to connect clip to the BBB (on the P9 header), for SOIC-8 (clip: Pomona 5250):
  132. </p>
  133. <pre>
  134. POMONA 5250 (correlate with the BBB guide)
  135. === RAM slots ====
  136. 18 - - 1
  137. 22 - - NC
  138. NC - - 21
  139. 3.3V (PSU) - - 17 - this is pin 1 on the flash chip
  140. === slot where the AC jack is connected ===<br/>
  141. <i>This is how you will connect. Numbers refer to pin numbers on the BBB, on the plugs near the DC jack.</i><br/>
  142. <img src="images/t500/0060.jpg" alt="" />
  143. </pre>
  144. <h2>
  145. The procedure
  146. </h2>
  147. <p>
  148. Remove all screws:<br/>
  149. <img src="images/t500/0000.jpg" alt="" /><br/>
  150. It is also advisable to, throughout the disassembly,
  151. place any screws and/or components that you removed in
  152. the same layout or arrangement. The follow photos demonstrate
  153. this:<br/>
  154. <img src="images/t500/0001.jpg" alt="" />
  155. <img src="images/t500/0002.jpg" alt="" />
  156. </p>
  157. <p>
  158. Remove the HDD/SSD and optical drive:<br/>
  159. <img src="images/t500/0003.jpg" alt="" />
  160. <img src="images/t500/0004.jpg" alt="" />
  161. </p>
  162. <p>
  163. Remove the palm rest:<br/>
  164. <img src="images/t500/0005.jpg" alt="" />
  165. <img src="images/t500/0006.jpg" alt="" />
  166. </p>
  167. <p>
  168. Remove the keyboard and rear bezel:<br/>
  169. <img src="images/t500/0007.jpg" alt="" />
  170. <img src="images/t500/0008.jpg" alt="" />
  171. <img src="images/t500/0009.jpg" alt="" />
  172. <img src="images/t500/0010.jpg" alt="" />
  173. <img src="images/t500/0011.jpg" alt="" />
  174. <img src="images/t500/0012.jpg" alt="" />
  175. </p>
  176. <p>
  177. If you have a WWAN/3G card and/or sim card reader,
  178. remove them permanently. The WWAN-3G card has DMA, and
  179. proprietary firmware inside; the technology is identical
  180. to what is used in mobile phones, so it can also track
  181. your movements:<br/>
  182. <img src="images/t500/0013.jpg" alt="" />
  183. <img src="images/t500/0017.jpg" alt="" />
  184. <img src="images/t500/0018.jpg" alt="" />
  185. </p>
  186. <p>
  187. Remove this frame, and then remove the wifi chip:<br/>
  188. <img src="images/t500/0014.jpg" alt="" />
  189. <img src="images/t500/0015.jpg" alt="" />
  190. <img src="images/t500/0016.jpg" alt="" />
  191. </p>
  192. <p>
  193. Remove the speakers:<br/>
  194. <img src="images/t500/0019.jpg" alt="" />
  195. <img src="images/t500/0020.jpg" alt="" />
  196. <img src="images/t500/0021.jpg" alt="" />
  197. <img src="images/t500/0022.jpg" alt="" />
  198. <img src="images/t500/0023.jpg" alt="" />
  199. <img src="images/t500/0024.jpg" alt="" />
  200. <img src="images/t500/0025.jpg" alt="" />
  201. </p>
  202. <p>
  203. Remove the NVRAM battery (already removed in this photo):<br/>
  204. <img src="images/t500/0026.jpg" alt="" />
  205. </p>
  206. <p>
  207. When you re-assemble, you will be replacing the wifi chip
  208. with another. These two screws don't hold anything together,
  209. but they are included in your machine because the screw
  210. holes for half-height cards are a different size, so
  211. use these if you will be installing a half-height card:<br/>
  212. <img src="images/t500/0027.jpg" alt="" />
  213. </p>
  214. <p>
  215. Unroute the antenna wires:<br/>
  216. <img src="images/t500/0028.jpg" alt="" />
  217. <img src="images/t500/0029.jpg" alt="" />
  218. <img src="images/t500/0030.jpg" alt="" />
  219. <img src="images/t500/0031.jpg" alt="" />
  220. </p>
  221. <p>
  222. Disconnect the LCD cable from the motherboard:<br/>
  223. <img src="images/t500/0032.jpg" alt="" />
  224. <img src="images/t500/0033.jpg" alt="" />
  225. </p>
  226. <p>
  227. Remove the LCD assembly hinge screws, and then remove the LCD
  228. assembly:<br/>
  229. <img src="images/t500/0034.jpg" alt="" />
  230. <img src="images/t500/0035.jpg" alt="" />
  231. <img src="images/t500/0036.jpg" alt="" />
  232. </p>
  233. <p>
  234. Remove the fan and heatsink:<br/>
  235. <img src="images/t500/0037.jpg" alt="" />
  236. <img src="images/t500/0038.jpg" alt="" />
  237. <img src="images/t500/0039.jpg" alt="" />
  238. </p>
  239. <p>
  240. Remove this screw:<br/>
  241. <img src="images/t500/0040.jpg" alt="" />
  242. </p>
  243. <p>
  244. Remove these cables, keeping note of how and in what
  245. arrangement they are connected:<br/>
  246. <img src="images/t500/0041.jpg" alt="" />
  247. <img src="images/t500/0042.jpg" alt="" />
  248. <img src="images/t500/0043.jpg" alt="" />
  249. <img src="images/t500/0044.jpg" alt="" />
  250. <img src="images/t500/0045.jpg" alt="" />
  251. <img src="images/t500/0046.jpg" alt="" />
  252. <img src="images/t500/0047.jpg" alt="" />
  253. <img src="images/t500/0048.jpg" alt="" />
  254. <img src="images/t500/0049.jpg" alt="" />
  255. </p>
  256. <p>
  257. Disconnect the power jack:<br/>
  258. <img src="images/t500/0050.jpg" alt="" />
  259. <img src="images/t500/0051.jpg" alt="" />
  260. </p>
  261. <p>
  262. Remove the motherboard and cage from the base
  263. (the marked hole is where those cables were routed through):<br/>
  264. <img src="images/t500/0052.jpg" alt="" />
  265. <img src="images/t500/0053.jpg" alt="" />
  266. </p>
  267. <p>
  268. Remove all screws, arranging them in the same layout
  269. when placing the screws on a surface and marking each screw
  270. hole (this is to reduce the possibility of putting them
  271. back in the wrong holes):<br/>
  272. <img src="images/t500/0054.jpg" alt="" />
  273. <img src="images/t500/0055.jpg" alt="" />
  274. </p>
  275. <p>
  276. Also remove this:<br/>
  277. <img src="images/t500/0056.jpg" alt="" />
  278. <img src="images/t500/0057.jpg" alt="" />
  279. </p>
  280. <p>
  281. Separate the motherboard from the cage:<br/>
  282. <img src="images/t500/0058.jpg" alt="" />
  283. <img src="images/t500/0059.jpg" alt="" />
  284. </p>
  285. <p>
  286. The flash chip is next to the memory slots. On this
  287. machine, it was a SOIC-8 (4MiB or 32Mb) flash chip:<br/>
  288. <img src="images/t500/0060.jpg" alt="" />
  289. </p>
  290. <p>
  291. Connect your programmer, then connect GND and 3.3V<br/>
  292. <img src="images/t500/0061.jpg" alt="" /><br/>
  293. <img src="images/t400/0067.jpg" alt="" />
  294. <img src="images/t400/0069.jpg" alt="" />
  295. <img src="images/t400/0070.jpg" alt="" />
  296. <img src="images/t400/0071.jpg" alt="" />
  297. </p>
  298. <p>
  299. A dedicated 3.3V PSU was used to create this guide, but
  300. at ATX PSU is also fine:<br/>
  301. <img src="images/t400/0072.jpg" alt="" />
  302. </p>
  303. <p>
  304. Of course, make sure to turn on your PSU:<br/>
  305. <img src="images/x200/disassembly/0013.jpg" alt="" />
  306. </p>
  307. <p>
  308. Now, you should be ready to install libreboot.
  309. </p>
  310. <p>
  311. Flashrom binaries for ARM (tested on a BBB) are distributed in libreboot_util. Alternatively,
  312. libreboot also distributes flashrom source code which can be built.
  313. </p>
  314. <p>
  315. Log in as root on your BBB, using the instructions in <a href="bbb_setup.html#bbb_access">bbb_setup.html#bbb_access</a>.
  316. </p>
  317. <p>
  318. Test that flashrom works:<br/>
  319. # <b>./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512</b><br/>
  320. In this case, the output was:
  321. </p>
  322. <pre>
  323. flashrom v0.9.7-r1854 on Linux 3.8.13-bone47 (armv7l)
  324. flashrom is free software, get the source code at http://www.flashrom.org
  325. Calibrating delay loop... OK.
  326. Found Macronix flash chip &quot;MX25L6405(D)&quot; (8192 kB, SPI) on linux_spi.
  327. Found Macronix flash chip &quot;MX25L6406E/MX25L6436E&quot; (8192 kB, SPI) on linux_spi.
  328. Found Macronix flash chip &quot;MX25L6445E/MX25L6473E&quot; (8192 kB, SPI) on linux_spi.
  329. Multiple flash chip definitions match the detected chip(s): &quot;MX25L6405(D)&quot;, &quot;MX25L6406E/MX25L6436E&quot;, &quot;MX25L6445E/MX25L6473E&quot;
  330. Please specify which chip definition to use with the -c &lt;chipname&gt; option.
  331. </pre>
  332. <p>
  333. How to backup factory.rom (change the -c option as neeed, for your flash chip):<br/>
  334. # <b>./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r factory.rom</b><br/>
  335. # <b>./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r factory1.rom</b><br/>
  336. # <b>./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -r factory2.rom</b><br/>
  337. Note: the <b>-c</b> option is not required in libreboot's patched flashrom, because
  338. the redundant flash chip definitions in <i>flashchips.c</i> have been removed.<br/>
  339. Now compare the 3 images:<br/>
  340. # <b>sha512sum factory*.rom</b><br/>
  341. If the hashes match, then just copy one of them (the factory.rom) to a safe place (on a drive connected to another machine, not
  342. the BBB). This is useful for reverse engineering work, if there is a desirable behaviour in the original firmware
  343. that could be replicated in coreboot and libreboot.
  344. </p>
  345. <p>
  346. Follow the instructions at <a href="../hcl/gm45_remove_me.html#ich9gen">../hcl/gm45_remove_me.html#ich9gen</a>
  347. to change the MAC address inside the libreboot ROM image, before flashing it.
  348. Although there is a default MAC address inside the ROM image, this is not what you want. <b>Make sure
  349. to always change the MAC address to one that is correct for your system.</b>
  350. </p>
  351. <p>
  352. Now flash it:<br/>
  353. # <b>./flashrom -p linux_spi:dev=/dev/spidev1.0,spispeed=512 -w path/to/libreboot/rom/image.rom -V</b>
  354. </p>
  355. <p>
  356. <img src="images/x200/disassembly/0015.jpg" alt="" />
  357. </p>
  358. <p>
  359. You might see errors, but if it says <b>Verifying flash... VERIFIED</b> at the end, then it's flashed and should boot.
  360. If you see errors, try again (and again, and again); the message <b>Chip content is identical to the requested image</b>
  361. is also an indication of a successful installation.
  362. </p>
  363. <p>
  364. Example output from running the command (see above):
  365. </p>
  366. <pre>
  367. flashrom v0.9.7-r1854 on Linux 3.8.13-bone47 (armv7l)
  368. flashrom is free software, get the source code at http://www.flashrom.org
  369. Calibrating delay loop... OK.
  370. Found Macronix flash chip &quot;MX25L6405(D)&quot; (8192 kB, SPI) on linux_spi.
  371. Reading old flash chip contents... done.
  372. Erasing and writing flash chip... FAILED at 0x00001000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0xd716
  373. ERASE FAILED!
  374. Reading current flash chip contents... done. Looking for another erase function.
  375. Erase/write done.
  376. Verifying flash... VERIFIED.
  377. </pre>
  378. <p>
  379. <a href="#pagetop">Back to top of page.</a>
  380. </p>
  381. </div>
  382. <div class="section photos" id="paste">
  383. <h1>Thermal paste (IMPORTANT)</h1>
  384. <p>
  385. Because part of this procedure involved removing the heatsink, you will need to apply new paste.
  386. Arctic Silver 5 is ok. You will also need isopropyl alcohol and an anti-static cloth to clean with.
  387. </p>
  388. <p>
  389. When re-installing the heatsink, you must first clean off all old paste with the alcohol/cloth.
  390. Then apply new paste. AS5 is also much better than the default paste used on these machines.
  391. </p>
  392. <p>
  393. <img src="images/t400/paste.jpg" alt="" />
  394. </p>
  395. <p>
  396. NOTE: the photo above is for illustration purposes only, and does not show how to properly apply the thermal paste.
  397. Other guides online detail the proper application procedure.
  398. </p>
  399. </div>
  400. <div class="section">
  401. <h1 id="wifi">Wifi</h1>
  402. <p>
  403. The T500 typically comes with an Intel wifi chipset, which does not
  404. work without proprietary software. For a list of wifi chipsets that
  405. work without proprietary software, see
  406. <a href="../hcl/index.html#recommended_wifi">../hcl/index.html#recommended_wifi</a>.
  407. </p>
  408. <p>
  409. Some T500 laptops might come with an Atheros chipset, but this is 802.11g only.
  410. </p>
  411. <p>
  412. It is recommended that you install a new wifi chipset. This can only
  413. be done after installing libreboot, because the original firmware has
  414. a whitelist of approved chips, and it will refuse to boot if you
  415. use an 'unauthorized' wifi card.
  416. </p>
  417. <p>
  418. The following photos show an Atheros AR5B95 being installed, to
  419. replace the Intel chip that this T500 came with:<br/>
  420. <img src="images/t400/0012.jpg" alt="" />
  421. <img src="images/t400/ar5b95.jpg" alt="" />
  422. </p>
  423. </div>
  424. <div class="section">
  425. <h1 id="wwan">WWAN</h1>
  426. <p>
  427. If you have a WWAN/3G card and/or sim card reader, remove them permanently.
  428. The WWAN-3G card has DMA, and proprietary firmware inside; the technology is
  429. identical to what is used in mobile phones, so it can also track your movements.
  430. </p>
  431. <p>
  432. Not to be confused with wifi (wifi is fine).
  433. </p>
  434. </div>
  435. <div class="section photos">
  436. <h1 id="memory">Memory</h1>
  437. <p>
  438. You need DDR3 SODIMM PC3-8500 RAM installed, in matching pairs
  439. (speed/size). Non-matching pairs won't work. You can also install a
  440. single module (meaning, one of the slots will be empty) in slot 0.
  441. </p>
  442. <p>
  443. Make sure that the RAM you buy is the 2Rx8 density.
  444. </p>
  445. <p>
  446. The following photo shows 8GiB (2x4GiB) of RAM installed:<br/>
  447. <img src="images/t400/memory.jpg" alt="" />
  448. </p>
  449. </div>
  450. <div class="section photos">
  451. <h2>
  452. Boot it!
  453. </h2>
  454. <p>
  455. You should see something like this:
  456. </p>
  457. <p>
  458. <img src="images/t500/0062.jpg" alt="" />
  459. </p>
  460. <p>
  461. Now <a href="../gnulinux/index.html">install GNU/Linux</a>.
  462. </p>
  463. </div>
  464. <div class="section">
  465. <p>
  466. Copyright &copy; 2015 Francis Rowe &lt;info@gluglug.org.uk&gt;<br/>
  467. Copyright &copy; 2015 Chris Ryder &lt;cdkr00@gmail.com&gt;<br/>
  468. This document is released under the Creative Commons Attribution-ShareAlike 4.0 International Public License and all future versions.
  469. A copy of the license can be found at <a href="../cc-by-sa-4.txt">../cc-by-sa-4.txt</a>.
  470. </p>
  471. <p>
  472. This document is distributed in the hope that it will be useful,
  473. but WITHOUT ANY WARRANTY; without even the implied warranty of
  474. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See <a href="../cc-by-sa-4.txt">../cc-by-sa-4.txt</a> for more information.
  475. </p>
  476. </div>
  477. </body>
  478. </html>