diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2020-05-21 15:13:35 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-22 10:47:12 +0000 |
commit | 16f946673902940e2a4d3eeea34c2b7fff530e03 (patch) | |
tree | dacde9eaef539604e96e9a6284342092a7c4f12c | |
parent | 5c79be367927349eb92e7854e2e6396ccb515f9d (diff) | |
download | vboot-16f946673902940e2a4d3eeea34c2b7fff530e03.tar.gz |
image_signing: remove firmware_boot.sh
This script was added in CL:2618.
There's no references to it, and I can't find any evidence to it being
documented anywhere or anyone using it.
Let's remove it to see if anyone uses it.
BUG=chromium:1083510
BRANCH=none
TEST=emerge vboot_reference
Change-Id: I6c307d3b9f7ee4c12153baf5fcd97c98badefe7b
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2212646
Reviewed-by: Mike Frysinger <vapier@chromium.org>
-rwxr-xr-x | scripts/image_signing/firmware_boot.sh | 101 |
1 files changed, 0 insertions, 101 deletions
diff --git a/scripts/image_signing/firmware_boot.sh b/scripts/image_signing/firmware_boot.sh deleted file mode 100755 index 404a7ba1..00000000 --- a/scripts/image_signing/firmware_boot.sh +++ /dev/null @@ -1,101 +0,0 @@ -#!/bin/bash -eux - -# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -# Refer to the Google Chrome OS Main Processor Firmware Specification for what -# the pieces are. -# This script generates different firmware binaries with different -# configurations. - -# Syntax: ./firmware_boot.sh <Firmware name without .fd extension>. -# Usage of the script. -usage() -{ - cat <<EOF - $0 firmware_name - firmware_name - name of the firmware. -EOF -} - -if [ $# != 1 ]; then - usage - exit 0 -fi - -base=$1 -input=${base}.fd - -if [ ! -f $input ]; then - echo "$input file does not exists." - exit 0 -fi - -# First, run dump_fmap $input | ./x to compute these values: - -# dev-mode BIOS is in firmware A -rw_a_offset=$(dump_fmap -p ${input} | grep 'RW_SECTION_A' | cut -d' ' -f2) -rw_a_size=$(dump_fmap -p ${input} | grep 'RW_SECTION_A' | cut -d' ' -f3) - -# normal-mode BIOS is in firmware B -rw_b_offset=$(dump_fmap -p ${input} | grep 'RW_SECTION_B' | cut -d' ' -f2) -rw_b_size=$(dump_fmap -p ${input} | grep 'RW_SECTION_B' | cut -d' ' -f3) - -# Extract the RW BIOS chunks -dd if=${input} of=dev.bin bs=1 skip=${rw_a_offset} count=${rw_a_size} -dd if=${input} of=nor.bin bs=1 skip=${rw_b_offset} count=${rw_b_size} - -# Garble one to make it fail the signature. I know that we reserve 64K at the -# start of the section for the signature and headers, so we'll make a random -# payload and put the normal header on the front. -dd if=/dev/urandom of=bad.bin bs=1 count=${rw_b_size} -dd if=nor.bin of=bad.bin conv=notrunc bs=1 count=65536 - -# A:Normal B:Normal -output=${base}-NN.fd -cp ${input} ${output} -dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} -dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} - -# A:Dev B:Dev -output=${base}-DD.fd -cp ${input} ${output} -dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} -dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} - -# A:Normal B:Dev -output=${base}-ND.fd -cp ${input} ${output} -dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} -dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} - -# A:Dev B:Normal -output=${base}-DN.fd -cp ${input} ${output} -dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} -dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} - -# A:Normal B:Bad -output=${base}-NB.fd -cp ${input} ${output} -dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} -dd if=bad.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} - -# A:Bad B:Normal -output=${base}-BN.fd -cp ${input} ${output} -dd if=bad.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} -dd if=nor.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} - -# A:Dev B:Bad -output=${base}-DB.fd -cp ${input} ${output} -dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} -dd if=bad.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} - -# A:Bad B:Dev -output=${base}-BD.fd -cp ${input} ${output} -dd if=bad.bin of=${output} conv=notrunc bs=1 seek=${rw_a_offset} -dd if=dev.bin of=${output} conv=notrunc bs=1 seek=${rw_b_offset} |