Page 8 of 12

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 17 Sep 2016, 09:28
by Joe90
Hi johnbanks

Thanks for the tip

Unfortunately, my hostapd.conf file only contains the information as recommended by Frank in the howto on page 2 of this thread, so nothing extra to comment out :(

Here is the output from:
Code: Select all
/usr/bin/hostapd -dd /etc/hostapd/hostapd.conf


Code: Select all
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Using driver-based off-channel TX
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 5 iftype 3 (AP)
nl80211: Failed to set interface 5 to mode 3: -16 (Device or resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 5 iftype 3 (AP)
nl80211: Mode change succeeded while interface is down
nl80211: Setup AP(wlan0) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0xebfad8
nl80211: Register frame type=0xb0 (WLAN_FC_STYPE_AUTH) nl_handle=0xebfad8 match=
nl80211: Register frame type=0x0 (WLAN_FC_STYPE_ASSOC_REQ) nl_handle=0xebfad8 match=
nl80211: Register frame type=0x20 (WLAN_FC_STYPE_REASSOC_REQ) nl_handle=0xebfad8 match=
nl80211: Register frame type=0xa0 (WLAN_FC_STYPE_DISASSOC) nl_handle=0xebfad8 match=
nl80211: Register frame type=0xc0 (WLAN_FC_STYPE_DEAUTH) nl_handle=0xebfad8 match=
nl80211: Register frame type=0xd0 (WLAN_FC_STYPE_ACTION) nl_handle=0xebfad8 match=
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Could not configure driver mode
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=5)
netlink: Operstate: ifindex=5 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 5 iftype 2 (STATION)
nl80211: Failed to set interface 5 to mode 2: -16 (Device or resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 5 iftype 2 (STATION)
nl80211: Mode change succeeded while interface is down
nl80211: Teardown AP(wlan0) - device_ap_sme=0 use_monitor=0
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0xebe4b8)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0xebe4b8)
wlan0: interface state UNINITIALIZED->DISABLED
hostapd_bss_deinit: deinit bss wlan0
wlan0: AP-DISABLED
hostapd_cleanup(hapd=0xebf060 (wlan0))
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0xebe4b8)
hostapd_interface_free: free hapd 0xebf060
hostapd_cleanup_iface(0xebe4b8)
hostapd_cleanup_iface_partial(0xebe4b8)
hostapd_cleanup_iface: free iface=0xebe4b8

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 17 Sep 2016, 09:36
by hondagx35
Hi Joe90,

what is the output from:
Code: Select all
systemctl status dnsmasq
?

Please also post your debug data.

Frank

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 17 Sep 2016, 09:59
by Joe90
debug data from hostapd in my previous post.

output (hand typed) from
Code: Select all
systemctl status dnsmasq


Code: Select all
* dnsmasq.service - A lightweight DHCP and caching DNS server
  Loaded: loaded (/usr/lib/systemd/system/dnsmasq.service; disabled)
  Active: failed (Result: exit-code) since Thu 1970-01-01 01:00:00:42; 1s ago
     Docs: man:dnsmasq(8)
  Process: 600 ExecStartPre=/usr/bin/dnsmasq --test (code=exited, status=127)



Observation:

On reboot the AP appears to come up, but as soon as i test the hostapd file it kills the AP. How to test status of AP/hostapd and how to stop hostapd to try again?

After a fresh reboot running:
Code: Select all
systemctl status hostapd


Shows much the same as for dnsmasq although under Active it says "active (running)" and gives a Main PID : 597 (hostapd)

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 17 Sep 2016, 10:22
by Joe90
Thought I would also try running:

Code: Select all
/usr/bin/dnsmaq


This returned:

Code: Select all
/usr/bin/dnsmasq: error while loading shared libraries: libnettle.so.6: cannot open shared object file: No such file or directory


Am I missing a dependency somewhere?

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 17 Sep 2016, 10:41
by hondagx35
Hi Joe90,

Just for reference. You are trying this on a RP1, right?

/usr/bin/dnsmasq: error while loading shared libraries: libnettle.so.6: cannot open shared object file: No such file or directory

This is due to a version conflict.
Please post the output from:
Code: Select all
find / -name libnettle*

Updating nettle may cause other issues.

Frank

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 17 Sep 2016, 10:51
by Joe90
Oops!!

ran
Code: Select all
pacman -S nettle


which updated nettle and on repeating a run of dnsmasq I get a new dependency error with libdbus-1. Running pacman against this there appears to be some dependency conflict between dbus and libdbus :(

Might have to start over?

Output (now) from find/ -name libnettle:
Code: Select all
/usr/lib/libnettle.so
/usr/lib/libnettle.so.6.2
/usr/lib/libnettle.so.6



To confirm hardware:

Raspberry Pi Model B 756-8308
Ralink RT5370 wifi dongle

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 20 Sep 2016, 20:44
by Joe90
So is that it, have I taken an RPi Model B as far as it will go on this one? dnsmasq seems to be the issue?

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 20 Sep 2016, 22:12
by hondagx35
Hi Joe90,

dnsmasq seems to be the issue?

Yes, dnsmasq on the RP1 image is the problem.

The RP1 image is fairly old and has to be updated.
On all the newer images (platforms) it works without problems.

Frank

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 21 Sep 2016, 20:48
by Joe90
What about trying "udhcpd"

others have this working on raspbian ?

http://elinux.org/RPI-Wireless-Hotspot

Re: RPi + Runeaudio +Wifi as Accesspoint

PostPosted: 22 Sep 2016, 17:37
by hondagx35
Hi Joe90,

it's not a dnsmasq issue.
The problem is the old (not up to date) Arch Linux installation.

Frank