ltib wpa_supplicant

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ltib wpa_supplicant

Jump to solution
2,444 Views
michaeldiamond
Contributor III

I have a nitrogen 6x board with the wifi module.  I have the module up and working but wpa_supplicant does not appear to be installed.

In ltib i have the wpa_supplicant package selected and it does compile when the build is happening, but I don't see any wpa_supplicant folder in the /etc/ folder and when I try the command I get command not found.

I am using ltib 9.1.1 revision 1.445.6.1

kernel version 3.0.35

Any help with this would be great.

Labels (2)
Tags (3)
0 Kudos
1 Solution
1,373 Views
michaeldiamond
Contributor III

I was able to change the install path of the wpa_supplicant from usr/local/sbin to usr/local/bin by modifying the package makefile in /opt/freescale/pkgs.  It now functions as the program is in the path.

View solution in original post

0 Kudos
6 Replies
1,373 Views
pt
Senior Contributor I

How did you modify the Makefile?

I have tried to do modify the Makefile. But after making that change, ltib throws error and wpa package become bad.

Regards

Pt

0 Kudos
1,373 Views
waterzhou
Contributor V

This should be caused by only compile but not installed issue. Can you attached your Android.mk in external/wpa_supplicant_**/wpa_supplicant/. Maybe I can help you to have a analysis.

0 Kudos
1,373 Views
billyang
Contributor III

Hi Jian,

I could not run wpa_supplicant without a file, wpa_supplicant.conf. Can you help?

0 Kudos
1,373 Views
michaeldiamond
Contributor III

I have now gotten wpa supplicant working on the device but I still have to run the program from the usr/local/sbin.

I used the suggestions from this website to help. Setting up wireless with wpa2 on linux

I just replaced the dhclient command with udhcpc -f -q -n -i wlan0.

I was able to ssh into the device over wireless.  It would still be nice to find out how to adjust the path so that the programs in the usr/local/sbin directory can be run anywhere.

0 Kudos
1,374 Views
michaeldiamond
Contributor III

I was able to change the install path of the wpa_supplicant from usr/local/sbin to usr/local/bin by modifying the package makefile in /opt/freescale/pkgs.  It now functions as the program is in the path.

0 Kudos
1,373 Views
michaeldiamond
Contributor III

I am not using android but am using ltib linux.  I have found that the program has been installed in the usr/local/sbin folder.  late in the day yesterday I was able to get the program to function, no network connection yet, but I would like it installed so it can run from any folder.  Are you wanting the wpa_supplicant.spec file.

Here it is, this is what came default with ltib.

%define pfx /opt/freescale/rootfs/%{_target_cpu}

Summary         : WPA Supplicant for wifi

Name            : wpa_supplicant

Version         : 0.5.9

Release         : 1

License         : GPL

Vendor          : Freescale

Packager        : Sam Yang

Group           : Application/System

Source          : %{name}-%{version}.tar.gz

BuildRoot       : %{_tmppath}/%{name}

Prefix          : %{pfx}

%Description

wpa_supplicant is an implementation of the WPA Supplicant component,

i.e., the part that runs in the client stations. It implements WPA key

negotiation with a WPA Authenticator and EAP authentication with

Authentication Server. In addition, it controls the roaming and IEEE

802.11 authentication/association of the wlan driver.

%{summary}

%Prep

%setup

%Build

#Create .config file for build

cat > .config << EOF

#CONFIG_DRIVER_HOSTAP=n

#CONFIG_DRIVER_HERMES=n

#CONFIG_DRIVER_MADWIFI=n

#CONFIG_DRIVER_ATMEL=n

CONFIG_DRIVER_WEXT=y

#CONFIG_DRIVER_NDISWRAPPER=n

#CONFIG_DRIVER_BROADCOM=n

#CONFIG_DRIVER_IPW=n

#CONFIG_DRIVER_BSD=n

#CONFIG_DRIVER_NDIS=n

CONFIG_WIRELESS_EXTENSION=y

CONFIG_IEEE8021X_EAPOL=y

#CONFIG_EAP_MD5=y

#CONFIG_EAP_MSCHAPV2=y

#CONFIG_EAP_TLS=y

#CONFIG_EAP_PEAP=y

#CONFIG_EAP_TTLS=y

#CONFIG_EAP_GTC=y

#CONFIG_EAP_OTP=y

#CONFIG_EAP_SIM=y

#CONFIG_EAP_AKA=y

CONFIG_EAP_PSK=y

#CONFIG_EAP_SAKE=y

#CONFIG_EAP_GPSK=y

#CONFIG_EAP_PAX=y

#CONFIG_EAP_LEAP=y

#CONFIG_PCSC=y

CONFIG_CTRL_IFACE=y

CONFIG_L2_PACKET=linux

EOF

#Create a default ap config file

cat > ap_config.conf << EOF

ctrl_interface=/var/run/wpa_supplicant

update_config=1

network={

        ssid="cisco-2"

        key_mgmt=NONE

        auth_alg=OPEN

        disabled=1

        id_str="p2"

}

EOF

make CONFIG_L2_PACKET=linux

%Install

rm -rf $RPM_BUILD_ROOT

make install CONFIG_L2_PACKET=linux prefix=%{_prefix} DESTDIR=$RPM_BUILD_ROOT/%{pfx}

mkdir -p  $RPM_BUILD_ROOT/%{pfx}/usr/etc/unifi

cp ap_config.conf $RPM_BUILD_ROOT/%{pfx}/usr/etc/unifi

%Clean

rm -rf $RPM_BUILD_ROOT

%Files

%defattr(-,root,root)

%{pfx}/*

0 Kudos