问题原因
我们之前编译出来的默认SDK镜像版上的USB2.0是无法使用的,现在我们需要解决这个问题。
查看原理图,确认管脚
首先查看原理图,USB2.0接口,在原理图上是P4连接器,对应的DP和DM是USB3模块的。
sys_config.fex配置
全志的平台开发分无sys_config.fex和有sys_config.fex文件的情况:无sys_config.fex就像传统的dts文件那样进行配置。有sys_config.fex配置文件,方便用户进行快速配置,优先级最高。所以一般配置sys_config.fex即可。我们可以再lichee目录用find命令进行查找,找到H6板子所对应的文件进行修改tools/pack/chips/sun50iw6p1/configs/petrel-p1/sys_config.fex
lemon@ubuntu:~/Develop/OrangePi_Lite2/lichee$ find . -name "sys_config.fex"
./tools/pack/chips/sun8iw12p1/configs/fpga/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/dv100_nor/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/v5s_perf1_v1_0/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/dvb/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/v5s_perf2_v1_0/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/v5_qaqc_v1.0/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/ver1/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/v5s_pro_lpddr3/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/dv100/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/v5_perf1_v1_0/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/v5_bc_pwr07_nor/sys_config.fex
./tools/pack/chips/sun8iw12p1/configs/ver1_nor/sys_config.fex
./tools/pack/chips/sun9iw1p1/configs/jaws-cmcc-wasu/sys_config.fex
./tools/pack/chips/sun9iw1p1/configs/jaws-cmcc-wasu-p1/sys_config.fex
./tools/pack/chips/sun9iw1p1/configs/jaws-p2/sys_config.fex
./tools/pack/chips/sun9iw1p1/configs/jaws-p1/sys_config.fex
./tools/pack/chips/sun9iw1p1/configs/jaws-p1-secure/sys_config.fex
./tools/pack/chips/sun9iw1p1/configs/jaws-optimus/sys_config.fex
./tools/pack/chips/sun8iw6p1/configs/eagle-p1-secure/sys_config.fex
./tools/pack/chips/sun8iw6p1/configs/aston-p1/sys_config.fex
./tools/pack/chips/sun8iw6p1/configs/eagle-p2/sys_config.fex
./tools/pack/chips/sun8iw6p1/configs/aston-perf/sys_config.fex
./tools/pack/chips/sun8iw6p1/configs/eagle-tvd-perf3/sys_config.fex
./tools/pack/chips/sun8iw6p1/configs/eagle-p1/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/v3-perf/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/CDR/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/tiger-standard/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/ipc/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/crane-standard/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/v3s-perf/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/sdv/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/crane-ipc/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/tiger-ipc/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/tiger-cdr/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/crane-sdv/sys_config.fex
./tools/pack/chips/sun8iw8p1/configs/crane-cdr/sys_config.fex
./tools/pack/chips/sun50iw6p1/configs/petrel