Wpa_supplicant.0.7.3 cross compilation issue with arm tool chain
dipin
dipin.kumar
Fri Jun 15 00:38:55 PDT 2012
Swaraj,
*To build hostapd*
Before starting you need to complete the following sections:
o Build and install openSSL in your root file system
o Build and install libnl in your root file system
Clone the HOSTAPD
git clone git://w1.fi/srv/git/hostap.git(i used hostapd-7.3)
cd hostapd/
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
export
PATH="$PATH:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/"
Use the following <defconfig> file as .config
edit .config and add the following
CONFIG_DRIVER_NL80211=y
CONFIG_LIBNL32=y
LIBNL=<source-folder>/libnl-3.2.6
CFLAGS += -I$(LIBNL)/include
LIBS += -L$(LIBNL)/lib
OPENSS=<source-folder>/openssl-1.0.0d
CFLAGS += -I$(OPENSS)/include
LIBS += -L$(OPENSS)/lib
DIPIN=<ltib>/rootfs
CFLAGS += -I$(DIPIN)/include
LIBS += -L$(DIPIN)/lib
CC="arm-none-linux-gnueabi-gcc" make
Now the hostapd executable can be found in the same folder
*To build OpenSSL *
Download openssl-1.0.0d package from this location
http://www.openssl.org/source/openssl-1.0.0d.tar.gz
Extract the zip file to your PC
Change to the openSSL 1.0.0d source directory
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
export
PATH="$PATH:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/"
export NFSROOT=<ltib>/rootfs
./Configure --openssldir=${NFSROOT} shared os/compiler:${CROSS_COMPILE}
make CC=${CROSS_COMPILE}gcc RANLIB=${CROSS_COMPILE}ranlib
sudo make install
*To build libnl *
Download libnl-2.0 package from this location
Extract the zip file to your PC
Change to the libnl-2.0 source directory
export ARCH=arm
export CROSS_COMPILE=arm-none-linux-gnueabi-
export
PATH="$PATH:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/"
export NFSROOT=<ltib>/rootfs
./configure --prefix=${NFSROOT} CC=${CROSS_COMPILE}gcc --host=arm-linux
LD=${CROSS_COMPILE}ld
make
sudo make install
Regards,
Dipin kumar
Onchip Technologies
www.onchiptech.com
On 06/15/2012 12:20 PM, Swaraj wrote:
>
> Hi,
>
> I using wpa_supplicant.0.7.3. I'm not able to cross compile
> wpa_supplicant0.7.3 with arm tool chain, where as i could compile
> wpa_supplicant.0.6.10.
> Can anyone help me in resolving this issue.
>
> CC config.c
> CC notify.c
> CC bss.c
> CC eap_register.c
> CC ../src/utils/common.c
> CC ../src/utils/wpa_debug.c
> CC ../src/utils/wpabuf.c
> CC ../src/utils/os_unix.c
> CC ../src/utils/eloop.c
> CC config_file.c
> CC ../src/rsn_supp/wpa.c
> CC ../src/rsn_supp/preauth.c
> CC ../src/rsn_supp/pmksa_cache.c
> CC ../src/rsn_supp/peerkey.c
> CC ../src/rsn_supp/wpa_ie.c
> CC ../src/common/wpa_common.c
> CC ../src/eap_peer/eap_tls.c
> CC ../src/eap_peer/eap_peap.c
> CC ../src/eap_common/eap_peap_common.c
> CC ../src/eap_peer/eap_ttls.c
> CC ../src/eap_peer/eap_md5.c
> CC ../src/eap_peer/eap_mschapv2.c
> CC ../src/eap_peer/mschapv2.c
> CC ../src/eap_peer/eap_gtc.c
> CC ../src/eap_peer/eap_otp.c
> CC ../src/eap_peer/eap_sim.c
> CC ../src/eap_peer/eap_leap.c
> CC ../src/eap_common/eap_sim_common.c
> CC ../src/eap_peer/eap_fast.c
> CC ../src/eap_peer/eap_fast_pac.c
> CC ../src/eap_common/eap_fast_common.c
> CC ../src/eapol_supp/eapol_supp_sm.c
> CC ../src/eap_peer/eap.c
> CC ../src/eap_peer/eap_methods.c
> CC ../src/crypto/ms_funcs.c
> CC ../src/eap_common/chap.c
> CC ../src/eap_peer/eap_tls_common.c
> ../src/crypto/tls_openssl.c: In function 'tls_connection_client_hello_ext':
> ../src/crypto/tls_openssl.c:2567: warning: implicit declaration of
> function 'SSL_set_hello_extension'
> ../src/crypto/tls_openssl.c: In function
> 'tls_connection_set_session_ticket_cb':
> ../src/crypto/tls_openssl.c:2889: warning: implicit declaration of
> function 'SSL_set_session_secret_cb'
> ../src/crypto/tls_openssl.c:2897: warning: implicit declaration of
> function 'SSL_set_tlsext_debug_callback'
> ../src/crypto/tls_openssl.c:2898: warning: implicit declaration of
> function 'SSL_set_tlsext_debug_arg'
> CC ../src/crypto/tls_openssl.c
> CC ../src/crypto/crypto_openssl.c
> CC ../src/crypto/fips_prf_openssl.c
> CC ../src/crypto/aes-unwrap.c
> CC ../src/crypto/aes-cbc.c
> CC ../src/crypto/md5.c
> CC ctrl_iface.c
> CC ctrl_iface_unix.c
> CC ../src/utils/base64.c
> CC ../src/eap_common/eap_common.c
> CC ../src/crypto/sha1.c
> CC ../src/crypto/sha1-pbkdf2.c
> CC ../src/crypto/sha1-tprf.c
> CC ../src/crypto/sha1-tlsprf.c
> CC wpa_supplicant.c
> CC events.c
> CC blacklist.c
> CC wpas_glue.c
> CC scan.c
> CC main.c
> CC ../src/drivers/driver_wext.c
> CC ../src/drivers/driver_rsi.c
> CC ../src/drivers/netlink.c
> CC ../src/drivers/linux_ioctl.c
> CC ../src/drivers/drivers.c
> CC ../src/l2_packet/l2_packet_linux.c
> /root/Atmel/Tool-chain/arm-2007q1/bin/arm-none-linux-gnueabi-gcc -o
> wpa_supplicant config.o notify.o bss.o eap_register.o
> ../src/utils/common.o ../src/utils/wpa_debug.o ../src/utils/wpabuf.o
> ../src/utils/os_unix.o ../src/utils/eloop.o config_file.o
> ../src/rsn_supp/wpa.o ../src/rsn_supp/preauth.o
> ../src/rsn_supp/pmksa_cache.o ../src/rsn_supp/peerkey.o
> ../src/rsn_supp/wpa_ie.o ../src/common/wpa_common.o
> ../src/eap_peer/eap_tls.o ../src/eap_peer/eap_peap.o
> ../src/eap_common/eap_peap_common.o ../src/eap_peer/eap_ttls.o
> ../src/eap_peer/eap_md5.o ../src/eap_peer/eap_mschapv2.o
> ../src/eap_peer/mschapv2.o ../src/eap_peer/eap_gtc.o
> ../src/eap_peer/eap_otp.o ../src/eap_peer/eap_sim.o
> ../src/eap_peer/eap_leap.o ../src/eap_common/eap_sim_common.o
> ../src/eap_peer/eap_fast.o ../src/eap_peer/eap_fast_pac.o
> ../src/eap_common/eap_fast_common.o ../src/eapol_supp/eapol_supp_sm.o
> ../src/eap_peer/eap.o ../src/eap_peer/eap_methods.o
> ../src/crypto/ms_funcs.o ../src/eap_common/chap.o
> ../src/eap_peer/eap_tls_common.o ../src/crypto/tls_openssl.o
> ../src/crypto/crypto_openssl.o ../src/crypto/fips_prf_openssl.o
> ../src/crypto/aes-unwrap.o ../src/crypto/aes-cbc.o ../src/crypto/md5.o
> ctrl_iface.o ctrl_iface_unix.o ../src/utils/base64.o
> ../src/eap_common/eap_common.o ../src/crypto/sha1.o
> ../src/crypto/sha1-pbkdf2.o ../src/crypto/sha1-tprf.o
> ../src/crypto/sha1-tlsprf.o wpa_supplicant.o events.o blacklist.o
> wpas_glue.o scan.o main.o ../src/drivers/driver_wext.o
> ../src/drivers/driver_rsi.o ../src/drivers/netlink.o
> ../src/drivers/linux_ioctl.o ../src/drivers/drivers.o
> ../src/l2_packet/l2_packet_linux.o -L/usr/local/ssl/lib/ -lssl -lcrypto
> -ldl
> /root/Atmel/Tool-chain/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/bin/ld:
> skipping incompatible /usr/local/ssl/lib//libssl.a when searching for -lssl
> /root/Atmel/Tool-chain/arm-2007q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.2.0/../../../../arm-none-linux-gnueabi/bin/ld:
> cannot find -lssl
> collect2: ld returned 1 exit status
> make: *** [wpa_supplicant] Error 1
>
>
> Thanks&
> Regards,
> Swaraj
>
> _______________________________________________
> HostAP mailing list
> HostAP at lists.shmoo.com
> http://lists.shmoo.com/mailman/listinfo/hostap
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.shmoo.com/pipermail/hostap/attachments/20120615/95591d06/attachment-0001.htm
More information about the Hostap
mailing list