主题 : 请教android编译出来的init无法执行的 问题 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 11108
精华: 0
发帖: 55
金钱: 280 两
威望: 56 点
贡献值: 0 点
综合积分: 110 分
注册时间: 2009-11-27
最后登录: 2018-02-08
楼主  发表于: 2010-08-24 15:06

 请教android编译出来的init无法执行的 问题

编译android的文件系统, 编出来的init 这个文件在系统启动时 无法执行, 报错是 ilegal instruction。 这个文件是从out/target 文件夹里面一个root文件夹搞出来的

看到有的人说是内核编译问题,而我用shinelk做的文件系统里的init 文件放到板子上就可以执行。

这个是我的编译器有问题吗?

交叉编译工具用的是android源码里面带的4.3.1eabi, android内核可以启动busybox。
编译文件系统时没有改makefile。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-08-24 16:40
按照android.git.kernel.org上的默认配置编译出来的可执行档是for armv5架构的,不适用于armv4架构的S3C2440A, 因此无法在mini2440上运行。
"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."