Skip to content
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

Disable serial output from bootrom #1

Open
pabloko opened this issue Dec 10, 2017 · 0 comments
Open

Disable serial output from bootrom #1

pabloko opened this issue Dec 10, 2017 · 0 comments

Comments

@pabloko
Copy link

pabloko commented Dec 10, 2017

Hey, ive seen your awesome development at bootrom disassembly, as im not very aware with this processor arch, im looking for a way to disable the bootrom output, at least the bootrom log that is sent during boot.

As i see the main method has this logic
40001069: 054601 call0 400024cc <ets_printf>

What comes to my mind is to edit those first string sent to ets_printf setting first byte to null, which dont require to hex edit, reassamble or or bootrom modification (i dont know if this part is even writable)

3fffd674     db      '\n ets %s,rst cause:%d, boot mode:(%d,%d)\n\n\0'
3fffd700     db      'load 0x%08x, len %d, room %d \n\0'
3fffd734     db      'tail %d\n\0'
3fffd740     db      'chksum 0x%02x\n\0'
...

So just writing a '\0' on the first byte of each string should silence the bootup process

Im not very sure about this processor arch, and how to do it, and not even sure this part is even writable, im total noob on this ic developing, maybe you can help me out with this?

Maybe esptool can be used to just write that bytes? or even using the spi_flash_read/write from bootrom in a custom firmware (https://github.com/sheinz/esp-spi-flash-test)

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant