Add details for downloading the t430s firmware
parent
d218e0e1ba
commit
bee7ced73e
@ -0,0 +1 @@
|
||||
418bdab59ed0cf8da52078c1f2949f3fec441f0b g7uj18us.iso.orig
|
@ -0,0 +1 @@
|
||||
g7uj18us.iso.orig 0x7c5600 196608
|
@ -0,0 +1 @@
|
||||
6e68545a76b42d534c8a4b24a63bf7bece996522 t430s.G7HT39WW.img.orig
|
@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Quick and dirty extracter to get the EC image out of the iso file
|
||||
#
|
||||
# TODO:
|
||||
# - a tool that is portable to Windows
|
||||
# - should output dependancy information
|
||||
|
||||
OUT="$1"
|
||||
if [ -z "$OUT" ]; then
|
||||
echo Need output filename
|
||||
exit 1
|
||||
fi
|
||||
|
||||
INFOFILE="$OUT.offset"
|
||||
if [ ! -r "$INFOFILE" ]; then
|
||||
echo Cannot find file with source and offset info
|
||||
exit 1
|
||||
fi
|
||||
|
||||
read SOURCE OFFSET LENGTH <"$INFOFILE"
|
||||
|
||||
# assume that output filename is blahdyblah.img.orig
|
||||
OUT1=$(basename "$OUT" .orig).enc.orig
|
||||
|
||||
set -x
|
||||
|
||||
dd if=$SOURCE bs=$[$OFFSET] skip=1 | dd bs=$[$LENGTH] count=1 of="$OUT1"
|
||||
mec-tools/mec_encrypt -d "$OUT1" >"$OUT"
|
||||
|
Loading…
Reference in New Issue