diff options
Diffstat (limited to 'buildrom-withgrub')
-rwxr-xr-x | buildrom-withgrub | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/buildrom-withgrub b/buildrom-withgrub index b86bbe9..c7f9f03 100755 --- a/buildrom-withgrub +++ b/buildrom-withgrub @@ -61,6 +61,15 @@ do # .config no longer needed rm -rf .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 -rf top64k.bin + fi + # Generate each type of GRUB configuration for this type of ROM image for keymap in $(ls ../resources/utilities/grub-assemble/keymap/original) do |