<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
<channel>
 <title><![CDATA[请教：设备驱动程序该如何编译]]></title>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877]]></link>
 <description><![CDATA[Latest 20 replies of 请教：设备驱动程序该如何编译]]></description>
 <copyright><![CDATA[Copyright(C) ]]></copyright>
 <generator><![CDATA[PHPWind Forums by PHPWind Studio]]></generator>
 <lastBuildDate><![CDATA[Mon, 27 Jul 2026 06:09:43 +0000]]></lastBuildDate>
  <image>
 <url><![CDATA[images/rss.gif]]></url>
 <title><![CDATA[PHPWind Board]]></title>
 <link><![CDATA[http://121.40.142.80]]></link>
 <description><![CDATA[]]></description>
  </image>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[我现在在/lib/modules/下新建文件夹2.6.29.4-FriendlyARM,把hello-world.ko拷贝到该文件夹下，然后在该文件夹下加载和卸载驱动都没有任何信息输出，也不报任何错误，但事实是模块是加载了，但却卸载不掉，程序就是我的上述程序不变，请版主帮忙看看吧，谢谢 [s:12]&nbsp;&nbsp;[s:12]&nbsp;&nbsp;[s:12]]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877#9433]]></link>
 <author><![CDATA[sunchaosq]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Tue, 01 Sep 2009 11:33:19 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[要看内核的打印输出，最好的办法是dmesg命令；
rmod的问题，搜索论坛的老贴]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877#9419]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Tue, 01 Sep 2009 06:54:14 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[谢谢版主，现在可以生成.ko文件，下载到板子的/lib/modules/2.6.29-FriendlyARM里，云行insmod hello-world.ko
终端里没有输出hello,sunchao!
运行lsmod,终端显示hello_world 996 0 -live&nbsp;&nbsp;0xbf000000
运行rmmod hello-world.ko,终端显示
rmmod:chdir(2.6.29.4-FriendlyARM):No such file or directory]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877#9418]]></link>
 <author><![CDATA[sunchaosq]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Tue, 01 Sep 2009 06:27:23 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[$cd /opt/FriendlyARM/mini2440/linux-2.6.29
$make modules_prepare]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877#9410]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Tue, 01 Sep 2009 02:40:35 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[确实是这样，我原来的.c文件是hello.c,改成hello-world.c又有错误如下

[root@localhost hello-world]# make modules
make&nbsp;&nbsp;-C&nbsp;&nbsp; /opt/FriendlyARM/mini2440/linux-2.6.29&nbsp;&nbsp;&nbsp;&nbsp;M=/opt/FriendlyARM/mini2440/modules/hello-world&nbsp;&nbsp;&nbsp;&nbsp;modules
make[1]: Enterin ..]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877#9390]]></link>
 <author><![CDATA[sunchaosq]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Mon, 31 Aug 2009 11:45:06 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[看起来你的Makefile要找hello-world.c，而事实上却没有？]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877#9375]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Mon, 31 Aug 2009 07:58:45 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[谢谢版主，我照你说的，现在还有错误如下

[root@localhost hello-world]# make modules
make&nbsp;&nbsp;-C&nbsp;&nbsp; /opt/FriendlyARM/mini2440/linux-2.6.29&nbsp;&nbsp;&nbsp;&nbsp;M=/opt/FriendlyARM/mini2440/modules/hello-world&nbsp;&nbsp;&nbsp;&nbsp;modules
make[1]: Entering directory `/opt/FriendlyA ..]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877#9374]]></link>
 <author><![CDATA[sunchaosq]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Mon, 31 Aug 2009 07:52:47 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[记住，编译内核模块需要
1） 内核源代码树（至少包含头文件）
2）内核源代码树已经配置过，并且和开发板上跑的内核镜像配置一致]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877#9359]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Mon, 31 Aug 2009 03:36:03 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[编译模块之前，先执行下面的命令
$cd /opt/FriendlyARM/mini2440/linux-2.6.29
（如果你用的是NEC 3.5寸屏，否则用对应的内核配置文件替换下面的config_N35）
$cp -a config_N35 .config
$make oldconfig &amp;&amp; make prepare]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=2877#9358]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Mon, 31 Aug 2009 03:34:04 +0000]]></pubdate>
</item>
</channel></rss>