Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created October 30, 2023 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lupyuen/125e15be5ed1e034bed33d16ed496d87 to your computer and use it in GitHub Desktop.
Save lupyuen/125e15be5ed1e034bed33d16ed496d87 to your computer and use it in GitHub Desktop.
[21:39:47.877] - EFUSE_CFG
[21:39:47.877] - BOOTHEADER_GROUP0_CFG
[21:39:47.878] - BOOTHEADER_GROUP1_CFG
[21:39:47.891] - Create bootheader using /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini
[21:39:47.892] - Updating data according to </Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini[BOOTHEADER_GROUP0_CFG]>
[21:39:47.898] - Created file len:352
[21:39:47.903] - Create bootheader using /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini
[21:39:47.903] - Updating data according to </Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini[BOOTHEADER_GROUP1_CFG]>
[21:39:47.910] - Created file len:352
[21:39:47.912] - Create efuse using /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini
[21:39:47.914] - Updating data according to </Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini[EFUSE_CFG]>
[21:39:47.922] - Created file len:256
[21:39:47.928] - Image create path: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu
[21:39:47.929] - Config file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/img_create_cfg.ini
[21:39:48.015] - img already have bootheader
[21:39:48.016] - Write flash img direct
[21:39:48.020] - Image hash is b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
[21:39:48.021] - Header crc: b'76c33566'
[21:39:48.022] - Write flash img
[21:39:48.023] - Encrypt efuse data
[21:39:48.026] - ========= eflash loader config =========
[21:39:48.035] - group0 img len error, get 61664 except 1075840
[21:39:48.054] - Version: eflash_loader_v2.4.5
[21:39:48.055] - Program Start
[21:39:48.056] - ========= eflash loader cmd arguments =========
[21:39:48.056] - None
[21:39:48.056] - Config file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/eflash_loader/eflash_loader_cfg.ini
[21:39:48.058] - serial port is /dev/tty.usbserial-1420
[21:39:48.059] - cpu_reset=False
[21:39:48.059] - chiptype: bl808
[21:39:48.059] - ========= Interface is uart =========
[21:39:48.059] - com speed: 230400
[21:39:48.060] - Bootrom load
[21:39:48.060] - ========= get_boot_info =========
[21:39:48.060] - ========= image get bootinfo =========
[21:39:50.071] - ack is
[21:39:50.072] - Not ack OK
[21:39:50.072] - result:
[21:39:50.333] - tx rx and power off, press the machine!
[21:39:50.334] - cutoff time is 0.05
[21:39:50.388] - power on tx and rx
[21:39:51.304] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[21:39:51.305] - clean buf
[21:39:51.308] - send sync
[21:39:51.812] - ack is 4f4b
[21:39:51.844] - shake hand success
[21:39:52.354] - data read is b'01000808000000000b14c1022a89de05b9185b002ff4fb18'
[21:39:52.355] - ========= ChipID: 18b905de892a =========
[21:39:52.355] - Get bootinfo time cost(ms): 4295.14599609375
[21:39:52.355] - clock para file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/efuse_bootheader/clock_para.bin
[21:39:52.356] - change bdrate: 230400
[21:39:52.356] - Clock PLL set
[21:39:52.356] - clock para:
[21:39:52.356] - 5043464707040000030103000102000201010001010101010a894b86
[21:39:52.360] - Set clock time cost(ms): 3.675048828125
[21:39:52.472] - Read mac addr
[21:39:52.477] - flash set para
[21:39:52.478] - get flash pin cfg from bootinfo: 0x04
[21:39:52.478] - set flash cfg: 14104
[21:39:52.478] - Set flash config
[21:39:52.483] - Set para time cost(ms): 4.43701171875
[21:39:52.483] - ========= flash read jedec ID =========
[21:39:52.487] - Read flash jedec ID
[21:39:52.487] - flash jedec id: ef601800
[21:39:52.487] - Finished
[21:39:52.494] - Program operation
[21:39:52.494] - Dealing Index 0
[21:39:52.494] - ========= programming chips/bl808/img_create_mcu/bootinfo_group0.bin to 0x00000000
[21:39:52.498] - flash para file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/efuse_bootheader/flash_para.bin
[21:39:52.498] - Set flash config
[21:39:52.507] - Set para time cost(ms): 8.583984375
[21:39:52.508] - ========= flash load =========
[21:39:52.508] - ========= flash erase =========
[21:39:52.509] - Erase flash from 0x0 to 0xfff
[21:39:52.542] - Erase time cost(ms): 33.01611328125
[21:39:52.742] - Load 4096/4096 {"progress":100}
[21:39:52.743] - Load 4096/4096 {"progress":100}
[21:39:52.743] - Write check
[21:39:52.753] - Flash load time cost(ms): 210.464111328125
[21:39:52.754] - Finished
[21:39:52.754] - Sha caled by host: d260f973afdd1e81292f08146752f3966eb021bab510b64bd07a7b9d852ae5a2
[21:39:52.755] - xip mode Verify
[21:39:52.766] - Read Sha256/4096
[21:39:52.767] - Flash xip readsha time cost(ms): 9.0458984375
[21:39:52.767] - Finished
[21:39:52.770] - Sha caled by dev: d260f973afdd1e81292f08146752f3966eb021bab510b64bd07a7b9d852ae5a2
[21:39:52.771] - Verify success
[21:39:52.771] - Dealing Index 1
[21:39:52.771] - ========= programming chips/bl808/img_create_mcu/img_group0.bin to 0x00001000
[21:39:52.776] - flash para file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/efuse_bootheader/flash_para.bin
[21:39:52.777] - Set flash config
[21:39:52.785] - Set para time cost(ms): 8.392822265625
[21:39:52.786] - ========= flash load =========
[21:39:52.787] - ========= flash read =========
[21:39:52.969] - Read 4096/4096
[21:39:52.971] - Flash read time cost(ms): 182.895263671875
[21:39:52.971] - Finished
[21:39:52.972] - ========= flash erase =========
[21:39:52.972] - Erase flash from 0x1000 to 0x107a7f
[21:39:55.433] - Erase time cost(ms): 2460.816162109375
[21:39:55.542] - decompress flash load 48736
[21:39:55.741] - Load 4096/48736 {"progress":8}
[21:39:55.941] - Load 8192/48736 {"progress":16}
[21:39:56.141] - Load 12288/48736 {"progress":25}
[21:39:56.341] - Load 16384/48736 {"progress":33}
[21:39:56.541] - Load 20480/48736 {"progress":42}
[21:39:56.741] - Load 24576/48736 {"progress":50}
[21:39:56.941] - Load 28672/48736 {"progress":58}
[21:39:57.141] - Load 32768/48736 {"progress":67}
[21:39:57.341] - Load 36864/48736 {"progress":75}
[21:39:58.555] - Load 40960/48736 {"progress":84}
[21:39:58.755] - Load 45056/48736 {"progress":92}
[21:39:58.935] - Load 48736/48736 {"progress":100}
[21:39:58.937] - Load 48736/48736 {"progress":100}
[21:39:58.937] - Write check
[21:39:58.982] - Flash load time cost(ms): 3547.6279296875
[21:39:58.983] - Finished
[21:39:58.987] - Sha caled by host: 61649fa47ae4143a3799970892267947a9ed8cc44a498102a08a7e7aa25a6a6f
[21:39:58.987] - xip mode Verify
[21:39:59.877] - Read Sha256/1075840
[21:39:59.878] - Flash xip readsha time cost(ms): 887.766845703125
[21:39:59.879] - Finished
[21:39:59.882] - Sha caled by dev: 61649fa47ae4143a3799970892267947a9ed8cc44a498102a08a7e7aa25a6a6f
[21:39:59.883] - Verify success
[21:39:59.884] - Program Finished
[21:39:59.884] - All time cost(ms): 11829.02587890625
[21:39:59.987] - close interface
[21:39:59.989] - [All Success]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment