主题 : mini2440-20090823更新光盘资料中的vivi移植 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 9952
精华: 0
发帖: 3
金钱: 30 两
威望: 15 点
综合积分: 6 分
注册时间: 2009-10-19
最后登录: 2009-11-06
楼主  发表于: 2009-11-06 20:10

 mini2440-20090823更新光盘资料中的vivi移植

最近在友善之臂公司网站下载了更新版的关盘资料,根据用户手册中“8.2 配置和编译vivi”这一章节移植vivi,按照步骤进行,可是“#cp fa.config .config ;使用缺省友善之臂提供的配置文件fa.config”时,终端提示:“stat cp fa.config 失败,没有那个文件或目录”是怎么回事啊,难道不能利用光盘提供的vivi交叉编译能够执行的.bin文件吗?(编译环境4.3.2)
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-11-06 20:55
命令"cp fa.config .config"的意思是把当前目录下的fa.config文件复制为.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: 10286
精华: 0
发帖: 12
金钱: 85 两
威望: 29 点
综合积分: 24 分
注册时间: 2009-10-30
最后登录: 2011-03-12
2楼  发表于: 2009-11-22 17:30
问题1,在vivi目录下面,没有fa.config文件,但有.config文件
问题2,既然已经存在.config文件,而命令"cp fa.config .config"只是复制改名
      那么应该可以跳过这条命令,直接执行“make menuconfig”,但是给出下面信息,为什么呢?注:解压安装后vivi目录里没有fa.config文件!
make -C scripts/lxdialog all
make[1]: Entering directory `/opt/FriendlyARM/mini2440/bootloader/vivi/scripts/lxdialog'
make[1]: Leaving directory `/opt/FriendlyARM/mini2440/bootloader/vivi/scripts/lxdialog'
/bin/sh scripts/Menuconfig arch/config.in
Using defaults found in .config
Preparing scripts: functionsYour lxdialog utility does not exist
make: *** [menuconfig] Error 1
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2009-11-23 14:03
确保你的vivi源代码目录下scripts/lxdialog/lxdialog文件存在并且可执行
[ 此帖被kasim在2009-11-23 14:32重新编辑 ]
"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: 71076
精华: 0
发帖: 7
金钱: 35 两
威望: 7 点
综合积分: 14 分
注册时间: 2012-05-30
最后登录: 2014-04-30
4楼  发表于: 2012-05-31 11:13
在输入make后,进行编译,可出现下面的错误,-mapcs-32 和 -mshort-load-bytes选项不能识别,请问哪位知道在哪个地方配置吗?

/opt/FriendlyARM/toolschain/4.4.3/bin/arm-linux-gcc -I/opt/FriendlyARM/mini2440/bootloader/vivi/include -I/opt/FriendlyARM/toolschain/4.4.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
cc1: error: unrecognized command line option "-mapcs-32"
cc1: error: unrecognized command line option "-mshort-load-bytes"
make: *** [init/main.o] Error 1
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
5楼  发表于: 2012-05-31 13:33

 回 4楼(embest028) 的帖子

这两个编译选项定义在arch/Makefile里,非常老的toolchain才支持的。你可以试试用下面的
http://ftp.arm.linux.org.uk/pub/armlinux/toolchain/cross-2.95.3.tar.bz2

如果你想用4.4.3版本的,可以把“-mapcs-32"换成”-mabi=aapcs-linux",去掉“-mshort-load-bytes”再试试。
"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."