How to build the kexec too for ARM11 using the cross compiler.

Lai Weilin-B04597 B04597 at freescale.com
Wed Sep 16 02:05:58 EDT 2009


I am trying to build cross-compile, on a ubuntu server. 
After I read through the INSTALL file, I came up the following configure option.
./configure arm --prefix=/usr --build=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi --host=i686-pc-linux-gnu
And after setting the environment variables, such as CC, BUILD_CC and etc., it works.

After the successful build, I tried the kexec out using the following command.
#kexec -l /unit_tests/zImage_mx35_430 --append="noinitrd co
nsole=ttymxc0,115200 root=/dev/nfs nfsroot=10.192.225.211:/tools/rootfs/b04597/r
ootfs_mx35 rw ip=dhcp no_console_suspend"

After execute the a currently loaded kernel, error occur again.
The log is as below.

MXC Watchdog # 0 shutdown
Starting new kernel
Bye!
Uncompressing Linux...........................................................................................................................

crc error

 -- System halted


BTW, your configure works fine for ARM on my side too.
Thanks...

-----Original Message-----
From: Simon Horman [mailto:horms at verge.net.au] 
Sent: 2009年9月16日 11:52
To: Lai Weilin-B04597
Cc: kexec at lists.infradead.org
Subject: Re: How to build the kexec too for ARM11 using the cross compiler.

On Wed, Sep 16, 2009 at 11:06:34AM +0800, Lai Weilin-B04597 wrote:
> Hi,
> I am trying to build kexec tool for ARM11.  I can't see any doc that 
> helps to configure. The cross compiler is used, and I tried the 
> following configure option, ./configure arm --prefix=/usr 
> --build=arm-none-linux-gnueabi --host=i686-pc-linux-gnu 
> --target=arm-none-linux-gnueabi but failed.
> Anyone can help ?

Hi,

When cross-compiling for arm the following works for me:

autoheader
autoconf
./configure --host=arm-unknown-linux-gnu

In what way is what you are trying failing?
And are you trying to build natively or cross-compile?





More information about the kexec mailing list