Products > Test Equipment
Rigol DSXXXX .GEL firmware file format
<< < (5/38) > >>
Userli:
There was indeed a dependency on the LZMA executable, which I missed. I'll try to integrate it in the main code. For the time being just put the LZMA#.exe into the same directory as the main rigolpacker.exe.
janekivi:
This is better now!
Let's step through this logo stuff too. I know the BMP and can edit it without changing its size.
800 x 480 x 3 + 54 bytes header is always 1152054 bytes. But there is no BMP, you have PNG.
Teach us too to edit this without changing its size.
Userli:
Where do you get the .png ?
In step 3 you click the button "Save image" to save it as .bmp.

et328:
File has .bmp extension but the actual fileformat seems to be .png
smithnerd:
The LZMA implementation used deviates from the spec slightly, looking at the header:


--- Code: ---5d 00 00 80 00 cc 20 3c 00 ef a7 10 00

--- End code ---

5d is packed lc, lp, pb bits, and 00 00 80 00 (8 MiB) is the dictionary size, as expected.

The next 8 bytes should be uncompressed file size as an unsigned little-endian 64 bit integer, but it isn't. Instead it is two unsigned 32 bit little-endian integers representing:

cc 20 3c 00 (3940556 bytes) uncompressed file size
ef a7 10 00 (1091567 bytes) compressed file size

Zero out the last 4 bytes and it decompresses without issue:


--- Code: ---5d 00 00 80 00 cc 20 3c 00 00 00 00 00

--- End code ---






Navigation
Message Index
Next page
Previous page
There was an error while thanking
Thanking...

Go to full version
Powered by SMFPacks Advanced Attachments Uploader Mod