mirror of
https://github.com/hamishcoleman/thinkpad-ec
synced 2024-11-04 06:00:12 +00:00
Add x230 image and infrastructure
This commit is contained in:
parent
920c67f7cf
commit
5e88282a7b
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
[submodule "mec-tools"]
|
||||
path = mec-tools
|
||||
url = https://github.com/eigenmatt/mec-tools
|
13
Makefile
13
Makefile
@ -21,6 +21,17 @@ install.radare.projects:
|
||||
#
|
||||
# If we have an extractor for this image, use it
|
||||
%.img: %.extract %.img.sha1
|
||||
./$< > $@
|
||||
./$< $@
|
||||
sha1sum -c $@.sha1
|
||||
|
||||
mec-tools/Makefile:
|
||||
git submodule update --init --remote
|
||||
|
||||
mec-tools/mec_encrypt: mec-tools/Makefile
|
||||
make -C mec-tools
|
||||
|
||||
#
|
||||
# TODO:
|
||||
# - most of these dependancies could be automatically calculated
|
||||
x220.8DHT34WW.extract: 8duj27us.iso
|
||||
x230.G2HT35WW.extract: g2uj23us.iso mec-tools/mec_encrypt
|
||||
|
1
g2uj23us.iso.sha1
Normal file
1
g2uj23us.iso.sha1
Normal file
@ -0,0 +1 @@
|
||||
d4f9d597ea792f966257c01c3b5442354f0b3cc8 g2uj23us.iso
|
1
mec-tools
Submodule
1
mec-tools
Submodule
@ -0,0 +1 @@
|
||||
Subproject commit 5e30f2bf7dcfe3ee084b65f237ee50a6936eec89
|
@ -6,5 +6,11 @@
|
||||
# - a tool that is portable to Windows
|
||||
# - should output dependancy information
|
||||
|
||||
dd if=8duj27us.iso bs=$[0x005e2a00] skip=1 | dd bs=196608 count=1
|
||||
OUTPUT="$1"
|
||||
if [ -z "$OUTPUT" ]; then
|
||||
echo Need output filename
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dd if=8duj27us.iso bs=$[0x005e2a00] skip=1 | dd bs=196608 count=1 of="$OUTPUT"
|
||||
|
||||
|
20
x230.G2HT35WW.extract
Executable file
20
x230.G2HT35WW.extract
Executable file
@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
|
||||
OUTPUT="$1"
|
||||
if [ -z "$OUTPUT" ]; then
|
||||
echo Need output filename
|
||||
exit 1
|
||||
fi
|
||||
|
||||
OUT1="${OUTPUT}.encrypted.orig"
|
||||
|
||||
dd if=g2uj23us.iso bs=$[0x01076600] skip=1 | dd bs=196608 count=1 of="$OUT1"
|
||||
|
||||
mec-tools/mec_encrypt -d "$OUT1" >"$OUTPUT"
|
||||
|
1
x230.G2HT35WW.img.sha1
Normal file
1
x230.G2HT35WW.img.sha1
Normal file
@ -0,0 +1 @@
|
||||
d70f5434ef316a66a6195651d9e231e84a2464a1 x230.G2HT35WW.img
|
Loading…
Reference in New Issue
Block a user