• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 编译vivi出现问题,求解决方法 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 4160
精华: 0
发帖: 21
金钱: 150 两
威望: 102 点
综合积分: 42 分
注册时间: 2009-03-01
最后登录: 2010-08-03
楼主  发表于: 2010-02-06 21:09

 编译vivi出现问题,求解决方法

按照手册:
cp fa.config成功后,make menuconfig也成功了,make却出现问题:
/usr/local/arm/2.95.3/bin/arm-linux-gcc -I/opt/FriendlyARM/mini2440/bootloader/vivi/include
-I/usr/local/arm/2.95.3/include -Wall -Wstrict-prototypes -O2 -fPIC -fomit-frame-pointer -mapcs-32
   -mshort-load-bytes -msoft-float   -c -o init/main.o init/main.c
make: /usr/local/arm/2.95.3/bin/arm-linux-gcc: Command not found
make: *** [init/main.o] Error 127
希望高手指点下
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-02-06 21:33
make: /usr/local/arm/2.95.3/bin/arm-linux-gcc: Command not found

你需要装arm-linux-gcc 2.95.3, 可以从http://ftp.arm.linux.org.uk/pub/armlinux/toolchain/cross-2.95.3.tar.bz2下载
"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: 4160
精华: 0
发帖: 21
金钱: 150 两
威望: 102 点
综合积分: 42 分
注册时间: 2009-03-01
最后登录: 2010-08-03
2楼  发表于: 2010-02-07 12:32

 回 1楼(kasim) 的帖子

谢谢版主
解压arm-linux-gcc 2.95.3在/usr/local/arm之后,先是修改了~/.bash_profile,在最后加了
export PATH=$PATH:/usr/local/arm/2.95.3/bin,然后又在/etc/profile文件最后加了
export PATH=$PATH:/usr/local/arm/2.95.3/bin,不知是否正确,输入arm-linux-gcc -v之后出现:Reading specs from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/specs
gcc version 2.95.3 20010315 (release),那原先装的arm-linux-gcc-4.3.2就没了,重新
make vivi出现:/usr/local/arm/2.95.3/bin/arm-linux-gcc -I/opt/FriendlyARM/mini2440/bootloader/vivi/include -I/usr/local/arm/2.95.3/include -Wall -Wstrict-prototypes -O2 -fPIC -fomit-frame-pointer -mapcs-32   -mshort-load-bytes -msoft-float   -c -o init/main.o init/main.c
In file included from init/main.c:50:
/opt/FriendlyARM/mini2440/bootloader/vivi/include/processor.h:12: proc/proc_sa1100.h: No such file or directory
init/main.c:62: #error there is no terminal.
make: *** [init/main.o] Error 1
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-02-07 14:03
你没有正确的把vivi配置成for s3c2440的。正常情况下,processor.h应该去包含proc/proc_s3c2440.h。
我手上的vivi源代码目录下没有fa.config, 你是怎么搞到它的?
"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: 4160
精华: 0
发帖: 21
金钱: 150 两
威望: 102 点
综合积分: 42 分
注册时间: 2009-03-01
最后登录: 2010-08-03
4楼  发表于: 2010-02-07 15:05

 回 3楼(kasim) 的帖子

我的也没有,fa.config在busybox-1.13.3里,我再试下,修改processor.h再编译下
级别: 新手上路
UID: 4160
精华: 0
发帖: 21
金钱: 150 两
威望: 102 点
综合积分: 42 分
注册时间: 2009-03-01
最后登录: 2010-08-03
5楼  发表于: 2010-02-07 15:36

 回 3楼(kasim) 的帖子

好像processor.h并无什么问题啊,是不是fa.config有问题,请版主指点下processor.h怎么改
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
6楼  发表于: 2010-02-07 16:39
你使用的vivi是哪个版本的?
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
7楼  发表于: 2010-02-07 17:15
在此下载页搜索关键词“vivi"
http://www.arm9.net/download.asp
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2010-02-07 20:36

 Re:回 3楼(kasim) 的帖子

引用第4楼民院学子于2010-02-07 15:05发表的 回 3楼(kasim) 的帖子 :
我的也没有,fa.config在busybox-1.13.3里,我再试下,修改processor.h再编译下

不要创造性地用busybox的配置文件来配置vivi, 它们是两个完全不同的东西。processor.h应该长这个样子:
复制代码
  1. /*
  2. * vivi/include/processor.h:
  3. *
  4. *
  5. */
  6. #ifndef _VIVI_PROC_H_
  7. #define _VIVI_PROC_H_
  8. #include "config.h"
  9. #ifdef CONFIG_ARCH_SA1100
  10. #include "proc/proc_sa1100.h"
  11. #elif defined(CONFIG_ARCH_S3C2400)
  12. #include "proc/proc_s3c2400.h"
  13. #elif defined(CONFIG_ARCH_S3C2410)
  14. #include "proc/proc_s3c2410.h"
  15. #elif defined(CONFIG_ARCH_S3C2440)
  16. #include "proc/proc_s3c2440.h"
  17. #elif defined(CONFIG_ARCH_PXA250)
  18. #include "proc/proc_pxa250.h"
  19. #else
  20. #error no defined processor
  21. #endif
  22. ...

如果你正确配置了vivi(配置文件里应该有CONFIG_ARCH_S3C2440=y),它应该会去包含相应的proc_s3c2440.h。附件里是一个正确的配置,供你参考。
附件: .config.zip (1 K) 下载次数:60
"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: 4160
精华: 0
发帖: 21
金钱: 150 两
威望: 102 点
综合积分: 42 分
注册时间: 2009-03-01
最后登录: 2010-08-03
9楼  发表于: 2010-02-08 10:35

 回 8楼(kasim) 的帖子

谢谢版主指点,编译成功,很高兴!
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go