在Ubuntu14.14.1-32位版本下操作的
这用的是kermit 跟 fastboot
安装kermit
sudo apt-get install -y ckermit
安装fastboot
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install -y android-tools-adb android-tools-fastboot
这是附件的链接:http://pan.baidu.com/s/1sjsKDHz 密码:afn9
里面有kermrc跟51-android两个压缩包
kermrc解压后
执行cp kermrc .kermrc
51-android解压后
执行sudo cp 51-android.rules /etc/udev/rules.d/
note:kermrc文件根据自己需要的进行修改ttyUSB0(我用的是USB转串口),可以先用ls /dev/tty* 查看下
note:51-android.rules文件修改strack,因为strack是我的用户名
使用方法,需在两个终端中进行
sudo kermit
进入下载模式后输入fastboot
sudo fastboot flash bootloader xxxxx
sudo fastboot flash kernel xxxxx
sudo fastboot flash ramdisk xxxxx
sudo fastboot flash system xxxxx
sudo fastboot -w
sudo fastboot reboot