More recent Beagle Board official image with linux kernel 4 provide improved networking stability and updated wifi divers with better support for usb dongles.
This branch make use of Adafruit BeagleBone-IO-Python library for dealing with GPIO.
It was tested with Debian 9.5 2018-10-07 4GB SD IoT image and is backward compatible with the Lasersaur BBB Image v15.01
Clone to a micro sd-card with this or this instructions
Boot BBB from this card. Be sure you plugged an ethernet cable to be able to ssh into it.
The BBB should automatically boot from the sd-card if inserted. (If not, hold S2 button when connecting power until the four blue LEDs illuminate.)
ssh to BBB: ssh debian@beaglebone.local
default password is: temppwd
optionally Install disk image to EMMC:
ssh to BBB and edit /boot/uEnv.txt (require sudo). Uncomment the line:#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
reboot and the eMMC flashing will take place. Allow few minutes untill all four leds will turn on and back off again.
don't forget to remove the sd card before rebooting or the eMMC flashing will restart
ssh to BBB and change the hostname from beaglebone to lasersaur
edit /etc/hostname (require sudo). Change beaglebone to lasersaur
edit /etc/hosts (require sudo). Replace beaglebone to lasersaur anywhere in the file. Save and reboot
setup root account ( Adafruit GPIO library doesn't work with sudo )
ssh as usual and set root password: sudo passwd root. Enter a new root password
su - to switch to root user
enable ssh root access editing /etc/ssh/sshd_config Add a line in the Authentication section of the file that says PermitRootLogin yes. This line may already exist and be commented out with a "#". In this case, remove the "#" and eventually change prohibit-password to yes
restart ssh server: systemctl restart ssh.service
configure the BB image for use with driveboardapp:
ssh to BBB: ssh root@lasersaur.local
configure wifi:
plug your wifi usb dongle and verify it's being recognized running dmesg, last lines should list some info on the newly inserted device. If not you can try to add drivers following this guide
run connmanctl
at the connmanctl prompt enter enable wifi
now enter scan wifi and after services, take note of the string next to your wifi SSID
at the connmanctl prompt enter agent on and then connect wifi_78abbb9bd6ac_56696e617931393930_managed_psk replacing the long string with what you got for your wifi
when requested enter your passphrase. After a while you will be connected to your wifi
you can set a static IP with the connmanctl command: config wifi_78abbb9bd6ac_56696e617931393930_managed_psk --ipv4 manual 192.168.1.123 255.255.255.0 192.168.1.1 --nameservers 8.8.8.8 replacing parameters for your needs
disable HDMI to avoid wifi issues and enable UART1. Edit /boot/uEnv.txt and uncomment the lines:#disable_uboot_overlay_video=1 and #disable_uboot_overlay_audio=1
edit and change the line #uboot_overlay_addr4=/lib/firmware/<file4>.dtbo to uboot_overlay_addr4=/lib/firmware/BB-UART1-00A0.dtbo
Official BB images ( beagleboard.org images )
More recent Beagle Board official image with linux kernel 4 provide improved networking stability and updated wifi divers with better support for usb dongles. This branch make use of Adafruit BeagleBone-IO-Python library for dealing with GPIO. It was tested with Debian 9.5 2018-10-07 4GB SD IoT image and is backward compatible with the Lasersaur BBB Image v15.01
To try this branch:
ssh debian@beaglebone.local
temppwd
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh
beaglebone
tolasersaur
beaglebone
tolasersaur
anywhere in the file. Save and rebootsudo passwd root
. Enter a new root passwordsu -
to switch to root userPermitRootLogin yes
. This line may already exist and be commented out with a "#". In this case, remove the "#" and eventually changeprohibit-password
toyes
systemctl restart ssh.service
ssh root@lasersaur.local
dmesg
, last lines should list some info on the newly inserted device. If not you can try to add drivers following this guideconnmanctl
enable wifi
scan wifi
and afterservices
, take note of the string next to your wifi SSIDagent on
and thenconnect wifi_78abbb9bd6ac_56696e617931393930_managed_psk
replacing the long string with what you got for your wificonfig wifi_78abbb9bd6ac_56696e617931393930_managed_psk --ipv4 manual 192.168.1.123 255.255.255.0 192.168.1.1 --nameservers 8.8.8.8
replacing parameters for your needs#disable_uboot_overlay_video=1
and#disable_uboot_overlay_audio=1
#uboot_overlay_addr4=/lib/firmware/<file4>.dtbo
touboot_overlay_addr4=/lib/firmware/BB-UART1-00A0.dtbo
systemctl disable bonescript.service
systemctl disable bonescript.socket
systemctl disable bonescript-autorun.service
apt-get update && apt-get install python-imaging
apt-get install avrdude
git clone https://github.com/luky83/driveboardapp.git
cd driveboardapp
git checkout debian9.5
python backend/app.py
Run driveboardapp as systemd service at boot:
cp /root/driveboardapp/scripts/driveboardapp.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable driveboardapp.service
systemctl start driveboardapp.service
Install Adafruits wifi reset
cd ~
apt-get update && apt-get install ntpdate
ntpdate -b -s -u pool.ntp.org
Optional upgrade everything
apt-get update
apt-get dist-upgrade
cd /opt/scripts/tools/
git pull
./update_kernel.sh
reboot