Difference between revisions of "Nh5capeSoftware"

From eLinux.org
Jump to: navigation, search
(Ubuntu 14.04 with kernel 3.8 (cape manager) and kernel 3.15)
Line 61: Line 61:
 
sudo dd if=./rowboat-android-3.2-030914.img of=/dev/sdX; sync
 
sudo dd if=./rowboat-android-3.2-030914.img of=/dev/sdX; sync
 
</pre>
 
</pre>
 +
 +
==Build Ubuntu kernel==
 +
===Kernel 3.8===
 +
Download kernel source
 +
<pre>
 +
git clone https://github.com/RobertCNelson/bb-kernel.git
 +
cd bb-kernel/
 +
git checkout origin/am33x-v3.8 -b tmp
 +
wget http://www.cembsoft.com/user/lcdCape/patches/nh5cape_3.8.patch
 +
wget http://www.cembsoft.com/user/lcdCape/patches/nh5cape_touchscreen.patch
 +
patch -p1 < nh5cape_touchscreen.patch
 +
patch -p1 < nh5cape_3.8.patch
 +
</pre>
 +
For the first time run
 +
<pre>
 +
./build_kernel.sh
 +
</pre>
 +
For the next times
 +
<pre>
 +
tools/rebuild.sh
 +
</pre>
 +
When it asks for kernel configuration - navigate to drivers - input - touchscreen and enable ft5x0x_ts driver

Revision as of 09:59, 29 September 2014

Install Ubuntu

Ubuntu 14.04 with kernel 3.15

Download ubuntu 14.04 with kernel 3.15 from http://www.cembsoft.com/user/lcdCape/ubuntu-14.04-kernel-3.15/ubuntu-3.15-020914.img.gz

gunzip ubuntu-3.15-020914.img.gz
sudo dd if=./ubuntu-3.15-020914.img of=/dev/sdX; sync

This image comes with preinstalled tslib and SGX libraries.

User: ubuntu
Password: temppwd

tslib

sudo su
ts_test

SGX demo

cd /opt/gfxsdkdemos/ogles2/
./OGLES2ChameleonMan

This image should be booted with pressed BOOT button. If you want to eliminate this - connect BBB as USB slave to PC and wait for boot. When it will recognized as USB disk - enter and rename file MLO to something else. It will enable boot from SD card only.

For graphic interface:

sudo apt-get install lxde

X11 should be changed to 24 bit for correct color display (change default color depth to 24)

sudo nano /etc/X11/xorg.conf

Ubuntu 14.04 with kernel 3.8 (cape manager) and kernel 3.15

Download ubuntu 14.04 from http://www.cembsoft.com/user/lcdCape/ubuntu-14.04-3.8-3.15/ubuntu-14.04-3.8-3.15-140914.img.gz
It boots with kernel 3.8.13
If you want to change kernel to 3.15 - open file /boot/uEnv.txt
Find the following lines:

#uname_r=3.15.10-bone8
uname_r=3.8.13-bone64.1

Change the kernel by comment (add #) and uncomment (remove #) the desired kernel

Install Android

Android 4.2.2 with kernel 3.2

Download rowboat android image from http://www.cembsoft.com/user/lcdCape/android-3.2/rowboat-android-3.2-030914.img.gz

gunzip rowboat-android-3.2-030914.img.gz
sudo dd if=./rowboat-android-3.2-030914.img of=/dev/sdX; sync

Build Ubuntu kernel

Kernel 3.8

Download kernel source

git clone https://github.com/RobertCNelson/bb-kernel.git
cd bb-kernel/
git checkout origin/am33x-v3.8 -b tmp
wget http://www.cembsoft.com/user/lcdCape/patches/nh5cape_3.8.patch
wget http://www.cembsoft.com/user/lcdCape/patches/nh5cape_touchscreen.patch
patch -p1 < nh5cape_touchscreen.patch
patch -p1 < nh5cape_3.8.patch

For the first time run

./build_kernel.sh

For the next times

tools/rebuild.sh

When it asks for kernel configuration - navigate to drivers - input - touchscreen and enable ft5x0x_ts driver