Hi Qiang_FSL , raymondwang
I need hostapd to configure soft ap. But the package is missing. From where should I get this package to install?
Please help.
Board : MCIMX28EVK
Kernel version : Linux2.6.35
Regards
Pt
已解决! 转到解答。
Hi Pt,
I need some time to figure how to enable hostapd in ltib environment. However, if you can use the latest kernel version and yocto build system, you can consider the existing package:
http://packages.yoctoproject.org/detail?pkgname=hostap-utils
BR,
Jack
Hi Pt,
You can obtain the hostapd.spec from the following URL:
Please put it to the appropriate path ( dist/lfs-5.1/hostapd ) in ltib. After this step, you would able to prep and scbuild the source.
./ltib -m prep -p hostapd.spec
./ltib -m scbuild -p hostapd.spec
If you need to add the package to the ltib configuration menu, you need to modify config/userspace/packages.lkc. If it is not necessary in your case, you can ignore it.
BR,
Jack
Hi JackLee1z
Thanks. But ./ltib -m scbuild -p hostapd.spec throws error. The details are included in the file attached.
make: *** [../src/drivers/driver_nl80211.o] Error 1
make: *** Waiting for unfinished jobs....
CC ../src/eap_server/eap_server_peap.c
CC ../src/eap_server/eap_server_gtc.c
CC ../src/eap_server/eap_server_mschapv2.c
CC ../src/eap_server/eap_server_ttls.c
CC eap_register.c
CC ../src/eap_server/eap_server.c
CC ctrl_iface.c
error: Bad exit status from /home/ganesh/IMX/ltib/tmp/rpm-tmp.9692 (%build)
RPM build errors:
Bad exit status from /home/ganesh/IMX/ltib/tmp/rpm-tmp.9692 (%build)
Build time for hostapd: 11 seconds
Failed building hostapd
f_scbuild() returned an error, exiting
traceback:
main:572
Exiting on error or interrupt
Regards
Pt
Hi, Pt
As an advice, you can download latest release source package for hostapd: http://hostap.epitest.fi/hostapd/
Acturally, you don't have to build it using ltib tools. You can configure compiling environment by yourself,such as environment variable, cross-compile gcc tools and so on.
In addition, ltib is a tool, is not necessary to build hostapd.
Hope my advice to help you!
hi,
there no new linux bsp for imx28.
For hostapd, the linux kernel is not the main problem. First, you should have the hardware to support wireless features, such as SDIO WIFI card; Then, you should install device driver for wireless device, such as mac80211 drivers; At last, you should compile and install hostapd.
As far as i know,hostapd should be supported by 2.6.35 and i don't think you need to transfer to the latest linux.
Hi Qiang_FSL JackLee1z igorpadykov raymondwang tonyzheng
I am trying to install libnl by compiling it manually but when the Make runs am getting this error. How can i solve this?
utils.c: In function ‘dump_one’:
utils.c:719:12: warning: ignoring return value of ‘vasprintf’, declared with attribute warn_unused_result [-Wunused-result]
utils.c: In function ‘get_psched_settings’:
utils.c:319:10: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result]
libtool: compile: gcc -DHAVE_CONFIG_H -I. -Wall -I../include -I../include -D_GNU_SOURCE -DSYSCONFDIR=\"/usr/arm-linux-gnueabi/etc/libnl\" -g -O2 -MT utils.lo -MD -MP -MF .deps/utils.Tpo -c utils.c -o utils.o >/dev/null 2>&1
/bin/sh ../libtool --tag=CC --mode=link gcc -g -O2 -version-info 2:0:0 -o libnl.la -rpath /usr/arm-linux-gnueabi/lib addr.lo attr.lo cache.lo cache_mngr.lo cache_mngt.lo data.lo doc.lo error.lo handlers.lo msg.lo nl.lo object.lo socket.lo utils.lo -lm
libtool: link: rm -fr .libs/libnl.a .libs/libnl.la .libs/libnl.lai .libs/libnl.so .libs/libnl.so.2 .libs/libnl.so.2.0.0
libtool: link: gcc -shared .libs/addr.o .libs/attr.o .libs/cache.o .libs/cache_mngr.o .libs/cache_mngt.o .libs/data.o .libs/doc.o .libs/error.o .libs/handlers.o .libs/msg.o .libs/nl.o .libs/object.o .libs/socket.o .libs/utils.o -lm -Wl,-soname -Wl,libnl.so.2 -o .libs/libnl.so.2.0.0
/usr/bin/ld: unknown architecture of input file `.libs/doc.o' is incompatible with i386 output
collect2: error: ld returned 1 exit status
make[2]: *** [libnl.la] Error 1
make[2]: Leaving directory `/home/ganesh/IMX/ltib/rpm/BUILD/libnl-2.0/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/ganesh/IMX/ltib/rpm/BUILD/libnl-2.0/lib'
make: *** [all-recursive] Error 1
Hi Pt A R
indeed you can try yocto.
Actually yocto works well with i.MX28 EVK (though - yes it
is not officially supported by Freescale for i.MX28) , below you will
find i.MX28EVK images
Public images - fsl-community-bsp/master/
Also I would suggest to post this issue on
meta-fsl-arm mailing list, so that someone familiar with
Yocto/libnl/ hostapd integration could try to assist you.
https://lists.yoctoproject.org/listinfo/meta-freescale
Best regards
chip
Hi Pt,
I think there may be some package or version compatible issues. You are suggested to study the package related information and check if you adjust the version or build configuration to resolve the build error. When I search "hostapd nl80211" in Google, I can see the following webpage for related information.
The installation of package spec is just a first step. There are some work you need before a workable version can be created.
BR,
Jack
Hi JackLee1z
I have applied some changes. I am trying to process libnl, but it throws the follwing error messages.
Processing: libnl
===================
Build path taken because: no prebuilt rpm,
rpmbuild --dbpath /home/ganesh/IMX/ltib/rootfs//var/lib/rpm --target arm --define '_unpackaged_files_terminate_build 0' --define '_target_cpu arm' --define '__strip strip' --define '_topdir /home/ganesh/IMX/ltib/rpm' --define '_prefix /usr' --define '_tmppath /home/ganesh/IMX/ltib/tmp' --define '_rpmdir /home/ganesh/IMX/ltib/rpm/RPMS' --define '_mandir /usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var' -bb --clean --rmsource /home/ganesh/IMX/ltib/dist/lfs-5.1/libnl/libnl.spec
Building target platforms: arm
Building for target arm
error: line 30: Bad arg to %patch -p: %Build
Build time for libnl: 0 seconds
Failed building libnl
f_buildrpms() returned an error, exiting
traceback:
main:57
Started: Tue Jun 17 13:03:17 2014
Ended: Tue Jun 17 13:03:19 2014
Elapsed: 2 seconds
These packages failed to build:
libnl
Build Failed
Exiting on error or interrupt
Regards
Pt