中国Linux公社论坛's Archiver

zsyz38 发表于 2012-3-7 12:03

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

操作系统是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

希望知道怎么回事的好心人赐教。

jiangtao9999 发表于 2012-3-7 17:42

/opt/montavista/pro/devkit/arm/v5t_le/bin/../lib/gcc/armv5tl-montavista-linux-gnueabi/4.2.0/../../../../armv5tl-montavista-linux-gnueabi/bin/as
你 file 一下这个文件

页: [1]

Powered by Discuz! Archiver 6.1.0F  © 2001-2007 Comsenz Inc.