随笔分类 - device driver
摘要:mkdir -p /data/run echo 'ctrl_interface=/data/run/wpa_supplicant' > /etc/wpa_supplicant.conf echo 'ctrl_interface=/data/run/wpa_supplicant' > /data/wp
        阅读全文
            
摘要:续前节:linux下的 c 和 c++ 开发工具及linux内核开发工具 继续工具的介绍: ftrace ftrace 除了 trace-cmd 这个命令行前端工具之外,还有一个图形化显示前端工具叫 kernelshark,非常好用,有时间片显示和过滤功能。kernelshark 和 trace-c
        阅读全文
            
摘要:免费的: https://github.com/welhzh/Generate_Kernel_Uboot_Project_forIDE.git 内核有很多文件,真正编译的文件可能只占1/4,这个工具就是将这1/4的文件筛选出来的工具。 https://github.com/CoatiSoftware
        阅读全文
            
摘要:https://www.cnblogs.com/wwang/archive/2011/06/21/2085571.html 我们都知道,如果要使用没有集成到内核之中的Linux驱动程序需要手动编译。当然,这并不是一件什么难事,即使是对于没有编程经验的Linux使用者,只要稍微有点hacker的意识,
        阅读全文
            
摘要:符号类型. 小写字母表示局部; 大写字母表示全局(外部).AThe symbol's value is absolute, and will not be changed by further linking. BThe symbol is in the uninitialized data sec
        阅读全文
            
摘要:dump_stack可以用来查看函数调用关系,即便在内核里也可以。 // hello.c #include <linux/module.h> #include <linux/init.h> #include <linux/kprobes.h> #include <asm/traps.h> stati
        阅读全文
            
摘要:https://linux-sunxi.org/SPIdev The SPI bus (or Serial Peripheral Interface bus) is a synchronous serial data link originally created by motorola.For m
        阅读全文
            
摘要:https://en.wikipedia.org/wiki/Netlink https://stackoverflow.com/questions/12899055/how-kernel-notify-a-user-space-program-an-interrupt-occurrs There i
        阅读全文
            
摘要:https://opensource.com/article/18/6/embedded-linux-build-tools https://github.com/luong-komorebi/Awesome-Linux-Software#development Anjuta: http://anj
        阅读全文
            
摘要:<< System语言详解 >> 关于 SystemTap 的书。 我们在分析各种系统异常和故障的时候,通常会用到 pstack(jstack) /pldd/ lsof/ tcpdump/ gdb(jdb)/ netstat/vmstat/ mpstat/truss(strace)/iostat/s
        阅读全文
            
摘要:网址: https://www.spinellis.gr/cscout/ https://www2.dmst.aueb.gr/dds/cscout/index.html https://github.com/dspinellis/cscout 还有一个工具叫Xrefactory,它可以分析c++程序
        阅读全文
            
摘要:這是 make 的版本問題!不清楚為何要這樣限制?將此行 config %config: scripts_basic outputmakefile FORCE改成 %config: scripts_basic outputmakefile FORCE就可以了。
        阅读全文
            
摘要:1 轮询与中断 外部设备与中央处理器交互一般有两种手段:轮询和中断。 (1)轮询(Polling) 很多I/O设备都有一个状态寄存器,用于描述设备当前的工作状态,每当设备状态发生改变时,设备将修改相应状态寄存器位。通过不断查询设备的状态寄存器,CPU就可以了解设备的状态,从而进行必要的I/O操作。为
        阅读全文
            
摘要:linux: http://lxr.free-electrons.com/ 相当好 android: http://androidxref.com
        阅读全文
            
摘要:方法一:最新的dmesg版本有一个 -w (-w, --follow) 选项,可以实时监控并输出:$ dmesg -wH方法二:watch -n 0.1 "dmesg | tail -n $((LINES-6))"the $((LINES-6)) part should make it fit ni...
        阅读全文
            
摘要:making a linux usb driverhttp://www.kroah.com/linux/http://matthias.vallentin.net/blog/2007/04/writing-a-linux-kernel-driver-for-an-unknown-usb-device...
        阅读全文
            
摘要:做linux底层软件工作也有两年了,算上研究生时期对底层软件的研究,加起来也快四年了。慢慢地发现有必要总结一些一般性的方法了。因为一般性的方法有宏观上的指导意义,以后调试和移植驱动时,经常性地回味这些一般性的方法可以防止自己犯同样的错误,进而少走弯路,以最高的效率完成工作。当谈到底层软件,我们一般都...
        阅读全文
            
摘要:3 Kbuild文件 大部分内核中的Makefile都是使用Kbuild组织结构的Kbuild Makefile。这章将介绍Kbuild Makefile的语法。 对于Kbuild文件名来讲,Kbuild编译系统更倾向于使用"Makefile"这个名字,当然"Kbuild"也是可以用的。但如果"Ma
        阅读全文
            
摘要:一、概述diff和patch是一对相辅相成的工具,在数学上来说,diff类似于对两个集合的差运算,patch类似于对两个集合的和运算。diff比较两个文件或文件集合的差异,并记录下来,生成一个diff文件,这也是我们常说的patch文件,即补丁文件。 patch能将diff文件运用于原来的两个集合之...
        阅读全文
            
 
                    
                 浙公网安备 33010602011771号
浙公网安备 33010602011771号