bouffalolab / BLOpenFlasher

Apache License 2.0
17 stars 4 forks source link

ErrorShakeHand can not be located! #2

Open gamelaster opened 3 years ago

gamelaster commented 3 years ago

Hi,

I'm trying to test this tool to flash my PineCone from Linux. I have GPIO8 correctly set and restarted in Flash Mode. Sadly, I'm receiving this. (Also, to which file I suppose to put my compiled bin?) Thanks

bl602/partition/partition_cfg_2M.toml
bl602/image/partition.bin
10000
d8000
c8000
88000
0

160000
0
32000
0
0

192000
0
57000
0
0

1e9000
0
8000
0
0

1f1000
0
2000
0
0

1f3000
0
5000
0
0

1f8000
0
7000
0
0

424650540000070000000000269adf120000004657000000000000000000010000800d0000800c000080080000000000000000000200006d66670000000000000000160000000000002003000000000000000000000000000300006d656469610000000000201900000000000070050000000000000000000000000004000050534d00000000000000901e0000000000008000000000000000000000000000000500004b455900000000000000101f00000000000020000000000000000000000000000006000044415441000000000000301f000000000000500000000000000000000000000000070000666163746f7279000000801f000000000000700000000000000000000000000000ce01508b
&{bl602/partition/partition_cfg_2M.toml bl602/image/partition.bin map[]}
bl602/efuse_bootheader/efuse_bootheader_cfg.conf
bl602/builtin_imgs/blsp_boot2.bin
bl602/image/boot2image.bin
0 1 8 8 = 256
0 171 16 8 = 11206656
0 50 16 8 = 3276800
0 1 24 8 = 16777216
0 2 16 8 = 131072
0 32 16 8 = 2097152
0 1347307074 0 32 = 1347307074
0 4 0 8 = 4
0 1195787088 0 32 = 1195787088
0 1 8 8 = 256
0 5 0 8 = 5
0 1 0 8 = 1
0 2 16 8 = 131072
0 0 0 32 = 0
0 0 24 8 = 0
1 49 8 8 = 12545
0 119 0 8 = 119
0 0 0 32 = 0
0 0 4 2 = 0
0 0 0 32 = 0
0 3 24 8 = 50331648
0 159 0 8 = 159
256 0 24 8 = 256
0 200000 0 16 = 200000
50331648 153 8 8 = 50370816
0 80 24 8 = 1342177280
0 0 0 32 = 0
0 39312 0 32 = 39312
0 0 0 32 = 0
159 159 16 8 = 10420383
131072 119 0 8 = 131191
0 0 0 2 = 0
0 1 8 1 = 256
0 82 16 8 = 5373952
1342177280 2 16 8 = 1342308352
16777216 0 16 8 = 16777216
0 1200 0 16 = 1200
200000 3 16 8 = 200000
0 1 8 8 = 256
4 239 8 8 = 61188
0 1 24 8 = 16777216
11206656 1 0 8 = 11206657
16777216 11 0 8 = 16777227
5 53 8 8 = 13573
0 1 0 32 = 1
256 187 16 8 = 12255488
131072 1 24 8 = 16908288
0 300 0 16 = 300
0 0 16 8 = 0
0 3735928559 0 32 = 3735928559
0 0 0 32 = 0
300 1200 16 16 = 78643500
256 1 9 1 = 768
256 1 24 8 = 16777472
10420383 0 24 8 = 10420383
0 4 8 8 = 1024
0 1 8 8 = 256
768 0 16 1 = 768
11206657 1 24 8 = 27983873
131191 240 24 8 = 4026663031
50370816 102 0 8 = 50370918
16777227 11 16 8 = 17498123
256 235 16 8 = 15401216
16908288 0 8 8 = 16908288
0 3735928559 0 32 = 3735928559
16777472 4 0 8 = 16777476
16777476 1 16 8 = 16843012
5373952 199 0 8 = 5374151
16908288 1 0 8 = 16908289
1200 5 16 16 = 328880
0 0 0 32 = 0
3276800 6 0 8 = 3276806
2097152 255 8 8 = 2162432
0 0 0 32 = 0
10420383 0 8 8 = 10420383
61188 256 16 16 = 16838404
1342308352 235 0 8 = 1342308587
16777216 0 0 8 = 16777216
27983873 1 8 8 = 27984129
0 0 0 32 = 0
5374151 32 8 8 = 5382343
3276806 0 24 8 = 3276806
15401216 107 0 8 = 15401323
15401323 2 24 8 = 48955755
50370918 255 16 8 = 67082598
12255488 59 0 8 = 12255547
0 1195787078 0 32 = 1195787078
768 3 12 4 = 13056
3276806 2 8 8 = 3277318
1342308587 2 8 8 = 1342309099
119 3 8 8 = 887
887 2 16 8 = 131959
131959 64 24 8 = 1073873783
256 3 0 8 = 259
13056 0 17 1 = 13056
0 8192 0 32 = 8192
0 0 0 32 = 0
16777216 1 8 8 = 16777472
17498123 1 8 8 = 17498379
2162432 56 0 8 = 2162488
2162488 255 24 8 = 4280352568
13056 0 2 2 = 13056
5382343 216 24 8 = 3629260999
4026663031 3 8 8 = 4026663799
1024 4 0 8 = 1028
1028 1 24 8 = 16778244
13056 0 10 1 = 13056
13056 0 11 1 = 13056
bl602/efuse_bootheader/efuse_bootheader_cfg.conf
bl602/bl602.bin
bl602/image/fwimage.bin
0 3 24 8 = 50331648
0 159 0 8 = 159
0 0 24 8 = 0
0 200000 0 16 = 200000
50331648 153 8 8 = 50370816
0 80 24 8 = 1342177280
0 0 0 32 = 0
0 865232 0 32 = 865232
0 0 0 32 = 0
159 159 16 8 = 10420383
0 119 0 8 = 119
0 0 0 2 = 0
0 1 8 1 = 256
0 82 16 8 = 5373952
1342177280 2 16 8 = 1342308352
0 0 16 8 = 0
0 1200 0 16 = 1200
200000 3 16 8 = 200000
0 1 8 8 = 256
0 239 8 8 = 61184
0 1 24 8 = 16777216
0 1 0 8 = 1
16777216 11 0 8 = 16777227
0 53 8 8 = 13568
0 1 0 32 = 1
0 187 16 8 = 12255232
0 1 24 8 = 16777216
0 300 0 16 = 300
0 0 16 8 = 0
0 3735928559 0 32 = 3735928559
0 0 0 32 = 0
300 1200 16 16 = 78643500
256 1 9 1 = 768
256 1 24 8 = 16777472
10420383 0 24 8 = 10420383
0 4 8 8 = 1024
0 1 8 8 = 256
768 0 16 1 = 768
1 1 24 8 = 16777217
119 240 24 8 = 4026531959
50370816 102 0 8 = 50370918
16777227 11 16 8 = 17498123
0 235 16 8 = 15400960
16777216 0 8 8 = 16777216
0 3735928559 0 32 = 3735928559
16777472 4 0 8 = 16777476
16777476 1 16 8 = 16843012
5373952 199 0 8 = 5374151
16777216 1 0 8 = 16777217
1200 5 16 16 = 328880
0 0 0 32 = 0
0 6 0 8 = 6
0 255 8 8 = 65280
0 0 0 32 = 0
10420383 0 8 8 = 10420383
61184 256 16 16 = 16838400
1342308352 235 0 8 = 1342308587
0 0 0 8 = 0
16777217 1 8 8 = 16777473
0 0 0 32 = 0
5374151 32 8 8 = 5382343
6 0 24 8 = 6
15400960 107 0 8 = 15401067
15401067 2 24 8 = 48955499
50370918 255 16 8 = 67082598
12255232 59 0 8 = 12255291
0 1195787078 0 32 = 1195787078
768 3 12 4 = 13056
6 2 8 8 = 518
1342308587 2 8 8 = 1342309099
0 3 8 8 = 768
768 2 16 8 = 131840
131840 64 24 8 = 1073873664
256 3 0 8 = 259
13056 0 17 1 = 13056
0 8192 0 32 = 8192
0 0 0 32 = 0
0 1 8 8 = 256
17498123 1 8 8 = 17498379
65280 56 0 8 = 65336
65336 255 24 8 = 4278255416
13056 0 2 2 = 13056
5382343 216 24 8 = 3629260999
4026531959 3 8 8 = 4026532727
1024 4 0 8 = 1028
1028 1 24 8 = 16778244
13056 0 10 1 = 13056
13056 0 11 1 = 13056
48955499 1 8 8 = 48955755
16777473 171 16 8 = 27984129
518 50 16 8 = 3277318
256 1 24 8 = 16777472
16777217 2 16 8 = 16908289
4278255416 32 16 8 = 4280352568
0 1347307074 0 32 = 1347307074
16838400 4 0 8 = 16838404
0 1195787088 0 32 = 1195787088
12255291 1 8 8 = 12255547
13568 5 0 8 = 13573
0 1 0 8 = 1
4026532727 2 16 8 = 4026663799
0 0 0 32 = 0
200000 0 24 8 = 200000
1 49 8 8 = 12545
1073873664 119 0 8 = 1073873783
0 0 0 32 = 0
13056 0 4 2 = 13056
0 0 0 32 = 0
exit status 1
CmdReset
/dev/ttyUSB0---RESET Module---
/dev/ttyUSB0 Next to CmdShakeHand
/dev/ttyUSB0 14:13 <-4f4b
/dev/ttyUSB0 Next to CmdBootInfo
/dev/ttyUSB0 14:13 <-4f4b1400010000000000000003000000639dc005b9181c00
/dev/ttyUSB0 Next to CmdBootHeader
/dev/ttyUSB0 14:13 <-4f4b
/dev/ttyUSB0 Next to CmdSegHeader
/dev/ttyUSB0 14:13 <-4f4b10000000012290710000357dc86e938a7a6f
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 Failed to read [Res]
/dev/ttyUSB0 14:13 <-
/dev/ttyUSB0 14:12 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:12 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:12 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:12 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:12 <-4f4b
/dev/ttyUSB0 Next to CmdSegData
/dev/ttyUSB0 14:11 <-464c1402
/dev/ttyUSB0 14:13 <-4f4b464c0401
/dev/ttyUSB0 14:13 <-464c0401
/dev/ttyUSB0 Next to ConfigReset
/dev/ttyUSB0 Next to CmdReset
/dev/ttyUSB0---RESET Module---
/dev/ttyUSB0 Next to CmdShakeHand
/dev/ttyUSB0 14:0 <-
/dev/ttyUSB0 Failed to read [Res]
/dev/ttyUSB0 14:13 <-
/dev/ttyUSB0 14:0 <-
/dev/ttyUSB0 Next to CmdReset
/dev/ttyUSB0---RESET Module---
/dev/ttyUSB0 Next to CmdShakeHand
/dev/ttyUSB0 14:0 <-
/dev/ttyUSB0 14:0 <-
/dev/ttyUSB0 14:0 <-
/dev/ttyUSB0 Next to CmdReset
/dev/ttyUSB0---RESET Module---
/dev/ttyUSB0 Next to CmdShakeHand
/dev/ttyUSB0 14:0 <-
/dev/ttyUSB0 14:0 <-
/dev/ttyUSB0 14:0 <-
/dev/ttyUSB0 Next to CmdReset
/dev/ttyUSB0 Next to ErrorShakeHand
ErrorShakeHand can not be located!
/dev/ttyUSB0 -----Failure-----
gamelaster commented 3 years ago

On Windows it works good. But probably this is VMware problem.

Although, to which file I suppose to put my compiled bin? I tried "whole_fw.bin", but it was not working.

YafeiJin commented 3 years ago

Hi gamelaster, There are some error during downloading eflasher_loader.bin, which reported 464c1402/464c0401, BFLB_BOOTROM_CMD_SEQ_ERROR=0x0104 BFLB_BOOTROM_IMG_SECTIONDATA_TLEN_ERROR=0x0214 Maybe the baudrate is too high during downloading eflash_loader.bin. There are two baudrate setting: 512000 is for downloading eflash_loader.bin, and 2000000 for downloading the generated bins. The PROJECTNAME.bin should be used by copying PROJECTNAME.bin to bl602/bl602.bin, which will be add boot info data at the head to generate "fwimage.bin". I also found some errors in code, and just correct them. Thanks