PDA

View Full Version : Bin modification?



jvvh5897
01-22-2016, 06:46 PM
Just wondering if anyone ever ran across a program to get clear code out of the I-link files?

The bin structure is shared with a number of other boxes like Freesat. You see "CMOS" at the start of the files and then there are a number of bin "parts" with addresses, offsets and sizes but you don't see any clear text and the files don't compress well so they are either compressed already or scrambled in some way. The first part starts 0xd0 bytes into the files. I would like to see some of the code in there for the 8psk module support with Broadcom chip.

Condor
01-22-2016, 10:33 PM
Just giving u a little bump here JV

jvvh5897
01-23-2016, 09:21 PM
I've been playing with the files a little and with compression methods. I'm convinced that the parts are compressed if the fourth word is 1, 1st word is the place in RAM to put the part, the 2nd word is the offset into the file and the 3rd word is the uncompressed size if compression was used (you have to subtract the offsets of two lines to see the size compressed):
example header
000000 43 4D 4F 53 00 00 03 02-00 16 21 1A 00 00 E0 A0
000010 56 65 72 30 31 2E 30 30-80 10 81 00 00 00 00 0B
000020 80 0A 00 00 00 00 00 D0-00 2B FE 64 00 00 00 01--800a0000 in RAM, d0 offset in file, 2bfe64 bytes unpacked, compression used
000030 80 35 FE 68 00 17 AD E2-00 00 A8 58 00 00 00 01
000040 80 36 A6 C0 00 18 07 59-00 00 04 00 00 00 00 01
000050 80 36 AA C0 00 18 09 C1-00 00 01 68 00 00 00 01
000060 80 36 AC 28 00 18 0A 8D-00 00 00 00 00 00 00 00
000070 80 36 AC 28 00 18 0A 8D-00 00 09 C4 00 00 00 01
000080 80 36 B5 EC 00 18 10 A1-00 00 00 04 00 00 00 00--no compression used and offset to next piece is = size
000090 80 36 B5 F0 00 18 10 A5-00 00 00 01 00 00 00 00
0000A0 80 36 B6 00 00 18 10 A6-00 09 AA BB 00 00 00 01--note another big part
0000B0 80 40 60 C0 00 1E 64 0C-00 1E 93 40 00 00 00 01
0000C0 80 5E F4 00 00 2D B1 E7-00 00 4D 5C 00 00 00 01
0000D0 0C 04 13 AF 5F EF 05 7A-FC 00 0C 57 AC 40 00 45

I think the compression type is an older one, around the same age as lzss but more like lz78 or one of the early lzw. You can see a number of 0x00 in the parts that are compressed and newer compression types would not leave those. Earlier compression types would leave text fragments and I don't see any of those.

jvvh5897
01-28-2016, 07:11 PM
Well, I tried a number of diff loss-less compression source codes and none seem to be right. LZO is close. Might be a specialized tool that does something else than just compression. I pretty much need a boot to figure it out. Topsat 5000 was one box that used the CMOS format after 2011 but not before--might be a good clue if the transition file could be found for it.