主题 : 内核编译出错,求指导 复制链接 | 浏览器收藏 | 打印
hfb
级别: 新手上路
UID: 101916
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2014-03-20
最后登录: 2015-08-13
楼主  发表于: 2014-03-20 14:53

 内核编译出错,求指导


第一次为2440编译一个linux内核,版本为2.6.27.47,当我输入命令make bzImage 时,产生了一个错误,错误如下,
drivers/gpio/gpiolib.c: In function 'gpiolib_dbg_show':
drivers/gpio/gpiolib.c:1062: error: implicit declaration of function 'gpio_to_irq'
make[2]: *** [drivers/gpio/gpiolib.o] 错误 1
make[1]: *** [drivers/gpio] 错误 2
make: *** [drivers] 错误 2
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2014-03-20 19:09
在2.6.27的内核上,gpio_to_irq()是依赖于具体硬件平台的实现的,而2440平台看起来并没有实现这个定义。你用的是哪个内核配置文件?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
hfb
级别: 新手上路
UID: 101916
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2014-03-20
最后登录: 2015-08-13
2楼  发表于: 2014-03-21 09:21




    我就配置了这几个地方其他的没动
[ 此帖被hfb在2014-03-21 09:30重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2014-03-21 11:46
你能把你完整的步骤贴出来吗?从源代码解压开始到出现menuconfig的界面
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
hfb
级别: 新手上路
UID: 101916
精华: 0
发帖: 5
金钱: 25 两
威望: 5 点
综合积分: 10 分
注册时间: 2014-03-20
最后登录: 2015-08-13
4楼  发表于: 2014-03-21 15:17
执行这句make s3c2410_defconfig 然后makezimage就没错
不执行make s3c2410_defconfig就报错
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2014-03-22 10:50
make s3c2410_defcong 可以确保内核的配置符合2440的一般要求
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."