re-engr / jn5169-monitor

Read flash when CRP_LEVEL=1
11 stars 3 forks source link

What is the meaning of Invalidate MAGIC_NUMBER for firmware: 0? #1

Open greenoaktree opened 8 months ago

greenoaktree commented 8 months ago

What is the meaning of Invalidate MAGIC_NUMBER for firmware: 0?

(base) C:\Downloads\jn5169-monitor-master\wire>python upload.py
INFO:root:Scanning flash:
INFO:root: Sector with firmware: 0
INFO:root: Sector for monitor writing: 8
INFO:root:Sector erase: 8
INFO:root:Write firmware monitor: 8
INFO:root: 0x0000 OK
INFO:root: 0x0080 OK
INFO:root: 0x0100 OK
INFO:root: 0x0180 OK
INFO:root: 0x0200 OK
INFO:root: 0x0280 OK
INFO:root: 0x0300 OK
INFO:root: 0x0380 OK
INFO:root: 0x0400 OK
INFO:root: 0x0480 OK
INFO:root: 0x0500 OK
INFO:root: 0x0580 OK
INFO:root: 0x0600 OK
INFO:root: 0x0680 OK
INFO:root: 0x0700 OK
INFO:root: 0x0780 OK
INFO:root: 0x0800 OK
INFO:root: 0x0880 OK
INFO:root: 0x0900 OK
INFO:root: 0x0980 OK
INFO:root: 0x0a00 OK
INFO:root: 0x0a80 OK
INFO:root: 0x0b00 OK
INFO:root: 0x0b80 OK
INFO:root: 0x0c00 OK
INFO:root: 0x0c80 OK
INFO:root: 0x0d00 OK
INFO:root: 0x0d80 OK
INFO:root: 0x0e00 OK
INFO:root: 0x0e80 OK
INFO:root: 0x0f00 OK
INFO:root: 0x0f80 OK
INFO:root: 0x1000 OK
INFO:root: 0x1080 OK
INFO:root: 0x1100 OK
INFO:root: 0x1180 OK
INFO:root: 0x1200 OK
INFO:root: 0x1280 OK
INFO:root: 0x1300 OK
INFO:root: 0x1380 OK
INFO:root: 0x1400 OK
INFO:root: 0x1480 OK
INFO:root: 0x1500 OK
INFO:root: 0x1580 OK
INFO:root: 0x1600 OK
INFO:root: 0x1680 OK
INFO:root: 0x1700 OK
INFO:root: 0x1780 OK
INFO:root: 0x1800 OK
INFO:root: 0x1880 OK
INFO:root: 0x1900 OK
INFO:root: 0x1980 OK
INFO:root: 0x1a00 OK
INFO:root: 0x1a80 OK
INFO:root: 0x1b00 OK
INFO:root: 0x1b80 OK
INFO:root: 0x1c00 OK
INFO:root: 0x1c80 OK
INFO:root: 0x1d00 OK
INFO:root: 0x1d80 OK
INFO:root: 0x1e00 OK
INFO:root: 0x1e80 OK
INFO:root: 0x1f00 OK
INFO:root: 0x1f80 OK
INFO:root: 0x2000 OK
INFO:root: 0x2080 OK
INFO:root: 0x2100 OK
INFO:root: 0x2180 OK
INFO:root: 0x2200 OK
INFO:root: 0x2280 OK
INFO:root: 0x2300 OK
INFO:root: 0x2380 OK
INFO:root: 0x2400 OK
INFO:root: 0x2480 OK
INFO:root: 0x2500 OK
INFO:root: 0x2580 OK
INFO:root: 0x2600 OK
INFO:root: 0x2680 OK
INFO:root: 0x2700 OK
INFO:root: 0x2780 OK
INFO:root: 0x2800 OK
INFO:root: 0x2880 OK
INFO:root: 0x2900 OK
INFO:root: 0x2980 OK
INFO:root: 0x2a00 OK
INFO:root: 0x2a80 OK
INFO:root: 0x2b00 OK
INFO:root: 0x2b80 OK
INFO:root: 0x2c00 OK
INFO:root: 0x2c80 OK
INFO:root: 0x2d00 OK
INFO:root: 0x2d80 OK
INFO:root: 0x2e00 OK
INFO:root: 0x2e80 OK
INFO:root: 0x2f00 OK
INFO:root: 0x2f80 OK
INFO:root: 0x3000 OK
INFO:root: 0x3080 OK
INFO:root: 0x3100 OK
INFO:root: 0x3180 OK
INFO:root: 0x3200 OK
INFO:root: 0x3280 OK
INFO:root: 0x3300 OK
INFO:root: 0x3380 OK
INFO:root: 0x3400 OK
INFO:root: 0x3480 OK
INFO:root: 0x3500 OK
INFO:root: 0x3580 OK
INFO:root: 0x3600 OK
INFO:root: 0x3680 OK
INFO:root: 0x3700 OK
INFO:root: 0x3780 OK
INFO:root: 0x3800 OK
INFO:root: 0x3880 OK
INFO:root: 0x3900 OK
INFO:root: 0x3980 OK
INFO:root: 0x3a00 OK
INFO:root: 0x3a80 OK
INFO:root: 0x3b00 OK
INFO:root: 0x3b80 OK
INFO:root:Write MAGIC_NUMBER 12 for monitor: 8
INFO:root:**Invalidate MAGIC_NUMBER for firmware: 0**
INFO:root:Completed
INFO:root:

Press enter to exit
re-engr commented 8 months ago

What is the meaning of Invalidate MAGIC_NUMBER for firmware: 0?

The stage at which the MAGIC NUMBER of the original firmware must be corrupted. (overwritten, Invalidate etc) so that the bootloader does not provide it after reset.

0 - sector number with MAGIC NUMBER

This is a successful log. It should be.

bench2012 commented 1 month ago

Hi,

I got this error as well, is there any way I can reflash the firmware?

Many thanks

re-engr commented 1 week ago

Hi,

I got this error as well, is there any way I can reflash the firmware?

Many thanks

Did you have this message?

Info: Root: Write Magic_number 12 for Monitor: 8
Info: Root: ** Invalidate Magic_number for Firmware: 0 **
Info: Root: Completed
Info: Root:

Press Enter to Exit
bench2012 commented 1 week ago

Yip, sure did. But I did manage to flash firmware from a two button model. It sort of work and it even pair with my gateway, but since it was a two button model, it doesn’t activate the relay. I then flash it with the latest “correct” single button firmware and it wouldn’t pair again and I get the error again.