Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.0.0 released... feature complete :) #2

Open
wants to merge 277 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
277 commits
Select commit Hold shift + click to select a range
7f64f9b
updated matcher to be more simple...
nyetwurk Jan 4, 2013
e812f3b
Normalize all addresses in a central place. Count bad decriptors and …
nyetwurk Jan 4, 2013
d6b8b92
clean up the output a bit
nyetwurk Jan 4, 2013
f2c8219
If can't find 512k image CRC regions, use defaults
nyetwurk Jan 4, 2013
d39b8c4
Clean up debugging
nyetwurk Jan 4, 2013
f25dc97
Don't try any corrections if we didn't find all of the crc/checksum a…
nyetwurk Jan 4, 2013
939b452
Make result a bit more obvious
nyetwurk Jan 4, 2013
fc1387d
Add all known bins
nyetwurk Jan 4, 2013
b2f0094
C and M are correctly autodetected
nyetwurk Jan 4, 2013
85c3a23
add "Audi A6 allroad 2.7T BEL 250HP 4Z7907551R"
Jan 4, 2013
4f5a30c
cosmetic changes.
Jan 4, 2013
ab33cd4
getopt(3) returns an int and not a char
rnagy Jan 4, 2013
19d7852
Add way to override crc[0] range. Roll CRC based on crc[0], not crc[4…
Jan 4, 2013
4b36998
Add new readme and sample.ini file
Jan 4, 2013
178738f
Add github info
Jan 4, 2013
ce44736
Add test script
Jan 4, 2013
7758488
Fix typos
Jan 4, 2013
88ba078
Fix fencepost error in ROM info dumping
Jan 4, 2013
40e0c5e
Add mbox dump info
Jan 4, 2013
56524ea
Cosmetic
Jan 4, 2013
19fdd23
I'm stupid. Fix retarded typo
Jan 5, 2013
eb8bacd
Finally found bad free... must strdup defval, since get_property retu…
nyetwurk Jan 5, 2013
b5f9b1f
Convert to using const chars instead of buffers
nyetwurk Jan 5, 2013
761a1b5
Missed a few const conversions
nyetwurk Jan 5, 2013
f9d9924
Fix segfault when trying to strdup defaults
nyetwurk Jan 5, 2013
6e71426
undo strdup change. free happens elsewhere, not by the caller of get_…
nyetwurk Jan 5, 2013
258034a
Ugly. get_prop always returns non-const, because the strings are inte…
nyetwurk Jan 5, 2013
461744d
on unix only gnu make is supported
rnagy Jan 5, 2013
a351f1b
get_prop and find_prop do indeed return const chars; they are interna…
nyetwurk Jan 5, 2013
6a77463
type fixes
rnagy Jan 5, 2013
6a2c9a5
Move some of the dump stuff into a ME7 common "[info]" area in the in…
nyetwurk Jan 5, 2013
df6174b
put os specific stuff in os/os.h
nyetwurk Jan 5, 2013
9e6416b
Merge branch 'master' of https://github.com/rnagy/ME7Sum
nyetwurk Jan 6, 2013
9e1df99
back out bad merge
nyetwurk Jan 6, 2013
e601787
Prepare for getting version from git
nyetwurk Jan 6, 2013
d7899c0
stupid typo
nyetwurk Jan 6, 2013
10790d1
Add git version printing
nyetwurk Jan 6, 2013
dafdfd7
cosmetic
nyetwurk Jan 6, 2013
857a5b2
Add build targets for making windows version and for making a zip
nyetwurk Jan 6, 2013
b554e17
typo, cosmetic
nyetwurk Jan 6, 2013
da5ef83
new bins, add part-numbers.txt
nyetwurk Jan 6, 2013
50665da
Merge branch 'master' of github.com:nyetwurk/ME7Sum
nyetwurk Jan 6, 2013
dfff4ba
Just get rid of %z in printfs. Too much trouble.
nyetwurk Jan 7, 2013
1607224
A bunch more new bins :)
nyetwurk Jan 7, 2013
12dbb2c
Allroad P and N are BES, not BEL
nyetwurk Jan 7, 2013
bfb3990
Don't copy back out normalized offsets! Only update csum...
nyetwurk Jan 7, 2013
62c87a3
minor updates
nyetwurk Jan 7, 2013
b52ac69
More minor revisions
nyetwurk Jan 7, 2013
c945ec6
Add allroad 4z-l
nyetwurk Jan 7, 2013
a67c368
minor updates
nyetwurk Jan 7, 2013
54d8778
minor change
nyetwurk Jan 7, 2013
acf5f7a
Update a few more BEL/ar items
nyetwurk Jan 7, 2013
24c519b
Fill in rest of region and engine codes; sort by region
nyetwurk Jan 7, 2013
22beb80
Ooops. Don't double swap multipoint checksums. Thankfully we're on li…
Jan 8, 2013
de66dec
README changes (note about ME7.5) and add "6sp" to all Euro S4 part-n…
nyetwurk Jan 10, 2013
41b09e6
update README
Jan 11, 2013
5472eaf
Cosmetic
Jan 11, 2013
a98f9a8
MY for A6 551L box
Jan 15, 2013
8f3c439
Oops. Actually add .exe to zip.
nyetwurk Jan 26, 2013
2f48b12
Use nearest tag for GITVERSION
nyetwurk Jan 26, 2013
f91f71f
ugh. forgot --tags in nmake build
nyetwurk Jan 27, 2013
8e09b55
Add 4Z7907551M
nyetwurk Feb 10, 2013
c41f8f5
hmm
Feb 14, 2013
d0a5519
Proper 4Z7-R image
Feb 18, 2013
0c63fa9
Looks like 4Z7..R is A6?
Feb 18, 2013
cfff8dc
Add 4B0 AH/AL - still not sure about A6 vs ar
Feb 18, 2013
83acd34
Roll in ME7Check, update README
nyetwurk Feb 28, 2013
7aaf35c
Update readme with new thread layout
nyetwurk Feb 28, 2013
c4be690
Augh. Cosmetic
nyetwurk Feb 28, 2013
6ce7b4c
add 4Z7907551E
nyetwurk Mar 6, 2013
70dc733
update part-numbers
nyetwurk Mar 6, 2013
6f821cc
Add support for mini-multipoint descriptor that describes 0x24000-26x…
nyetwurk Mar 8, 2013
7ec91da
Allow inv to be wrong when checking for MP block #1... MTX corrupts it
nyetwurk Mar 8, 2013
9a7d718
A few updates
nyetwurk Mar 8, 2013
952cd88
Two variants of L box!
nyetwurk Mar 12, 2013
85a1ecf
Add 4z7-B.bin
nyetwurk Mar 27, 2013
fbd27f1
Add 4b0-k 2740
nyetwurk Apr 1, 2013
4bc0a08
Oops forgot the bin
nyetwurk Apr 1, 2013
50ce2bc
ugh. stupid windows
nyetwurk Apr 1, 2013
7094b12
add notes for 512K bins
nyetwurk May 23, 2013
7ec313e
8D0907551L.bin (S4) is actually 4B0907551L (A6)
nyetwurk Jun 11, 2013
f5af200
Clean up binaries... lots were named wrong.
nyetwurk Jun 13, 2013
4d6956e
remove probably inaccurate comment
nyetwurk Jun 13, 2013
4de0cec
Add allroad h box
nyetwurk Jul 3, 2013
baa6ffb
4z h box is apparently EU tip
nyetwurk Jul 3, 2013
2fe92f0
Add 551M 0001
nyetwurk Jul 22, 2013
a6aa6d8
update part-numbers
nyetwurk Jul 22, 2013
0ba4041
automatically detect the compiler binary's name, especially for mingw…
Aug 6, 2013
897f879
Merge pull request #6 from rnagy/master
nyetwurk Aug 6, 2013
9bc7256
Add 8D0907551D-0001
nyetwurk Apr 12, 2014
7b0fbe8
Add cleanup script
nyetwurk Apr 12, 2014
edfbe43
Some boxes don't have a subver
nyetwurk Apr 12, 2014
023a048
add 4Z7907551Q.bin
nyetwurk Apr 23, 2014
cee6c7d
add 4B0907551M
May 13, 2014
31de0c2
Add S4 EBox
nyetwurk Jul 22, 2014
667d3ec
Cosmetic
nyetwurk Jul 25, 2014
69ea50f
BEL can be 6sp or tip
nyetwurk Jul 27, 2014
20ca659
Put optional messages into a string buffer, add verbose option so we …
Sep 17, 2014
b404f00
forgot to add str source
Sep 17, 2014
a0bd58e
Get rid of a few more debug messages that clutter things
Sep 17, 2014
c5f8663
Cosmetic. Spelling error, remove excess linefeeds
Sep 17, 2014
7f931d6
Avoid array subcript errors for ctype functions
nyetwurk Sep 17, 2014
afb874e
Initial pass at ME7.1.1 support
nyetwurk Sep 24, 2014
1736ccd
Cosmetic: make functions for both bytewise and wordwise checksums
nyetwurk Sep 24, 2014
309048c
First pass at VS support
nyetwurk Sep 24, 2014
344c294
MS VC support for str.[ch]
nyetwurk Sep 24, 2014
0469486
Cosmetic
nyetwurk Sep 24, 2014
672b997
Proper va_copy handling
nyetwurk Sep 24, 2014
81e36e8
Add ROMSYS support
Sep 25, 2014
e4ac0ed
Allow forcing csum vs crc checking via ini
Sep 25, 2014
214afc5
Ditch inis, they just confuse things
nyetwurk Sep 25, 2014
6fadd14
Match a few more variants
nyetwurk Sep 25, 2014
c5499d5
Update readme
nyetwurk Sep 25, 2014
035128a
Add a 559 file for yuks
nyetwurk Sep 25, 2014
e50644c
Detect padded or doubled files
Sep 25, 2014
bb43098
oops fix typo
Sep 25, 2014
fc11681
Preserve padding, if detected
Sep 26, 2014
d7dff89
Cosmetic
Sep 26, 2014
6c17d0f
Try to autodetect 512k checksum blocks... wow. I guess you have to ha…
Sep 26, 2014
7aa1991
Backout last patch. Looks like we really need to hardcode 512k crc bl…
Sep 26, 2014
273d065
Add BootROM multipoint checking
Sep 26, 2014
1b1c424
Update README
nyetwurk Sep 26, 2014
b80b71e
fix typo in README
nyetwurk Sep 26, 2014
8600717
Cosmetic: clean up messages. CRC blocks/regions are actually CRC or c…
Sep 26, 2014
8f7b439
Merge branch 'master' of github.com:nyetwurk/ME7Sum
Sep 26, 2014
5a6b674
Fix compiler warnings when printf'ing size_t types
nyetwurk Sep 27, 2014
d7d319e
ARGH MS Visual Studio does not have %z. GRR
nyetwurk Sep 27, 2014
c5e72b3
Cosmetic.
Sep 27, 2014
aef74c9
More cosmetic printf changes
Sep 27, 2014
112bed0
More ME7.5 support, cosmetic changes
nyetwurk Sep 27, 2014
7520a87
Add detection of RSA offsets (no checking or correcting yet)
nyetwurk Sep 28, 2014
7887730
ntohl() exists in winsock in WIN32
nyetwurk Sep 28, 2014
618f780
Refine a few matching patterns to only allow things in the base page,…
nyetwurk Sep 28, 2014
d4f6495
If all else fails, try 512k harcoded CRC blocks if looks like it migh…
nyetwurk Sep 28, 2014
06f437b
Initial pass at RSA support - depends on GNU GMP library, so no MS VS…
nyetwurk Sep 29, 2014
408506c
Minor cosmetic changes to RSA/MD5 display
nyetwurk Sep 29, 2014
760a873
Missed one cosmetic change
nyetwurk Sep 29, 2014
144c1df
More cosmetic cleanups
nyetwurk Sep 29, 2014
5669307
First pass at RSA corrections
Sep 30, 2014
d0b1646
Loosen MD5 crc region finding
nyetwurk Sep 30, 2014
405054f
Make rsa.c a bit more portable
nyetwurk Sep 30, 2014
7503e83
Initial mpir support, incomplete until we find a nice static library
nyetwurk Sep 30, 2014
727eeee
Free mpz_t variables
nyetwurk Sep 30, 2014
ca2be76
For now, just add precompiled mpir.lib
nyetwurk Sep 30, 2014
04dc1bc
split out prime generation from code generation, don't correct if key…
nyetwurk Sep 30, 2014
09c8baa
Validate new sig/pubkey combo, cosmetic - move srand() where it belongs
Sep 30, 2014
b913820
Refactor calls in rsa.c to make code more clear. Make sure bit length…
Sep 30, 2014
297e2d9
Update README with note about RSA
nyetwurk Sep 30, 2014
2ced176
Get rid of excess print
nyetwurk Oct 1, 2014
f65e966
Cosmetic. Line up address and add/calcadd prints
nyetwurk Oct 1, 2014
9f7b2f7
Properly align exported mpz_ts with leading zeros
nyetwurk Oct 2, 2014
cdc1c88
Update readme
nyetwurk Oct 2, 2014
e312b6c
remove ini crap
nyetwurk Oct 2, 2014
50ef29f
Cosmetic, move prints around a bit
nyetwurk Oct 2, 2014
556d086
Properly calculate size of exported mpz_t
nyetwurk Oct 2, 2014
47203c8
Cosmetic, whitespace
nyetwurk Oct 2, 2014
2180e91
Check padding length, cosmetics
nyetwurk Oct 2, 2014
2bb37a3
First pass at EPK/PN detection
nyetwurk Oct 4, 2014
a224798
Ugh. Stupid win32
nyetwurk Oct 4, 2014
5cfa75f
Make room for argv[] NULL term in str_split
nyetwurk Oct 4, 2014
7d3ec15
Fix EPK detection
nyetwurk Oct 4, 2014
30fddfc
Fix fencepost error in EPK length calc
nyetwurk Oct 4, 2014
6e57b9d
Add SSECUSN and SSECHN
nyetwurk Oct 4, 2014
bec9aa6
Add -e option to print ecu info only
nyetwurk Oct 4, 2014
c6be229
use new -e option of me7sum
nyetwurk Oct 4, 2014
cf026b7
oops SSECU nums are 10 chars
nyetwurk Oct 4, 2014
e0ceccc
strip spaces
nyetwurk Oct 4, 2014
c07fe65
Partial cleanup
nyetwurk Oct 4, 2014
9fa4c95
more cleanups
nyetwurk Oct 4, 2014
2c5c46a
wow WIN32 sucks. _snprintf does not null terminate on overflow. Assho…
nyetwurk Oct 4, 2014
bfc9db7
Don't allow -e and outputfile
nyetwurk Oct 4, 2014
967c473
Cosmetic
nyetwurk Oct 4, 2014
6cef413
rename -e to -s
nyetwurk Oct 4, 2014
0a743ac
Support images that have both main CRCs AND checksums (e.g. 06A906032HS)
Oct 6, 2014
f18de55
Cosmetic: unify some printing of offsets vs data, etc
nyetwurk Oct 6, 2014
459f258
Add a bunch more bins to test
Oct 7, 2014
a4cf4b6
Add helpful debugging
Oct 7, 2014
365f6a0
Add debugging
Oct 7, 2014
dd74ca3
Add a few more test bins
nyetwurk Oct 7, 2014
87556e9
Add linux bin
nyetwurk Oct 9, 2014
fa836e2
Simplify search_image() API, handle ASM with segment rather than high…
nyetwurk Oct 9, 2014
5120f97
Properly detect and locate ECUID table
Oct 9, 2014
8f03131
ARGH. Stupid MSVC
nyetwurk Oct 9, 2014
c92b402
Yep, there is whitespace in those damn P/Ns
Oct 9, 2014
3121be7
Allow EPK to be missing
Oct 10, 2014
8c6ec51
Error if no main data checksums
Oct 10, 2014
882d3bc
Cosmetic: whitespace
Oct 10, 2014
b74ff03
Print what output file is if corrections done
nyetwurk Oct 11, 2014
0cc5bad
Detect tuner modified CRC tables
nyetwurk Oct 13, 2014
7b3abda
Add note about tuner modified checksumming to README
nyetwurk Oct 13, 2014
0f17c51
Ooops. letab is already little endian.
nyetwurk Oct 13, 2014
7bccde1
Cosmetic: remove a bit of printing to make stuff less chatty
nyetwurk Oct 13, 2014
f5ce31b
Make room for 0003 AK
nyetwurk Oct 13, 2014
ed39020
Add new 1.8t bin
nyetwurk Oct 13, 2014
83e4c44
Add way to use multiple -s to abort early. Search for CRC using ASM. …
nyetwurk Oct 14, 2014
ef0ff0b
Add a few new test bins
Oct 14, 2014
57bb427
One more file for fun
nyetwurk Oct 14, 2014
b52b6d9
Ugh. stupid windows executable perms
Oct 14, 2014
f366720
new file
nyetwurk Oct 15, 2014
812979b
Fail more elegantly if can't find file
nyetwurk Oct 15, 2014
f0e67a7
Test for bad read (first word is 0000)
nyetwurk Oct 15, 2014
697cdf6
Detect (and properly detect) case where checksum to be corrected is w…
nyetwurk Oct 30, 2014
292785c
Cosmetic: comment misplacement
nyetwurk Oct 30, 2014
6d6930c
Cosmetic, formatting
nyetwurk Nov 1, 2014
b7e1155
add 1.8t HN
nyetwurk Nov 1, 2014
b6e64e5
Cosmetic: This is me7sum not me7tool!
Nov 20, 2014
efb3df7
Flag unexpected RSA unpad errors as uncorrectable, add some commented…
nyetwurk Dec 31, 2014
2aec3ef
Update readme with new bug info
nyetwurk May 17, 2015
154f27f
Just use whatever is native
nyetwurk Jun 11, 2017
b28126d
use LD not CC when linking
nyetwurk Jul 22, 2017
a5a7966
Attempt to fix issue #7 - Correcting Main Data Checksums modifies are…
nyetwurk Jul 22, 2017
bc00160
Don't refer to system includes in dependency files.
nyetwurk Jul 23, 2017
f1aae29
Initial version of automatic deps recheck
nyetwurk Jul 24, 2017
d471820
Cosmetic, always print dots whenever we skip MP block printing.
nyetwurk Jul 24, 2017
7db89f5
Reformat README into README.md
nyetwurk Jul 24, 2017
d280dbd
Add new file to makefile
nyetwurk Jul 25, 2017
e9cdd90
Allow list.h to compile under MSVC, whitespace cleanup
nyetwurk Jul 25, 2017
c016dd6
offsetof requires stddef.h, add option to use sanitizer
nyetwurk Jul 25, 2017
b76cef1
Support VS 2017
nyetwurk Aug 19, 2017
d061a73
Add mingw support, add new mpir library built from 3.0.0 with vs 2017
nyetwurk Aug 19, 2017
570fc33
Darwin support
nyetwurk Jul 24, 2019
963c522
Issue #10 - check return value of write()
nyetwurk Jan 27, 2020
9deed9d
Update README.md
nyetwurk Jan 27, 2020
0d2805d
Fixed Issue #9
Jan 28, 2020
0d5e180
Merge pull request #11 from aryaanlambe/master
nyetwurk Jan 28, 2020
9bc10b5
Define __GIT_VERSION so IDEs don't bitch.
nyetwurk Feb 17, 2021
49a3be5
handle non-zero callback return value, whitespace
nyetwurk Feb 17, 2021
21315cd
cosmetic fixes
nyetwurk Feb 17, 2021
1bd6c9b
Split ROMSYS into two, move ROMSYS_PP and RSA checking to be after CS…
nyetwurk Feb 17, 2021
c29aa89
Add problematic bin
nyetwurk Feb 18, 2021
a1721c9
Rework range handling
nyetwurk Feb 18, 2021
e837b01
Add 8D0 A and G variants
nyetwurk May 16, 2021
49cb81c
Handle short RSA padding
nyetwurk Jul 24, 2021
4a5612b
Update win32 support
nyetwurk Jul 24, 2021
9622859
gh-pages moved to https://nyetwurk.github.io/ME7Sum/
nyetwurk Jul 24, 2021
097447e
Add dependency report to test
nyetwurk Mar 13, 2022
7300bf9
Add RSA modulus to dependency checker
nyetwurk Mar 13, 2022
4f4c1e8
Put RSA before Main data CRC/checksums
nyetwurk Mar 13, 2022
0769b62
Redo test.sh
nyetwurk Mar 15, 2022
0646a00
Latest macos inexplicably puts homebrew junk in /opt/homebrew and not…
nyetwurk Sep 24, 2022
d374a57
Add MacOS instructions
nyetwurk Sep 24, 2022
e503ccc
prevent (inaccurate) malloc range warning
nyetwurk Sep 25, 2022
b9301e4
Issue #12: Add basic CI for linux and windows, move broken bins to br…
nyetwurk Oct 27, 2024
8efeff9
Issue #12: CI: add macos, add release workflow
nyetwurk Oct 28, 2024
78040e6
Issue #12: README: all releases are at https://github.com/nyetwurk/ME…
nyetwurk Oct 28, 2024
f7361f0
Remove old mpir lib
nyetwurk Oct 29, 2024
d2ce880
fix windows artifacts build
nyetwurk Oct 29, 2024
4ccfb48
add 8D0907551N.bin
nyetwurk Mar 1, 2025
88fa997
Update part numbers
nyetwurk Mar 1, 2025
778b171
Add a bunch of missing bins
nyetwurk Mar 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cosmetic changes.
  • Loading branch information
