hostapd package is missing in linux2.6.35 freescale bsp package.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

hostapd package is missing in linux2.6.35 freescale bsp package.

ソリューションへジャンプ
5,805件の閲覧回数
pt
Senior Contributor I

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

ラベル(2)
タグ(3)
0 件の賞賛
返信
1 解決策
4,379件の閲覧回数
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!

元の投稿で解決策を見る

0 件の賞賛
返信
22 返答(返信)
4,380件の閲覧回数
CommunityBot
Community Manager
This an automatic process.

We are marking this post as solved, due to the either low activity or any reply marked as correct.

If you have additional questions, please create a new post and reference to this closed post.

NXP Community!
0 件の賞賛
返信
4,252件の閲覧回数
JackLee1z
NXP Employee
NXP Employee

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

0 件の賞賛
返信
4,252件の閲覧回数
pt
Senior Contributor I

Hi JackLee1z,

Thanks.         

I want to enable hostapd in ltib (Linux 2.6.35). Please reply after checking it.

Hope you will help me to solve this issue.

Regards

Pt

0 件の賞賛
返信
4,252件の閲覧回数
JackLee1z
NXP Employee
NXP Employee

Hi Pt,

You can obtain the hostapd.spec from the following URL:

https://github.com/fwmiller/Conserver-Freescale-Linux-U-boot/blob/master/dist/lfs-5.1/hostapd/hostap...

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

0 件の賞賛
返信
4,252件の閲覧回数
pt
Senior Contributor I

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

0 件の賞賛
返信
4,252件の閲覧回数
tonyzheng
NXP Employee
NXP Employee

Hello,

You can try following command:

./ltib -m prep -p hostapd

./ltib -m scbuild -p hostapd

It seems that Linux 3.0.35 is good!

0 件の賞賛
返信
4,252件の閲覧回数
pt
Senior Contributor I

tonyzheng

This command also throws the error which I specified in the hostapd.txt

0 件の賞賛
返信
4,252件の閲覧回数
tonyzheng
NXP Employee
NXP Employee

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!

0 件の賞賛
返信
4,252件の閲覧回数
pt
Senior Contributor I

Hi tonyzheng

Ok.Does the latest linux kernel support imx28? From where can I get its source?

Regards

Pt

0 件の賞賛
返信
4,252件の閲覧回数
tonyzheng
NXP Employee
NXP Employee

Hi, Pt

The latest linux BSP (3.0.35 and 3.10.17) are dedicated to support imx6 application processor.

0 件の賞賛
返信
4,252件の閲覧回数
pt
Senior Contributor I

tonyzheng Which version support imx28(except linux2.6.35)? I am using MCIMX28EVK.

0 件の賞賛
返信
4,252件の閲覧回数
tonyzheng
NXP Employee
NXP Employee

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.

0 件の賞賛
返信
4,252件の閲覧回数
pt
Senior Contributor I

Ok tonyzheng. I will try.Thank you.

0 件の賞賛
返信
4,252件の閲覧回数
YixingKong
Senior Contributor IV

Pt A R

How is your issue going? Should we close this, if you are done with it?

Thanks,

Yixing

0 件の賞賛
返信
4,252件の閲覧回数
pt
Senior Contributor I

not resolved the issue yet.

0 件の賞賛
返信
4,252件の閲覧回数
pt
Senior Contributor I

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

0 件の賞賛
返信
4,252件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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

0 件の賞賛
返信
4,250件の閲覧回数
pt
Senior Contributor I

Hi

I am able build hostapd package.But the .conf and .pid files are missing.

Regards

Pt

0 件の賞賛
返信
4,252件の閲覧回数
JackLee1z
NXP Employee
NXP Employee

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.

hostapd - Linux Wireless

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

0 件の賞賛
返信
4,252件の閲覧回数
pt
Senior Contributor I

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



0 件の賞賛
返信