完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
KERN_DIR = /work/sys/linux-2.6.22.6
all : make -C $(KERN_DIR) M='pwd' modules clean: make -C $(KERN_DIR) M='pwd' modules clean rm -rf modules.order obj-m +=first_diver.o 以上是我写的Makefile 但是我make之后: book@book-desktop:/work/project/first_drv$ ls first_diver.c Makefile book@book-desktop:/work/project/first_drv$ make make -C /work/sys/linux-2.6.22.6 M='pwd' modules make[1]: Entering directory `/work/sys/linux-2.6.22.6' scripts/Makefile.build:17: /work/sys/linux-2.6.22.6/pwd/Makefile: No such file or directory make[2]: *** No rule to make target `/work/sys/linux-2.6.22.6/pwd/Makefile'. Stop. make[1]: *** [_module_pwd] Error 2 make[1]: Leaving directory `/work/sys/linux-2.6.22.6' make: *** [all] Error 2 book@book-desktop:/work/project/first_drv$ 我检查了C文件的文件名,和makefile内是对的上的,而且我已经配置、编译了内核,也已经生成了uImage,但还是出错,请各位大神帮帮忙 以上是make和make uImage之后的提示信息,都是成功的 WARNING: arch/ARM/mach-s3c2443/built-in.o(.text+0x1020): Section mismatch: reference to .init.data: (after 's3c2443_dma_add') WARNING: arch/arm/plat-s3c24xx/built-in.o(.text+0x2a8c): Section mismatch: reference to .init.text:s3c24xx_dma_init (between 's3c2410_dma_init' and 's3c2410_dma_request') WARNING: arch/arm/plat-s3c24xx/built-in.o(.data+0x23cc): Section mismatch: reference to .init.text: (between 's3c24xx_timer' and 's3c2410_timer_irq') WARNING: sound/built-in.o(.text+0x18c3c): Section mismatch: reference to .init.text: (between 's3c2410iis_probe' and 's3c2410iis_remove') WARNING: sound/built-in.o(.text+0x18c64): Section mismatch: reference to .init.text: (between 's3c2410iis_probe' and 's3c2410iis_remove') Kernel: arch/arm/boot/Image is ready Kernel: arch/arm/boot/zImage is ready Building modules, stage 2. MODPOST 22 modules 、 3c2443_irq_init') WARNING: arch/arm/mach-s3c2443/built-in.o(.text+0x1020): Section mismatch: reference to .init.data: (after 's3c2443_dma_add') WARNING: arch/arm/plat-s3c24xx/built-in.o(.text+0x2a8c): Section mismatch: reference to .init.text:s3c24xx_dma_init (between 's3c2410_dma_init' and 's3c2410_dma_request') WARNING: arch/arm/plat-s3c24xx/built-in.o(.data+0x23cc): Section mismatch: reference to .init.text: (between 's3c24xx_timer' and 's3c2410_timer_irq') WARNING: sound/built-in.o(.text+0x18c3c): Section mismatch: reference to .init.text: (between 's3c2410iis_probe' and 's3c2410iis_remove') WARNING: sound/built-in.o(.text+0x18c64): Section mismatch: reference to .init.text: (between 's3c2410iis_probe' and 's3c2410iis_remove') Kernel: arch/arm/boot/Image is ready Kernel: arch/arm/boot/zImage is ready Image arch/arm/boot/uImage is ready |
|
相关推荐
2个回答
|
|
M=`pwd` 不是M='pwd' 你写错了。 注意不是单引号 而是1左边那个
|
|
|
|
建议后面学习 如果遇到问题, 先用老师的代码实验一下,实验成功 说明环境没问题 那肯定是代码问题。然后用对比软件一对比,就找到问题了。
|
|
|
|
只有小组成员才能发言,加入小组>>
197个成员聚集在这个小组
加入小组为什么点亮LED的例子放在NORFlash上跑会出现奇怪的现象?
2187 浏览 6 评论
1987 浏览 5 评论
韦东山老师推出的《玩转ARM裸机实战》课程将帮你以上问题一扫而光!
4545 浏览 1 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 00:45 , Processed in 0.528290 second(s), Total 51, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号