Difference between revisions of "Nh5capeSoftware"

From eLinux.org
Jump to: navigation, search
Line 12: Line 12:
 
http://www.cembsoft.com/user/lcdCape/ubuntu-14.04-kernel-3.15/ubuntu-14.04-3.15-a1-221014.img.gz <br>
 
http://www.cembsoft.com/user/lcdCape/ubuntu-14.04-kernel-3.15/ubuntu-14.04-3.15-a1-221014.img.gz <br>
 
<pre>
 
<pre>
gunzip ubuntu-3.15-020914.img.gz
+
gunzip ubuntu-14.04-3.15-a1-221014.img.gz
sudo dd if=./ubuntu-3.15-020914.img of=/dev/sdX; sync
+
sudo dd if=./ubuntu-14.04-3.15-a1-221014.img of=/dev/sdX; sync
 
</pre>
 
</pre>
 
For nh5cape rev. A2 (bought after 18-Oct-2014)<br>
 
For nh5cape rev. A2 (bought after 18-Oct-2014)<br>
Line 78: Line 78:
 
==Install Android==
 
==Install Android==
 
===Android 4.2.2 with kernel 3.2===
 
===Android 4.2.2 with kernel 3.2===
 +
Updated 22-Oct-2014 for rev. A1 and A2 <br>
 
Download rowboat android image from  
 
Download rowboat android image from  
http://www.cembsoft.com/user/lcdCape/android-3.2/rowboat-android-3.2-030914.img.gz
+
http://www.cembsoft.com/user/lcdCape/android-3.2/rowboat-android-3.2-221014.img.gz
  
 
<pre>
 
<pre>
gunzip rowboat-android-3.2-030914.img.gz
+
gunzip rowboat-android-3.2-221014.img.gz
sudo dd if=./rowboat-android-3.2-030914.img of=/dev/sdX; sync
+
sudo dd if=./rowboat-android-3.2-221014.img of=/dev/sdX; sync
 
</pre>
 
</pre>
  

Revision as of 21:28, 22 October 2014

As on 22-Oct-2014 this wiki is in updating state
Links and instructions updating
I will post update when it will be done

Install Ubuntu

Ubuntu 14.04 with kernel 3.15

Updated 22-Oct-2014 for rev. A1 and A2
Download ubuntu 14.04 with kernel 3.15
For nh5cape rev. A1
http://www.cembsoft.com/user/lcdCape/ubuntu-14.04-kernel-3.15/ubuntu-3.15-020914.img.gz
or
http://www.cembsoft.com/user/lcdCape/ubuntu-14.04-kernel-3.15/ubuntu-14.04-3.15-a1-221014.img.gz

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

For nh5cape rev. A2 (bought after 18-Oct-2014)
http://www.cembsoft.com/user/lcdCape/ubuntu-14.04-kernel-3.15/ubuntu-14.04-3.15-221014.img.gz
You will need 4GB SD card.

gunzip ubuntu-3.15-221014.img.gz
sudo dd if=./ubuntu-14.04-3.15-221014.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

Updated 22-Oct-2014 for rev. A1 and A2
Download ubuntu 14.04 with kernel 3.8 from http://www.cembsoft.com/user/lcdCape/ubuntu-14.04-3.8/ubuntu-14.04-3.8-221014.img.gz
You will need 4GB SD card.
This image supports all revisions of nh5cape.

gunzip ubuntu-14.04-3.8-221014.img.gz
sudo dd if=./ubuntu-14.04-3.8-221014.img of=/dev/sdX; sync

This image comes with preinstalled tslib.

User: ubuntu
Password: temppwd

tslib

sudo su
ts_test


Install Android

Android 4.2.2 with kernel 3.2

Updated 22-Oct-2014 for rev. A1 and A2
Download rowboat android image from http://www.cembsoft.com/user/lcdCape/android-3.2/rowboat-android-3.2-221014.img.gz

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

Build Kernel

Kernel 3.8

Updated 22-Oct-2014 for rev. A1 and A2
Download kernel source

git clone https://github.com/RobertCNelson/bb-kernel.git
cd bb-kernel/
git checkout origin/am33x-v3.8 -b tmp
./build_kernel.sh

Patch it

wget http://www.cembsoft.com/user/lcdCape/patches/nh5cape_3.8.patch
wget http://www.cembsoft.com/user/lcdCape/patches/nh5cape_touchscreen.patch
wget http://www.cembsoft.com/user/lcdCape/patches/videodriver_3.8.patch
patch -p1 < nh5cape_touchscreen.patch
patch -p1 < nh5cape_3.8.patch

Videodriver patch needed for 5" cape

patch -p1 < videodriver_3.8.patch

Rebuild the kernel

tools/rebuild.sh

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

Kernel 3.15

Updated 22-Oct-2014 for rev. A1 and A2
Download kernel source

git clone https://github.com/RobertCNelson/bb-kernel.git
cd bb-kernel/
git checkout origin/am33x-v3.15 -b tmp
./build_kernel.sh
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

Open file KERNEL/arch/arm/boot/dts/am335x-boneblack.dts and find at the end the following lines

/*http://elinux.org/Nh5cape*/
//#include "am335x-bone-nh5cape-a1.dtsi"
#include "am335x-bone-nh5cape.dtsi"
//#include "am335x-bone-nh7cape.dtsi"

Currently selected nh5cape rev. A2 (bought after 18-Oct-2014)
For nh5cape rev. A1 it should look

#include "am335x-bone-nh5cape-a1.dtsi"
//#include "am335x-bone-nh5cape.dtsi"
//#include "am335x-bone-nh7cape.dtsi"

Rebuild the kernel

tools/rebuild.sh

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

Rowboat android

Updated 22-Oct-2014 for rev. A1 and A2
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