mirror of
https://codeberg.org/canoeboot/cbwww.git
synced 2024-11-25 11:54:44 +00:00
633dbebbc6
docs/hardware is redundant, because it now mostly contains installation instructions, and docs/install also contains hardware information. therefore, in practise, they are both the same kind of information. merge the two, and streamline everything. a lot of redundant information has been removed. docs/install/ has been re-structured in such a way as to enable more chronological reading, to make it easier for the average user to install Canoeboot. This is part of a larger series of changes I'm working on for the documentation. I'm massively auditing the entire Canoeboot documentation. Signed-off-by: Leah Rowe <info@minifree.org>
323 lines
12 KiB
Markdown
323 lines
12 KiB
Markdown
---
|
|
title: Flashing the ThinkPad R400
|
|
x-toc-enable: true
|
|
...
|
|
|
|
<div class="specs">
|
|
<center>
|
|
![ThinkPad R400]()
|
|
</center>
|
|
|
|
| ***Specifications*** | |
|
|
|----------------------------|------------------------------------------------|
|
|
| **Manufacturer** | Lenovo |
|
|
| **Name** | ThinkPad R400 |
|
|
| **Released** | 2009 |
|
|
| **Chipset** | Intel Cantiga GM45 |
|
|
| **CPU** | Intel Core 2 Duo (Penryn/Merom family) or
|
|
Celeron M (Merom L family) |
|
|
| **Graphics** | Intel GMA 4500MHD (and ATI Mobility Radeon HD
|
|
3470 or nVIDIA
|
|
GeForce 9300M on some models) |
|
|
| **Display** | 1280x800/1440x900 TFT |
|
|
| **Memory** | Up to 8GB |
|
|
| **Architecture** | x86_64 |
|
|
| **EC** | Proprietary |
|
|
| **Original boot firmware** | LenovoBIOS |
|
|
| **Intel ME/AMD PSP** | Present. Can be completly disabled. |
|
|
| **Flash chip** | SOIC-8/SOIC-16 4MiB/8MiB (Upgradable to 16MiB) |
|
|
|
|
```
|
|
W+: Works without blobs;
|
|
N: Doesn't work;
|
|
W*: Works with blobs;
|
|
U: Untested;
|
|
P+: Partially works;
|
|
P*: Partially works with blobs
|
|
```
|
|
|
|
| ***Features*** | |
|
|
|----------------|---------------------------------------|
|
|
| **Internal flashing with original boot firmware** | N |
|
|
| **Display** | W+ |
|
|
| **Audio** | W+ |
|
|
| **RAM Init** | W+ |
|
|
| **External output** | W+ |
|
|
| **Display brightness** | P+ |
|
|
|
|
| ***Payloads supported*** | |
|
|
|---------------------------|-----------|
|
|
| **GRUB** | Works |
|
|
| **SeaBIOS** | Works |
|
|
| **SeaBIOS with GRUB** | Works |
|
|
</div>
|
|
|
|
Dell Latitude E6400
|
|
===================
|
|
|
|
**If you haven't bought an R400 yet: the [Dell Latitude
|
|
E6400](../install/latitude.md) is much easier to flash; no disassembly required,
|
|
it can be flashed entirely in software from Dell BIOS to Libreboot. It is the
|
|
same hardware generation (GM45), with same CPUs, video processor, etc.**
|
|
|
|
Introduction
|
|
============
|
|
|
|
It is believed that all or most R400 laptops are compatible. See notes
|
|
about [CPU
|
|
compatibility](#cpu_compatibility) for
|
|
potential incompatibilities.
|
|
|
|
There are two possible flash chip sizes for the R400: 4MiB (32Mbit) or
|
|
8MiB (64Mbit). This can be identified by the type of flash chip below
|
|
the palmrest: 4MiB is SOIC-8, 8MiB is SOIC-16.
|
|
|
|
*The R400 laptops come with the ME (and sometimes AMT in addition)
|
|
before flashing libreboot. libreboot disables and removes it by using a
|
|
modified descriptor: see [../install/ich9utils.md](../install/ich9utils.md)*
|
|
(contains notes, plus instructions)
|
|
|
|
Flashing instructions can be found at
|
|
[../install/\#flashprog](../install/#flashprog)
|
|
|
|
NOTE: Libreboot standardises on [flashprog](https://flashprog.org/wiki/Flashprog)
|
|
now, as of 27 January 2024, which is a fork of flashrom.
|
|
|
|
EC update {#ecupdate}
|
|
=========
|
|
|
|
It is recommended that you update to the latest EC firmware version. The
|
|
[EC firmware](../../faq.md#ec-embedded-controller-firmware) is separate from
|
|
libreboot, so we don't actually provide that, but if you still have
|
|
Lenovo BIOS then you can just run the Lenovo BIOS update utility, which
|
|
will update both the BIOS and EC version. See:
|
|
|
|
- [../install/#flashprog](../install/#flashprog)
|
|
- <http://www.thinkwiki.org/wiki/BIOS_update_without_optical_disk>
|
|
|
|
NOTE: this can only be done when you are using Lenovo BIOS. How to
|
|
update the EC firmware while running libreboot is unknown. libreboot
|
|
only replaces the BIOS firmware, not EC.
|
|
|
|
Updated EC firmware has several advantages e.g. bettery battery
|
|
handling.
|
|
|
|
The R400 is almost identical to the X200, code-wise. See
|
|
[x200.md](x200.md).
|
|
|
|
TODO: put hardware register logs here like on the [X200](x200.md) and
|
|
[T400](t400.md) page.
|
|
|
|
Installation notes
|
|
==================
|
|
|
|
[External flashing](spi.md) required, if Lenovo BIOS is running.
|
|
|
|
**If you haven't bought an R400 yet: the [Dell Latitude
|
|
E6400](latitude.md) is much easier to flash; no disassembly required,
|
|
it can be flashed entirely in software from Dell BIOS to Canoeboot. It is the
|
|
same hardware generation (GM45), with same CPUs, video processor, etc.**
|
|
|
|
Initial flashing instructions for R400.
|
|
|
|
This guide is for those who want Canoeboot on their ThinkPad R400 while
|
|
they still have the original Lenovo BIOS present. This guide can also be
|
|
followed (adapted) if you brick your R400, to know how to recover.
|
|
|
|
Before following this section, please make sure to setup your Canoeboot
|
|
ROM properly first. Although ROM images are provided pre-built in
|
|
Canoeboot, there are some modifications that you need to make to the one
|
|
you chose before flashing. (instructions referenced later in this guide)
|
|
|
|
Serial port {#serial_port}
|
|
-----------
|
|
|
|
EHCI debug might not be needed. It has been reported that the docking
|
|
station for this laptop has a serial port, so it might be possible to
|
|
use that instead.
|
|
|
|
A note about CPUs
|
|
=================
|
|
|
|
[ThinkWiki](http://www.thinkwiki.org/wiki/Category:R400) has a list of
|
|
CPUs for this system. The Core 2 Duo P8400 and P8600 are believed to
|
|
work in Canoeboot. The Core 2 Duo T9600 was confirmed to work, so the
|
|
T9400 probably also works. *The Core 2 Duo T5870/5670 and Celeron M
|
|
575/585 are untested!*
|
|
|
|
Quad-core CPUs
|
|
--------------
|
|
|
|
Incompatible. Do not use.
|
|
|
|
A note about GPUs
|
|
=================
|
|
|
|
Some models have an Intel GPU, while others have both an ATI and an
|
|
Intel GPU; this is referred to as "Dual Graphics" (previously
|
|
"switchable graphics"). In the *BIOS setup* program for lenovobios,
|
|
you can specify that the system will use one or the other (but not
|
|
both).
|
|
|
|
Canoeboot is known to work on systems with only the Intel GPU, using
|
|
native graphics initialization. On systems with switchable graphics, the
|
|
Intel GPU is used and the ATI GPU is disabled, so native graphics
|
|
initialization works all the same.
|
|
|
|
CPU paste required
|
|
==================
|
|
|
|
See [\#paste](#paste).
|
|
|
|
Flash chip size {#flashchips}
|
|
===============
|
|
|
|
Use this to find out:
|
|
|
|
flashprog -p internal
|
|
|
|
NOTE: Canoeboot standardises on [flashprog](https://flashprog.org/wiki/Flashprog)
|
|
now, as of 3 May 2024, which is a fork of flashrom.
|
|
|
|
MAC address {#macaddress}
|
|
===========
|
|
|
|
Refer to [mac\_address.md](../install/mac_address.md).
|
|
|
|
External flashing
|
|
=================
|
|
|
|
Refer to [spi.md](spi.md) as a guide for external re-flashing.
|
|
|
|
Disassembly
|
|
-----------
|
|
|
|
Remove all screws:\
|
|
![](https://av.canoeboot.org/r400/0000.jpg)\
|
|
Remove the HDD and optical drive:\
|
|
![](https://av.canoeboot.org/r400/0001.jpg)\
|
|
Remove the hinge screws:\
|
|
![](https://av.canoeboot.org/r400/0002.jpg) ![](https://av.canoeboot.org/r400/0003.jpg)
|
|
|
|
Remove the palm rest and keyboard:\
|
|
![](https://av.canoeboot.org/r400/0004.jpg) ![](https://av.canoeboot.org/r400/0005.jpg)
|
|
|
|
Remove these screws, and then remove the bezel:\
|
|
![](https://av.canoeboot.org/r400/0006.jpg) ![](https://av.canoeboot.org/r400/0007.jpg)
|
|
|
|
Remove the speaker screws, but don't remove the speakers yet (just set
|
|
them loose):\
|
|
![](https://av.canoeboot.org/r400/0008.jpg) ![](https://av.canoeboot.org/r400/0009.jpg)
|
|
![](https://av.canoeboot.org/r400/0010.jpg)
|
|
|
|
Remove these screws, and then remove the metal plate:\
|
|
![](https://av.canoeboot.org/r400/0011.jpg) ![](https://av.canoeboot.org/r400/0012.jpg)
|
|
![](https://av.canoeboot.org/r400/0013.jpg)
|
|
|
|
Remove the antennas from the wifi card, and then start unrouting them:\
|
|
![](https://av.canoeboot.org/r400/0014.jpg) ![](https://av.canoeboot.org/r400/0015.jpg)
|
|
![](https://av.canoeboot.org/r400/0016.jpg) ![](https://av.canoeboot.org/r400/0017.jpg)
|
|
![](https://av.canoeboot.org/r400/0018.jpg) ![](https://av.canoeboot.org/r400/0019.jpg)
|
|
|
|
Disconnect the LCD cable from the motherboard:\
|
|
![](https://av.canoeboot.org/r400/0020.jpg) ![](https://av.canoeboot.org/r400/0021.jpg)
|
|
![](https://av.canoeboot.org/r400/0022.jpg) ![](https://av.canoeboot.org/r400/0023.jpg)
|
|
|
|
Remove the hinge screws, and then remove the LCD panel:\
|
|
![](https://av.canoeboot.org/r400/0024.jpg) ![](https://av.canoeboot.org/r400/0025.jpg)
|
|
![](https://av.canoeboot.org/r400/0026.jpg) ![](https://av.canoeboot.org/r400/0027.jpg)
|
|
|
|
Remove this:\
|
|
![](https://av.canoeboot.org/r400/0028.jpg) ![](https://av.canoeboot.org/r400/0029.jpg)
|
|
|
|
Remove this long cable (there are 3 connections):\
|
|
![](https://av.canoeboot.org/r400/0030.jpg) ![](https://av.canoeboot.org/r400/0031.jpg)
|
|
![](https://av.canoeboot.org/r400/0032.jpg) ![](https://av.canoeboot.org/r400/0033.jpg)
|
|
|
|
Disconnect the speaker cable, and remove the speakers:\
|
|
![](https://av.canoeboot.org/r400/0034.jpg)
|
|
|
|
Remove the heatsink screws, remove the fan and then remove the
|
|
heatsink/fan:\
|
|
![](https://av.canoeboot.org/r400/0035.jpg) ![](https://av.canoeboot.org/r400/0036.jpg)
|
|
![](https://av.canoeboot.org/r400/0037.jpg) ![](https://av.canoeboot.org/r400/0038.jpg)
|
|
|
|
Remove the NVRAM battery:\
|
|
![](https://av.canoeboot.org/r400/0039.jpg) ![](https://av.canoeboot.org/r400/0040.jpg)
|
|
|
|
Remove this screw:\
|
|
![](https://av.canoeboot.org/r400/0041.jpg) ![](https://av.canoeboot.org/r400/0042.jpg)
|
|
|
|
Disconnect the AC jack:\
|
|
![](https://av.canoeboot.org/r400/0043.jpg) ![](https://av.canoeboot.org/r400/0044.jpg)
|
|
|
|
Remove this screw and then remove what is under it:\
|
|
![](https://av.canoeboot.org/r400/0045.jpg)
|
|
|
|
Remove this:\
|
|
![](https://av.canoeboot.org/r400/0046.jpg)
|
|
|
|
Lift the motherboard (which is still inside the cage) from the side on
|
|
the right, removing it completely:\
|
|
![](https://av.canoeboot.org/r400/0047.jpg) ![](https://av.canoeboot.org/r400/0048.jpg)
|
|
|
|
Remove all screws, marking each hole so that you know where to re-insert
|
|
them. You should place the screws in a layout corresponding to the order
|
|
that they were in before removal: ![](https://av.canoeboot.org/r400/0049.jpg)
|
|
![](https://av.canoeboot.org/r400/0050.jpg)
|
|
|
|
Remove the motherboard from the cage, and the SPI flash chip will be
|
|
next to the memory slots:\
|
|
![](https://av.canoeboot.org/r400/0051.jpg) ![](https://av.canoeboot.org/r400/0052.jpg)
|
|
|
|
Now, you should be ready to install Canoeboot.
|
|
|
|
Read [this article](spi.md) to learn how you may flash the chip, which is near
|
|
to the RAM.
|
|
|
|
Thermal paste (IMPORTANT)
|
|
=========================
|
|
|
|
Because part of this procedure involved removing the heatsink, you will
|
|
need to apply new paste. Arctic MX-4 is ok. You will also need isopropyl
|
|
alcohol and an anti-static cloth to clean with.
|
|
|
|
When re-installing the heatsink, you must first clean off all old paste
|
|
with the alcohol/cloth. Then apply new paste. Arctic MX-4 is also much
|
|
better than the default paste used on these systems.
|
|
|
|
![](https://av.canoeboot.org/t400/paste.jpg)
|
|
|
|
NOTE: the photo above is for illustration purposes only, and does not
|
|
show how to properly apply the thermal paste. Other guides online detail
|
|
the proper application procedure.
|
|
|
|
Memory
|
|
======
|
|
|
|
In DDR3 machines with Cantiga (GM45/GS45/PM45), northbridge requires sticks
|
|
that will work as PC3-8500 (faster PC3/PC3L sticks can work as PC3-8500).
|
|
Non-matching pairs may not work. Single module (meaning, one of the slots
|
|
will be empty) will currently only work in slot 0.
|
|
|
|
NOTE: according to users reports, non matching pairs (e.g. 1+2 GiB) might
|
|
work in some cases.
|
|
|
|
Make sure that the RAM you buy is the 2Rx8 configuration when buying 4GiB sticks
|
|
(In other words: maximum of 2GiB per rank, 2 ranks per card).
|
|
|
|
[This page](http://www.forum.thinkpads.com/viewtopic.php?p=760721) might
|
|
be useful for RAM compatibility info (note: coreboot raminit is
|
|
different, so this page might be BS)
|
|
|
|
The following photo shows 8GiB (2x4GiB) of RAM installed:\
|
|
![](https://av.canoeboot.org/t400/memory.jpg)
|
|
|
|
Boot it!
|
|
--------
|
|
|
|
You should see something like this:
|
|
|
|
![](https://av.canoeboot.org/t400/boot0.jpg) ![](https://av.canoeboot.org/t400/boot1.jpg)
|
|
|
|
Now [install GNU+Linux](../gnulinux/).
|