Giorgio Climb Posted June 1, 2017 Posted June 1, 2017 Hi Sorry my english and my ignorance in linux I'm trying to activate hostapd on orange pi light. I think realtek driver. Nework appairs, but i cannot associate, it says wrong password (12345678) iwconfig has not password item: Spoiler iwconfig lo no wireless extensions. br0 no wireless extensions. wlan0 IEEE 802.11bgn ESSID:"ARMBIAN" Nickname:"<WIFI@REALTEK>" Mode:Master Frequency:2.432 GHz Access Point: 2E:98:51:56:D5:65 Bit Rate:72.2 Mb/s Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off Power Management:off Link Quality=1/100 Signal level=6/100 Noise level=0/100 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 enx00e04c3603a7 no wireless extensions. Onnline documentation talks about realtek https://docs.armbian.com/User-Guide_Advanced-Features/ Spoiler Default binary and configuration location: /usr/sbin/hostapd /etc/hostapd.conf Realtek binary and configuration location: /usr/sbin/hostapd-rt /etc/hostapd.conf-rt I do not have these files -rt How can I do ? And how are they used?
Giorgio Climb Posted June 6, 2017 Author Posted June 6, 2017 I tried to compile sources. After compiler error, now hostapd not start. "No driver enalbled" "Failed to initialize global context"
aliend Posted June 7, 2017 Posted June 7, 2017 Hi I have same problem with PC+ with Armbian5.25 Ubuntu xenial 3.4.113 and even i downgrade hostapd to 2.1 and still it doesn't accept password and I can't connect with PC and mobile .
Igor Posted June 8, 2017 Posted June 8, 2017 Check this image: https://dl.armbian.com/orangepipcplus/archive/Armbian_5.27_Orangepipcplus_Ubuntu_xenial_default_3.4.113.7z (desktop version is there too) You can use armbian-config to create AP. I made a test - it works in bridge mode while it fails in NAT - I am still looking what is it.
Giorgio Climb Posted June 8, 2017 Author Posted June 8, 2017 Thank you, I tried. On bridge. The net ARMBIAN born, but with password 12345678 I do not connect at it.
Igor Posted June 8, 2017 Posted June 8, 2017 In bridge mode you need a dhcp running on network. That's all. I also solve problems in NAT mode so both are (will be) working.Wrote on mobile
Giorgio Climb Posted June 8, 2017 Author Posted June 8, 2017 There is DHCP in my network, but it does not match, it tells me that the password I entered is wrong. And the radio does not have a network key.
Giorgio Climb Posted June 8, 2017 Author Posted June 8, 2017 I have a orange pi light, with usb ethernet adapter, connecter on my network with dhcp. ping google work, but my smartphone cannot associate to wifi networc created, it show password error.
martinayotte Posted June 8, 2017 Posted June 8, 2017 There is no relation between your network DHCP and the HOSTAP DHCP, you need to run a DHCP server on your OrangePi to serve its clients.
Giorgio Climb Posted June 8, 2017 Author Posted June 8, 2017 If the error I get from the phone is "wrong password", there is nothing to do with DHCP. I also tried to assign the static ip at the phone but it does not change anything.
Bubba Posted June 8, 2017 Posted June 8, 2017 What OS is the phone? Android? Windows? ios? I know for fact the image posted above works as it should on the PC Plus, I have it running right here. My Android phone / tablet works fine, my 10 windows box does not connect (well "connects" but authentication fails) , but it is flaky about wpa some times.
Giorgio Climb Posted June 9, 2017 Author Posted June 9, 2017 I apologize, that link works. I used the same build of orangepi light, and it did not work. I used a bridge, but there is an internal DHCP that should not be there.
Giorgio Climb Posted June 9, 2017 Author Posted June 9, 2017 No, no, sorry, there is no DHCP server. I had forgotten static ip for yesterday's tests.
Giorgio Climb Posted June 29, 2017 Author Posted June 29, 2017 I received Orange Pi Zero Loaded its own firmware. Armbian_5.30_Orangepizero_Ubuntu_xenial_default_3.4.113 When I launch armbian-config, and i enable hotspot WiFi, I receive tis error message: Warning Wireless adapter: wlan0 No compatible hostapd driver found.
Igor Posted June 29, 2017 Posted June 29, 2017 Yes, it looks armbian-config is not completely resilient to other changes ... it used to work but now it doesn't anymore. Now you have to proceed manual way. temporally workaround: apt install hostapd cd /etc/network ln -sf interfaces.hostapd interfaces systemctl disable network-manager sed -i "s/^DAEMON_CONF=.*/DAEMON_CONF=\/etc\/hostapd.conf/" /etc/init.d/hostapd reboot You will see: ARMBIAN / 12345678 ... Configure /etc/hostapd.conf Edit: it looks like this problem is affected only to Orange Pi Zero. 1
Giorgio Climb Posted July 2, 2017 Author Posted July 2, 2017 Ok, work. But i Need Two class of ip, one on eth0 and one on wlan0 On eth0 on DCP, on wlan on static ip. I don't have necessity that the wifi go on internet, it doesn't serve me of it bridge, of it nat. Me enough that the CPU reaches internet and the objects in the wifi I have written so, but I have lost the board, it doesn't take ip from the DHCP anymore server. auto eth0 iface eth0 inet dhcp auto wlan0 iface wlan0 inet static address 192.168.8.1 netmask 255.255.255.0 broadcast 192.168.8.255 gateway 192.168.8.1
Bubba Posted July 3, 2017 Posted July 3, 2017 (edited) A easy way to set a lan and wlan ip's on 2 different networks can be done with armbian / openwrt. ..OK so I am fat and lazy.... I have not run the last version but the older ver works very well. http://pulpstone.pw/sunxi/ not sure what you are after, but it is easy to setup and test / AP mode / client mode / AD-Hoc mode I have logs of Iperf3 between a ver 1.1 and ver 1.4 going both ways ...with both as AP and both as client if you want to some numbers. @30 feet with two walls, on a some what clear channel. Edited July 3, 2017 by Bubba spelling
Recommended Posts