Beaglebone Green Wireless + peripherals
- Clone this repository to your computer.
$ git clone git@github.com:dawnho/bb-connectivity.git
- Visit the Balena Dashboard, and create a new Application. The settings should as follows:
- Application Name: Whatever you want, might be nice to put your name on it.
- Default Device Type: Beaglebone Green Wireless
- Application Type: Starter
-
Download the Installer Balena Client and install on your laptop.
-
Install Docker (version 18.06.1-ce, build e68fc7a) Note: the newest version of Docker will not work. Don't update your Docker! Balena's preload function is dependent on the AUFS feature, which has been deprecated.
-
Login to your balena account
$ balena login
- Upload a code release to your application
$ cd {into location of your bb-connectivity repo}`
$ balena push {name of your Application}
- Navigate back to 'Devices', click 'Add device', select the following settings, and Download your SD card image:
- Device Type: Beaglebone Green Wireless
- BalenaOS Version: latest is okay
- Select Edition: Development (this is preferable for development b/c you can ssh into the device directly. More details on differences between the two editions can be found here.)
- Network Connection: Ethernet Only or Wireless works.
-
Preload the image with your latest code release (this step is optional, the pi will download the latest release automatically when it's connected to the internet).
$ balena preload {location of image file} --app {app id as found in Balena Application URL} --commit latest
-
Burn the image onto an SD card. I like to use Etcher for that.
-
In the 'flash-boot' partition, open up the file
uEnv.txt_internal
, and insert the following lines:
enable_uboot_overlays=1
uboot_overlay_addr0=/boot/overlays/BB-I2C1-00A0.dtbo
uboot_overlay_addr1=/boot/overlays/BB-I2C2-00A0.dtbo
uboot_overlay_addr2=/boot/overlays/BB-SPIDEV0-00A0.dtbo
uboot_overlay_addr3=/boot/overlays/BB-SPIDEV1-00A0.dtbo
uboot_overlay_addr4=/boot/overlays/BB-UART1-00A0.dtbo
uboot_overlay_addr5=/boot/overlays/BB-UART2-00A0.dtbo
uboot_overlay_addr6=/boot/overlays/BB-UART3-00A0.dtbo
uboot_overlay_addr7=/boot/overlays/BB-UART4-00A0.dtbo
-
Make sure the power is not plugged in on your Beaglebone Green Wireless.
-
Plug in your SD card into your Beaglebone Green Wireless:
- Hold down the "User button", while you plug in the power, hold the button until you see the blue lights flashing wildly.
-
Wait until the blue lights stop flashing (it'll take a minute), Remove the SD Card, then plug the power back in.
-
You're live! Connect your bb to internet using the usb ethernet adapter.
Once you have a development pi set up (according to the above instructions), you can push code changes like so:
$ balena push {Application Name}
If this flow is too slow for you (which it will be, it takes a few minutes), you can make live changes to the pi by directly sshing into it:
$ balena ssh {uuid of device}
To see the list of running docker containers:
$ balena ps -a
To enter a particular docker container:
$ balena exec -it {name of container} /bin/bash
You might want to install curl
or vim
on your development image, so that you can make live edits on the Pi, you can do this by adding those packages in the install sequence on the image Dockerfile.