Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (39 sloc) 2.75 KB
description
How to build a working DroneBridge image for Raspberry Pi

Image Build

It is highly recommended to modify the provided images since they already come with patched drivers and some other optimizations.

The image for DroneBridge v0.6 is based on Raspbian Jessy Light with an updated/custom Kernel, bootcode and drivers to support the Raspberry Pi 3B+.

With the following steps you should be able to produce a working image yourself.

The list may be incomplete

  1. Get the latest Raspbian Lite ISO image and write it to a SD card.

  2. Get the latest (already patched) Kernel sources for the DroneBridge project. Or create a custom Kernel.

  3. Compile and install the Kernel for ARM v6 (Pi0w) & v7 (Pi2+) & v8 (Pi4)

  4. Create a new patition named "DroneBridge" & format it with exFAT. Add the new patition to fstab

  5. Adjust the resize scripts inside /etc/init.d/

  6. Add /lib/udev/rules.d/51-android.rulesto enable USBBridge

  7. Install the following python packages: apt install python3.7 python3-pip ntp python3-psutil python3-serial python3-sysv-ipc python3-netifaces python3-rpi.gpio python3-evdev joystick hostapd

  8. sudo pip3 install pyric pycryptodomex

  9. Install the following packages/libs: cmake wiringPi udhcpdopenvglibusb-1.0-0.dev libpcap-dev exfat-fuse exfat-utils dos2unix pump

  10. Compile Raspberry Pi media libs

    cd /opt/vc/src/hello_pi/
    make
  11. Deactivate the cron service and all other services that you do not need

  12. Add following lines to /etc/dhcpcd.confto make the hotpot work. For the hotspot we use udhcpd denyinterfaces wifihotspot0 denyinterfaces wlan0

  13. Clone the DroneBridge for Raspberry Pi git to /home/pi

  14. Compile the DroneBridge modules using cmake . && make

  15. Copy the start_db file to /etc/init.d/

    sudo cp /home/pi/DroneBridge/start_db /etc/init.d/start_db
    sudo update-rc.d -f start_db remove
    sudo update-rc.d start_db defaults
  16. Add the DroneBridge syslog server to /etc/init.d/rsyslog script or replace the file with the provided rsyslog service file

  17. Edit logrotation to manage DroneBridge/log/db_modules.log

  18. Copy the DroneBridgeConfig.ini, osdconfig.txt, apconfig.txt and plugins folder to /DroneBridge

  19. Create a folder named /DroneBridge/osdfonts and place the fonts you want to use for osd inside it. Do not forget about the osdicons.ttf

  20. Create a symbolic link from /DroneBridge/osdconfig.txt to /home/pi/DroneBridge/osd/osdconfig.h

  21. Add a line to init.d/raspbi-config to start the DroneBridge splash screen /home/pi/dronebridge/splash

  22. Connect the WiFi adapters and check the EIRP of your system.

You can’t perform that action at this time.