Nye Liu committed Jan 4, 2013
commit 4f5a30caa36546548fe62e11a0f44b1aef707896
10 changes: 5 additions & 5 deletions me7sum.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,15 +643,15 @@ static int DoMainCRCs(struct ImageHandle *ih)

if (nCRCAddr+4>ih->len)
{
printf(" @0x%x INVALID ADDRESS\n", nCRCAddr);
printf(" @%05x INVALID ADDRESS\n", nCRCAddr);
}
else if (nCRCAddr)
{
/* possibly unaligned, so we cant do tricks wtih ih->d.u32 */
p32=(uint32_t *)(ih->d.u8 + nCRCAddr);
nCRC=le32toh(*p32);

printf(" @0x%x CRC: %08X CalcCRC: %08X", nCRCAddr, nCRC, nCalcCRC);
printf(" @%05x CRC: %08X CalcCRC: %08X", nCRCAddr, nCRC, nCalcCRC);

if (nCalcCRC != nCRC)
{
Expand All @@ -673,7 +673,7 @@ static int DoMainCRCs(struct ImageHandle *ih)
printf(" CRC OK\n");
}
} else {
printf(" CalcCRC: %08X\n", nCalcCRC);
printf(" CalcCRC: %08X\n", nCalcCRC);
}

if (Config.crc[4].r.start && Config.crc[4].r.end)
Expand Down Expand Up @@ -802,7 +802,7 @@ static int DoMainChecksum(struct ImageHandle *ih, uint32_t nOffset, uint32_t nCs
uint32_t nCalcChksum;
uint32_t nCalcChksum2;

printf(" ROM Checksum Block Offset Table @0x%X [16 bytes]:\n",
printf(" ROM Checksum Block Offset Table @%05x [16 bytes]:\n",
Config.main_checksum_offset);

// C16x processors are little endian
Expand Down Expand Up @@ -837,7 +837,7 @@ static int DoMainChecksum(struct ImageHandle *ih, uint32_t nOffset, uint32_t nCs
// copy from (le) buffer
memcpy_from_le32(&csum, ih->d.u8+nCsumAddr, sizeof(csum));

printf(" @0x%x Chksum : 0x%08X", Config.main_checksum_final, csum.v);
printf(" @%05x Chksum : 0x%08X", Config.main_checksum_final, csum.v);
if(csum.v != ~csum.iv)
{
printf(" ~Chksum : 0x%08X INV NOT OK", csum.iv);
Expand Down