摘要: gadget configfs.ko //fs/configfslibcomposite.ko //driver/usb/gadget/libcompositeU盘usb_f_mass_storage.ko //driver/usb/gadget/function/usb_f_mass_storag 阅读全文
posted @ 2019-09-11 11:46 断网用户 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 命令 命令缩写 命令说明 list l 显示多行源代码 break b 设置断点,程序运行到断点的位置会停下来 info i 描述程序的状态 run r 开始运行程序 display disp 跟踪查看某个变量,每次停下来都显示它的值 step s 执行下一条语句,如果该语句为函数调用,则进入函数执 阅读全文
posted @ 2019-08-23 16:41 断网用户 阅读(143) 评论(0) 推荐(0) 编辑
摘要: xxx_driver_register driver_register bus_add_driver driver_attach bus_for_each_dev __driver_attach ->bus.match->bus.probe->driver.probe 阅读全文
posted @ 2019-03-29 13:42 断网用户 阅读(80) 评论(0) 推荐(0) 编辑
摘要: #define module_i2c_driver(__i2c_driver) \ module_driver(__i2c_driver, i2c_add_driver, \ i2c_del_driver) #define i2c_add_driver(driver) \ i2c_register_ 阅读全文
posted @ 2019-03-29 13:34 断网用户 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 静态库 编译: 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. - 阅读全文
posted @ 2019-03-28 14:17 断网用户 阅读(179) 评论(0) 推荐(0) 编辑
摘要: ssh服务:通过shell远程登录 ftp服务:通过ftp上传下载 samba服务:将磁盘映射到本地,一般调试可以代替ftp服务 nfs服务:目标板可以通过远程mount根文件系统,或者下载文件到目标板 阅读全文
posted @ 2019-03-28 10:22 断网用户 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 驱动设备的三个关键东西:1、设备号 2、字符设备名 3、操作函数引用程序打开字符设备名即获取inode同时获取设备号,根据该设备号可获取file结构体,传统驱动注册方法。一、register_chrdev_region注册字符设备,先将字符设备号获取到cdev_init申请cdev绑定fopscde 阅读全文
posted @ 2019-03-07 19:12 断网用户 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 常用结构体://某一节点struct device_node { const char *name; const char *type; phandle phandle; const char *full_name; struct fwnode_handle fwnode; struct prope 阅读全文
posted @ 2019-03-05 15:56 断网用户 阅读(892) 评论(0) 推荐(0) 编辑
摘要: 调用脚本$(); 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 阅读全文
posted @ 2019-03-05 11:03 断网用户 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 修改configs/xx_defconfig文件中的CONFIG,其中包括架构,SOC和board 修改arch/arm/mach-xx中的KCONFIG 修改board/xx中的Kconfig 阅读全文
posted @ 2019-02-28 10:48 断网用户 阅读(300) 评论(0) 推荐(0) 编辑