new approach on nk.bin modification

Started by mce2222, 16. Jul 2008, 01:07

previous topic - next topic
Go Down

is0-mick

I cant even find any text in the nb0 relating to certmod? Could the file still be compressed in the nb0?

Hoernchen

Fixed xipbin.exe, the crash was caused beacuse the tool did not expect compressed file entries, my fix is @ romldr.h line 695.
Unpacking the files works, creating a xip_out.bin seems to work, too - at least it creates the file without crashing ;)
The original source can be found here.
I hate, loathe, despise the abomination called managed C++ !
bringer of linux, conqueror of hdmi, jack of all trades.

mce2222

for some reason I got an error when i tried to start the exe. but compiling with vs2008 resulted in a working exe ...

the decompression part is nice, but I noticed, that the recompression produces larger binaries.

with the original xipport, i could dump and rebuild an xip.bin and the result was exactly the same as the source (except for some small changes in the pe headers)
with this new xipport, the rebuilt xip.bin is almost 1.5MB larger than the source... so I guess this would need some address fixing in the structure ??
also I do not really understand why decompressing + compressing results in bigger files... is there some different kind of compression level ?

anyway. i guess it would be an improvement to store the compressed and the decompressed files when dumping, and only use the decompressed files if there was a change done to the file, otherwise the original compressed data should be reused.

Hoernchen

The recompression creates larger binaries because i didn't change that part of the source, so it creates a new file with uncompressed entries in the FILES section ;)
The additional 1,5mb shouldn't really matter, there is plenty of hdd space available, but i guess i'm going to have some more 'fun' with managed c++ tonight...
bringer of linux, conqueror of hdmi, jack of all trades.

is0-mick




with the original xipport, i could dump and rebuild an xip.bin and the result was exactly the same as the source (except for some small changes in the pe headers)



I did try unpacking and rebuilding the nk.bin with the version that mce2222 used. It unpacked and recreated the file OK, but the box just crashed on loadup of the NK.BIN (black screen).

Mick

Go Up