2. Setup - Autonomia/Autonomia-Device-Sample-RPI GitHub Wiki
Download and Boot
- Download https://www.raspberrypi.org/downloads/raspbian (as of today the latest is
2017-03-02-raspbian-jessie.zip) unzip 2017-03-02-raspbian-jessie.zip-> creates2017-03-02-raspbian-jessie.imgsudo dd if=2017-03-02-raspbian-jessie.img of=/dev/mmcblk0 bs=8M oflag=syncapprox 13 min
- Boot the Pi, connect to the Internet, if later remotely you need to find the IP then run this
sudo arp-scan --localnet
Update & Dependencies
sudo apt-get updatesudo apt-get install libpython2.7-devsudo pip install http_parsersudo apt-get install libfontconfig1-devsudo apt-get install libfribidi-devsudo apt-get install libmp3lame-devsudo apt-get install libx264-dev
Build FFmpeg
sudo sucd /usr/srcgit clone https://git.ffmpeg.org/ffmpeg.git ffmpegcd ffmpeg- GPU
apt-get install libomxil-bellagio-dev./configure --enable-gpl --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfreetype --enable-libfontconfig --enable-libfribidi --enable-omx --enable-omx-rpi
- No GPU
./configure --enable-gpl --enable-nonfree --enable-libx264 --enable-libmp3lame --enable-libfreetype --enable-libfontconfig --enable-libfribidi
make -j4approx 30 min
make installexit-> quit earliersudo su
Install Autonomia Device SDK
cd ~git clone https://github.com/Autonomia/Autonomia-Device-SDK-Pythoncd Autonomia-Device-SDK-Pythonsudo python setup.py install
Backup the SD Card
- Linux
lsblk
mmcblk0 179:0 0 14.9G 0 disk |-mmcblk0p1 179:1 0 63M 0 part |-mmcblk0p2 179:2 0 14.9G 0 partsudo dd if=/dev/mmcblk0 of=2017-03-02-raspbian-jessie-autonomia.img bs=40M status=progressapprox 5 min, file size will be 16GB because this is the SD Card size
- Truncate now, later it will be faster writing 7GB to the SD than 16GB image
truncate
- Compress to save space
tar -czf 2017-03-02-raspbian-jessie-autonomia.img.gz 2017-03-02-raspbian-jessie-autonomia.img