OsmocomBB 編譯安裝: http://www.cnblogs.com/hangxin1940/p/3375216.html ##準備: C118 ![C118](http://images.cnblogs.com/cnblogs_com/hangxin1940/525357/o_motoc118.jpg "C118") FT232RL USB TO TTL ![FT232RL](http://images.cnblogs.com/cnblogs_com/hangxin1940/525357/o_usbrs232.JPG "FT232RL") CP2102 數據線 ![CP2102](http://images.cnblogs.com/cnblogs_com/hangxin1940/525357/o_CP2102.png "CP2102") 鏈接(鏈接前手機關機): ![conn](http://images.cnblogs.com/cnblogs_com/hangxin1940/525357/o_osmbb.jpg "conn") ##測試鏈接: $ lsusb Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub Bus 003 Device 008: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC 能夠看到ft232 usb-serial,看起來轉換器工做正常。 $ dmesg [48692.404539] usb 3-1: FTDI USB Serial Device converter now attached to ttyUSB0 能夠看到硬件信息最後一條是FT232RL轉換器的插入信息,設備爲`ttyUSB0` ##刷入layer1 cd src/host/osmocon/ sudo ./osmocon -p /dev/ttyUSB0 -m c123xor ../../target/firmware/board/compal_e88/layer1.compalram.bin 將layer1程序刷入C118內存: ... handle_write(): finished ... Received DOWNLOAD ACK from phone, your code is running now! 輸出這些表示刷入成功,此時手機屏幕應該會顯示一些相關的東東。失敗的話拔掉重試 ##運行layer2/3層的應用 這些東西在 `src/host/layer23/src/misc` 與 `src/host/layer23/src/mobile` 下面。 使用方法自行google