Dude, I cannot get it to work for the life of me, I looked a bit, and added 0x before the keys, couldn't get armips to compile, found a compiled version in the rxTools thread for 3DS, and now get
Code:
D:\Downloads\iosuhax>make
make[1]: Entering directory `/d/Downloads/iosuhax/wupserver'
make[1]: Leaving directory `/d/Downloads/iosuhax/wupserver'
patches/0x10700000.s
make: execvp: armips: Bad file number
make: *** [patched_sections/0x10700000.bin] Error 127
>inb4 i use the wrong tags
The version from rxTools won't work.
(Check your PM)
And, you will need to edit the python script in IOSUHAX's anpack.py to get the keys to work properly.
def encrypt(self, file, offset):
key = 'B5xxxxxxxxxxxxxxxxxxxxxxxxxxxxFD'
iv = '91xxxxxxxxxxxxxxxxxxxxxxxxxxxx22'
key = key.decode('hex');
iv = iv.decode('hex');
file.seek(offset)
buffer = ""
hash = hashlib.sha1()
Add in the two lines below the key/iv and you should be good to go. (Of course replace the xx with the real keys...)
There is another "trick" to getting this to create a viable working
fw.img.full.bin file for it to work with.
You must:
1: Take a fresh downloaded
FW.IMG file
2: Open it up in a hex editor and cut the first 0x200 bytes and save them to a new "Header.bin" file (You will need them later)
3: Save the stripped down FW.IMG file (without the 0x200 bytes)
4: Use OPENSSL with both the
key and the proper
iv
5: Paste the "Header.bin" to the top of the results from OPENSSL (What SMEA called "Prepend", not sure that's really a word...)
6: Rename it to
fw.img.full.bin and put it in the bin folder
7: make
--------------------- MERGED ---------------------------
Just for documentation purposed, and incase anyone can answer. 0x8120000.s in patches calls for sections/0x8140000.bin and patches_sections/0x8140000.bin and neither of them exist.
Thinking he might of meant 0x8120000?
It should create all of them if the input file is fixed like above.
I had that same issue until I made a new input file.
Now I can delete everything in the iosuhax\patched_sections folder and it re-creates all of them - no edits to any of the scripts.