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

Question: Existing firmware #6

Open
OevreFlataeker opened this issue Jul 10, 2021 · 4 comments
Open

Question: Existing firmware #6

OevreFlataeker opened this issue Jul 10, 2021 · 4 comments

Comments

@OevreFlataeker
Copy link

Does anyone have a copy of the Magichome Wifi LED controller's firmware based on BL602? I dumped mine using blflash but didn't notice that by default it is only dumping the 1st MB of memory and as far as I know that particular board has 2 MB...
Appreciate a copy of the original firmware. Already investigated if it is somewhere available for download officially by the manufacturer but didn't find anything. Thank you!

@spacemeowx2
Copy link
Owner

You can provide the dump range in the command line argument:

> blflash dump -h
Dump the whole flash to a file

USAGE:
    blflash.exe dump [OPTIONS] <output> --port <port> [ARGS]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -b, --baud-rate <baud-rate>                    Flash baud rate [default: 1000000]
        --initial-baud-rate <initial-baud-rate>    Initial baud rate [default: 115200]
    -p, --port <port>                              Serial port

ARGS:
    <output>    Output file
    <start>     start address [default: 0]
    <end>       end address [default: 0x100000]

blflash dump -p COM1 dump.bin 0 0x200000

@OevreFlataeker
Copy link
Author

Thanks, I know this now, but I still need the original firmware :-( I might have forgot to say that after dumping I reflashed the device...

@ccoetzer
Copy link

Here is the original firmware
dump.zip

I have more gray hair thanks to something that should be simple.

  1. Raspberry Pi can not do 2 000 000 baud by default, you need to switch uarts else you get garbage when opening a console. screen /dev/ttyAMA0 2000000

  2. Boot pin needs to be held onto V33 when the device boots to enable programming. (Not V+ else dead device)

  3. For some reason -flashing happens at a different baud
    ./blflash dump -b 230400 -p /dev/ttyAMA0 dump.bin 0 0x200000

@OevreFlataeker
Copy link
Author

Thanks for the firmware! Yes, I realized that too, that CP2102 isn't capable of doing 2M, the FT232R dongles work well! Now I still have the problem, that when reflashing the ble_wifi_demo the board reset-loops as soon as Wifi is enabled... I can't get Wifi to work anymore with any of the examples. As if something got overwritten/erased that is needed for them...

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

3 participants