Installing libreboot

This section relates to installing libreboot on supported targets.

Back to previous index

Software methods

Hardware methods

List of ROM images in libreboot

Libreboot supports the following (refer to the release page):

The ROM images in each archive use the following naming convention: boardname_keymap_mode.rom

Available modes: vesafb or txtmode. The vesafb ROM images are recommended, in most cases; txtmode ROM images come with MemTest86+, which requires text-mode instead of the usual framebuffer used by coreboot native graphics initialization.

Keymaps are named appropriate according to each keyboard layout support in GRUB. To learn how these keymaps are created, see ../grub/index.html#grub_keyboard

QEMU

Libreboot comes with ROM images built for QEMU, by default:

Examples of how to use libreboot in QEMU:

You can optionally specify the -serial stdio argument, so that QEMU will emulate a serial terminal on the standard input/output (most likely your terminal emulator or TTY).

Other arguments are available for QEMU. The manual will contain more information.

Back to top of page.

How to install or update libreboot (if running libreboot or coreboot)

If you are using libreboot_src or git, then make sure that you built the sources first (see ../git/index.html#build).

These instructions work for most targets, provided that they are already running libreboot or coreboot.

Look at the list of ROM images to see which image is compatible with your device.

X60/T60 users with Lenovo BIOS should refer to #flashrom_lenovobios instead. Similary, MacBook2,1 users running Apple EFI should refer to #flashrom_macbook21.

ThinkPad T60 and X60 Tablet users: be sure to read ../hcl/index.html#supported_t60_list or ../hcl/index.html#supported_t60_list.

X200/R400/T400/T500 users running Lenovo BIOS should refer to x200_external.html, r400_external.html, t400_external.html or t500_external.html. These machines contain the hard coded MAC address for the onboard ethernet chipset, directly inside the SPI flash; ich9gen shows how to change it (the default libreboot ROM images for these machines contain a generic MAC address).

X200/R400/T400/T500 users should also note, that it is possible for the user to write-protect whole regions of the SPI flash by using a modified descriptor. Locked regions must be flashed externally; see x200_external.html, r400_external.html, t400_external.html or t500_external.html. Libreboot unlocks all regions, by default.

How to update the flash chip contents:
$ sudo ./flash update yourrom.rom

Ocassionally, coreboot changes the name of a given board. If flashrom complains about a board mismatch, but you are sure that you chose the correct ROM image, then run this alternative command:
$ sudo ./flash forceupdate yourrom.rom

You should see "Verifying flash... VERIFIED." written at the end of the flashrom output. Shut down after you see this, and then boot up again after a few seconds.

Back to top of page

ThinkPad X60/T60: Initial installation guide (if running Lenovo BIOS firmware)

This is for the ThinkPad X60 and T60 while running Lenovo BIOS. If you already have coreboot or libreboot running, then go to #flashrom instead!

If you are flashing a Lenovo ThinkPad T60, be sure to read ../hcl/index.html#supported_t60_list

If you are using libreboot_src or git, then make sure that you built the sources first (see ../git/index.html#build).

Warning: this guide will not instruct the user how to backup the original Lenovo BIOS firmware. These backups are tied to each machine, and will not work on any other. For that, please refer to http://www.coreboot.org/Board:lenovo/x60/Installation.

The first half of the procedure is as follows:
$ sudo ./flash i945lenovo_firstflash yourrom.rom.

You should see within the output the following:
"Updated BUC.TS=1 - 64kb address ranges at 0xFFFE0000 and 0xFFFF0000 are swapped".

You should also see within the output the following:
"Flash chip is in an unknown state", "FAILED" and "DO NOT SHUTDOWN OR REBOOT"
Seeing this means that the operation was a resounding success! DON'T PANIC.

See this link for more details: http://thread.gmane.org/gmane.linux.bios.flashrom/575.

If the above is what you see, then SHUT DOWN. Wait a few seconds, and then boot; libreboot is running, but there is a 2nd procedure *needed* (see below).

When you have booted up again, you must also do this:
$ sudo ./flash i945lenovo_secondflash yourrom.rom

You should see within the output the following:
"Updated BUC.TS=0 - 128kb address range 0xFFFE0000-0xFFFFFFFF is untranslated"

You should also see within the output the following:
"Verifying flash... VERIFIED."

Back to top of page.

MacBook2,1: Initial installation guide (if running Apple EFI firmware)

If you have a MacBook1,1, refer to ../hcl/index.html#macbook11 for flashing instructions.

This is for the MacBook2,1 while running Apple EFI firmware. If you already have coreboot or libreboot running, then go to #flashrom instead!

Be sure to read the information in ../hcl/index.html#macbook21.

Warning: this guide will not instruct the user how to backup the original Apple EFI firmware. For that, please refer to http://www.coreboot.org/Board:apple/macbook21.

If you are using libreboot_src or git, then make sure that you built the sources first (see ../git/index.html#build).

Look at the list of ROM images to see which image is compatible with your device.

Use this flashing script, to install libreboot:
$ sudo ./flash i945apple_firstflash yourrom.rom

You should also see within the output the following:
"Verifying flash... VERIFIED."

Shut down.

Back to top of page.

Copyright © 2014, 2015 Francis Rowe <info@gluglug.org.uk>
This document is released under the Creative Commons Attribution-ShareAlike 4.0 International Public License and all future versions. A copy of the license can be found at ../license.txt.

This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See ../license.txt for more information.