Ive got a vxworks (5.5 specifically) device that Ive been working on off and on for a few months now while other projects are slow. Have managed to get full disassemble of it, with a lot of the symbols, etc.
I've also found that I can edit some of the code for the firmware and upload it agian. Thanks to a few of the guys around here and on the IRC channel we were able to figure out the checksumming for the "wrapper" file which contains a zlib compressed image of the code, and some of the webpages that it the device serves up, changing the checksums allows for changing the webpages, but now Im looking to edit the real code.
Seems like this should be relatively simple, but when I recompress the image without editing the code and put it back into the file it won't take the upload. Im currently using the python zlib to compress it back, using Z_DEFAULT_COMPRESSION to deflate the edited file, which is what the original file was packed with (789c magic bytes), and I'm wondering if there are any known/common issues with this approach or any resources anyone could push me towards. Have been struggling with this more than a little while today and would love to have my own code running on the device this week.






