pci
摘要:https://www.ibm.com/developerworks/cn/linux/l-pci/
阅读全文
spi controller
摘要:http://blog.csdn.net/droidphone/article/details/24353293 http://www.china-cpu.com/supports/article/0101001.html
阅读全文
usb host驱动
摘要:参考 http://blog.csdn.net/star530/article/details/8019604
阅读全文
spi_flash
摘要:http://blog.chinaunix.net/uid-27406766-id-3384699.html
阅读全文
u-boot 中的nand flash管理
摘要:http://www.eefocus.com/lishutong/blog/13-06/295365_90ddf.html
阅读全文
设备树
摘要:设备树参考: http://blog.csdn.net/21cnbao/article/details/8457546 http://docs.oracle.com/cd/E38902_01/html/E38873/kernelovr-64300.html# http://www.linuxidc.
阅读全文
linux键盘驱动
摘要:http://blog.csdn.net/beyondhaven/article/details/5753182 http://blog.chinaunix.net/uid-20564848-id-73358.html
阅读全文
内核 platform_get_resource() 函数解析
摘要:struct resource *platform_get_resource(struct platform_device *dev, unsigned int type, unsigned int num) { int i; for (i = 0; i < dev->num_resources;
阅读全文
混杂设备的实现
摘要:http://blog.csdn.net/tianxiawuzhei/article/details/7588504 总结: 在 misc_register() 中调用 device_create() ,所以将自动创建设备文件 /dev/dev_name
阅读全文
驱动模块中控制系统时钟
摘要:http://www.cnblogs.com/hoys/archive/2011/03/26/1996474.html http://blog.chinaunix.net/uid-26675482-id-4347753.html summary point : 1. 查看模块电路与系统时钟的连接
阅读全文
模块移除 命令rmmod 的实现
摘要:// rmmod.c #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <errno.h> int main(int argc, cha
阅读全文
led 的 platform驱动实现
摘要:http://www.linuxidc.com/Linux/2014-03/97756.htm http://blog.sina.com.cn/s/blog_6b94d5680101cn0t.html http://blog.csdn.net/yicao821/article/details/678
阅读全文
kconfig语法
摘要:参考:http://www.cnblogs.com/Daniel-G/p/3284791.html
阅读全文
嵌入式开发中相关开发环境搭建
摘要:1. 配置过程中有与开发版网络启动服务有关的tftp ,nfs 2. 与文件共享有关的 samba 3. 关闭系统网络安全管理软件selinux ,iptables
阅读全文
嵌入式开发
摘要:参考:http://www.cnblogs.com/iwasmu/archive/2009/05/29/1491570.html
阅读全文
驱动模块程序文件的运行入口
摘要:1. 驱动程序可以被静态的被编译进内核中,也可以作为模块在使用时加载。 2. 当模块文件被 insmod 命令加载时,其中的模块初始化函数将被调用,该函数向内核注册驱动程序,及该初始化函数就是给模块驱动程序的入口。 3. 当模块被 rmmod 命令卸载时,模块清除函数将被调用。 相关命令有:insm
阅读全文
linux 设备驱动分类
摘要:1. 字符设备 :在I/O传输过程中以字符为单位。 2. 块设备: 在传输过程中以块为单位,相关概念有 缓冲,I/O调度,请求队列。主要体现出与字符设备在操作硬件的接口实现方式上是不一样的。 3. 网络设备:
阅读全文
NFS 网络文件系统制作
摘要:1. 构建根文件系统主要是建立相关的文件目录,以及各目录下相关的配置文件、管理工具等。2. 首先创建文件目录。 mkdir rootfs cd rootfs mkdir bin dev etc lib proc sbin sys usr mnt tmp var mkdir u...
阅读全文
DM 9000网卡驱动移植
摘要:1. 由于内核已经带有DM9000 网卡的驱动,所以主要移植工作是在板文件中添加 platform_device 结构,并加入 ok6410_devices[] __initdata 数组。 代码如下: /*DM9000*/ #define DM9000_IRQ_EINT0 IRQ_EINT(7)
阅读全文
构建BSP (boardsupport packet)
摘要:由于移植期间遇到较多头文件包含及常量定义问题,故在此总结如下: 常量定义一般涉及到寄存器定义、寄存器配置常量定义,寄存器配置常量一般在驱动目录下自定义,所以如果编译过程中出现常量未定义的情况一般是属于寄存器未定义。一、BSP 的层次及对应的文件 1. cpu体系结构文件 /arch/xxx...
阅读全文