Beaglebone Black

From Review or Discard at Will
Revision as of 09:03, 7 July 2017 by Jeffa (talk | contribs) (add pin query / config)
Jump to: navigation, search

Device Overlay

--Jeffa (talk) 11:03, 7 July 2017 (CDT)

$ # They moved the slots cheese. 
$ # Old location
$ # /sys/devices/bone_capemgr.9/slots
$ # Here's the new location;
$ cat /sys/devices/platform/bone_capemgr/slots

$ [...]
$ 4: P-O-L-   0 Override Board Name,00A0,Override Manuf,cape-universaln

SPI

beaglebone cape universal spi pin config with handy tools. Set / inquire ping configs [forked] from Drew Fustini (pdp7)

# show possible pin types
root@beaglebone:~# config-pin -l P9.22   #SPI0_SCLK
default gpio gpio_pu gpio_pd spi uart i2c pwm

# set as spi
root@beaglebone:~# config-pin P9.22 spi  #SPI0_SCLK

# inquire pin config
root@beaglebone:~# config-pin -q P9.22
P9_22 Mode: spi

configure wifi

old

edit /etc/network/interfaces manually uncomment lines around wlan0 (or your identifier) adding SSID and passphrase

See the article Setting up WiFi with BeagleBone Black at Adafruit for copious details.

new - connmanctl

At least for me using the old method above was not available starting with debian jessie. You need to use connmanctl now. with the 8.4 and 8.5 images wifi tether is on by default. Turn it off to configure as follows. This will allow your BBB to obtain an ip address via DHCP from your Access point allowing you to ssh in.

root@beaglebone:~# connmanctl

connmanctl> tether wifi off
connmanctl> enable wifi
Enabled wifi
connmanctl> scan wifi
Scan completed for wifi
connmanctl> services
    ADP_EXT_Desk         wifi_74da384261dd_4144505f4558545f4465736b_managed_psk
    ADP                  wifi_74da384261dd_414450_managed_psk
    CenturyLink5259      wifi_74da384261dd_43656e747572794c696e6b35323539_managed_psk
    E265E0               wifi_74da384261dd_453236354530_managed_psk
    Myrcenary            wifi_74da384261dd_4d797263656e617279_managed_psk
    MoonUn1t_EXT         wifi_74da384261dd_4d6f6f6e556e31745f455854_managed_psk

connmanctl> agent on
Agent registered
connmanctl> connect wifi_74da384261dd_414450_managed_psk
Agent RequestInput wifi_74da384261dd_414450_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory, Alternates=[ WPS ] ]
  WPS = [ Type=wpspin, Requirement=alternate ]
Passphrase? redacted
Connected wifi_74da384261dd_414450_managed_psk
connmanctl> quit
root@beaglebone:~#