chenlt at icevpn.org
Mon Dec 5 13:30:02 CET 2005
Shoud it work for openswan-1.x ?=20
With your help, I build up the cross compiling env.
And now I use openswan-1.0.10 =20
After one day's hard work. It is now compiled well after several
modification as following.
1. Add gmp arm lib from
2. modify some Makefiles using CC=3Dgcc AR=3Dar ...
AR=3D arm-liux-ar r
AR=3D arm-liux-ar r
3. In openswan dir
CC=3Darm-linux-gcc RANLIB=3Darm-linux-ranlib AS=3Darm-linx-as =
LD=3Darm-linux-ld make menugo
Now all the programs and kernel compile with no Error. Look greater.
But I didn't put them on the ARM platform for testing . The arm board =
be arrived in several days . I'm waiting for the result .
Questions: 1. Should it work ? hehe=20
2. Which is better for ARM ? openswan-2 or openswan-1 ?
3. How could I test all these when I have no arm board now
=B7=A2=BC=FE=C8=CB: Ken Bantoft [mailto:ken at xelerance.com]=20
=B7=A2=CB=CD=CA=B1=BC=E4: 2005=C4=EA12=D4=C25=C8=D5 1:52
=CA=D5=BC=FE=C8=CB: Paul Wouters
=B3=AD=CB=CD: Chen Lintao; users at openswan.org
=D6=F7=CC=E2: Re: [Openswan Users] How to use Openswan on ARM platform
Once your toolchain is setup, the rest it just setting the variables and =
building. For ARM, I used to use this:
# Set these:
# export USERCOMPILE=3D-Os
# eg: arm-linux- as in arm-linux-gcc
# Where you want bins/etc.. to appear. NEVER SET TO "/"
# Includes libgmp please!
export CC=3D"$TOOLCHAINROOT/bin/$TOOLCHAINNAME-gcc =
# Clean up. Don't even unset DESTDIR :)
rm -rf $DESTDIR
# Weird kernel compile voodoo, as it doesn't like our current $CC
make module CC=3D$KERNELCC AS=3D$AS LD=3D$LD
On Sun, 4 Dec 2005, Paul Wouters wrote:
> On Sun, 4 Dec 2005, Chen Lintao wrote:
>> Now I am working on using Openswan on ARM based platform ( S3C2410 =
>> the first time for me to do "Cross compiling" work. Someone can give =
>> references or BEST working steps in detail .
> There are a few places you can have a look, but it all comes down to =
> need to change the variables from Makefile and Makefile.inc. These can =
> overridden from the commandline, eg: GCC, RANLIB, AS, AR. Make sure =
> have a cross compiled gmp library which you need.
> A good example to check out is the openwrt openswan package. It cross
> for mips using buildroot, but you can use buildroot for your ARM port =
> See http://openwrt.org/
> Some hints for windows cross compiling are in docs/cross-compiler.txt.
More information about the Users