diff options
-rwxr-xr-x | build | 14 | ||||
-rwxr-xr-x | buildrom-withgrub | 9 |
2 files changed, 14 insertions, 9 deletions
@@ -57,6 +57,20 @@ do ./buildrom-withgrub $board done +# Needed on i945 systems for the bucts/dd trick (documented) +# This enables the ROM to be flashed over the lenovo bios firmware +for i945board in x60 x60t t60 +do + cd bin/"$i945board"/ + for i945rom in $(ls) + do + dd if="$i945rom" of=top64k.bin bs=1 skip=$[$(stat -c %s "$i945rom") - 0x10000] count=64k + dd if=top64k.bin of="$i945rom" bs=1 seek=$[$(stat -c %s "$i945rom") - 0x20000] count=64k conv=notrunc + rm -f top64k.bin + done + cd ../../ +done + # The GRUB payloads are no longer needed rm -f coreboot/grub_vesafb.elf rm -f coreboot/grub_txtmode.elf diff --git a/buildrom-withgrub b/buildrom-withgrub index d0454ebd..b0971969 100755 --- a/buildrom-withgrub +++ b/buildrom-withgrub @@ -51,15 +51,6 @@ do # .config no longer needed rm -f .config - # Needed on i945 systems for the bucts/dd trick (documented) - # This enables the ROM to be flashed over the lenovo bios firmware - if [ "$1" = "x60" ] || [ "$1" = "x60t" ] || [ "$1" = "t60" ] - then - dd if="$1"_"$romtype".rom of=top64k.bin bs=1 skip=$[$(stat -c %s "$1"_"$romtype".rom) - 0x10000] count=64k - dd if=top64k.bin of="$1"_"$romtype".rom bs=1 seek=$[$(stat -c %s "$1"_"$romtype".rom) - 0x20000] count=64k conv=notrunc - rm -f top64k.bin - fi - # Add the correct GRUB configuration file for this image. for keymap in $(ls ../resources/utilities/grub-assemble/keymap/original) do |