Skip to content

Conversation

@luky83
Copy link

@luky83 luky83 commented Jun 27, 2019

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:

  • get latest Beagle Board official image
  • 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
    • disable BB builtin web server
      • systemctl disable bonescript.service
      • systemctl disable bonescript.socket
      • systemctl disable bonescript-autorun.service
  • reboot and install driveboardapp and dependencies
    • install python-imaging: apt-get update && apt-get install python-imaging
    • install avrdude: apt-get install avrdude
    • clone this repo: git clone https://github.com/luky83/driveboardapp.git
    • cd driveboardapp
    • checkout debian9.5 branch : git checkout debian9.5
    • run python backend/app.py
    • END

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

Optional upgrade everything

  • apt-get update
  • apt-get dist-upgrade
  • cd /opt/scripts/tools/
  • git pull
  • ./update_kernel.sh
  • reboot

@luky83 luky83 marked this pull request as ready for review June 27, 2019 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant