I am working to setup BeagleBone Black units to have an access point and behave similar to the no longer available BeagleBone Black wireless units. Our prototypes are all running Debian Buster kernel 4.19. (specifics posted below) which I know is old but we need to use this to stay on track for now.
I have finally been able to get my hands on Netgear N150 dongles and using hostapd I have SSID “BBB” up and visible from both my Windows 10 machine, and iPad and iPhone. I can connect and enter the password (simply BeagleBone) and the Windows 10 machine shows connected. (The iPad spins as if trying to connect and never gives and error.)
Once connected, I cannot ping 192.168.7.2 or use PuTTY to access the Beagle over this network.
I am a novice at all this networking setup and either have something not configured or a created a mess using hostapd, connmanctl and systemctl. I suspect maybe an interface isn’t running that should be.
Help would be greatly appreciated. This is the last thing I need to get three prototypes into some R&D testing.
Output of version.sh
root@beaglebone:/var/log# /opt/scripts/tools/version.sh
git:/opt/scripts/:[e4e4854ef8ff9ada5c85553376043ee7679167ca]
eeprom:[A335BNLT00C02411SBB02285]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2021-02-15]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot SPL 2019.04-00002-gc9b3922522 (Aug 24 2020 - 16:42:18 -0500)]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-00002-gc9b3922522]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0.kernel]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-I2C2-RTC-DS3231]
kernel:[4.19.94-ti-r68]
nodejs:[v10.23.1]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr4=/lib/firmware/BB-W1-P9.24-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr5=/lib/firmware/BB-I2C2-RTC-DS3231.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[uboot_overlay_pru=AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20210809.0-0~buster+20210816]
pkg:[bb-customizations]:[1.20210810.1-0~buster+20210810]
pkg:[bb-usb-gadgets]:[1.20200504.0-0~buster+20200504]
pkg:[bb-wl18xx-firmware]:[1.20200813.1-0~buster+20200813]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~buster+20200716]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal input bluetooth netdev i2c gpio admin spi iio docker tisdk weston-launch xenomai cloud9ide pwm eqep remoteproc]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 72.833195] remoteproc remoteproc0: wkup_m3 is available
[ 72.931008] remoteproc remoteproc0: powering up wkup_m3
[ 72.931037] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 72.931283] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 75.123933] remoteproc remoteproc1: 4a334000.pru is available
[ 75.137024] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[ 75.123933] remoteproc remoteproc1: 4a334000.pru is available
[ 75.124121] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
[ 75.137024] remoteproc remoteproc2: 4a338000.pru is available
[ 75.137170] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
dmesg | grep pinctrl-single
[ 1.026936] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 1.040491] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 002: ID 0846:9030 NetGear, Inc. WNA1100 Wireless-N 150 [Atheros AR9271]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
hostapd.conf
root@beaglebone:/etc/hostapd# cat hostapd.conf
interface=wlan0
# "a" simply means 5GHz
hw_mode=g
# the channel to use, 0 means the AP will search for the channel with the least interferences (ACS)
channel=5
ieee80211d=1
country_code=US
ieee80211n=1
# 802.11ac support
ieee80211ac=1
wmm_enabled=1
ssid=BBB
auth_algs=1
wpa=2
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP
wpa_passphrase=BeagleBone
I have fixed the channel to 5. We are in a startup incubator space without a lot of wifi around and the automatic search for the best channel was failing. The only other wifi around is on channel 6.
Output of systemctl status networking.service
(I see the entries about another wpa_supplicant process already running. Is this the problem and if so what do I need to do to fix this?)
root@beaglebone:/var/log# systemctl status networking.service
● networking.service - Raise network interfaces
Loaded: loaded (/lib/systemd/system/networking.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2023-05-21 18:40:15 UTC; 30min ago
Docs: man:interfaces(5)
Process: 2152 ExecStart=/sbin/ifup -a --read-environment (code=exited, status=1/FAILURE)
Main PID: 2152 (code=exited, status=1/FAILURE)
May 21 18:40:15 beaglebone wpa_supplicant[2188]: ctrl_iface exists and seems to be in use - cannot override it
May 21 18:40:15 beaglebone wpa_supplicant[2188]: Delete '/run/wpa_supplicant/wlan0' manually if it is not used anymore
May 21 18:40:15 beaglebone wpa_supplicant[2188]: Failed to initialize control interface '/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
May 21 18:40:15 beaglebone wpa_supplicant[2188]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
May 21 18:40:15 beaglebone ifup[2152]: /etc/network/if-pre-up.d/wpasupplicant: 120: /etc/network/if-pre-up.d/wpasupplicant: cannot create /dev/stderr: No such device or address
May 21 18:40:15 beaglebone ifup[2152]: run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
May 21 18:40:15 beaglebone ifup[2152]: ifup: failed to bring up wlan0
May 21 18:40:15 beaglebone systemd[1]: networking.service: Main process exited, code=exited, status=1/FAILURE
May 21 18:40:15 beaglebone systemd[1]: networking.service: Failed with result 'exit-code'.
May 21 18:40:15 beaglebone systemd[1]: Failed to start Raise network interfaces.