中级会员
- 积分
- 417
- 金钱
- 417
- 注册时间
- 2018-4-2
- 在线时间
- 42 小时
|
视壮VS-RK3399板卡—U9300C使用说明
驱动部分:
1.dts配置
kernel/arch/arm64/boot/dts/rockchip/rk3399-videostrong-board-mipi.dts(edp:rk3399-videostrong-
board-edp.dts)
vsgpio_set {
compatible = "videostrong,gpio";
pinctrl-names = "default";
pinctrl-0 = <&b3G_gpio>;
//
3G_power = <&gpio0 2 GPIO_ACTIVE_HIGH>;
3G_power = <&gpio0 2 GPIO_ACTIVE_LOW>;
3G_Spk_GP = <&gpio0 11 GPIO_ACTIVE_HIGH>;
status = "okay";
};
2.添加vid/pid
kernel/drivers/usb/serial/option.c
添加PID
#define FOUR_G_SYSTEMS_PRODUCT_U9300 0x9b3c
添加blacklist
static const struct option_blacklist_info four_g_u9300_blacklist = {
.reserved = BIT(4),
};
在option_ids数组中添加U9300模块
{ USB_DEVICE(LONGCHEER_VENDOR_ID, FOUR_G_SYSTEMS_PRODUCT_U9300),
.driver_info = (kernel_ulong_t)&four_g_u9300_blacklist
},
系统部分
1.init.rc中添加服务
service ril-daemon /system/bin/rild
class main
socket rild stream 660 root radio
socket rild-debug stream 666 radio system
socket sap_uim_socket1 stream 660 bluetooth bluetooth
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio sdcard_rw log
2.build.prop
#rild.libpath=/system/lib/libril-rk29-dataonly.so
#rild.libargs=-d /dev/ttyACM0
rild.libpath=/system/lib64/libreference-ril-u9300-64bit.so
rild.libargs=-d /dev/ttyUSB2
3.将libreference-ril-u9300-64bit.so放到system/lib64下面
|
|