diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2020-05-20 11:46:47 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-22 10:03:52 +0000 |
commit | eed9dcee2a13cdf9ff8c11a313773735b1040204 (patch) | |
tree | 39aa3e9e949259de55851dac8eda0e7f41d3b2a8 /scripts | |
parent | b2f7a571c0ac48f3eb09a6b3f5d1e619fa0b1c6c (diff) | |
download | vboot-eed9dcee2a13cdf9ff8c11a313773735b1040204.tar.gz |
image_signing: remove unpack_firmwarefd.sh script
Looks like an old script from Mario. Won't run on modern chromebooks
anyway.
Not installed on any devices.
BUG=chromium:1084003,chromium:1085310
BRANCH=none
TEST=emerge vboot_reference
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I4b68183bc9bc943f273630cf12c52801a74df5be
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/vboot_reference/+/2210762
Reviewed-by: Joel Kitching <kitching@chromium.org>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/image_signing/unpack_firmwarefd.sh | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/scripts/image_signing/unpack_firmwarefd.sh b/scripts/image_signing/unpack_firmwarefd.sh deleted file mode 100755 index bf8df6ab..00000000 --- a/scripts/image_signing/unpack_firmwarefd.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -# 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. - -# Script that unpacks a firmware image (in .fd format) into its component -# pieces. Only outputs firmware A and B data, vblocks and the GBB. - -# The mosys tool must be in the system path. - -# Abort on error -set -e - -# Check arguments -if [ $# -ne 1 ] ; then - echo "Usage: $0 src_fd" - echo "Outputs firmware.gbb, firmware[A|B].[data|vblock]" - exit 1 -fi - -# Make sure the tools we need are available. -type -P mosys &>/dev/null || \ - { echo "mosys tool not found."; exit 1; } - -src_fd=$1 - -# Grab GBB Area offset and size -match_str="GBB Area" -line=$(mosys -f -k eeprom map $1 | grep "$match_str") -offset="$(echo $line | sed -e 's/.*area_offset=\"\([a-f0-9x]*\)\".*/\1/')" -let gbb_offset="$offset" -size="$(echo $line | sed -e 's/.*area_size=\"\([a-f0-9x]*\)\".*/\1/')" -let gbb_size="$size" - -# Grab Firmware A and B offset and size -for i in "A" "B" -do - match_str="$i Key" - line=$(mosys -f -k eeprom map $1 | grep "$match_str") - offset="$(echo $line | sed -e 's/.*area_offset=\"\([a-f0-9x]*\)\".*/\1/')" - eval let \ - fw${i}_vblock_offset="$offset" - size="$(echo $line | sed -e 's/.*area_size=\"\([a-f0-9x]*\)\".*/\1/')" - eval let \ - fw${i}_vblock_size="$size" - - match_str="$i Data" - line=$(mosys -f -k eeprom map $1 | grep "$match_str") - offset="$(echo $line | sed -e 's/.*area_offset=\"\([a-f0-9x]*\)\".*/\1/')" - eval let \ - fw${i}_offset="$offset" - size="$(echo $line | sed -e 's/.*area_size=\"\([a-f0-9x]*\)\".*/\1/')" - eval let \ - fw${i}_size="$size" -done - -echo "Extracting GBB" -dd if="${src_fd}" of="firmware.gbb" skip="${gbb_offset}" bs=1 \ - count="${gbb_size}" -echo "Extracting Firmware data and vblock(s)" -dd if="${src_fd}" of="firmwareA.data" skip="${fwA_offset}" bs=1 \ - count="${fwA_size}" -dd if="${src_fd}" of="firmwareA.vblock" skip="${fwA_vblock_offset}" bs=1 \ - count="${fwA_vblock_size}" -dd if="${src_fd}" of="firmwareB.data" skip="${fwB_offset}" bs=1 \ - count="${fwB_size}" -dd if="${src_fd}" of="firmwareB.vblock" skip="${fwB_vblock_offset}" bs=1 \ - count="${fwB_vblock_size}" |