Skip to first unread message

Richard

unread,
Jul 28, 2020, 5:15:37 PM7/28/20
to BeagleBoard
Hi. I have a BeagleBone Black Wireless running software almost two years old:

root@beaglebone:/etc/dnsmasq.d# uname -a
Linux beaglebone 4.14.67-ti-r73 #1 SMP PREEMPT Thu Aug 30 00:08:52 UTC 2018 armv7l GNU/Linux
root@beaglebone:/etc/dnsmasq.d# cat /etc/dogtag 
BeagleBoard.org Debian Image 2018-08-30

I've moved it to a different location and find that the DHCP system that used to work no longer does. I want the SoftAp0, 192.168.1.8, to provide an IP to my cell phone or local computer so that it can manipulate the BBBW. It sees the WiFi signal and connects with the usual password, but after a while disconnects without ever receiving an IP address.

I've checked SoftAp0:-- 

root@beaglebone:/etc/dnsmasq.d# cat SoftAp0 
interface=SoftAp0
interface=usb0
port=53
dhcp-authoritative
domain-needed
bogus-priv
expand-hosts
cache-size=2048
dhcp-range=SoftAp0,192.168.8.50,192.168.8.150,10m
dhcp-range=usb0,.1,.1,2m
listen-address=127.0.0.1
listen-address=192.168.8.1
listen-address=
dhcp-option-force=interface:SoftAp0,option:dns-server,192.168.8.1
dhcp-option-force=interface:SoftAp0,option:mtu,1500
dhcp-option=usb0,3
dhcp-option=usb0,6

The system log shows that dnsmasq didn't start:

Jul 28 12:23:47 beaglebone bb-wl18xx-wlan0[1756]: wl18xx:tether [iptables -w -A FORWARD -i SoftAp0 -o wlan0 -j ACCEPT]
Jul 28 12:23:47 beaglebone systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server...
Jul 28 12:23:47 beaglebone dnsmasq[4741]: dnsmasq: syntax check OK.
Jul 28 12:23:47 beaglebone dnsmasq[4744]: dnsmasq: bad dhcp-range at line 10 of /etc/dnsmasq.d/SoftAp0
Jul 28 12:23:47 beaglebone dnsmasq[4744]: bad dhcp-range at line 10 of /etc/dnsmasq.d/SoftAp0
Jul 28 12:23:47 beaglebone dnsmasq[4744]: FAILED to start up
Jul 28 12:23:47 beaglebone systemd[1]: dnsmasq.service: Control process exited, code=exited status=1
Jul 28 12:23:47 beaglebone systemd[1]: Failed to start dnsmasq - A lightweight DHCP and caching DNS server.
Jul 28 12:23:47 beaglebone systemd[1]: dnsmasq.service: Unit entered failed state.
Jul 28 12:23:47 beaglebone systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
Jul 28 12:23:47 beaglebone bb-wl18xx-wlan0[1756]: Job for dnsmasq.service failed because the control process exited with error code.

If I comment out line 10,
# dhcp-range=usb0,.1,.1,2m 

I still get the same message
Jul 28 17:05:16 beaglebone dnsmasq[4731]: bad dhcp-range at line 10 of /etc/dnsmasq.d/SoftAp0

Huh? Why??

But I'm still unable to get an IP address.  Well, given that dnsmasq doesn't start, that's not a surprise. But what do I have to do to convince dnsmasq to start?
I.e., what do I do now?

Many thanks,
Richard

Robert Nelson

unread,
Jul 28, 2020, 5:36:05 PM7/28/20
to Beagle Board, Richard Tenney
These should be:

dhcp-range=usb0,192.168.7.1,192.168.7.1,20m
dhcp-range=usb1,192.168.6.1,192.168.6.1,20m

That is really odd, let's try resetting things..

cd /opt/scripts/tools/
git pull

and

sudo apt update
sudo apt install bb-usb-gadgets

Then reboot, and let's check SoftAp0

Regards,


--
Robert Nelson
https://rcn-ee.com/

Richard

unread,
Jul 28, 2020, 11:34:20 PM7/28/20
to BeagleBoard
Thanks! I took all your suggestions, and now the BBBW provides DHCP IP addresses as before.
On to the next issue:
  a node-red flow that behaves one way (correctly) when accessed via 192.168.1.159:1880/xx and a different way (incorrectly) when accessed via 192.168.8.1:1880/xx -- both running the identical code [literally, the same file] on the same BBBW.
  But this is not something I'd expect you to weigh in on.
Again, thanks for getting me over the DHCP hurdle.
~Richard
Reply all
Reply to author
Forward
0 new messages