设为首页收藏本站
查看: 19541|回复: 1

AM335X编译android的uboot时报错,求解!!

[复制链接]

2

主题

0

回帖

13

积分

新手上路

积分
13
lijunjie307 发表于 2014-12-24 09:36:38 | 显示全部楼层 |阅读模式
linux服务器UBUNTU 14.04.1  32位操作系统

JDK工具:jdk-6u45-linux-i586(光盘里面的是X64的,32位操作系统貌似不能用??)
查看JAVA版本:
$ java -version
java version "1.6.0_45"
Java(TM) SE Runtime Environment (build 1.6.0_45-b06)
Java HotSpot(TM) Client VM (build 20.45-b01, mixed mode, sharing)

交叉编译环境设置:
$ export PATH=/usr/local/arm-eabi-4.6/bin:$PATH
并且在有“/usr/local/arm-eabi-4.6/”文件夹,应该 表示工具安装成功

$ make ARCH=arm CROSS_COMPILE=arm-eabi-
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
Generating include/autoconf.mk
/bin/bash: 行 3: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
Generating include/autoconf.mk.dep
/bin/bash: 行 3: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-ld: cannot execute binary file: 可执行文件格式错误
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
dirname: 缺少操作数
Try 'dirname --help' for more information.
arm-eabi-gcc -DDO_DEPS_ONLY \
                -g  -Os   -fno-common -ffixed-r8 -msoft-float   -D__KERNEL__ -I/home/lijunjie806/A8/Android_Source/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem  -pipe  -DCONFIG_ARM -D__ARM__         -march=armv5 -Wall -Wstrict-prototypes      \
                -o lib/asm-offsets.s lib/asm-offsets.c -c -S
/bin/bash: /usr/local/arm-eabi-4.6/bin/arm-eabi-gcc: cannot execute binary file: 可执行文件格式错误
make: *** [lib/asm-offsets.s] 错误 126
----------------------------------------------------------------------------------------------------
求解??在线等答复!!谢谢!


回复

使用道具 举报

231

主题

64

回帖

2145

积分

管理员

积分
2145
玉米糊 发表于 2014-12-24 10:05:30 | 显示全部楼层
必须在64位的PC平台下编译,32位编译不了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录

本版积分规则

Archiver|手机版|小黑屋|米尔科技论坛   

GMT+8, 2024-11-24 09:39 , Processed in 0.040650 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表