_Using Win32DiskImager (for windows)

_downloaded 2012-08-16-wheezy-raspbian from website ( http://www.raspberrypi.org/downloads )

_burnt the image onto a 16Gb Class 10 (up to 95MB/s) Sandisk Extreme Pro card

_Powerup the Pi using a 5V 1Amp supply

_Note: Italics is what is typed into the Pi shell or added to scripts/code

 

_On Pi startup menu:

- expand to use the whole card

- change the timezone to Aust -> Syd

- change local to AST-UTF-8 and default for system GB-UTF-8

- turn on the SSH server

- do an update

 

_Then from the shell, Overclock:
sudo nano /boot/config.txt
_Added these two lines after the last line:

arm_freq=855

sdram_freq=500

 

_Get the ipaddress for eth0

ifconfig eth0

 

_Then shutdown and power cycle the Pi so the card can be expanded and new config can be used

sudo shutdown now

 

_ Go to the shell (via ssh use IP address is easiest, tunnel X through ssh and for windows use X server like Xming)

sudo apt-get update
sudo apt-get install git g++ python libusb-1.0-0-dev freeglut3-dev openjdk-6-jdk doxygen graphviz

 

_ Get OpenNI and the drivers (this failed many time but keep trying up to 5 times)

git clone https://github.com/OpenNI/OpenNI.git
git clone git://github.com/avin2/SensorKinect.git
git clone https://github.com/PrimeSense/Sensor

 

_The calc_jobs_number() function in the scripts doesn't seem to work on the Pi, so change ~/OpenNI/Platform/Linux/CreateRedist/Redist_OpenNi.py python script from

MAKE_ARGS += ' -j' + calc_jobs_number()

_to
MAKE_ARGS += ' -j1'

_ Must also change the Arm compiler settings for this distribution of the Pi

nano ~/OpenNI/Platform/Linux/Build/Common/Platform.Arm

_from

CFLAGS += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp #-mcpu=cortex-a8

_to

CFLAGS += -mtune=arm1176jzf-s -mfpu=vfp -mfloat-abi=hard

 

_Then run

cd ~/OpenNI/Platform/Linux/CreateRedist/

./RedistMaker.Arm

cd ~/OpenNI/Platform/Linux/Redist

sudo ./install.sh

 

Go to the Redist and run install

cd ~/OpenNI/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-Arm-v1.5.2.23

sudo ./install.sh

 

_ Also edit the Sensor and SensorKinect makefile CFLAGS parameters

nano ~/Sensor/Platform/Linux/Build/Common/Platform.Arm

nano ~/SensorKinect/Platform/Linux/Build/Common/Platform.Arm

 

_ and the sensor and SensorKinect scripts

nano ~/Sensor/Platform/Linux/CreateRedist/RedistMaker

nano ~/SensorKinect/Platform/Linux/CreateRedist/RedistMaker

_ for both, change

make -j$(calc_jobs_number) -C ../Build

_to

make j1 -C ../Build

 

_ The create the redistributables and run the installs for both Sensor and SensorKinect

cd ~/SensorKinect/Platform/Linux/CreateRedist/

RedistMaker Arm

cd ~/SensorKinect/Platform/Linux

/sudo ./install.sh

 

cd ~/Sensor/Platform/Linux/CreateRedist/

RedistMaker Arm

cd ~/Sensor/Platform/Linux/Redist/Sensor-Bin-Linux-Arm-v5.1.0.41

sudo ./install.sh

 

 

_you need a powered hub to run the Xtion

_ If you get timeout errors it is because the hub isn't giving enough power, even if it shows up in "lsusb" I had to unplug the keyboard and mouse from the hub before it would work

_ I had to try different ports on the hub to get some demos to work, unplug and plug in again in a different port

 

 

_ Try running the sample reading program

cd ~/OpenNI/Platform/Linux/Bin/Arm-Release

_works

sudo ./Sample-NiCRead

sudo ./Sample-NiBackRecorder time 1 depth vga

sudo ./Sample-NiSimpleRead

 

_Should get something like:

Frame 56 Middle point is: 7030. FPS: 0.000000

Frame 57 Middle point is: 7030. FPS: 0.000000

Frame 58 Middle point is: 6889. FPS: 0.000000

Frame 59 Middle point is: 6889. FPS: 0.000000

Frame 60 Middle point is: 7030. FPS: 0.000000

Frame 61 Middle point is: 6889. FPS: 0.000000

Frame 62 Middle point is: 7030. FPS: 0.000000

Frame 63 Middle point is: 7030. FPS: 0.000000

Frame 64 Middle point is: 7030. FPS: 30.411921

Frame 65 Middle point is: 7030. FPS: 30.409813

Frame 66 Middle point is: 7030. FPS: 30.402641

Frame 67 Middle point is: 7030. FPS: 30.396019

Frame 68 Middle point is: 6889. FPS: 30.223700

Frame 69 Middle point is: 7030. FPS: 30.302351

Frame 70 Middle point is: 6889. FPS: 30.377052

Frame 71 Middle point is: 6889. FPS: 30.369030

Frame 72 Middle point is: 6889. FPS: 30.364296

Frame 73 Middle point is: 6889. FPS: 30.359112

Frame 74 Middle point is: 6753. FPS: 30.353882

Frame 75 Middle point is: 6753. FPS: 30.343782

Frame 76 Middle point is: 6753. FPS: 30.339817

Frame 77 Middle point is: 6753. FPS: 30.333447

Frame 78 Middle point is: 6753. FPS: 30.328482

Frame 79 Middle point is: 6753. FPS: 30.319393

Frame 80 Middle point is: 6753. FPS: 30.315834

Frame 81 Middle point is: 6753. FPS: 30.306580

Frame 82 Middle point is: 6753. FPS: 30.305550

Frame 83 Middle point is: 6753. FPS: 30.296150

Frame 84 Middle point is: 6753. FPS: 30.295959

Frame 85 Middle point is: 6753. FPS: 30.286900

Frame 86 Middle point is: 6889. FPS: 30.282373

Frame 87 Middle point is: 6753. FPS: 30.272305

Frame 88 Middle point is: 6753. FPS: 30.272570

Frame 89 Middle point is: 6753. FPS: 30.268557

Frame 90 Middle point is: 6753. FPS: 30.262894

Frame 91 Middle point is: 6753. FPS: 30.258814

Frame 92 Middle point is: 6753. FPS: 30.261051

Frame 93 Middle point is: 6753. FPS: 30.257614

Frame 94 Middle point is: 6753. FPS: 30.277014

Frame 95 Middle point is: 6753. FPS: 30.559057

Frame 96 Middle point is: 6753. FPS: 30.558140

Frame 97 Middle point is: 6753. FPS: 30.261520

Frame 98 Middle point is: 6753. FPS: 30.257196

Frame 99 Middle point is: 6753. FPS: 30.273470

Frame 100 Middle point is: 6753. FPS: 30.297235

Frame 101 Middle point is: 6753. FPS: 30.297777

Frame 102 Middle point is: 6753. FPS: 30.270435

 

_Note that sometimes I get

Open failed: Failed to send a USB control request!

_or

Device: PrimeSense/SensorV2/5.1.0.41: The device is not connected!

 

To make the image

http://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi