Nh5capeSoftware

From eLinux.org
Revision as of 10:37, 29 September 2014 by Vic99 (talk | contribs)
Jump to: navigation, search

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
You may need to run once

sudo depmod

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 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

Kernel 3.14

Download kernel source

git clone https://github.com/beagleboard/kernel.git
cd kernel
git checkout origin/3.14 -b beaglebone-3.14
./patch.sh
cd ..
wget http://www.cembsoft.com/user/lcdCape/patches/nh5cape_3.14.patch
patch -p1 < nh5cape_3.14.patch
cd kernel
cp ../configs/beaglebone .config

make it with cross compiler - whatever you want.
When it asks for kernel configuration - navigate to drivers - input - touchscreen and enable ft5x0x_ts driver

Kernel 3.15

Download kernel source

git clone https://github.com/RobertCNelson/bb-kernel.git
cd bb-kernel/
git checkout origin/am33x-v3.15 -b tmp
wget http://www.cembsoft.com/user/lcdCape/patches/nh5cape_3.15.patch
wget http://www.cembsoft.com/user/lcdCape/patches/nh5cape_touchscreen.patch
patch -p1 < nh5cape_touchscreen.patch
patch -p1 < nh5cape_3.15.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

Rowboat android

Follow instructions from https://code.google.com/p/rowboat/wiki/JellybeanOnBeaglebone_WithSGX for download and build rowboat source
Download patch from http://www.cembsoft.com/user/lcdCape/patches/rowboat-android.patch
Copy patch to android source root folder
Apply the patch

patch -p1 < rowboat-android.patch

Enable ft5x0x_ts in drivers - input - touchscreen
Rebuild the kernel