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

INSTALLATION_LINUX : getting the BL616 flashing software #33

Open
sporniket opened this issue Mar 21, 2024 · 0 comments
Open

INSTALLATION_LINUX : getting the BL616 flashing software #33

sporniket opened this issue Mar 21, 2024 · 0 comments

Comments

@sporniket
Copy link

sporniket commented Mar 21, 2024

The installation procedure points to the folder containing the various binaries, but only downloading the *cube-<platform> won't be enough, as I get the following logs when trying to flash the M0S Dock.

[19:50:38.663] - Program Start
[19:50:38.666] - ========= eflash loader cmd arguments =========
[19:50:38.666] - Config file not found
[19:50:38.666] - {"ErrorCode": "000B","ErrorMsg":"BFLB CONFIG FILE NOT FOUND"}
[19:50:38.667] - Burn Retry
[19:50:38.667] - Burn return with retry fail

Luckily, I use Ubuntu. And I succeeded to flash the firmware into the dock with the following procedure :

  • from the sdk page, deploy the "Code" button to "download ZIP" (490 MBytes)
    image
  • explore the archive, and extract only the folder buffalo_sdk_<branch>/tools/bflb_tools/bouffalo_flash_cube (most likely <branch> will be master, i.e. buffalo_sdk_master/tools/bflb_tools/bouffalo_flash_cube
    image
  • Follow the procedure described in INSTALLATION_LINUX.md to flash the firmware into the M0S Dock, using BLFlashCube-ubuntu
    image

Success : 

2024-03-21 20:09:09,508 - INFO - [20:09:09.508] - Program Start
2024-03-21 20:09:09,509 - INFO - [20:09:09.509] - ========= eflash loader cmd arguments =========
2024-03-21 20:09:09,513 - INFO - [20:09:09.513] - serial port is /dev/ttyACM0
2024-03-21 20:09:09,513 - INFO - [20:09:09.513] - chiptype: bl616
2024-03-21 20:09:09,514 - INFO - [20:09:09.514] - cpu_reset=False
2024-03-21 20:09:09,522 - INFO - [20:09:09.522] - com speed: 2000000
2024-03-21 20:09:09,523 - INFO - [20:09:09.522] - ========= Interface is uart =========
2024-03-21 20:09:09,523 - INFO - [20:09:09.523] - Bootrom load
2024-03-21 20:09:09,523 - INFO - [20:09:09.523] - ========= get_boot_info =========
2024-03-21 20:09:09,524 - INFO - [20:09:09.523] - ========= image get bootinfo =========
2024-03-21 20:09:09,784 - INFO - [20:09:09.784] - tx rx and power off, press the machine!
2024-03-21 20:09:09,785 - INFO - [20:09:09.785] - cutoff time is 0.05
2024-03-21 20:09:09,836 - INFO - [20:09:09.835] - power on tx and rx
2024-03-21 20:09:10,739 - INFO - [20:09:10.739] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
2024-03-21 20:09:10,740 - INFO - [20:09:10.740] - clean buf
2024-03-21 20:09:10,741 - INFO - [20:09:10.741] - send sync
2024-03-21 20:09:10,943 - INFO - [20:09:10.943] - ack is b'4f4b'
2024-03-21 20:09:10,944 - INFO - [20:09:10.943] - shake hand success
2024-03-21 20:09:11,446 - INFO - [20:09:11.445] - data read is b'010016060000010027928001596136cf0eb418000f758010'
2024-03-21 20:09:11,446 - INFO - [20:09:11.446] - ========= ChipID: b40ecf366159 =========
2024-03-21 20:09:11,447 - INFO - [20:09:11.446] - Get bootinfo time cost(ms): 1923.0126953125
2024-03-21 20:09:11,448 - INFO - [20:09:11.448] - change bdrate: 2000000
2024-03-21 20:09:11,449 - INFO - [20:09:11.449] - Clock PLL set
2024-03-21 20:09:11,450 - INFO - [20:09:11.450] - Set clock time cost(ms): 0.29638671875
2024-03-21 20:09:11,561 - INFO - [20:09:11.561] - Read mac addr
2024-03-21 20:09:11,563 - INFO - [20:09:11.563] - MACADDR: b40ecf366159
2024-03-21 20:09:11,563 - INFO - [20:09:11.563] - flash set para
2024-03-21 20:09:11,564 - INFO - [20:09:11.564] - get flash pin cfg from bootinfo: 0x02
2024-03-21 20:09:11,564 - INFO - [20:09:11.564] - set flash cfg: 14102
2024-03-21 20:09:11,564 - INFO - [20:09:11.564] - Set flash config
2024-03-21 20:09:11,568 - INFO - [20:09:11.568] - Set para time cost(ms): 1.522216796875
2024-03-21 20:09:11,569 - INFO - [20:09:11.569] - ========= flash read jedec ID =========
2024-03-21 20:09:11,569 - INFO - [20:09:11.569] - Read flash jedec ID
2024-03-21 20:09:11,569 - INFO - [20:09:11.569] - readdata:
2024-03-21 20:09:11,570 - INFO - [20:09:11.570] - b'c8601600'
2024-03-21 20:09:11,570 - INFO - [20:09:11.570] - Finished
2024-03-21 20:09:11,571 - INFO - [20:09:11.571] - flash config Not found,use default
2024-03-21 20:09:11,571 - INFO - [20:09:11.571] - jedec_id:c86016
2024-03-21 20:09:11,571 - INFO - [20:09:11.571] - capacity_id:22
2024-03-21 20:09:11,572 - INFO - [20:09:11.571] - capacity:4.0M
2024-03-21 20:09:11,572 - INFO - [20:09:11.572] - get flash size: 0x00400000
2024-03-21 20:09:11,573 - INFO - [20:09:11.572] - Program operation
2024-03-21 20:09:11,573 - INFO - [20:09:11.573] - Dealing Index 0
2024-03-21 20:09:11,573 - INFO - [20:09:11.573] - ========= programming /home/dsporn/Téléchargements/atari/MiSTeryNano/./misterynano_fw_bl616.bin to 0x000000
2024-03-21 20:09:11,574 - INFO - [20:09:11.574] - flash para file: /home/dsporn__files/Téléchargements/atari/MiSTeryNano/bouffalo_flash_cube/chips/bl616/efuse_bootheader/flash_para.bin
2024-03-21 20:09:11,575 - INFO - [20:09:11.575] - Set flash config
2024-03-21 20:09:11,576 - INFO - [20:09:11.576] - Set para time cost(ms): 1.60986328125
2024-03-21 20:09:11,577 - INFO - [20:09:11.577] - ========= flash load =========
2024-03-21 20:09:11,577 - INFO - [20:09:11.577] - ========= flash erase =========
2024-03-21 20:09:11,577 - INFO - [20:09:11.577] - Erase flash  from 0x0 to 0x2566f
2024-03-21 20:09:11,873 - INFO - [20:09:11.873] - Erase time cost(ms): 295.9453125
2024-03-21 20:09:11,907 - INFO - [20:09:11.906] - decompress flash load 90428
2024-03-21 20:09:11,932 - INFO - [20:09:11.932] - Load 2048/90428 {"progress":2}
2024-03-21 20:09:11,949 - INFO - [20:09:11.949] - Load 4096/90428 {"progress":4}
2024-03-21 20:09:11,958 - INFO - [20:09:11.958] - Load 6144/90428 {"progress":6}

...and so on...

2024-03-21 20:09:12,537 - INFO - [20:09:12.537] - Load 86016/90428 {"progress":95}
2024-03-21 20:09:12,553 - INFO - [20:09:12.553] - Load 88064/90428 {"progress":97}
2024-03-21 20:09:12,569 - INFO - [20:09:12.569] - Load 90112/90428 {"progress":99}
2024-03-21 20:09:12,574 - INFO - [20:09:12.574] - Load 90428/90428 {"progress":100}
2024-03-21 20:09:12,576 - INFO - [20:09:12.575] - Load 90428/90428 {"progress":100}
2024-03-21 20:09:12,577 - INFO - [20:09:12.577] - Write check
2024-03-21 20:09:12,578 - INFO - [20:09:12.578] - Flash load time cost(ms): 703.97705078125
2024-03-21 20:09:12,578 - INFO - [20:09:12.578] - Finished
2024-03-21 20:09:12,580 - INFO - [20:09:12.580] - Sha caled by host: fae8cf261399868541f59aa87832732168e6094172fc3b4094354d4da07833d3
2024-03-21 20:09:12,580 - INFO - [20:09:12.580] - xip mode Verify
2024-03-21 20:09:12,708 - INFO - [20:09:12.708] - Read Sha256/153200
2024-03-21 20:09:12,709 - INFO - [20:09:12.709] - Flash xip readsha time cost(ms): 127.607666015625
2024-03-21 20:09:12,709 - INFO - [20:09:12.709] - Finished
2024-03-21 20:09:12,712 - INFO - [20:09:12.712] - Sha caled by dev: fae8cf261399868541f59aa87832732168e6094172fc3b4094354d4da07833d3
2024-03-21 20:09:12,713 - INFO - [20:09:12.712] - Verify success
2024-03-21 20:09:12,713 - INFO - [20:09:12.713] - Program Finished
2024-03-21 20:09:12,713 - INFO - [20:09:12.713] - All time cost(ms): 3205.51904296875
2024-03-21 20:09:12,815 - INFO - [20:09:12.815] - close interface
2024-03-21 20:09:12,817 - INFO - [20:09:12.816] - [All Success]
2024-03-21 20:09:19,728 - INFO - [20:09:19.727] - Save config success
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