foggia2004

2016年10月17日

i2c之at24c08驱动及应用程序

摘要: 1-->修改板级文件arch/arm/mach-s3c2440/mach-mini2440.c 2-->驱动文件at24c08.c 3-->应用程序 4-->Makefile 当然也可以将驱动文件添加到对应的内核文件中,通过修改对应的KConfig和Makefile来将驱动编译到内核中 阅读全文

posted @ 2016-10-17 09:20 foggia2004 阅读(1273) 评论(0) 推荐(1)

2016年9月27日

添加新设备在平台里的支持

摘要: 1-->设备的定义平台的所有设备都会在arch\arm\plat-s3c\include\plat\devs.h中进行初始定义 2-->定义设备的结构体设备实体的结构体解析 3-->设备资源平台的所有设备都会在arch\arm\plat-s3cxx\devs.c中进行资源使用定义 4-->平台设备初 阅读全文

posted @ 2016-09-27 11:27 foggia2004 阅读(328) 评论(0) 推荐(0)

readelf与动态库

摘要: 使用arm-linux-gcc编译的可执行文件可能会无法在开发板上执行,并提示:-/bin/sh xxx not found 解决办法: 在主机上使用readelf -d xxx 来查看该程序所需要的动态库,比如 在交叉编译目录你搜索<find -name 'libc.so.6'>,然后将其拷贝到根 阅读全文

posted @ 2016-09-27 11:21 foggia2004 阅读(618) 评论(0) 推荐(0)

混杂要点汇总

摘要: 1->寄存器的使用 2->nfs服务 阅读全文

posted @ 2016-09-27 11:15 foggia2004 阅读(177) 评论(0) 推荐(0)

red hat enterprise 6安装tftp服务

摘要: 1--->检查是否安装tftp rpm -qa tftp* 2--->安装tftp yum install -y tftp-server 3--->chkconfig --list|grep tftp 4--->vim /etc/xinet.d/tftp 修改server_args = -s 指定目录 disable = no 5--->设置自动运行 chkconfig tftp on ... 阅读全文

posted @ 2016-09-27 11:10 foggia2004 阅读(261) 评论(0) 推荐(0)

关于uboot和kernel的一些理解

摘要: 经过多次的修改和实验,终于能够在mini2440开发板上进行各种uboot和kernel的挂载实验了,在此期间学习到了很多知识,也理解了一些知识1->分区uboot和kernel的分区表要一致uboot分区位置:include/configs/mini2440.h kernel分区位置:arch/a 阅读全文

posted @ 2016-09-27 11:06 foggia2004 阅读(3631) 评论(0) 推荐(0)

2016年6月1日

一个完整的虚拟字符设备驱动程序

摘要: 字符驱动模块charmem.c 功能预定义charmem.h 应用程序charmemapp.c Makefile文件 阅读全文

posted @ 2016-06-01 22:02 foggia2004 阅读(620) 评论(0) 推荐(0)

2016年5月24日

一个内核定时器模块

摘要: Makefile 阅读全文

posted @ 2016-05-24 11:09 foggia2004 阅读(488) 评论(0) 推荐(0)

2016年5月23日

一个简单的内核模块

摘要: Makefile文件 阅读全文

posted @ 2016-05-23 20:33 foggia2004 阅读(148) 评论(0) 推荐(0)

2016年5月20日

fifo write

摘要: #include #include #include #include #include #include #include #include #define MYFIFO "/tmp/myfifo" int main(int argc, char *argv[]) { int fd; char buf_w[50]; fd=open(MYFIF... 阅读全文

posted @ 2016-05-20 14:54 foggia2004 阅读(143) 评论(0) 推荐(0)

导航