1.1 添加内核配置
注意: 客户在进行配置前,需要对OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/configs/sun50iw9p1smp_longan_defconfig
文件提前做好备份。 vi
OKT507-linux-sdk/kernel/linux-4.9/.config 修改完保存.config为sun50iw9p1smp_longan_defconfig并替换OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/configs/sun50iw9p1smp_longan_defconfig vi
OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/OKT507-C-Common.dtsi 其中按键键值设置如下 相关键值可通过查看input-event-codes.h确定。 vi
OKT507-linux-sdk/kernel/linux-4.9/include/uapi/linux/input-event-codes.h
vi
OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw9p1-pinctrl.dtsi 图6 vi
OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/OKT507-C-Common.dtsi vi OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw9p1-pinctrl.dtsi vi
OKT507-linux-sdk/kernel/linux-4.9/drivers/input/keyboard/gpio_keys.c,添加全志的gpio头文件 终端窗口输入evtest,选择7 |
|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )
GMT+8, 2024-11-22 17:41
Powered by Discuz! X3.4
© 2001-2013 Comsenz Inc.