BeagleBone Black

Reviews and other little ventures that don't quite fit into the other forums
Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Mon 13 Oct 13 2014 3:42 am

edit /etc/issue.net

to get rid of unwanted login text message.

Can also check /etc/ssh/sshd_config for more settings

Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Mon 13 Oct 13 2014 9:49 am

cd /opt/scripts/tools/
nano kernel_update.sh

copy the content from https://github.com/RobertCNelson/boot-s ... _kernel.sh

or download from https://github.com/RobertCNelson/boot-s ... ster/tools

chmod +x update_kernel.sh
apt-get install lsb-release
./update_kernel.sh

Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Mon 13 Oct 13 2014 11:22 am

Setting up OpenCV

apt-get install libopencv-dev python-opencv build-essential

Also see url for other ideas:-

https://solarianprogrammer.com/2014/04/ ... ck-ubuntu/

Also see:-

http://elementztechblog.wordpress.com/2 ... -machines/

but compile with:-

g++ -Wall -g -o DisplayCamera main.cpp -I /usr/include/opencv2 -L /usr/bin -lopencv_core -lopencv_highgui -lopencv_imgproc

To update and/or build OpenCV, follow:-

http://elementztechblog.wordpress.com/2 ... -in-linux/

latest version from:-

http://sourceforge.net/projects/opencvlibrary/

you may have to:-

apt-get install unzip
apt-get install python2.7 (probably not needed as the exact version 2.7.3 cannot be selected)

More getting started videos:-

http://www.adafruit.com/blog/2014/03/18 ... eboardorg/

Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Mon 13 Oct 13 2014 9:33 pm


Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Tue 14 Oct 14 2014 11:19 pm

To configure HDMI console fonts etc. use:-

dpkg-reconfigure console-setup

To change base HDMI resolution at boot:-

nano /boot/uEnv.txt

add the following line:-

optargs="consoleblank=0" video=HDMI-A-1:1280x1024@60

after cmdline= ....

consoleblank=0 is to prevent screensaver timeout on HDMI
Leaving out the video=.... part will default to the highest detected resolution

Valid video modes can be found here:-

http://elinux.org/Beagleboard:BeagleBon ... ed_working

You will also need to uncomment the following line under the Audio Cape section:-

cape_disable=capemgr.disable_partno=BB-BONELT-HDMI

Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Wed 15 Oct 15 2014 12:53 am

edit /lib/init/vars.sh

change FSCK=yes

Include automatic FSCK upon boot in case of corruption.

Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Wed 15 Oct 15 2014 1:32 am

If LXDE is installed, you should do the following:-

http://hongouru.blogspot.com.ar/2012/07 ... uldnt.html

add "LXDE;" (without the double quotes and plus the semicolon, didn't try without it)
to this file "/etc/xdg/autostart/gnome-keyring-pkcs11.desktop" by editing it with whatever text editor you preffer, I'll use "nano"

1 - in a terminal type (as root or with sudo): nano /etc/xdg/autostart/gnome-keyring-pkcs11.desktop

[Desktop Entry]
Type=Application
Name=Certificate and Key Storage
Comment=GNOME Keyring: PKCS#11 Component
Exec=/usr/bin/gnome-keyring-daemon --start --components=pkcs11
OnlyShowIn=GNOME;Unity;LXDE;
X-GNOME-Autostart-Phase=Initialization
X-GNOME-AutoRestart=false
X-GNOME-Autostart-Notify=true
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=gnome-keyring
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=3.2.2
NoDisplay=true
X-Ubuntu-Gettext-Domain=gnome-keyring

2 - after editing, make sure you save the changes

3 - RESTART YOUR PC

Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Wed 15 Oct 15 2014 8:36 am

Check CPU utilization:-

top

or get more info and methods here:-

http://www.cyberciti.biz/tips/how-do-i- ... ation.html

Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Wed 29 Oct 29 2014 8:41 am

Setting up for IO

sudo apt-get install am335x-pru-package

cd /home/pi/code
git clone https://github.com/VegetableAvenger/BBBIOlib.git
cd BBBIOlib
make
make ADC
./ADC

Daniel Wee
Site Admin
Posts: 2073
Joined: Wed 25 Feb 25 2009 8:00 pm

Re: BeagleBone Black

Post by Daniel Wee » Sun 02 Nov 02 2014 10:49 pm

Installing Xenomai (real time)

Log in as root to perform the following.

echo 'deb http://deb.dovetail-automata.com wheezy main' > /etc/apt/sources.list.d/machinekit.list
apt-get update
apt-get install dovetail-automata-keyring
sudo apt-get install linux-image-xenomai.beaglebone-omap
apt-get install machinekit-xenomai
adduser machinekit
usermod -aG sudo,xenomai,kmem machinekit
echo -e "# No sudo password for machinekit user\nmachinekit ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/90-machinekit

cd ~
git clone https://github.com/cdsteinkuehler/linux-dev
cd linux-dev
sudo apt-get install device-tree-compiler lzma lzop libncurses5-dev
git config --global user.name "Daniel Wee"
git config --global user.email "daniel@tsebi.com"
./build_kernel.sh

http://sagar.se/xenomai-debian-on-bbb.html

edit system.sh and set MMC=/dev/mmcblk0 before running ./tools/install_kernel ....

Older method:-

http://www.machinekit.io/docs/packages-debian/
https://github.com/strahlex/asciidoc-sa ... bian-Image

Post Reply