tce-load -i compiletc libnl-dev openssl-dev dbus-dev libxml2-dev readline-dev wget https://w1.fi/releases/wpa_supplicant-2.10.tar.gz cd wpa_supplicant-2.10 cat > wpa_supplicant/.config << "EOF" CONFIG_BACKEND=file CONFIG_BGSCAN_SIMPLE=y CONFIG_CTRL_IFACE=y CONFIG_DEBUG_FILE=y CONFIG_DEBUG_SYSLOG=y CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON CONFIG_DRIVER_NL80211=y CONFIG_DRIVER_WEXT=y CONFIG_DRIVER_WIRED=y CONFIG_EAP_GTC=y CONFIG_EAP_LEAP=y CONFIG_EAP_MD5=y CONFIG_EAP_MSCHAPV2=y CONFIG_EAP_OTP=y CONFIG_EAP_PEAP=y CONFIG_EAP_TLS=y CONFIG_EAP_TTLS=y CONFIG_IEEE8021X_EAPOL=y CONFIG_IEEE80211R=y CONFIG_IPV6=y CONFIG_LIBNL32=y CONFIG_PEERKEY=y CONFIG_PKCS12=y CONFIG_READLINE=y CONFIG_SMARTCARD=y CONFIG_WPS=y CONFIG_CTRL_IFACE_DBUS=y CONFIG_CTRL_IFACE_DBUS_NEW=y CONFIG_CTRL_IFACE_DBUS_INTRO=y CONFIG_P2P=y CONFIG_AP=y CONFIG_WPS2=y CONFIG_WIFI_DISPLAY=y CFLAGS += -I/usr/local/include/libnl3 EOF cd wpa_supplicant find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; find . -name Makefile -type f -exec sed -i 's/-g//g' {} \; find . -name Makefile -type f -exec sed -i 's/-lreadline -lncurses/-lreadline -lncursesw/g' {} \; find ../ -name build.rules -type f -exec sed -i 's/-MMD -O2 -Wall -g/-MMD -Wall/g' {} \; make CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti" BINDIR=/usr/local/sbin LIBDIR=/usr/local/lib [4m 15.43s] sudo install -m755 wpa_cli /usr/local/sbin/ sudo install -m755 wpa_passphrase /usr/local/sbin/ sudo install -m755 wpa_supplicant /usr/local/sbin/ sudo mkdir -p /usr/local/share/dbus-1/system-services sudo install -m644 dbus/fi.w1.wpa_supplicant1.service /usr/local/share/dbus-1/system-services/ sudo mkdir -p /usr/local/etc/dbus-1/system.d/ sudo install -m644 dbus/dbus-wpa_supplicant.conf /usr/local/etc/dbus-1/system.d/wpa_supplicant.conf