打印

led驱动问题,请三位斑竹解答下吧

[复制链接]
1924|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
lc19840928|  楼主 | 2009-3-25 17:10 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[root@localhost leds]# make

/usr/local/arm/release-3.4.3/bin/arm-none-linux-gnueabi-gcc -O2 -c -I/armsys2410/linux-2.6.15/kernel/leds/ leds.c

In file included from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/page.h:27,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/cpu-single.h:33,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/proc-fns.h:154,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/system.h:94,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/bitops.h:22,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/bitops.h:77,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/thread_info.h:20,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/spinlock.h:12,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/capability.h:45,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/sched.h:7,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/module.h:10,

                 from leds.c:7:

/usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/glue.h:111:2: #error Unknown data abort handler type

In file included from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/cpu-single.h:33,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/proc-fns.h:154,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/system.h:94,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/bitops.h:22,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/bitops.h:77,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/thread_info.h:20,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/spinlock.h:12,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/capability.h:45,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/sched.h:7,

                 from /usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/linux/module.h:10,

                 from leds.c:7:

/usr/local/arm/release-3.4.3/bin/../arm-none-linux-gnueabi/libc/usr/include/asm/page.h:92:2: #error Unknown user operations model

leds.c:12:43: asm-arm/arch-s3c2410/hardware.h: 没有那个文件或目录

leds.c:16: error: `GPIO_B7' undeclared here (not in a function)

leds.c:16: error: initializer element is not constant

leds.c:16: error: (near initialization for `led_table[0]')

leds.c:16: error: `GPIO_B8' undeclared here (not in a function)

leds.c:16: error: initializer element is not constant

leds.c:16: error: (near initialization for `led_table[1]')

leds.c:16: error: `GPIO_B9' undeclared here (not in a function)

leds.c:16: error: initializer element is not constant

leds.c:16: error: (near initialization for `led_table[2]')

leds.c:16: error: `GPIO_B10' undeclared here (not in a function)

leds.c:16: error: initializer element is not constant

leds.c:16: error: (near initialization for `led_table[3]')

leds.c: In function `leds_init':

leds.c:46: error: `GPIO_PULLUP_EN' undeclared (first use in this function)

leds.c:46: error: (Each undeclared identifier is reported only once

leds.c:46: error: for each function it appears in.)

leds.c:46: error: `GPIO_MODE_OUT' undeclared (first use in this function)

make: *** [leds] Error 1

我用的是2.6内核,编译器是3.4.3的gcc。出现的是什么问题,恳请各位斑竹,强人告之,谢谢!!

相关帖子

沙发
lelee007| | 2009-3-25 19:20 | 只看该作者

asm-arm/arch-s3c2410/hardware.h: 没有那个文件或目录

这个文件有没有哦?

还有看看是不是路径错了

leds.c中的包含路径是不是搞错了

错误不是报的很明白么?!

使用特权

评论回复
板凳
tw2835| | 2009-3-26 16:29 | 只看该作者

这种错误太明显了 lz

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

5

主题

11

帖子

0

粉丝