From 84d22fb9d4cf3738020bbf9f69ee00cbf23e0fd4 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Fri, 3 Apr 2015 14:21:40 +0100 Subject: Delete the ich9macchange script. It's useless, and confuses people --- docs/hcl/gm45_remove_me.html | 11 +--- resources/scripts/helpers/build/release/archives | 3 -- resources/scripts/misc/ich9macchange | 64 ------------------------ 3 files changed, 2 insertions(+), 76 deletions(-) delete mode 100755 resources/scripts/misc/ich9macchange diff --git a/docs/hcl/gm45_remove_me.html b/docs/hcl/gm45_remove_me.html index 21caf685..d180ead7 100644 --- a/docs/hcl/gm45_remove_me.html +++ b/docs/hcl/gm45_remove_me.html @@ -105,19 +105,12 @@

Assuming that your libreboot image is named libreboot.rom, copy the file to where libreboot.rom is located - and then run, for instance:
+ and then insert the descriptor+gbe file into the ROM image. For 8MiB flash chips:
$ dd if=ich9fdgbe_8m.bin of=libreboot.rom bs=1 count=12k conv=notrunc
- or:
+ For 4MiB flash chips:
$ dd if=ich9fdgbe_4m.bin of=libreboot.rom bs=1 count=12k conv=notrunc

-

- A bash script is also included in libreboot_util which will change the mac address (using ich9gen) - on all GM45 ROM images. For instance:
- $ ./ich9macchange path/to/libreboot.rom XX:XX:XX:XX:XX:XX romsize
- romsize should be 4 or 8, depending on whether the ROM image is for a 4MiB or 8MiB flash chip. -

-

Your libreboot.rom image is now ready to be flashed on the machine. Refer back to ../install/index.html#flashrom diff --git a/resources/scripts/helpers/build/release/archives b/resources/scripts/helpers/build/release/archives index af7899ff..43b431c9 100755 --- a/resources/scripts/helpers/build/release/archives +++ b/resources/scripts/helpers/build/release/archives @@ -366,9 +366,6 @@ cp coreboot/src/mainboard/lenovo/x200/cmos.layout libreboot_util/cmoslayouts/x20 # Flashing script cp flash libreboot_util/ -# ich9macchange script, for changing the MAC address on GM45 targets -cp resources/scripts/misc/ich9macchange libreboot_util/ - # for changing the GRUB background cp resources/scripts/misc/grub-background libreboot_util/ diff --git a/resources/scripts/misc/ich9macchange b/resources/scripts/misc/ich9macchange deleted file mode 100755 index 0c9a8f54..00000000 --- a/resources/scripts/misc/ich9macchange +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/bash - -# ich9macchange script: uses ich9gen to change the MAC address on GM45/GS45 machines. -# -# Copyright (C) 2014, 2015 Francis Rowe -# -# 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 . -# - -[ "x${DEBUG+set}" = 'xset' ] && set -v -set -u -e - -arch="unknown" -if [ $(uname -i) = "i686" ] || [ $(uname -m) = "i686" ]; then - arch="i686" -elif [ $(uname -i) = "x86_64" ] || [ $(uname -m) = "x86_64" ]; then - arch="x86_64" -elif [ $(uname -i) = "armv7l" ] || [ $(uname -m) = "armv7l" ]; then - arch="armv7l" -else - echo "This script must be run on an i686, x86_64 or armv7l host." - exit 1 -fi - -if (( $# != 3 )); then - echo "Usage: ./ich9macchange path/to/ich9libreboot.rom XX:XX:XX:XX:XX:XX romsize" - echo "'romsize' is a number in MiB. Example: 8" - echo "(XX replaced with hex from your desired MAC address)" - exit 1 -fi -rompath=$1 -macaddress=$2 -romsize=$3 - -if [ ! -f "$rompath" ]; then - echo "ich9macchange: ROM image specified not found." - exit 1 -fi -if [ "$romsize" != "8" ]; then - if [ "$3" != "4" ]; then - echo "Invalid ROM size specified. It must be 4 or 8." - exit 1 - fi -fi - -./ich9deblob/$arch/ich9gen --macaddress $macaddress - -dd if=ich9fdgbe_"$romsize"m.bin of="$rompath" bs=1 count=12k conv=notrunc - -rm -f ich9fdgbe_4m.bin -rm -f ich9fdgbe_8m.bin -rm -f mkgbe.c -rm -f mkgbe.h -- cgit v1.2.3-70-g09d2