OpenIPC/burn

MacOS compatibility

ialexlog opened this issue · 6 comments

loading problem

% /usr/local/bin/python3 ./burn --debug --port /dev/tty.usbserial-1 --chip hi3518ev200 --file=u-boot-hi3518ev200-universal.bin --break      

Trying open /dev/tty.usbserial-1

Welcome to boot-mode

{'name': 'hi3516cv200', 'DDRSTEP0': [4, 224, 45, 229, 36, 0, 159, 229, 36, 16, 159, 229, 0, 16, 128, 229, 32, 0, 159, 229, 32, 16, 159, 229, 4, 16, 128, 228, 0, 224, 128, 229, 4, 240, 157, 228, 239, 190, 173, 222, 239, 190, 173, 222, 239, 190, 173, 222, 60, 1, 5, 32, 120, 86, 52, 18, 64, 1, 5, 32, 117, 106, 105, 122], 'ADDRESS': ['4013000', '4010500', '0x81000000'], 'FILELEN': ['040', '0x3b00'], 'STEPLEN': ['040', '060']}
Sending u-boot-hi3518ev200-universal.bin ...
Send DDRSTEP frame...
Send HEAD frame...
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
failed
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack      :    0x55 
failed
Send TAIL frame...
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
failed
Send HEAD frame...
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
len:    14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba    ]
failed
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
ret ack      :    0x00 
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
len:    1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14    ... ]
failed
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
len:    1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c    ... ]
^Z

while on linux the answers 0xaa come (ack):

$ ./burn --debug --chip hi3518ev200 --file=u-boot-hi3518ev200-universal.bin --break
Trying open /dev/ttyUSB0

Welcome to boot-mode

{'name': 'hi3516cv200', 'DDRSTEP0': [4, 224, 45, 229, 36, 0, 159, 229, 36, 16, 159, 229, 0, 16, 128, 229, 32, 0, 159, 229, 32, 16, 159, 229, 4, 16, 128, 228, 0, 224, 128, 229, 4, 240, 157, 228, 239, 190, 173, 222, 239, 190, 173, 222, 239, 190, 173, 222, 60, 1, 5, 32, 120, 86, 52, 18, 64, 1, 5, 32, 117, 106, 105, 122], 'ADDRESS': ['4013000', '4010500', '0x81000000'], 'FILELEN': ['040', '0x3b00'], 'STEPLEN': ['040', '060']}
Sending u-boot-hi3518ev200-universal.bin ...
Send DDRSTEP frame...
Send HEAD frame...
len:  14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c  ]
ret ack   :  0xaa 
len:  69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20  ... ]
ret ack   :  0xaa 
Send TAIL frame...
len:  5 write : [ ed 02 fd ba b0  ]
ret ack   :  0xaa 
Send HEAD frame...
len:  14 write : [ fe 00 ff 01 00 00 3b 00 04 01 05 00 56 ba  ]
ret ack   :  0xaa 
len:  1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 04 fb 44 00 11 20 00 10 00 01 00 00 00 00 fd 00 00 00 48  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 05 fa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 06 f9 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8 0d  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 07 f8 20 a1 07 00 00 00 05 20 a0 86 01 00 02 00 52 e3 13  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 08 f7 0a 30 a0 e1 07 10 a0 e1 09 00 a0 e1 01 50 85 e2 83  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 09 f6 10 d0 8d e2 f0 8e bd e8 38 20 9d e5 34 10 9d e5 0c  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0a f5 01 00 7c e3 6a ff ff 1a 09 91 84 e0 14 b0 89 e5 94  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0b f4 00 00 05 20 50 c0 90 e5 ac c1 a0 e1 06 c0 0c e2 04  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0c f3 00 00 54 e3 18 00 00 1a 14 10 9d e5 70 30 91 e5 01  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0d f2 a0 30 81 e5 ea ff ff 0a 8f 3f 81 e2 20 c0 8d e2 00  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0e f1 1c 11 72 80 02 22 a0 e3 04 10 92 e5 08 30 9f e5 00  ... ]
ret ack   :  0xaa 
len:  773 write : [ da 0f f0 04 30 90 e5 0c 20 90 e5 00 40 a0 e1 02 00 53 e1 09  ... ]
ret ack   :  0xaa 
Send TAIL frame...
len:  5 write : [ ed 10 ef ed d2  ]
ret ack   :  0xaa 
Send HEAD frame...
len:  14 write : [ fe 00 ff 01 00 02 11 1c 81 00 00 00 a3 9a  ]
len:  14 write : [ fe 00 ff 01 00 02 11 1c 81 00 00 00 a3 9a  ]
len:  14 write : [ fe 00 ff 01 00 02 11 1c 81 00 00 00 a3 9a  ]
len:  14 write : [ fe 00 ff 01 00 02 11 1c 81 00 00 00 a3 9a  ]
len:  14 write : [ fe 00 ff 01 00 02 11 1c 81 00 00 00 a3 9a  ]
ret ack   :  0xaa 
len:  1029 write : [ da 01 fe 17 04 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 02 fd 70 82 11 20 00 3f 00 00 00 00 00 00 7d 00 00 00 70  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 03 fc d8 83 11 20 00 00 00 00 00 00 00 00 fd 00 00 00 1c  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 04 fb 44 00 11 20 00 10 00 01 00 00 00 00 fd 00 00 00 48  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 05 fa 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 06 f9 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8 0d  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 07 f8 20 a1 07 00 00 00 05 20 a0 86 01 00 02 00 52 e3 13  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 08 f7 0a 30 a0 e1 07 10 a0 e1 09 00 a0 e1 01 50 85 e2 83  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 09 f6 10 d0 8d e2 f0 8e bd e8 38 20 9d e5 34 10 9d e5 0c  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0a f5 01 00 7c e3 6a ff ff 1a 09 91 84 e0 14 b0 89 e5 94  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0b f4 00 00 05 20 50 c0 90 e5 ac c1 a0 e1 06 c0 0c e2 04  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0c f3 00 00 54 e3 18 00 00 1a 14 10 9d e5 70 30 91 e5 01  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0d f2 a0 30 81 e5 ea ff ff 0a 8f 3f 81 e2 20 c0 8d e2 00  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0e f1 1c 11 72 80 02 22 a0 e3 04 10 92 e5 08 30 9f e5 00  ... ]
ret ack   :  0xaa 
len:  1029 write : [ da 0f f0 04 30 90 e5 0c 20 90 e5 00 40 a0 e1 02 00 53 e1 09  ... ]
ret ack   :  0xaa 

