-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ElF file bootrom.bin "no such file or directory: bootrom.bin" Ubuntu #63
Comments
Got it resolved, now it shows? |
First, just worked with python2 and section addres error. elf = esp_bin2elf.convert_rom_to_elf(rom, section_names, 'flash_bin.elf') |
I'm sorry but I have no idea what you're trying to do or how it's related to rBoot. It looks like you're using some tooling I've never seen before, perhaps the author of these python tools would be better able to answer your question. |
Thank you ! I´ll ask him. |
Found a way! got the ELF directly from Arduino build :). Super easy. Thank you. |
Hi Richard. I´m still pushing to minimize hacker chances of copy code. |
You could easily encrypt the iram section, and have rboot decrypt them on startup, perhaps based on the serial number (if you can easily access it in baremetal mode). But the rboot code that does the decryption can't be encrypted, so a hacker could easily decompile rboot and see exactly how the decryption is done, and then remove the encryption. It would prevent home cloning by the average user, but offers no serious protection. |
Ok thank you. I´ll try. |
Richard, with this solution is possible to encrypt the flash content ? thank you |
Not code on flash. irom segments are not loaded to ram, such that you could
decrypt them when loaded. The flash is memory mapped, so all code being
executed from flash by this method needs to be stored on the flash
unencrypted.
…On Fri, 3 Feb 2023, 4:51 pm aldock, ***@***.***> wrote:
Richard, with this solution is possible to encrypt the flash content ?
thank you
—
Reply to this email directly, view it on GitHub
<#63 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADJ3BYGLT4CJAWOHJYSAJ3WVUZSPANCNFSM6AAAAAAUDYTJZU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi Richard,
Hope you can help.
I´m trying to generate ELF file from my code, to find out any breach on it, following the orientation below
OK: import esp_bin2elf
Ok: import flash_layout
Ok: flash_layout = flash_layout.layout_without_ota_updates
Ok: rom = esp_bin2elf.parse_rom('flashdump.bin', 'path/to/flashdump.bin', flash_layout)
Ok: section_names = esp_bin2elf.name_sections(rom)
Fail: elf = esp_bin2elf.convert_rom_to_elf(rom, section_names, 'flash_bin.elf')
error: "no such file or directory: bootrom.bin"
I have changed directory, permissions etc, but no one resolved.]
May i use bootrom.bin from the code or should i generate a new one ?
Than you!
The text was updated successfully, but these errors were encountered: