A BeagleBone Black based acquisition system (based on Derek Molloy PRUADC example)
This is aquisition system with a developed laravel user interface
The version used to develop the AS was Debian 8.4 2016-05-13 downloaded directly from BeagleBoard.org Latest Firmware Images page, here is the download link:
The Linux image used was the 3.8.13-bone70, you can get it using the apt-get command as follows:
apt-get install linux-headers-3.8.13-bone70
apt-get install linux-image-3.8.13-bone70
Don't forget to reboot after both headers and linux image are installed using
-reboot
The database used is PostgreSQL, at the time of installation the newest version was 9.4, use the next line to install it
apt-get install postgresql
Nginx server was used, the first step for the new server installation is to remove Apache2 (default server in BB)
apt-get remove apache2
apt-get autoremove
And then we have to disable the port 80, which is used by the BB to display the main page. Nginx uses this port to display the demo page, which is usefull to check if the installation was successful
systemctl disable bonescript.service
systemctl disable bonescript.socket
systemctl disable bonescript-autorun.service
-reboot
Then install Nginx (version 1.6.2 was used)
apt-get install nginx
Nginx installation can be checked in a browser typing the BB IP used
The version installed was php 5.6.22
Install the newest version and the FastCGI Process Manager typing the following lines in the command window
apt-get install php5 php5-fpm
apt-get install php5-pgsql
The last code line install the pgsql extension to be used by PostgreSQL
For laraver installation is necessary to first install Composer (follow the directions from the link). Once comopser is downloaded move the file composer.phar to bin folder.
mv composer.phar /usr/local/bin/composer
Follow the instructions stated in the Digital Ocean blog. How to Install Laravel with an Nginx Web Server on Ubuntu 14.04, in order to install laravel.
Disable the HDMI cape adding the next lines to the uEnv.txt file located in the boot folder
cape_disable=/sys/device/bone_capemgr.9/slots
reboot
Clone the Acquisition System folder into /root, then build the bash script "setup", this will build all the necessary files for the AS to work
chmod u+x setup
./setup
run the laravel server from the /var/www/laravel folder by
php artisan serve --host="your ip" --port=4563("Can be any port")