嵌入式linux编译内核是出现了这样的错误,大家帮帮忙吧,帮帮小弟吧!!!
[root@localhostlinux-2.6.21_magic]#makeCHKinclude/linux/version.hmake[1]:“include/asm...
[root@localhost linux-2.6.21_magic]# make
CHK include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
CC drivers/serial/8250.o
drivers/serial/8250.c:127: error: 'pCX06883_BAS0E' undeclared here (not in a function)
drivers/serial/8250.c:127: error: 'IRQ_EINT13' undeclared here (not in a function)
drivers/serial/8250.c: In function 'serial8250_isa_init_ports':
drivers/serial/8250.c:2326: warning: assignment makes integer from pointer without a cast
drivers/serial/8250.c: In function 'serial8250_init':
drivers/serial/8250.c:2775: warning: passing argument 1 of 'set_irq_type' makes integer from pointer without a cast
drivers/serial/8250.c:2776: warning: implicit declaration of function 's3c_gpio_cfgpin'
drivers/serial/8250.c:2776: error: 'S3C_GPN13' undeclared (first use in this function)
drivers/serial/8250.c:2776: error: (Each undeclared identifier is reported only once
drivers/serial/8250.c:2776: error: for each function it appears in.)
drivers/serial/8250.c:2776: error: 'S3C_GPN13_EXTINT13' undeclared (first use in this function)
drivers/serial/8250.c:2777: warning: implicit declaration of function 's3c_gpio_pullup'
make[2]: *** [drivers/serial/8250.o] 错误 1
make[1]: *** [drivers/serial] 错误 2
make: *** [drivers] 错误 2 展开
CHK include/linux/version.h
make[1]: “include/asm-arm/mach-types.h”是最新的。
CHK include/linux/utsrelease.h
CHK include/linux/compile.h
CC drivers/serial/8250.o
drivers/serial/8250.c:127: error: 'pCX06883_BAS0E' undeclared here (not in a function)
drivers/serial/8250.c:127: error: 'IRQ_EINT13' undeclared here (not in a function)
drivers/serial/8250.c: In function 'serial8250_isa_init_ports':
drivers/serial/8250.c:2326: warning: assignment makes integer from pointer without a cast
drivers/serial/8250.c: In function 'serial8250_init':
drivers/serial/8250.c:2775: warning: passing argument 1 of 'set_irq_type' makes integer from pointer without a cast
drivers/serial/8250.c:2776: warning: implicit declaration of function 's3c_gpio_cfgpin'
drivers/serial/8250.c:2776: error: 'S3C_GPN13' undeclared (first use in this function)
drivers/serial/8250.c:2776: error: (Each undeclared identifier is reported only once
drivers/serial/8250.c:2776: error: for each function it appears in.)
drivers/serial/8250.c:2776: error: 'S3C_GPN13_EXTINT13' undeclared (first use in this function)
drivers/serial/8250.c:2777: warning: implicit declaration of function 's3c_gpio_pullup'
make[2]: *** [drivers/serial/8250.o] 错误 1
make[1]: *** [drivers/serial] 错误 2
make: *** [drivers] 错误 2 展开
3个回答
展开全部
你是什么类型的开发板或者实验箱,你的makefile改了没?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
很明显,相关头文件未加载。检查你的编译环境,是否配置好?以前没问题现在有问题?还是这是你首次编译?
追问
是第一次 , 我加了头文件还是有很多错误的。
追答
首先把你的编译环境配置好吧,这步是不能忽略的,建议看看著名的"跟我一起写makefile"系列文章,不然你以后工作配置编译环境会很痛苦。
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询