-
Notifications
You must be signed in to change notification settings - Fork 1
2. Setup
lsblk # get sdard name
sudo fdisk /dev/mmcblk0
# at this point follow the prompts
d # delete partition
g # create new empty GPT
n # create new partition
1 # partition number 1
# press enter pass default sizes
#
p # to list partitions
w # write the table.
sudo mkfs.ext4 -F /dev/mmcblk0 # format the partition
mkdir /media/sdcard
sudo mount /dev/mmcblk0 /media/sdcard
To make the mountpoint persistent on reboot, add this to /etc/fstab:
/dev/mmcblk0 /media/sdcard ext4 noatime,errors=remount-ro 0 1
You can use a WiFi to ethernet bridge adapter such as IOGear Universal Wi-Fi N Transmitter- Ethernet to Wi-Fi N 300Mbps found here on Amazon.
There are only a few WiFi adapters that work with the BBB.
Once you have one you will need to either use nmtui a nice text UI to setup your network. Or do it manually.
- Edit
/etc/network/interfacesadd a new section for wifi. This assumes the adapter is registered aswlan0interface.
cat <<'EOF' >> /etc/network/interfaces
# WiFi Example
allow-hotplug wlan0
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
EOF
- Create or add to
/etc/wpa_supplicant/wpa_supplicant.conf- If it doesn't exist
cat <<'EOF' >> /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
EOF
- Add your WiFi network creds. Repeat for as many networks as you want
wpa_passphrase MYSSID passphrase >> /etc/wpa_supplicant/wpa_supplicant.conf
- If you've added more than one network you can give each one a priority but adding
priorityto each block. Higher numbers means higher precedence, which mean those networks will be connected to first.
network={
...
priority=<a number>
}
- Listed at the end of
/etc/network/interfacesare some commands to run. I had to run these to connect to the network I wanted to.
##connman: WiFi
connmanctl
connmanctl> tether wifi off
connmanctl> enable wifi
connmanctl> scan wifi
connmanctl> services
connmanctl> agent on
connmanctl> connect wifi_*_managed_psk
connmanctl> quit
See setup script.
- No HDMI out: See next bullet if you updated manually with something like
apt update && apt upgrade - Don't manually update the system use
sudo /opt/scripts/tools/update_kernel.sh
sudo rm /var/run/wpa_supplicant/wlan0
sudo /etc/init.d/networking restart
sudo ifdown wlan0
sudo ifup wlan0
sudo dhclient
sudo wpa_cli reconfigure
systemctl status networking.service
journalctl -xe
sudo wpa_supplicant -B -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf -D nl80211
Edit /boot/uEnv.txt. Uncomment or add lines
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
This is needed to allow for more GPIO pins. For example P9_31.
Then run the below command to set P9_31 as output:
$ config-pin P9_31 pruout