I have tried with different drivers: native and from ftdi232 manufacturer.

i've added some prints for debug
burn2.zip

% /usr/local/bin/python3 ./burn2 --debug --port /dev/tty.usbserial-A50285BI --chip hi3518ev200 --file=u-boot-hi3518ev200-universal.bin --break
Trying open /dev/tty.usbserial-A50285BI
counter! 0
MF if in_bin = 20! b' '
in-bin1: 0x20 
MF if in_bin = 20! b' '
in-bin1: 0x20 
MF if in_bin = 20! b' '
in-bin1: 0x20 
MF if in_bin = 20! b' '
in-bin1: 0x20 
MF if in_bin = 20! b' '
in-bin1: 0x20 
MF if in_bin counter == 5! b' '
in-bin2: 0x20 
Welcome to boot-mode

{'name': 'hi3516cv200', 'DDRSTEP0': [4, 224, 45, 229, 36, 0, 159, 229, 36, 16, 159, 229, 0, 16, 128, 229, 32, 0, 159, 229, 32, 16, 159, 229, 4, 16, 128, 228, 0, 224, 128, 229, 4, 240, 157, 228, 239, 190, 173, 222, 239, 190, 173, 222, 239, 190, 173, 222, 60, 1, 5, 32, 120, 86, 52, 18, 64, 1, 5, 32, 117, 106, 105, 122], 'ADDRESS': ['4013000', '4010500', '0x81000000'], 'FILELEN': ['040', '0x3b00'], 'STEPLEN': ['040', '060']}
Sending u-boot-hi3518ev200-universal.bin ...
Send DDRSTEP frame...
Send HEAD frame...
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
len:    14 write : [ fe 00 ff 01 00 00 00 40 04 01 30 00 51 9c    ]
failed1
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack stock      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack stock      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack stock      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack stock      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack stock      :    0x55 
len:    69 write : [ da 01 fe 04 e0 2d e5 24 00 9f e5 24 10 9f e5 00 10 80 e5 20    ... ]
ret ack stock      :    0x55 
failed1
Send TAIL frame...
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
len:    5 write : [ ed 02 fd ba b0    ]
tggo commented

some problem on mac

luqasz commented

Same here.

chexov commented

Try CP2102 UART adapter. That one worked for me under OSX 13.4.1 and python3.11

OSX 11.7.7, adapter PL2303 works fine for me.
Also, a've try CP2102, that one not works.

alex@alex burn % ./burn --chip hi3518ev200 --file=autoupdate-uboot.bin -p /dev/cu.usbserial-1430 --break
Trying open /dev/cu.usbserial-1430
Welcome to boot-mode

{'name': 'hi3516cv200', 'DDRSTEP0': [4, 224, 45, 229, 36, 0, 159, 229, 36, 16, 159, 229, 0, 16, 128, 229, 32, 0, 159, 229, 32, 16, 159, 229, 4, 16, 128, 228, 0, 224, 128, 229, 4, 240, 157, 228, 239, 190, 173, 222, 239, 190, 173, 222, 239, 190, 173, 222, 60, 1, 5, 32, 120, 86, 52, 18, 64, 1, 5, 32, 117, 106, 105, 122], 'ADDRESS': ['4013000', '4010500', '0x81000000'], 'FILELEN': ['040', '0x3b00'], 'STEPLEN': ['040', '060']}
Sending autoupdate-uboot.bin ...
Send DDRSTEP frame...
Send HEAD frame...
Send TAIL frame...
Send HEAD frame...
Send DATA frame[==============================================================================================================]15104 of 15104
Send TAIL frame...
Send HEAD frame...
Send DATA frame[============================================================================================================]135484 of 135484
Send TAIL frame...
Done

Sending Ctrl-C

Exiting...
alex@alex burn % python -V
Python 3.11.5