aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/download/depthcharge
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2015-10-11 17:48:46 +0200
committerFrancis Rowe <info@gluglug.org.uk>2015-10-11 20:16:26 +0100
commitd8b597f33e75d04b84be7c9d7081a3b97821617d (patch)
tree8ad2d64ba4dff4cb6cfc1d9f7ecdc2c9cda8d19c /resources/scripts/helpers/download/depthcharge
parentd6b6b1ea62f555f38152ab475d98c57f739f8b8d (diff)
downloadlibrebootfr-d8b597f33e75d04b84be7c9d7081a3b97821617d.tar.gz
librebootfr-d8b597f33e75d04b84be7c9d7081a3b97821617d.zip
Chromebook C201 (codename veyron_speedy) support
This introduces Libreboot support for the Asus Chromebook C201 (codename veyron_speedy). At this point, this produces a standalone Libreboot image that can be flashed to the RO Coreboot partition of the SPI flash, as well as the Libreboot version that can be flash to the RO Firmware ID partition. Libreboot on the Chromebook C201 uses the depthcharge bootloader, modified to display text messages instead of ChromeOS bitmaps (that encourage the use of ChromeOS). For convenience, an installation script, chromebook-flash-replace, is provided along with a description of the flash layout, to ease the replacement of the Coreboot and RO Firmware ID partitions on the full SPI flash image. Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'resources/scripts/helpers/download/depthcharge')
-rwxr-xr-xresources/scripts/helpers/download/depthcharge72
1 files changed, 72 insertions, 0 deletions
diff --git a/resources/scripts/helpers/download/depthcharge b/resources/scripts/helpers/download/depthcharge
new file mode 100755
index 00000000..1d1e769e
--- /dev/null
+++ b/resources/scripts/helpers/download/depthcharge
@@ -0,0 +1,72 @@
+#!/bin/bash
+
+# helper script: downloads depthcharge and patches it
+#
+# Copyright (C) 2015 Paul Kocialkowski <contact@paulk.fr>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program 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 the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#
+
+# This script assumes that the working directory is the
+# root of libreboot_src or libreboot git.
+
+[ "x${DEBUG+set}" = 'xset' ] && set -v
+set -u -e
+
+# Get depthcharge and patch it
+
+printf "Downloading depthcharge\n"
+
+rm -Rf "depthcharge/"
+
+# Get depthcharge
+# ------------------------------------------------------------------------------
+
+# download depthcharge from git
+git clone https://chromium.googlesource.com/chromiumos/platform/depthcharge
+
+# enter the tree to patch it
+cd "depthcharge/"
+
+# reset to the latest previously tested revision
+git reset --hard 3a5d54e31267578f48fb283fae56a405108f1498
+
+# Patch depthcharge
+# ------------------------------------------------------------------------------
+
+printf "arm: armv7-a march abi flag for ARMv7 hardware\n"
+git am "../resources/depthcharge/patch/0001-arm-armv7-a-march-abi-flag-for-ARMv7-hardware.patch"
+
+printf "Coreboot image integration removal\n"
+git am "../resources/depthcharge/patch/0002-Coreboot-image-integration-removal.patch"
+
+printf "DOTCONFIG location correction\n"
+git am "../resources/depthcharge/patch/0003-DOTCONFIG-location-correction.patch"
+
+printf "Adaptation for a read-only boot path when no vboot handoff data is found\n"
+git am "../resources/depthcharge/patch/0004-Adaptation-for-a-read-only-boot-path-when-no-vboot-h.patch"
+
+printf "Proper firmware index report for read-only boot path\n"
+git am "../resources/depthcharge/patch/0005-Proper-firmware-index-report-for-read-only-boot-path.patch"
+
+printf "fdt: nonvolatile-context-storage report to mkbp for EC NV storage\n"
+git am "../resources/depthcharge/patch/0006-fdt-nonvolatile-context-storage-report-to-mkbp-for-E.patch"
+
+printf "vboot: Display callbacks for developer and recovery mode screens\n"
+git am "../resources/depthcharge/patch/0007-vboot-Display-callbacks-for-developer-and-recovery-m.patch"
+
+# leave the tree
+cd "../"
+
+printf "\n\n"