摘要: http://blog.csdn.net/hecant/archive/2007/10/31/1859504.aspx 阅读全文
posted @ 2008-04-23 18:16 fishert 阅读(814) 评论(0) 推荐(0) 编辑
摘要: 1.完成程序,用arm-linux-gcc -g *** -o *** 生成 2.下载test和gdbserver到XSBase目标板上 3.XSBase板子上运行./gdbserver 192.168.0.100:1234 test,接收主机的信号 4.主机运行./arm-linux-gdb ** (arm-linux-gdb在/usr/local/arm-gdb/bin下) 5.步步调试 阅读全文
posted @ 2008-04-23 18:12 fishert 阅读(363) 评论(0) 推荐(0) 编辑
摘要: helloworld.c #define MODULE #include int init_module(void) { printk(“ Hello World!\n”); return 0; } void cleanup_module(void) { printk(“ Goodbye!\n”); } MODULE_LICENSE(“GPL”); 说明: 1. 代码的第一行#define... 阅读全文
posted @ 2008-04-23 18:11 fishert 阅读(1079) 评论(0) 推荐(0) 编辑
摘要: 表5-1 /proc根下文件和目录 文件/目录名 描述 apm 高级电源管理信息 bus 包含了总线以及总线上设备信息的目录,子目录以总线类型组织 cmdline 内核的命令行参数 cpuinfo CPU信息,包括主频、类型等信息 devices 系统字符和块设备编号及驱动程序名 dma 正在使用的DMA通道 driver 组织了不同的驱动程序 execdomains 和安全相关的... 阅读全文
posted @ 2008-04-23 18:10 fishert 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 6、添加驱动到linux内核(”实验源码”目录中包括已经修改好的相关文件) 对于一个开发者来说,将自己开发的内核代码添加到 Linux 内核中,需要有三个步骤。(1)确定把自己的开发代码放入到内核的位置; (2)把自己开发的功能增加到 Linux 内核的配置选项中,使用户能够选择此功能 (3)构建子目录 Makefile,根据用户的选择,将相应的代码编译Linux 内核中。 下面,我们就通过一... 阅读全文
posted @ 2008-04-23 18:10 fishert 阅读(3394) 评论(2) 推荐(1) 编辑
摘要: 第2章 添加系统调用 实验目的 学习Linux内核的系统调用,理解、掌握Linux系统调用的实现框架、用户界面、参数传递、进入/返回过程。 实验内容 本实验分两步走。 第一步,在系统中添加一个不用传递参数的系统调用;执行这个系统调用,使用户的uid等于0。显然,这不是一个有实际意义的系统调用。我们的目的并不是实用不实用,而是通过最简单的例子,帮助熟悉对系统调用的添加过程,为下面我们添加更加复杂的... 阅读全文
posted @ 2008-04-23 18:08 fishert 阅读(3001) 评论(0) 推荐(1) 编辑
摘要: http://blog.sina.com.cn/s/blog_4a9e1be3010009j1.html 阅读全文
posted @ 2008-04-23 18:08 fishert 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 常用命令: 1. ls , ls -a 2. pwd 3. ps , ps -a 4. cd , cd .. 5. mkdir 6. rmdir 7. rm ? -rf 8. ifconfig 9. tar -czf 压缩后的文件 压缩前的文件; tar -xzf 压缩后的文件 10. 1、以.gz 结尾的为压缩文件,用命令:gzip -d filename 来解压,得到的... 阅读全文
posted @ 2008-04-23 18:07 fishert 阅读(306) 评论(0) 推荐(0) 编辑
摘要: A ASIC Application-Specific Integrated Circuit. A piece of custom-designed hardware in a chip. address bus A set of electrical lines connected to the processor and all of the peripherals withwhich i... 阅读全文
posted @ 2008-04-23 18:05 fishert 阅读(424) 评论(0) 推荐(0) 编辑