Re: [ptxdist] Building hostapd for PTXdist and an ARM Target
Hi Irfan, -Ursprüngliche Nachricht- Von: ptxdist-boun...@pengutronix.de [mailto:ptxdist- boun...@pengutronix.de] Im Auftrag von irfan rafique Gesendet: Freitag, 28. Juni 2013 18:09 An: ptxdist@pengutronix.de Betreff: Re: [ptxdist] Building hostapd for PTXdist and an ARM Target Hi Matthias, I added your patch and tried to add package using following commands: $ptxdist newpackage target edited the mandatory fields, added md5sum $ptxdist menuconfig [*]hostapd $ptxdist go But on the target machine, i find only hostapd(binary file) but not hostapd.config file: /usr/bin/hostapd /usr/lib/ipkg/info/hostapd.control /usr/lib/ipkg/info/hostapd.list True. The patch only installs the binary. You can modify the patch that a configuration file will be installed. Of course you also can use different other ways to bring the configuration file to you sysroot (generating at runtime, separate rule file, ...) If i use $hostapd ./hostapd.config: it shows No drivers enabled. Did you enable a driver interface in the ptxdist hostapd configuration (e.g. NL80211) ? ~Matthias Please help me to sort out this problem. with Best Regards, Irfan Rafique -- ptxdist mailing list ptxdist@pengutronix.de -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Building hostapd for PTXdist and an ARM Target
Hello Irfan, i followed this guide for hostapd.config file creation http://www.rpiblog.com/2012/12/turn-raspberry-pi-into-wireless-access.html Are you sure that your driver supports the AP Mode? Best regards, Pascal 2013/6/28 irfan rafique mir.k...@gmail.com Hi Matthias, I added your patch and tried to add package using following commands: $ptxdist newpackage target edited the mandatory fields, added md5sum $ptxdist menuconfig [*]hostapd $ptxdist go But on the target machine, i find only hostapd(binary file) but not hostapd.config file: /usr/bin/hostapd /usr/lib/ipkg/info/hostapd.control /usr/lib/ipkg/info/hostapd.list If i use $hostapd ./hostapd.config: it shows No drivers enabled. Please help me to sort out this problem. with Best Regards, Irfan Rafique -- ptxdist mailing list ptxdist@pengutronix.de -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Building hostapd for PTXdist and an ARM Target
Howdy! Am 07.05.2013 10:17, schrieb Pascal K: My task: - Building hostapd-2.0.tar.gz for my ARM Cortex A8 target board - /$ ptxdist newpackage target / edited the mandatory fields, added md5sum, selected the package in I don't know the hostapd package, but I'd guess that this is the basic fault. You have to look at the package and find out which configuration/build mechanism it uses (e.g. autotools, cmake, whatever) and then start with the fitting newpackage target. That will take care of the most obstacles, usually. Greetz _ Josef Holzmayr Dipl-Ing. (FH) Entwicklung Embedded Devices / Software Tel.: +49 8444 9204-48 Fax: +49 8444 9204-50 holzm...@rsi-elektrotechnik.de R-S-I Elektrotechnik GmbH Co. KG Woelkestrasse 11 D-85301 Schweitenkirchen www.rsi-elektrotechnik.de _ Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363 Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg USt-IdNr.: DE 128592548 -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Building hostapd for PTXdist and an ARM Target
I'm looking into it. There is no configure.ac so i suggest there is only a plain make file. But I don't know which further steps to get the package to compile. Best regards, Pascal 2013/5/7 Juergen Beisert j...@pengutronix.de Hi Pascal, Pascal K wrote: I'am beginning to use PTXdist, so I followed the How to become a PTXdist Guru Manual to get started. But there is some information which I don't find/don't get. My task: - Building hostapd-2.0.tar.gz for my ARM Cortex A8 target board So I tried to follow section 4.2.2 in the manual. *$ ptxdist newpackage target * edited the mandatory fields, added md5sum, selected the package in *$ ptxdist menuconfig $ ptxdist get hostapd $ ptxdist extract hostapd $ ptxdist prepare hostapd* and finally tried edited inside the hostapd folder the defconfig file to .config *$ ptxdist compile hostapd * now gives me the error that *make[1]: Entering directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD12.1.1/platform-phyCORE-AM335x/build-target/hostapd-2.0' make[1]: *** No targets specified and no makefile found. Stop. make[1]: Leaving directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD12.1.1/platform-phyCORE-AM335x/build-target/hostapd-2.0' make: *** [/opt/PHYTEC_BSPs/phyCORE-AM335x-PD12.1.1/platform-phyCORE-AM335x/state/hostapd.compile] Error 2* So I think I missed a step or a went with the wrong option at the beginning. Could someone give me an advice, that would be great! What kind of buildsystem this package uses? Autotools? Simple Makefile? The rule file is a translator between PTXdist and the package's buildsystem. Regards, Jürgen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Building hostapd for PTXdist and an ARM Target
Pascal K wrote: I'm looking into it. There is no configure.ac so i suggest there is only a plain make file. But I don't know which further steps to get the package to compile. Please keep the mailing list at least on CC. Regards, Juergen -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Building hostapd for PTXdist and an ARM Target
Howdy! ... and while you're at keeping things on the mailing list, also do not top-post please. Am 07.05.2013 10:33, schrieb Pascal K: I'm looking into it. There is no configure.ac http://configure.ac so i suggest there is only a plain make file. Better do not suggest, but unpack and have a look. But I don't know which further steps to get the package to compile. Usually the README or INSTALL file in the package give a very good impression of how to compile and install a package. I think you should do the whole thing first natively on your desktoip box so you know how its done, and _THEN_ proceed to packing these steps that you learned into a ptxdist package. Greetz _ Josef Holzmayr Dipl-Ing. (FH) Entwicklung Embedded Devices / Software Tel.: +49 8444 9204-48 Fax: +49 8444 9204-50 holzm...@rsi-elektrotechnik.de R-S-I Elektrotechnik GmbH Co. KG Woelkestrasse 11 D-85301 Schweitenkirchen www.rsi-elektrotechnik.de _ Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363 Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg USt-IdNr.: DE 128592548 -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Building hostapd for PTXdist and an ARM Target
Hi Pascal, Von: ptxdist-boun...@pengutronix.de [mailto:ptxdist-boun...@pengutronix.de] Im Auftrag von Pascal K Gesendet: Dienstag, 07. Mai 2013 10:18 An: ptxdist@pengutronix.de Betreff: [ptxdist] Building hostapd for PTXdist and an ARM Target Hello all, I'am beginning to use PTXdist, so I followed the How to become a PTXdist Guru Manual to get started. But there is some information which I don't find/don't get. My task: - Building hostapd-2.0.tar.gz for my ARM Cortex A8 target board So I tried to follow section 4.2.2 in the manual. $ ptxdist newpackage target edited the mandatory fields, added md5sum, selected the package in $ ptxdist menuconfig $ ptxdist get hostapd $ ptxdist extract hostapd $ ptxdist prepare hostapd and finally tried edited inside the hostapd folder the defconfig file to .config $ ptxdist compile hostapd now gives me the error that make[1]: Entering directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD12.1.1/platform-phyCORE-AM335x/build-target/hostapd-2.0' make[1]: *** No targets specified and no makefile found. Stop. make[1]: Leaving directory `/opt/PHYTEC_BSPs/phyCORE-AM335x-PD12.1.1/platform-phyCORE-AM335x/build-target/hostapd-2.0' make: *** [/opt/PHYTEC_BSPs/phyCORE-AM335x-PD12.1.1/platform-phyCORE-AM335x/state/hostapd.compile] Error 2 So I think I missed a step or a went with the wrong option at the beginning. Could someone give me an advice, that would be great! Best regards, Pascal Here comes a patch which will add hostapd-2.0 to ptxdist. It's not yet finished and (most) probably not everything is working. But maybe you can use it as starting point... good luck, ~matthias --- rules/hostapd.in | 411 rules/hostapd.make | 89 +++ 2 files changed, 500 insertions(+), 0 deletions(-) create mode 100644 rules/hostapd.in create mode 100644 rules/hostapd.make diff --git a/rules/hostapd.in b/rules/hostapd.in new file mode 100644 index 000..78bef61 --- /dev/null +++ b/rules/hostapd.in @@ -0,0 +1,411 @@ +## SECTION=networking + +config HOSTAPD + bool + prompt hostapd + help + FIXME + +if HOSTAPD + + config HOSTAPD_DRIVER_HOSTAP + bool + prompt HOSTAP driver + help +Driver interface for Host AP driver + + config HOSTAPD_DRIVER_WIRED + bool + prompt Wired driver + help +Driver interface for wired authenticator + + config HOSTAPD_DRIVER_NL80211 + bool + prompt NL80211 driver + select LIBNL + help +Driver interface for drivers using the nl80211 kernel interface + + config HOSTAPD_DRIVER_NONE + bool + prompt no driver + help +Driver interface for no driver (e.g., RADIUS server only) + + config HOSTAPD_IAPP + bool + prompt IEEE 802.11F/IAPP + help +IEEE 802.11F/IAPP + + config HOSTAPD_RSN_PREAUTH + bool + prompt WPA2/IEEE 802.11i RSN pre-authentication + help +WPA2/IEEE 802.11i RSN pre-authentication + + config HOSTAPD_PEERKEY + bool + prompt PeerKey handshake for Station to Station Link (IEEE 802.11e DLS) + help +PeerKey handshake for Station to Station Link (IEEE 802.11e DLS) + + config HOSTAPD_IEEE80211W + bool + prompt IEEE 802.11w (management frame protection) + help +IEEE 802.11w (management frame protection) +This version is an experimental implementation based on IEEE 802.11w/D1.0 +draft and is subject to change since the standard has not yet been finalized. +Driver support is also needed for IEEE 802.11w. + + config HOSTAPD_EAP + bool + prompt Integrated EAP server + help +Integrated EAP server + + config HOSTAPD_EAP_MD5 + bool + prompt EAP-MD5 for the integrated EAP server + help +EAP-MD5 for the integrated EAP server + + config HOSTAPD_EAP_TLS + bool + prompt EAP-TLS for the integrated EAP server + help +EAP-TLS for the integrated EAP server + + config HOSTAPD_EAP_MSCHAPV2 + bool + prompt EAP-MSCHAPv2 for the integrated EAP server + help +EAP-MSCHAPv2 for the integrated EAP server + + config HOSTAPD_EAP_PEAP + bool + prompt EAP-PEAP for the integrated EAP server + help +EAP-PEAP for the integrated EAP server + + config HOSTAPD_EAP_GTC + bool + prompt EAP-GTC for the integrated EAP server + help +EAP-GTC for the integrated EAP server + + config HOSTAPD_EAP_TTLS + bool + prompt EAP-TTLS for the integrated EAP server + help +EAP-TTLS for the integrated EAP server + + config HOSTAPD_EAP_SIM + bool + prompt EAP-SIM for the integrated EAP server + help +EAP-SIM for the integrated EAP server + + config