发 帖  
原厂入驻New
申请华秋企业认证 多层板首单免费打样!
30s提交资料,10分钟通过审核(免费赔付+顺丰包邮)>>立即报名

[经验] VS-RK3399板卡—U9300C使用说明

2019-12-16 15:27:41  3634 RK3399 瑞芯微RK3399
分享
0
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下面

评论

高级模式
您需要登录后才可以回帖 登录 | 注册

发经验
关闭

站长推荐 上一条 /6 下一条

快速回复 返回顶部 返回列表