aboutsummaryrefslogtreecommitdiff
path: root/docs/install/c201.md
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa@rosenzweig.io>2017-03-20 20:26:48 -0700
committerAlyssa Rosenzweig <alyssa@rosenzweig.io>2017-03-20 20:26:48 -0700
commita62fe03d3e84150e6186f57f53029d5a9abe3d7b (patch)
tree1a1276b32fcc5388165bd42b685c0d9e83380a7b /docs/install/c201.md
parent07da8fb0c7d513bc73470b69be99f1add0cb95e5 (diff)
downloadlibrebootfr-a62fe03d3e84150e6186f57f53029d5a9abe3d7b.tar.gz
librebootfr-a62fe03d3e84150e6186f57f53029d5a9abe3d7b.zip
undo breakages
Diffstat (limited to 'docs/install/c201.md')
-rw-r--r--docs/install/c201.md87
1 files changed, 48 insertions, 39 deletions
diff --git a/docs/install/c201.md b/docs/install/c201.md
index b481a6ec..d04ba2b0 100644
--- a/docs/install/c201.md
+++ b/docs/install/c201.md
@@ -1,12 +1,16 @@
-% ASUS Chromebook C201 installation guide
+
+ASUS Chromebook C201 installation guide
+=======================================
These instructions are for installing Libreboot to the ASUS Chromebook
C201. Since the device ships with Coreboot, the installation
instructions are the same before and after flashing Libreboot for the
first time.
+
**If you are using libreboot\_src or git, then make sure that you built
-the sources first (see [../git/#build](../git/#build)).**
+the sources first (see [../git/\#build](../git/#build)).**
+
Look at the [list of ROM images](#rom) to see which image is compatible
with your device.
@@ -19,14 +23,12 @@ flashrom version.
**Google's modified version of flashrom** is free software and its
source code is made available by Google:
-[flashrom](https://chromium.googlesource.com/chromiumos/third_party/flashrom/).
-
+[flashrom](https://chromium.googlesource.com/chromiumos/third_party/flashrom/).\
It is not distributed along with Libreboot yet. However, it is
preinstalled on the device, with ChromeOS.
Installing Libreboot internally requires sufficient privileges on the
-system installed on the device.
-
+system installed on the device.\
When the device has ChromeOS installed (as it does initially), it is
necessary to gain root privileges in ChromeOS, to be able to access a
root shell.
@@ -45,11 +47,15 @@ root shell.
- [Debian GNU+Linux is recommended for this device](#debian) (TODO:
instructions for Devuan)
+
+
+
Gaining root privileges on ChromeOS
In order to gain root privileges on ChromeOS, developer mode has to be
enabled from the recovery mode screen and debugging features have to be
enabled in ChromeOS.
+
Instructions to access the [recovery mode
screen](../depthcharge/#recovery_mode_screen) and [enabling developer
mode](../depthcharge/#enabling_developer_mode) are available on the page
@@ -62,8 +68,7 @@ or by pressing **Ctrl + D**
After the system has booted, root access can be enabled by clicking on
the **Enable debugging features** link. A confirmation dialog will ask
-whether to proceed.
-
+whether to proceed.\
After confirming by clicking **Proceed**, the device will reboot and ask
for the root password to set. Finally, the operation has to be confirmed
by clicking **Enable**.
@@ -72,11 +77,15 @@ After setting the root password, it becomes possible to log-in as root.
A tty prompt can be obtained by pressing **Ctrl + Alt + Next**. The
**Next** key is the one on the top left of the keyboard.
+
+
+
Preparing the device for the installation
Before installing Libreboot on the device, both its software and
hardware has to be prepared to allow the installation procedure and to
ensure that security features don't get in the way.
+
Configuring verified boot parameters {#configuring_verified_boot_parameters}
------------------------------------
@@ -91,6 +100,8 @@ parameters](../depthcharge/#configuring_verified_boot_parameters):
Those changes can be reverted later, when the device is known to be in a
working state.
+
+
Removing the write protect screw {#removing_write_protect_screw}
--------------------------------
@@ -113,6 +124,9 @@ screw](images/c201/wp-screw.jpg)](images/c201/wp-screw.jpg)
The write protect screw can be put back in place later, when the device
is known to be in a working state.
+
+
+
Installing Libreboot to the SPI flash {#installing_libreboot_spi_flash}
=====================================
@@ -121,6 +135,7 @@ that are used to implement parts of the CrOS security system. Libreboot
is installed in the *read-only* coreboot partition, that becomes
writable after removing the write-protect screw.
+
Installing Libreboot internally, from the device {#installing_libreboot_internally}
------------------------------------------------
@@ -132,31 +147,28 @@ transferred to the device.
The following operations have to be executed with root privileges on the
device (e.g. using the *root* account). In addition, the
-**cros-flash-replace** script has to be made executable:
+**cros-flash-replace** script has to be made executable:\
+\# **chmod a+x cros-flash-replace**\
- # chmod a+x cros-flash-replace
-
-The SPI flash has to be read first:
-
- # flashrom -p host -r flash.img
+The SPI flash has to be read first:\
+\# **flashrom -p host -r flash.img**\
**Note: it might be a good idea to copy the produced flash.img file at
this point and store it outside of the device for backup purposes.**
-Then, the **cros-flash-replace** script has to be executed as such:
-
- # ./cros-flash-replace flash.img coreboot ro-frid
+Then, the **cros-flash-replace** script has to be executed as such:\
+\# **./cros-flash-replace flash.img coreboot ro-frid**\
If any error is shown, it is definitely a bad idea to go further than
this point.
-The resulting flash image can then be flashed back:
+The resulting flash image can then be flashed back:\
+\# **flashrom -p host -w flash.img**\
- # flashrom -p host -w flash.img
+You should also see within the output the following:\
+**"Verifying flash\... VERIFIED."**
-You should also see within the output the following:
+Shut down. The device will now boot to Libreboot.
-**"Verifying flash... VERIFIED."**
-Shut down. The device will now boot to Libreboot.
Installing Libreboot externally, with a SPI flash programmer {#installing_libreboot_externally}
------------------------------------------------------------
@@ -166,7 +178,7 @@ to be opened.
The SPI flash is located next to the write protect screw. Its layout is
indicated in the picture below. Note that it is not necessary to connect
-**WP#** since removing the screw already connects it to ground. Before
+**WP\#** since removing the screw already connects it to ground. Before
writing to the chip externally, the battery connector has to be
detached. It is located under the heat spreader, that has to be
unscrewed from the rest of the case. The battery connector is located on
@@ -182,33 +194,29 @@ transferred to the host.
The following operations have to be executed with root privileges on the
host (e.g. using the *root* account). In addition, the
-**cros-flash-replace** script has to be made executable:
-
- # chmod a+x cros-flash-replace
+**cros-flash-replace** script has to be made executable:\
+\# **chmod a+x cros-flash-replace**\
-The SPI flash has to be read first (using the right spi programmer):
-
- # flashrom -p *programmer* -r flash.img
+The SPI flash has to be read first (using the right spi programmer):\
+\# **flashrom -p *programmer* -r flash.img**\
**Note: it might be a good idea to copy the produced flash.img file at
this point and store it outside of the device for backup purposes.**
-Then, the **cros-flash-replace** script has to be executed as such:
-
- # ./cros-flash-replace flash.img coreboot ro-frid
+Then, the **cros-flash-replace** script has to be executed as such:\
+\# **./cros-flash-replace flash.img coreboot ro-frid**\
If any error is shown, it is definitely a bad idea to go further than
this point.
The resulting flash image can then be flashed back (using the right spi
-programmer):
+programmer):\
+\# **flashrom -p *programmer* -w flash.img**\
- # flashrom -p *programmer* -w flash.img
-
-You should also see within the output the following:
-
-**"Verifying flash... VERIFIED."**
+You should also see within the output the following:\
+**"Verifying flash\... VERIFIED."**
The device will now boot to Libreboot.
+
Debian GNU+Linux {#debian}
----------------
@@ -221,8 +229,9 @@ See <https://wiki.debian.org/InstallingDebianOn/Asus/C201>.
[Back to top of page.](#pagetop)
-Copyright © 2015 Paul Kocialkowski <contact@paulk.fr>
+
+Copyright © 2015 Paul Kocialkowski <contact@paulk.fr>\
Permission is granted to copy, distribute and/or modify this document
under the terms of the Creative Commons Attribution-ShareAlike 4.0
International license or any later version published by Creative