Category:Linux Driver

From ElectroDragon Wiki
Revision as of 19:56, 1 February 2020 by Chao (talk | contribs) (→‎Kernel Config)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Applications

Software

Hardware

Touch Screen Test

ls /dev/input   # check if device exist or not, input/event0
# load module 若不存在,找到触摸模块并加载
insmod goodix.ko
# 如根文件系统未找到goodix.ko,请在linux源码的output目录下查找并放入根文件系统下
# 若存在
evtest /dev/input/event0  # 使用evtest测试输入的xy坐标数据
# 直观的测试
ts_test
# 触摸校准工具
ts_calibrate

Build single KO (kernelobject) file

1.我的内核是git上4.14y的分支。首先我要编译wifi模块的内核驱动。

cd ~/lichee/linux-zero-4.14.y/    #进入
make ARCH=arm licheepi_zero_defconfig #生成荔枝派默认配置文件
vi arch/arm/configs/licheepi_zero_defconfig #修改一下
CONFIG_RTL8723BS=m  #将这一项改成m或者y好像也一样
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 #编译内核
然后把生成的zImage放入sd卡的boot分区(我是这么干的),其实应该是把 drivers/staging/rtl8723bs/rtl8723bs.ko 这个驱动放到 sd卡usr/lib/ 中

Unsort

  • Edit Makerfile
obj-m := mxt224.o

or change exist line

obj-$(CONFIG_ESP8089) := esp8089.o
  • Run:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -C /opt/linux-v3s/ M=${PWD}  modules
make -C /home/kernel_path/ M=$(pwd) modules
  • In which
-C is the kernel folder

Reference

Kernel Config For Driver

Wireless Driver, example RTL8723

  • → Device Drivers → Network device support → Wireless LAN →
 [*]   Realtek devices                                                       
 < >     Realtek 8187 and 8187B USB support                          
 <*>     Realtek rtlwifi family of devices  --->                                  
 < >     RTL8723AU/RTL8188[CR]U/RTL819[12]CU (mac80211) support

Reference

Subcategories

This category has only the following subcategory.

D

Pages in category "Linux Driver"

This category contains only the following page.