QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4564|回复: 1

linux-arm嵌入式开发编译开发板内核时出现Exec format error

[复制链接]
发表于 2012-3-7 12:03:00 | 显示全部楼层 |阅读模式
操作系统是fedora8,内核版本2.6.23.1-42.fc8,用arm_v5t_le交叉编译工具,结果编译内核时报错Exec format error开始出现这个问题以为是内核版本不匹配,结果下载2.6.18内核编译时还是同样的错误:
[root@localhost linux-2.6.18]# make
scripts/kconfig/conf -s arch/arm/Kconfig
arch/arm/mach-lh7a40x/Kconfig:17:warning: 'select' used by config symbol 'MACH_LPD7A400' refer to undefined symbol 'HAS_TOUCHSCREEN_ADS7843_LH7'
arch/arm/mach-lh7a40x/Kconfig:27:warning: 'select' used by config symbol 'MACH_LPD7A404' refer to undefined symbol 'HAS_TOUCHSCREEN_ADC_LH7'
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  SYMLINK include/asm-arm/arch -> include/asm-arm/arch-versatile
  Generating include/asm-arm/mach-types.h
  CHK     include/linux/utsrelease.h
  UPD     include/linux/utsrelease.h
  SYMLINK include/asm -> include/asm-arm
  CC      arch/arm/kernel/asm-offsets.s
  GEN     include/asm-arm/asm-offsets.h
  CC      scripts/mod/empty.o
arm_v5t_le-gcc: error trying to exec '/opt/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linux-gnueabi/4.2.0/../../../../armv5tl-montavista-linux-gnueabi/bin/as': execv: Exec format error
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2

希望知道怎么回事的好心人赐教。
发表于 2012-3-7 17:42:04 | 显示全部楼层
/opt/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linux-gnueabi/4.2.0/../../../../armv5tl-montavista-linux-gnueabi/bin/as
你 file 一下这个文件
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-21 21:27 , Processed in 0.044447 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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