主题 : 求助,mini2440编译busybox1.13.3问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
楼主  发表于: 2009-09-11 12:13

 求助,mini2440编译busybox1.13.3问题

大家好,我再使用光盘里面的busybox源码的时候,编译个过程老是出现下面的提示
Trying libraries: crypt m
Library crypt is needed, can't exclude it (yet)
Library m is needed, can't exclude it (yet)
Final link with: crypt m


编译器使用的是友善之壁提供的arm-linux-gcc 4.3.2版本 配置文件使用的是友善之壁提供的fa.config 按照说明书提供的

请各位大侠看看你们在使用的时候是否也出现过这种问题啊
困扰我好久了
busybox编译出来的东西一直不能使用
谢谢了~~~
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-09-11 12:56
重新解压源代码,配置,用make 2>&1 |tee build.log编译,把生成的build.log文件传上来
"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."
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
2楼  发表于: 2009-09-11 13:25
好的,附件是日志文件
提示在最后的几行
谢谢您了
附件: build.rar (3 K) 下载次数:14
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-09-11 14:21
这个提示应该没什么问题,我编译的时候也有。
你为什么说编译出来的busybox不能用?
"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."
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
4楼  发表于: 2009-09-11 14:28
因为用这个编译器生成的busybox 我制作的根文件系统在使用的时候有下面的提示

Kernel panic - not syncing: Attempted to kill init!

我只要把编译出来busybox二进制文件用咱们光盘提供的那个/bin/busybox替换就能启动,

所以怀疑是busybox编译的有问题

谢谢您的解答~~~
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
5楼  发表于: 2009-09-11 14:35
这个问题已经困扰我好多天了 基本上能对比的方法都对比了
虽然busybox最后能够生成这个可执行文件 但是确实不能用 好郁闷
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
6楼  发表于: 2009-09-11 14:35

Kernel panic - not syncing: Attempted to kill init!

这通常意味着busybox和内核所支持的ABI类型不匹配。既然你是用4.3.2的arm-linux-gcc编译busybox的,那它的ABI类型就是EABI的,不能被老的2.6.13内核和文件系统所支持。
建议你用20090429以后更新的内核和文件系统镜像试试
"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."
级别: 新手上路
UID: 4824
精华: 0
发帖: 45
金钱: 395 两
威望: 181 点
综合积分: 90 分
注册时间: 2009-03-30
最后登录: 2012-08-24
7楼  发表于: 2009-09-11 14:43
这个已经考虑过了 我现在用的编译器是arm-linux-gcc4.3..2版本 内核版本是linux2.6.29.4
busybox版本1.13.3  
平时使用的根文件系统就是友善最新光盘里面的root_qtopia
最近想自己做根文件系统 结果死活都是Kernel panic - not syncing: Attempted to kill init!
只要把自己做的busybox核心文件/bin/busybox 替换 为友善做的那个 就好用了
着实很郁闷
所以一直怀疑是不是编译过程中
Trying libraries: crypt m
Library crypt is needed, can't exclude it (yet)
Library m is needed, can't exclude it (yet)
Final link with: crypt m
有影响

对了 谢谢你帮我测试,你编译的busybox做一个文件系统
试一下用2.6.29的内核能否启动啊?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2009-09-11 14:51

 回 7楼(qxq005) 的帖子

是的,可以启动。
你把光盘上那个可以用的busybox和你自己编译出来的那个都传上来吧。我比较一下
"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."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
9楼  发表于: 2009-09-11 14:55
你也可以用这个root_qtopia.tgz试试,这应该可以和2.6.29.4的内核匹配
http://www.arm123.com.cn/linux/root_qtopia.tgz
"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."