ntrteam / ntrboot_flasher

🔓 Flash ntrboot to supported flashcarts using your 3DS.
https://3ds.hacks.guide/ntrboot.html
GNU General Public License v3.0
235 stars 33 forks source link

Possible to edit backup.bin? #78

Closed kuwoh closed 6 years ago

kuwoh commented 6 years ago

Is there any way to edit the backup.bin?

hedgeberg commented 6 years ago

...what? Why on Earth would you want to do that?

kuwoh commented 6 years ago

somehow to edit rom content? or patch stuff inside, etc.

hedgeberg commented 6 years ago

What would that gain you? How would you benefit by modifying the rom contents? I'm not trying to be cagey but what you're talking about seems to be without motivation and could be potentially disastrous if done incorrectly.

kuwoh commented 6 years ago

Well it's pretty much to put the auto boot flag to my flash cart, I've tried hex editing the contents of an arm7.bin, arm9.bin, header.bin, etc. to it. yet those didn't work cause i'm probably missing something. My best bet to make such a thing work is through an editor

hedgeberg commented 6 years ago

Well, frankly I don't know that much about rom editing, but it sounds like you may be forgetting to update the signatures/checksums over the headers. I don't know of any tools that do what you're talking about specifically but this feels like a lot of work for minimal reward and I'd suggest not pursuing it. Best recommendation I can make is reviewing the rom structure on gbatek. However, this is not an issue with ntrboot_flasher nor flashcart_core, so I'm likely going to close this issue.

On Dec 18, 2017 2:24 AM, "Ian" notifications@github.com wrote:

Well it's pretty much to put the auto boot flag to my flash cart, I've tried hex editing the contents of an arm7.bin, arm9.bin, header.bin, etc. yet those didn't work cause i'm probably missing something. My best bet to make such a thing work is through an editor

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ntrteam/ntrboot_flasher/issues/78#issuecomment-352345303, or mute the thread https://github.com/notifications/unsubscribe-auth/ADI0DcpIKBYOETKZ8JhwGvMImhB9NiKYks5tBhMWgaJpZM4RFDrQ .

handsomematt commented 6 years ago

In most cases your backup.bin is an NDS file, edit it with ndstool if you must, but at your own risk.

On 18 Dec 2017 7:27 am, "hedgeberg" notifications@github.com wrote:

Well, frankly I don't know that much about rom editing, but it sounds like you may be forgetting to update the signatures/checksums over the headers. I don't know of any tools that do what you're talking about specifically but this feels like a lot of work for minimal reward and I'd suggest not pursuing it. Best recommendation I can make is reviewing the rom structure on gbatek. However, this is not an issue with ntrboot_flasher nor flashcart_core, so I'm likely going to close this issue.

On Dec 18, 2017 2:24 AM, "Ian" notifications@github.com wrote:

Well it's pretty much to put the auto boot flag to my flash cart, I've tried hex editing the contents of an arm7.bin, arm9.bin, header.bin, etc. yet those didn't work cause i'm probably missing something. My best bet to make such a thing work is through an editor

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ntrteam/ntrboot_flasher/issues/78# issuecomment-352345303, or mute the thread https://github.com/notifications/unsubscribe-auth/ ADI0DcpIKBYOETKZ8JhwGvMImhB9NiKYks5tBhMWgaJpZM4RFDrQ .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ntrteam/ntrboot_flasher/issues/78#issuecomment-352345857, or mute the thread https://github.com/notifications/unsubscribe-auth/ABUu6_5pFjiipoQ2LI2VdOUZ7Hieok1Fks5tBhPsgaJpZM4RFDrQ .

kuwoh commented 6 years ago

i think i tried editing it with ndstool before and it returned a much larger size if i recall correctly

handsomematt commented 6 years ago

Idk man, this stuff is advanced and it seems you don't really know what you're doing.

On 18 Dec 2017 7:45 am, "Ian" notifications@github.com wrote:

i think i tried editing it with ndstool before and it returned a much larger size if i recall correctly

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ntrteam/ntrboot_flasher/issues/78#issuecomment-352348946, or mute the thread https://github.com/notifications/unsubscribe-auth/ABUu6wnbaz4eakAQsB__ZARqlON4A7Joks5tBhgrgaJpZM4RFDrQ .

kitlith commented 6 years ago

uh, backup.bin is not a NDS file except on specific carts where this happens to work. It's a raw flash backup that varies depending on the cart backed up (one TODO is to have a different name for each cart). You can modify and reflash it, we do no checks of our own on it. Be careful, however -- I'd reccomend having a physical programmer to read/write flash in case something goes wrong. We will not support restoration of images other than original images or replacement images downloaded in the event of a missing backup, though.