hi: I used standard arm-linux-gcc, and configured as follow: LDFLAGS=-static TARGET_CC=/opt/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc TARGET_LD=/opt/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-ld ./configure arm --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=arm-none-linux-gnueabi and when I execute on android as follow: # /data/kexec /data/kexec /data/kexec: 6: Syntax error: end of file unexpected (expecting ")") and I found that "/build/sbin/kexec" I compiled is for x86_64: root at zcy618-OptiPlex-380:/zcy_workspace/zcy_linux_accumulation/kdump+kexec/kexec-tools-2.0.2# file build/sbin/kexec build/sbin/kexec: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.15, not stripped root at zcy618-OptiPlex-380:/zcy_workspace/zcy_linux_accumulation/kdump+kexec/kexec-tools-2.0.2# file build/sbin/kdump build/sbin/kdump: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped and I want to know how to compile it for arm, because I thought that I have made makefile for arm but it is not. Could somebody help me? I would very appreciate it. Thank you very much. On 2011?04?19? 20:18, zhangchenyu wrote: > hi: > I have compiled kexe-tools-2.0.2 for arm, > > LDFLAGS=-static TARGET_CC=/opt/arm-eabi-4.4.0/bin/arm-eabi-gcc > ./configure arm --build=arm-none-linux-gnueabi > --target=arm-none-linux-gnueabi --host=i686-pc-linux-gnu > > and generated kexec and kdump in kexec-tools-2.0.2/build/sbin/. Then I > used "adb push" command to download kexec and kdump in /data which is > an android directory, and made "chmod 755 /data/kexec". But when I did > "/data/kexec", I got the result as follow: > > # /data/kexec > /data/kexec > ?????%s?%?B?%?C?%?C: not found > ELF: not found > /data/kexec: 2: Syntax error: word unexpected (expecting ")") > > I do not why. Can some one tell me? > > Thank you very much. >