Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Created October 30, 2023 13:31
Show Gist options
  • Save lupyuen/0fde950460cffed37c3c78ce79beca9c to your computer and use it in GitHub Desktop.
Save lupyuen/0fde950460cffed37c3c78ce79beca9c to your computer and use it in GitHub Desktop.
[21:30:13.145] - EFUSE_CFG
[21:30:13.146] - BOOTHEADER_GROUP0_CFG
[21:30:13.146] - BOOTHEADER_GROUP1_CFG
[21:30:13.159] - Create bootheader using /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini
[21:30:13.159] - Updating data according to </Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini[BOOTHEADER_GROUP0_CFG]>
[21:30:13.166] - Created file len:352
[21:30:13.171] - Create bootheader using /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini
[21:30:13.172] - Updating data according to </Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini[BOOTHEADER_GROUP1_CFG]>
[21:30:13.178] - Created file len:352
[21:30:13.180] - Create efuse using /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini
[21:30:13.182] - Updating data according to </Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/efuse_bootheader_cfg.ini[EFUSE_CFG]>
[21:30:13.188] - Created file len:256
[21:30:13.194] - Image create path: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu
[21:30:13.195] - Config file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/img_create_mcu/img_create_cfg.ini
[21:30:13.263] - img already have bootheader
[21:30:13.264] - Write flash img direct
[21:30:13.265] - Image hash is b'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855'
[21:30:13.266] - Header crc: b'76c33566'
[21:30:13.266] - Write flash img
[21:30:13.268] - Encrypt efuse data
[21:30:13.270] - ========= eflash loader config =========
[21:30:13.278] - group0 img len error, get 61664 except 1075840
[21:30:13.296] - Version: eflash_loader_v2.4.5
[21:30:13.296] - Program Start
[21:30:13.297] - ========= eflash loader cmd arguments =========
[21:30:13.297] - None
[21:30:13.297] - Config file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/eflash_loader/eflash_loader_cfg.ini
[21:30:13.298] - serial port is /dev/tty.usbserial-1420
[21:30:13.299] - cpu_reset=False
[21:30:13.299] - chiptype: bl808
[21:30:13.299] - ========= Interface is uart =========
[21:30:13.299] - com speed: 2000000
[21:30:13.299] - Bootrom load
[21:30:13.300] - ========= get_boot_info =========
[21:30:13.300] - ========= image get bootinfo =========
[21:30:15.309] - ack is
[21:30:15.310] - Not ack OK
[21:30:15.310] - result:
[21:30:15.571] - tx rx and power off, press the machine!
[21:30:15.572] - cutoff time is 0.05
[21:30:15.626] - power on tx and rx
[21:30:16.561] - reset cnt: 0, reset hold: 0.05, shake hand delay: 0.1
[21:30:16.563] - clean buf
[21:30:16.566] - send sync
[21:30:17.072] - ack is 4f4b
[21:30:17.107] - shake hand success
[21:30:17.614] - data read is b'01000808000000000b14c1022a89de05b9185b002ff4fb18'
[21:30:17.615] - ========= ChipID: 18b905de892a =========
[21:30:17.615] - Get bootinfo time cost(ms): 4315.6533203125
[21:30:17.616] - clock para file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/efuse_bootheader/clock_para.bin
[21:30:17.616] - change bdrate: 2000000
[21:30:17.616] - Clock PLL set
[21:30:17.616] - clock para:
[21:30:17.617] - 5043464707040000030103000102000201010001010101010a894b86
[21:30:17.621] - Set clock time cost(ms): 4.7470703125
[21:30:17.740] - Read mac addr
[21:30:17.744] - flash set para
[21:30:17.744] - get flash pin cfg from bootinfo: 0x04
[21:30:17.745] - set flash cfg: 14104
[21:30:17.745] - Set flash config
[21:30:17.749] - Set para time cost(ms): 3.7587890625
[21:30:17.749] - ========= flash read jedec ID =========
[21:30:17.752] - Read flash jedec ID
[21:30:17.752] - flash jedec id: ef601800
[21:30:17.752] - Finished
[21:30:17.759] - Program operation
[21:30:17.760] - Dealing Index 0
[21:30:17.760] - ========= programming chips/bl808/img_create_mcu/bootinfo_group0.bin to 0x00000000
[21:30:17.764] - flash para file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/efuse_bootheader/flash_para.bin
[21:30:17.764] - Set flash config
[21:30:17.769] - Set para time cost(ms): 4.296142578125
[21:30:17.769] - ========= flash load =========
[21:30:17.769] - ========= flash erase =========
[21:30:17.770] - Erase flash from 0x0 to 0xfff
[21:30:17.802] - Erase time cost(ms): 30.920166015625
[21:30:17.834] - Load 4096/4096 {"progress":100}
[21:30:17.835] - Load 4096/4096 {"progress":100}
[21:30:17.835] - Write check
[21:30:17.847] - Flash load time cost(ms): 42.5419921875
[21:30:17.848] - Finished
[21:30:17.848] - Sha caled by host: d260f973afdd1e81292f08146752f3966eb021bab510b64bd07a7b9d852ae5a2
[21:30:17.848] - xip mode Verify
[21:30:17.857] - Read Sha256/4096
[21:30:17.858] - Flash xip readsha time cost(ms): 6.76171875
[21:30:17.858] - Finished
[21:30:17.861] - Sha caled by dev: d260f973afdd1e81292f08146752f3966eb021bab510b64bd07a7b9d852ae5a2
[21:30:17.861] - Verify success
[21:30:17.863] - Dealing Index 1
[21:30:17.864] - ========= programming chips/bl808/img_create_mcu/img_group0.bin to 0x00001000
[21:30:17.869] - flash para file: /Users/Luppy/ox64/BouffaloLabDevCube-v1.8.3/chips/bl808/efuse_bootheader/flash_para.bin
[21:30:17.869] - Set flash config
[21:30:17.874] - Set para time cost(ms): 4.319091796875
[21:30:17.874] - ========= flash load =========
[21:30:17.875] - ========= flash read =========
[21:30:23.879] - Read data error,maybe not get excepted length
[21:30:23.880] - Retry
[21:30:25.881] - ack is
[21:30:25.882] - Not ack OK
[21:30:25.882] - Retry
[21:30:27.882] - ack is
[21:30:27.883] - Not ack OK
[21:30:27.884] - Retry
[21:30:29.889] - ack is
[21:30:29.890] - Not ack OK
[21:30:29.890] - ErrorCode: 0035, ErrorMsg: BFLB FLASH READ FAIL
[21:30:29.891] - 'NoneType' object is not subscriptable
Traceback (most recent call last):
File "libs/bflb_eflash_loader.py", line 3631, in efuse_flash_loader_do
File "libs/bflb_eflash_loader.py", line 2185, in flash_load_specified
File "libs/bflb_eflash_loader.py", line 2060, in flash_load_opt
TypeError: 'NoneType' object is not subscriptable
[21:30:29.893] - Burn Retry
[21:30:29.893] - 0
[21:30:29.894] - Burn return with retry fail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment