All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhangchenyu <zhangcy0228@Thunderst.com>
To: kexec@lists.infradead.org
Subject: Re: [KEXEC] [ARM]
Date: Wed, 20 Apr 2011 15:19:34 +0800	[thread overview]
Message-ID: <4DAE8906.5010605@Thunderst.com> (raw)
In-Reply-To: <4DAD7D87.9040608@Thunderst.com>

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@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@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
> 重櫶\x19?戝鄉%\x10s鄉%嗔B\x10鄉%?C\x18鄉%怋C: not found
> \x7fELF\x02\x01\x01\x03\x02: not found
> /data/kexec: 2: Syntax error: word unexpected (expecting ")")
>
> I do not why. Can some one tell me?
>
> Thank you very much.
>


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

      reply	other threads:[~2011-04-20  7:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9b8644470804102121k43362a86i92d4d80275569dc4@mail.gmail.com>
2008-04-11  7:48 ` [KEXEC] [ARM] Eric W. Biederman
2008-04-28 18:48   ` [ARM] SUNDEEP BORRA
2011-04-19 12:18   ` [KEXEC] [ARM] zhangchenyu
2011-04-20  7:19     ` zhangchenyu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DAE8906.5010605@Thunderst.com \
    --to=zhangcy0228@thunderst.com \
    --cc=kexec@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.