摘要:
gadget configfs.ko //fs/configfslibcomposite.ko //driver/usb/gadget/libcompositeU盘usb_f_mass_storage.ko //driver/usb/gadget/function/usb_f_mass_storag 阅读全文
摘要:
命令 命令缩写 命令说明 list l 显示多行源代码 break b 设置断点,程序运行到断点的位置会停下来 info i 描述程序的状态 run r 开始运行程序 display disp 跟踪查看某个变量,每次停下来都显示它的值 step s 执行下一条语句,如果该语句为函数调用,则进入函数执 阅读全文
摘要:
xxx_driver_register driver_register bus_add_driver driver_attach bus_for_each_dev __driver_attach ->bus.match->bus.probe->driver.probe 阅读全文
摘要:
#define module_i2c_driver(__i2c_driver) \ module_driver(__i2c_driver, i2c_add_driver, \ i2c_del_driver) #define i2c_add_driver(driver) \ i2c_register_ 阅读全文
摘要:
静态库 编译: gcc -c xxx.c yyy.car -rc libzzz.a xxx.o yyy.o 使用gcc main.c -L. -lzzz -o main 动态库 编译: gcc xxx.c yyy.c -fPIC -shared libzzz.so使用gcc main.c -L. - 阅读全文
摘要:
ssh服务:通过shell远程登录 ftp服务:通过ftp上传下载 samba服务:将磁盘映射到本地,一般调试可以代替ftp服务 nfs服务:目标板可以通过远程mount根文件系统,或者下载文件到目标板 阅读全文
摘要:
驱动设备的三个关键东西:1、设备号 2、字符设备名 3、操作函数引用程序打开字符设备名即获取inode同时获取设备号,根据该设备号可获取file结构体,传统驱动注册方法。一、register_chrdev_region注册字符设备,先将字符设备号获取到cdev_init申请cdev绑定fopscde 阅读全文
摘要:
常用结构体://某一节点struct device_node { const char *name; const char *type; phandle phandle; const char *full_name; struct fwnode_handle fwnode; struct prope 阅读全文
摘要:
调用脚本$(); if语句: if[ -d ];then xxx else xxx fi case语句: case xxx in xx) xxx ;; esac while语句 while((xx)) do xxx done demo: #!/bin/basha=$(uname -r)echo $a 阅读全文
摘要:
修改configs/xx_defconfig文件中的CONFIG,其中包括架构,SOC和board 修改arch/arm/mach-xx中的KCONFIG 修改board/xx中的Kconfig 阅读全文