视壮BBS

   登录   |   注册   |

VS-RK3399板卡—U9300C使用说明

143

主题

156

帖子

891

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
891
发表于 2018-8-1 09:38:00     
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下面

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 易百讯      粤ICP备14022046号-2
快速回复 返回顶部 返回列表