QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1350|回复: 2

请教一下如何使用在内核配置中选择<M> 的模块

[复制链接]
发表于 2005-8-19 09:38:46 | 显示全部楼层 |阅读模式
用的是与smdk2410配套的linux2.4.18内核。按照网上一些文章的说法,采取的步骤是
1.make dep
2.make zIamge
3.make modules
出现了以下信息:
...
make -C arch/arm/lib CFLAGS="-D__KERNEL__ -I/usr/src/s3c2410_kernel2.4.18_r1.1/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4 -mtune=arm9tdmi -mshort-load-bytes -msoft-float -DMODULE" MAKING_MODULES=1 modules
make[1]: Entering directory `/usr/src/s3c2410_kernel2.4.18_r1.1/arch/arm/lib'
make[1]: Nothing to be done for `modules'.
make[1]: Leaving directory `/usr/src/s3c2410_kernel2.4.18_r1.1/arch/arm/lib'
...
4.make modules_install
出现了以下信息:
...
make -C arch/arm/lib modules_install
make[1]: Entering directory `/usr/src/s3c2410_kernel2.4.18_r1.1/arch/arm/lib'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/s3c2410_kernel2.4.18_r1.1/arch/arm/lib'
make -C arch/arm/nwfpe modules_install
make[1]: Entering directory `/usr/src/s3c2410_kernel2.4.18_r1.1/arch/arm/nwfpe'
make[1]: Nothing to be done for `modules_install'.
make[1]: Leaving directory `/usr/src/s3c2410_kernel2.4.18_r1.1/arch/arm/nwfpe'
...
按理以M配置的模块应该出现在内核源码所在文件夹中的/lib/modules中
但是/lib中根本都没有任何module文件
我该怎样才能用得到这些module啊?
请各位不吝赐教啊,谢谢了!  
发表于 2005-8-19 17:38:07 | 显示全部楼层
Do you compile anything as module? Do you find the compiled module files?
回复

使用道具 举报

 楼主| 发表于 2005-8-19 18:00:18 | 显示全部楼层
[quote:9e2d388d59="cnspy"]Do you compile anything as module? Do you find the compiled module files?[/quote]
Of course I choice something to be complied as modules.
In my opinion ,if the article about module at /Documentation is right ,the driver file
***.o shoule be located at /the kernel source parh/lib/modules .
But I can't find any about it!
What's the problem?????
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 06:25 , Processed in 0.037849 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表