Difference between revisions of "Beaglebone Black"
(initial creation) |
(added syntax stuff to remember) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | ==Common stuff syntax to remember== | ||
+ | |||
+ | --[[User:Jeffa|Jeffa]] ([[User talk:Jeffa|talk]]) 18:09, 13 July 2017 (CDT) | ||
+ | ===set timezone=== | ||
+ | <source lang="bash"> | ||
+ | root@beaglebone:~# rm /etc/localtime | ||
+ | root@beaglebone:~# ln -s /usr/share/zoneinfo/MST /etc/localtime | ||
+ | </source> | ||
+ | ===adduser=== | ||
+ | <source lang="bash"> | ||
+ | root@beaglebone:~# useradd jeffa # HEY! don't do it this way! unless you give all the options on the command line | ||
+ | root@beaglebone:~# adduser jeffa # much nicer interactive setup. | ||
+ | </source> | ||
+ | |||
+ | ==Device Overlay== | ||
+ | --[[User:Jeffa|Jeffa]] ([[User talk:Jeffa|talk]]) 11:03, 7 July 2017 (CDT) | ||
+ | <source lang="text"> | ||
+ | $ # 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 | ||
+ | </source> | ||
+ | ===SPI=== | ||
+ | beaglebone cape universal spi pin config with handy tools. Set / inquire ping configs | ||
+ | [[https://gist.github.com/jhalbrecht/4391faafafa1d63c150457f75472bbcf forked]] from Drew Fustini ([https://github.com/pdp7 pdp7]) | ||
+ | |||
+ | <source lang="bash"> | ||
+ | # 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 | ||
+ | </source> | ||
+ | |||
==configure wifi== | ==configure wifi== | ||
===old=== | ===old=== |
Latest revision as of 16:09, 13 July 2017
Contents
Common stuff syntax to remember
--Jeffa (talk) 18:09, 13 July 2017 (CDT)
set timezone
root@beaglebone:~# rm /etc/localtime
root@beaglebone:~# ln -s /usr/share/zoneinfo/MST /etc/localtime
adduser
root@beaglebone:~# useradd jeffa # HEY! don't do it this way! unless you give all the options on the command line
root@beaglebone:~# adduser jeffa # much nicer interactive setup.
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:~#