关于刷Sylvain/burst_ind分支的一些问题解答
Sylvain/burst_ind分支是网上说的比较多的带sniffer功能的分支,但是编译完无法刷固件
关于以上问题。相信很多朋友碰到过。但是国内没有人分享相关的经验。在这里我分享下我的经验。
http://bb.osmocom.org/trac/wiki/Hardware/CP210xTutorial
除了做以上步骤以外,官网提示是这样的。
First of all you need to download and unpack the lastest version of cp210x-program, an open-source tool replacing the proprietary windows-only tool from SiLabs (see application note AN205 if you want to mess with that).
To make sure cp210x-program will be the only one talking to the converter, unload the kernel module:
首先,你需要下载最新版本的CP210X驱动程序并解压,然后执行如下命令:
sudo rmmod cp210x
After that, perform a dry-run to see everything is okay:【未改波特率前测试效果】
sudo ./cp210x-program
The tool should output the device-string of the converter, some other information, and a baudrate table with the following default entries:
[baudrate table][...] 921600 = FFE6, FFF6, 1 # 923077 Baud, 20 us[...] 460800 = FFCC, FFEC, 1 # 461538 Baud, 40 us[...] 230400 = FF98, FFD9, 1 # 230769 Baud, 78 us[...] 115200 = FF30, FFB2, 1 # 115385 Baud, 156 us[...]
Okay, now to the real thing: create a backup of the EEPROM:
sudo ./cp210x-program -f eeprom.hex
The next step is to program the modified, non-standard baudrates: (这个才是最关键的,改波特率)
sudo ./cp210x-program -p -F eeprom.hex -w --set-baudrate 812500:FFE2,FFF4,1 --set-baudrate 406250:FFC5,FFE9,1 --set-baudrate 203125:FF8A,FFD3,1
Check if the entries have been written successfully:【改完波特率后测试效果】
sudo ./cp210x-program
You should see the following entries:
[baudrate table][...] 812500 = FFE2, FFF4, 1 # 800000 Baud, 24 us[...] 406250 = FFC5, FFE9, 1 # 406780 Baud, 46 us[...] 203125 = FF8A, FFD3, 1 # 203390 Baud, 90 us[...] 115200 = FF30, FFB2, 1 # 115385 Baud, 156 us[...]
Replug the converter and you're done.
Using burst_ind
If you want to use the burst_ind branch with a CP210x converter, you need to add the following define in osmocon.c:
需要修改osmocom-bb/src/host/osmocon/osmocon.c,文件中添加定义
#define I_HAVE_A_CP210x
否则会出现“Unable to set custom baudrate, please use appropriate cable"执行完上述的步骤后。在去刷Sylvain/burst_ind分支固件就能看到成功刷进手机了
![](http://files.cnblogs.com/files/k1two2/sigline.gif)
![](http://files.cnblogs.com/files/k1two2/cropped-rinne.gif)