Skip to content

Latest commit

 

History

History
121 lines (92 loc) · 3.35 KB

NOTES.md

File metadata and controls

121 lines (92 loc) · 3.35 KB

Misc notes

This is a big jumble of notes that needs organization.

Installing the PocketBeagle

https://eewiki.net/display/linuxonarm/PocketBeagle

minicom -D /dev/ttyACM0
ssh debian@192.168.6.2
pass:  temppwd

sudoers: Don't require passwd for sudo and admin groups UNSAFE

sudo sed -i /etc/sudoers.d/admin \
    -e '/^%admin/ s/ALL=.*$/ALL=(ALL:ALL) NOPASSWD: ALL/'
sudo sed -i /etc/sudoers \
    -e '/^%sudo/ s/ALL=.*$/ALL=(ALL:ALL) NOPASSWD: ALL/'

Resize fs:

From http://jpdelacroix.com/tutorials/sharing-internet-beaglebone-black.html On host side:

sudo iptables -t nat -A POSTROUTING \! -o enx60640561b61f -s 192.168.6.2 -j MASQUERADE
sudo iptables -A FORWARD -i enx60640561b61f -j ACCEPT
sudo iptables -A FORWARD -o enx60640561b61f -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT

On bb side:

sudo ip route add default via 192.168.6.1 dev usb1
# Clear root passwd
sudo sed -i /etc/shadow -e 's/^root:[^:]*:/root:*:/'

# Time zone
sudo ln -sf /usr/share/zoneinfo/America/Chicago /etc/localtime

# Kernel https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#4.9.x-ti
sudo /opt/scripts/tools/update_kernel.sh --ti-rt-channel --lts-4_9

wget -O /tmp/arceye@mgware.co.uk.gpg.key http://deb.mgware.co.uk/arceye@mgware.co.uk.gpg.key
sudo apt-key add /tmp/arceye@mgware.co.uk.gpg.key
echo "deb http://deb.mgware.co.uk stretch main" | sudo tee /etc/apt/sources.list.d/
sudo apt-get update

sudo apt-get install emacs-nox
sudo apt-get install linux-image-4.11.12-bone-rt-r3
sudo apt-get install machinekit-rt-preempt
sudo apt-get install git
sudo apt-get install lsb-release
sudo apt-get install usbutils wireless-tools connman
sudo apt-get install avahi-daemon
sudo apt-get install python-rrdtool

sudo connmanctl agent on
sudo connmanctl enable wifi
sudo cat \
    > /var/lib/connman/wifi_48022ae12503_5a756c74726f6e40686f6d652d32_managed_psk \
    <<EOF
[wifi_0013ef2a079b_5a756c74726f6e40686f6d652d32_managed_psk]
Name=Zultron@home-2
SSID=5a756c74726f6e40686f6d652d32
Frequency=2422
Favorite=true
AutoConnect=true
Modified=2017-10-16T19:50:11.699608Z
Passphrase=$WIFI_PASS
IPv4.method=dhcp
IPv4.DHCP.LastAddress=192.168.7.157
IPv6.method=auto
IPv6.privacy=disabled
EOF
sudo chmod -x /opt/scripts/boot/autoconfigure_usb[01].sh
sudo sed -i /etc/network/interfaces -e '/eth0/ s/^/#/'

# Configure GPIOs low on boot
sudo dtc -O dtb -o /lib/firmware/pb_goldibox-00A0.dtbo -b 0 -@
pb_goldibox.dts
echo dtb_overlay=/lib/firmware/pb_goldibox-00A0.dtbo | sudo tee -a /boot/uEnv.txt

Web interface

This is just beginning development and does nothing interesting yet.

# Build the Docker image
docker/qqvcp.sh build

# Build the AND demo
docker/qqvcp.sh anddemo-build

# Run the AND demo
docker/qqvcp.sh anddemo
# ...in debug mode
DEBUG=5 MSGD_OPTS=-s docker/qqvcp.sh anddemo

Links