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
Flash tool difference #93
Comments
After BLFlashCommand added and the commit [update][board] enable fw header for new flash tool . it result in:
My Questions:
BLFlashCommand error output:
|
ALL are officiial. If bflb-mcu-tool removed bootheader and other functions, it is BLFlashCommand |
bin has ignored by .gitignore. |
Simple questions: I build a simple led_blink project as usual with git master, the result is 'sipeed_rv_debugger_plus_blink.bin'.
|
please see doc. |
Can I suggest you setup GitHub actions to build all the examples with different Chips and then sync from internal via pull requests instead. Then you can catch build errors before they break things for everyone? Also, can you start tagging releases so we can pick stable commits? |
|
It not works at all, as I mentioned above, the 'eflash_loader_32m.bin' is missing, where can I find it?
|
I have said it is ignored by gitignore. |
Please update commit. |
OK. Thanks for your on-line support. I noticed you just commit in all bin files. after "git pull" again, it works now. Please consider to provide 'BLFlashCommand' and bootloaders' source codes when your time is available. |
Flash tool involved security, so we cannot release source code, sorry. |
OK, finally I figured out how to deal with new firmware with blisp and bflb-mcu-tool. new firmware add a 4k(0x1000) size section '.fw_header' at the start of final elf, and it can be stripped by :
|
Close source of 'bin' files should be OK. For BLFlashCommand, is it also have something related to security? Only binary release will cause some issues, for example, if the user's working env is ARM or RISCV. Update:
I think it's meaningless to close the source codes of BLFlashCommand. |
because these tool use whole bin, so the same with new flash tool. |
@cjacker blisp should accept those images with boot header via IOT command, although, this will probably change in future, as blisp needs some refactoring together with CLI commands API change, to be able to properly address requirements of multi-core chips (BL808) |
Thanks.
|
I want to add tag after rf releases.This will be the start of sdk2.0. |
The aim of BLFlashCommand is good since it integrated with bl_mcu_sdk and 'make flash' works very well. But a question here, do we really need these different flash tools? especially they all seems have the same core codebase. Here are some suggestions :
Or
After that, we have a most opensource CLI tool and a pyinstaller packaged close source GUI tool. both have same features and can be replaced each other. It eliminated all confusions, save a lot of time to maintain different projects, save a lot of time to educate users, save a lot of time to write too many documents, and everybody can improve the CLI tool if they want. Please consider it. |
No simple, sorry. |
Use our mcu sdk please use new flash tool, thanks. |
Today's update occupied about 70M+ disk space since all binaries bflb tools updated. So request again, please consider open part of the source codes of BLFlashCommand, at least send a release to pypi some day just like bflb-mcu-tool and iot-tool. And I really suggest you can read this tutorial I wrote recently when your time is available , and maybe you will be able to understand why so many choices make us confused from the users/customers/developers perspective. https://github.com/cjacker/opensource-toolchain-bouffalo-lab |
Abstract
For now we have these flashtools:
Devcube has mcu and iot, mcu is only used to flash firmware, iot is used to flash boot2/mfg/user bin/dts/toml, clock and flash config are set in devcube, and generates whole bin( firmware + bootheader) at last.
Flashcube is only used to flash bin with address, no other functions, and firmware must have bootheader, other bins no need.So it is very easier to use. How to write ini please see https://bl-mcu-sdk.readthedocs.io/zh_CN/latest/get_started/flash_prog.html.
Use
We should know that new firmware = old firmware (without bootheader) + bootheader = whole img bin generated by devcube
Old firmware (without bootheader)
Please do not use flashcube(gui or cmd), use devcube instead.
Old firmware (with bootheader)
You can use devcube or flashcube(gui or cmd), if you use bl808 multi groups , please use devcube
New firmware (with bootheader)
Use flashcube(gui or cmd)
The text was updated successfully, but these errors were encountered: