Programmable Eye In the Sky -- Radio Control
Branch: develop
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
manual_tests
src
test_src
virtual_environment_resources
.gitignore
README.txt
Rakefile

README.txt

Programmable Eye In the Sky -- Operating System

This project contains the code fore the PEIS plane, both the base and remote stations (remote goes on the plane).

= SETUP INSTRUCTIONS

- confirm the following programs are installed on your computer:
    - openssh
    - rake (from ruby)
    - python 2
    - pip
    - python2-virtualenv
- make sure you have an internet connection
- get the kernel 3.8 debian image from
    https://beagleboard.org/latest-images
    one that might work is:
    https://debian.beagleboard.org/images/bone-debian-7.11-lxde-4gb-armhf-2016-06-15-4gb.img.xz
- unxz the image archive
- use the dd command
    # dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && sync
    (thank you ArchWiki https://wiki.archlinux.org/index.php/USB_flash_installation_media#In_GNU.2FLinux)
- modify the image to enable eMMC flashing, described here:
    http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Flashing_eMMC
    in the file:
    /boot/uEnv.txt
    uncomment the line:
    #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

    to enable UART1 (serial)
    uncomment line, and append BB-UART1,am33xx_pwm,bone_pwm_P9_28 
    cape_enable=bone_capemgr.enable_partno=BB-UART1
- power off the BBB
- insert the micro SD
- power the BBB with the 5V barrel jack, while holding the boot button
- release the boot button a second after the user LEDs start to flash
    - the LEDs should start doing the night-rider pattern
- leave the BBB alone until it powers itself off
- remove the SD card
- install the pessary driver / udev rules from
    http://beagleboard.org/static/beaglebone/latest/README.htm#step2
- connect a live Ethernet port to the BBB
- power on the BBB and connect it to your computer using the USB port
- use the network manager of your operating system to connect to the BBB
    - you may need to modify the firewall
    - on archlinux:
        # dhcpcd <interface>
        where all interfaces are listed using:
        ip link

== BASE
- make sure there are no residual known_host configs for 192.168.7.2 in you ~/.ssh/known_hosts config file
- edit the flollowing files to change the base's IP from 192.168.7.2 to . . .8.2

    /etc/network/interfaces
        AND
    /etc/udhcpd.conf
        change all 192.168.7.### to 192.168.8.###

- reboot
- make sure there are no residual known_host configs for 192.168.8.2 in you ~/.ssh/known_hosts config file
- run
    rake base_setup
    inside the repository folder
- edit
    /etc/lightdm/lightdm.conf
    and replace "autologin-user=debian" with "autologin-user=root"
- reboot the BBB

== REMOTE
- make sure there are no residual known_host configs for 192.168.7.2 in you ~/.ssh/known_hosts config file
- run
    rake remote_setup
    inside the repository folder
- reboot the BBB