android 6 0 EC20驅動移植

2021-09-26 08:47:53 字數 3271 閱讀 1092

版本:android 6.0

模組:移遠ec20 r2.1 pcie介面

參考文件中有描述不全的,結合網上搜尋資料,整理一下移植注意事項

linux kernel configure by "make menuconfig arch=arm64"            

1.1 usb driver configure for uc15/uc20/ec20

device drivers  --->

[*] usb support  --->

<*> usb serial converter support

[*] usb generic serail driver

[*] usb driver for gsm and cmda modems

修改:autochips/kernel/drivers/usb/serial/option.c  檔案,新增ec20模組的註冊時的vid和pid號,以及生成裝置階段的介面4用於網路裝置

static const struct usb_device_id option_ids = , /* zte ac8700 */

, /* onda h600/zte mf330 */

, /* simcom sim5218 */

//ec20 yiyuan 4g lte module configure

#if  1//added by quectel

, /* quectel uc15 */

, /* quectel uc20 */

, /* quectel ec20 */

, /* quectel ec25/ec20 r2.0 */

, /* quectel ec21 */

#endif

, }static int option_probe(struct usb_serial *serial,

const struct usb_device_id *id)

, /* quectel uc15 */

, /* quectel uc20 */

, /* quectel ec20 */

, /* quectel ec25/ec20 r2.0 */

, /* quectel ec21 */

#endif

/drivers/net/usb/qmi_wwan.c 新增

#if 1 //added by quectel

, /* quectel uc15 */

, /* quectel uc20 */

, /* quectel ec20 */

, /* quectel ec25/ec20 r2.0 */

, /* quectel ec21 */

#endif

/drivers/usb/serial/usb_wwan.c 新增

static struct urb *usb_wwan_setup_urb(struct usb_serial *serial, int endpoint,

int dir, void *ctx, char *buf, int len,void (*callback) (struct urb *))

#if 1 //added by quectel for zero packet

if (dir == usb_dir_out)

#endif

return urb;

修改啟動指令碼/system/core/rootdir/init.rc

service ril-daemon /system/bin/rild -l /system/lib64/libreference-ril.so

class main

socket rild stream 660 root radio

socket rild-debug stream 666 radio system

user root

group radio cache inet misc audio sdcard_rw log

service quectel-pppd /etc/ppp/init.quectel-pppd

class main

user root

group radio cache inet misc log

disabled

modifying the right of service ril-daemon

serivce ril-daemon require root privilege. 

comment out the function switchuser() in the file hardware/ril/rild/rild.c. as below:

openlib:

#endif

//switchuser();

extract quectel's reference-ril.zip to hardware/ril/reference-ril/

re-build your android source code

***

問題點:

build/core/base_rules.mk:157: *** hardware/ril/reference-ril: module.target.executables.chat already defined by external/ppp/chat.  stop.

build/core/base_rules.mk:157: *** hardware/ril/reference-ril: module.target.executables.chat already defined by external/ppp/chat.  stop.

刪除external/ppp/chat
移植成功後,使用移動的物聯卡,需要手動設定apn為cmiot才能正常上網

新增cmiot到系統預設apn中,一般有下面幾個位置

1. frameworks/base/core/res/res/xml/apns.xml

2. 我的a64在: device/softwinner/common/rild/apns-conf_sdk.xml

3. rk平台中,採用此路徑: device/rockchip/common/phone/etc/apns-full-conf.xml 

新增內容為:

VPCS115EC安裝rhel6 0,黑屏

during and after install,the screeen remains blank.rebooting the system with nouveau.modset 0 seems work around the issue.relevant pieces of dmesg are...

EC2 WordPress 移動目錄

豆子的個人部落格的位址是 www.beanxyz.com blog 今天打算把wordpress從blog直接移到根目錄下面,這樣當我輸入 www.beanxyz.com 的時候,就可以直接看見目錄了 具體方法如下,以便日後備忘 豆子使用的是ec2的linux ami配置的lamp,因此操作上略有不...

新EC2例項型別t2

以前一直有個特殊的例項型別t1.micro,說是計算單元為1ecu,但是能burst到2ecu,說是適合平時使用率較低 偶爾使用率高的場景。昨天aws發布了3款t2型別的新例項,將這種能burst的特性發揮到 的極致。t2例項解析,以virginia節點為例 type vcpus baseline ...