<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://elinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://elinux.org/api.php?action=feedcontributions&amp;user=RobertCNelson&amp;feedformat=atom</id>
		<title>eLinux.org - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/api.php?action=feedcontributions&amp;user=RobertCNelson&amp;feedformat=atom"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/Special:Contributions/RobertCNelson"/>
		<updated>2013-06-20T00:00:22Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.22alpha</generator>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-06-14T20:42:31Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* eMMC: BeagleBone Black */ BBB-eMMC-flasher-debian-7.0.0-2013-06-14.img.xz&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian 7.0.0 (wheezy)  ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x12 kernel&lt;br /&gt;
*** Panda: WiFi works again...&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 348fa1ba0e6e5183de7608b93035dea1  debian-7.0.0-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-06-14&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
== Debian Jessie (development snapshot) ==&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x12 kernel&lt;br /&gt;
*** Panda: WiFi works again...&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
**2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum debian-jessie-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 4ac593ab44c846d857f926fb710d84a4  debian-jessie-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf debian-jessie-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 cd debian-jessie-console-armhf-2013-06-14&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSDcard and Debian will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
BTW: we are only writing about 500Mb's to the eMMC so the script will only take about 5-6 Minutes after power on.&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/wheezy/BBB-eMMC-flasher-debian-7.0.0-2013-06-14.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-debian-7.0.0-2013-06-14.img.xz&lt;br /&gt;
 74dc3f8949c71621509545bfa06399d9  BBB-eMMC-flasher-debian-7.0.0-2013-06-14.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-06-14T20:40:35Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Demo Image */ 2013-06-14.tar.xz&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian 7.0.0 (wheezy)  ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x12 kernel&lt;br /&gt;
*** Panda: WiFi works again...&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 348fa1ba0e6e5183de7608b93035dea1  debian-7.0.0-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-06-14&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
== Debian Jessie (development snapshot) ==&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x12 kernel&lt;br /&gt;
*** Panda: WiFi works again...&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
**2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum debian-jessie-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 4ac593ab44c846d857f926fb710d84a4  debian-jessie-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf debian-jessie-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 cd debian-jessie-console-armhf-2013-06-14&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSDcard and Debian will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
BTW: we are only writing about 500Mb's to the eMMC so the script will only take about 5-6 Minutes after power on.&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/wheezy/BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
 ca0bcbf6ccb9b9bd5a5952a6284d58a2  BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-06-14T20:38:14Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* eMMC: BeagleBone Black */ BBB-eMMC-flasher-ubuntu-13.04-2013-06-14.img.xz&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x12 kernel&lt;br /&gt;
*** Panda: WiFi works again...&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 713ea6497dd02361e944467756f4a2fd  ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-06-14&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.06 -b v2013.06&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x12 kernel&lt;br /&gt;
*** Panda: WiFi works again...&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 ace6d265669cf7d6870be325279dd137  ubuntu-12.10-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-06-14&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into Ubuntu and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSD card and Ubuntu will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Script for Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
BTW: we are only writing about 500Mb's to the eMMC so the script will only take about 5-6 Minutes after power on.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
 If only two LED's stay lit and nothing happens, the board has crashed due to lack of power. Try with a 5Volt DC supply plugged in..&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/raring/BBB-eMMC-flasher-ubuntu-13.04-2013-06-14.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-ubuntu-13.04-2013-06-14.img.xz &lt;br /&gt;
 20bb403641135f035d49d85b414621a0  BBB-eMMC-flasher-ubuntu-13.04-2013-06-14.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure (Maverick's Alpha-1 needs this....)&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
Screenshot: (on my xm it's a little jerky at the moment, investigating..)&lt;br /&gt;
 http://rcn-ee.net/bugs/dsp/dsp_v3.2.1-x2-test.jpg&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Ubuntu will try to use the FBDEV video driver, however for the BeagleBoard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lucid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Changing DVI output resolution ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu 10.10 above defaults to a resolution of 1284x768@16. This is set in the boot.cmd file in the boot partition of the SD card. To change the resolution the DVI output, edit boot.cmd accordingly then recreate the boot.scr file by:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;Ubuntu 10.10&amp;quot; -d ./boot.cmd ./boot.scr&lt;br /&gt;
&lt;br /&gt;
Then reboot the BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
== S-Video ==&lt;br /&gt;
''(For configuring S-Video on Angstrom, click [[BeagleBoardAngstrom#Configuring_uEnv.txt_to_set_s-video_as_the_default_display|here]])''.&lt;br /&gt;
&lt;br /&gt;
===Process for setting up S-Video===&lt;br /&gt;
&lt;br /&gt;
S-video is tested to be working on 2.6.35-rc5-dl9. BeagleBoard s-video output has traditionally been enabled by &amp;quot;using bootargs (boot arguments) at uboot&amp;quot;. In newer versions of the BeagleBoard, the developers have made things easier by instructing U-Boot to look for a .scr file about a dozen lines long that is called cmd.boot.scr, and then follow said parameters. In Angstrom, no boot.scr file is needed, instead, an even easier system is used, where a simple editable .txt file called uEnv.txt containing these parameters suffices (Env is for &amp;quot;environment&amp;quot;). For some reason, in the Ubuntu download files, typically there a bit of convoluted process where uEnv.txt is called up, uEnv.txt says &amp;quot;Go read conf.boot.scr&amp;quot;, and cmd.boot.scr sets up the s-video.&lt;br /&gt;
&lt;br /&gt;
To make cmd.boot.scr, create a text file named cmd.boot, then convert it into a .scr file with mkimage by running the following commands on the terminal:&lt;br /&gt;
&lt;br /&gt;
First, you will probably need to get mkimage with apt-get. Run&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mkimage&lt;br /&gt;
&lt;br /&gt;
Next, convert your cmd.boot.scr&lt;br /&gt;
&lt;br /&gt;
    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage' -d boot.cmd boot.scr&lt;br /&gt;
&lt;br /&gt;
===Bootargs: make this cmd.boot to set s-video===&lt;br /&gt;
&lt;br /&gt;
* NTSC&lt;br /&gt;
&lt;br /&gt;
     omapfb.mode='''tv:ntsc''' &lt;br /&gt;
     omapdss.def_disp='''tv'''&lt;br /&gt;
&lt;br /&gt;
Bootargs that has been validated.&lt;br /&gt;
&lt;br /&gt;
     setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro vram=12M omapfb.mode=tv:ntsc omapdss.def_disp=tv &lt;br /&gt;
     fixrtc buddy=unknown'&lt;br /&gt;
&lt;br /&gt;
===Screen cutoff problem===&lt;br /&gt;
&lt;br /&gt;
NTSC resolution is supposed to be 640x480. However the edge bands around the TV screen differ from TV to TV. Output of '''fbset''' shown below:&lt;br /&gt;
&lt;br /&gt;
    mode &amp;quot;720x482-30&amp;quot;&lt;br /&gt;
         # D: 13.500 MHz, H: 15.734 kHz, V: 29.970 Hz&lt;br /&gt;
         geometry 720 482 720 482 32&lt;br /&gt;
         timings 74074 16 58 6 31 64 6&lt;br /&gt;
         rgba 8/16,8/8,8/0,0/0&lt;br /&gt;
    endmode&lt;br /&gt;
&lt;br /&gt;
Depending on your TV device, and what desktop you are running a certain amount of screen cutoff is likely to occur. This is called [http://en.wikipedia.org/wiki/Overscan overscan]. Typically, around 5-10% of the left and right edges of display are off the screen (using Ubuntu with xfce). This seems to be due to the fact that there is only one display resolution that is set for NTSC: &amp;lt;!-- I don't know about PAL--&amp;gt; 720 X 482. It is not possible to change this setting in the xfce4 Settings Manager like one would normally be able to do, because other options are greyed out/do not exist. Normally, even if the Settings Manager did not allow for it, a different resolution setting could be obtained by editing the xorg.conf file in /etc/X11/xorg.conf-4, or some similar place. HOWEVER there is no xorg.conf file in the Beagle version of xfce. xrandr shows the display is set to the minimum of 720x574. Adding an xorg.conf does not fix the problem, because Beagle takes its (analog) display resolution settings directly from the display driver, where 720 X 480 (720 X 574 for PAL &amp;lt;!-- This I gather, but I really don't know--&amp;gt; ) is hard coded in.  &lt;br /&gt;
&lt;br /&gt;
An inelegant but usable workaround for the xfce desktop environment is simply to create vertical and horizontal panels that fill up the space that is cut off on the screen. This is not a complete solution, but at least it will prevent maximized windows from going off into nowhere land.&lt;br /&gt;
&lt;br /&gt;
Truly fixing this would involve going into the display driver and reprogramming it to include additional S-video settings besides just NTSC and PAL. Specifically, to make the whole framebuffer fit on the screen you would need to adjust the overlay in the display driver, the OMAP DSS2. (Didn't test this yet. Some pointers from the driver's documentation below)&lt;br /&gt;
&lt;br /&gt;
    /sys/devices/platform/omapdss/overlay? directory:&lt;br /&gt;
    enabled		0=off, 1=on&lt;br /&gt;
    input_size		width,height (ie. the framebuffer size)&lt;br /&gt;
    manager		Destination overlay manager name&lt;br /&gt;
    name&lt;br /&gt;
    output_size		width,height&lt;br /&gt;
    position		x,y&lt;br /&gt;
    screen_width	width&lt;br /&gt;
    global_alpha   	global alpha 0-255 0=transparent 255=opaque&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Download SRC&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Optional building the deb file&lt;br /&gt;
 ./build_deb.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Swapfile =&lt;br /&gt;
&lt;br /&gt;
== Using a File for Swap Instead of a Partition ==&lt;br /&gt;
&lt;br /&gt;
On the Bealgeboard you should expect to need a swap file given the limitation of how much RAM they have (between 256&amp;amp;nbsp;MB and 512&amp;amp;nbsp;MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256&amp;amp;nbsp;MB not being enough RAM).&lt;br /&gt;
&lt;br /&gt;
Some images such as those from Linaro.org do not come with a swap partition or any swap space allocated.&lt;br /&gt;
&lt;br /&gt;
Under Linux swap space can be either a dedicated partition or a single file. Both can be mounted as swap which the OS can access.&lt;br /&gt;
&lt;br /&gt;
=== Creating a Swapfile ===&lt;br /&gt;
&lt;br /&gt;
The following commands will create a 1 gigabyte file, lock access to only root, format it as swap and then advertise it to the OS.&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/cache/swap/   &lt;br /&gt;
 sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024&lt;br /&gt;
 sudo chmod 0600 /var/cache/swap/swapfile &lt;br /&gt;
 sudo mkswap /var/cache/swap/swapfile &lt;br /&gt;
 sudo swapon /var/cache/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
To ask the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:&lt;br /&gt;
&lt;br /&gt;
 /var/cache/swap/swapfile    none    swap    sw    0   0&lt;br /&gt;
&lt;br /&gt;
To verify that the swapfile is accessilble as swap to the OS, run &amp;quot;top&amp;quot; of &amp;quot;htop&amp;quot; at a console.&lt;br /&gt;
&lt;br /&gt;
= Ubuntu Software =&lt;br /&gt;
&lt;br /&gt;
== Wi-Fi Networking (command line) ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&lt;br /&gt;
It is possible and relatively easy to configure a Wi-Fi card from the command line.&lt;br /&gt;
&lt;br /&gt;
You will need to edit the /etc/network/interfaces file. There are several guides available via Google.&lt;br /&gt;
&lt;br /&gt;
This is a particularly useful guide http://ubuntuforums.org/showthread.php?t=202834 &lt;br /&gt;
&lt;br /&gt;
A sample /etc/network/interfaces file for a WPA2 encrypted access point is:&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-ssid &amp;lt;NAME OF AP&amp;gt;&lt;br /&gt;
 wpa-ap-scan 1&lt;br /&gt;
 wpa-proto RSN&lt;br /&gt;
 wpa-pairwise CCMP&lt;br /&gt;
 wpa-group CCMP&lt;br /&gt;
 wpa-key-mgmt WPA-PSK&lt;br /&gt;
 wpa-psk &amp;lt; INSERT KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your Wi-Fi card will automatically load these settings on start up and give network access.&lt;br /&gt;
&lt;br /&gt;
== Lightweight window managers ==&lt;br /&gt;
&lt;br /&gt;
If you intend to use Ubuntu on the BeagleBoard you can install JWM or IceWM to improve performance.&lt;br /&gt;
&lt;br /&gt;
JWM in particular uses little RAM. On a BeagleBoard with 256&amp;amp;nbsp;MB, using JWM will leave about 60&amp;amp;nbsp;MB free to run applications in.&lt;br /&gt;
&lt;br /&gt;
== Web Apps ==&lt;br /&gt;
&lt;br /&gt;
=== Midori ===&lt;br /&gt;
Given that the BeagleBoard has fewer resources than a desktop a light-weight browser is more responsive. Midori is a light-weight browser that still supports flash, etc. It is available from the standard repositories.&lt;br /&gt;
http://en.wikipedia.org/wiki/Midori_%28web_browser%29&lt;br /&gt;
&lt;br /&gt;
== Surveillance ==&lt;br /&gt;
&lt;br /&gt;
=== Motion ===&lt;br /&gt;
If you have a video source (webcam, IP cam, etc.) which appears as /dev/video0, etc. then you can use the Linux surveillance software &amp;quot;motion&amp;quot; to monitor the video stream and record periods of activity.&lt;br /&gt;
&lt;br /&gt;
Motion is also available from the standard repositories.&lt;br /&gt;
http://www.debian-administration.org/article/An_Introduction_to_Video_Surveillance_with_%27Motion%27&lt;br /&gt;
Using a 960x720 resolution webcam with a 15&amp;amp;nbsp;fps rate under the UVC driver the Rev C BeagleBoard under Xubuntu reports ~60% CPU utilisation.&lt;br /&gt;
&lt;br /&gt;
To make the BeagleBoard automatically start recording on boot do the following:&lt;br /&gt;
&lt;br /&gt;
* Auto Login - run &amp;quot;gdmsetup&amp;quot; from a terminal and select a user to automatically login &lt;br /&gt;
* Sessions - make sure you don't save any previous X Windows sessions so that it doesn't prompt you for which one you want&lt;br /&gt;
* motion.conf - amend /etc/motion/motion.conf to the settings you want (that is, video output directory, record only video, record in MPEG-4, set frame rate, etc). Do this with &amp;quot;sudo medit /etc/motion/motion.conf&amp;quot; at a prompt.&lt;br /&gt;
* Boot script - create a new script in /etc/rc2.d called &amp;quot;S65motion_client&amp;quot; and set permissions appropriately (&amp;quot;sudo chmod 777 /etc/rc2.d/S65motion_client&amp;quot;). Then edit the file so it has the following text in it:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 /usr/bin/motion -c /etc/motion/motion.conf&lt;br /&gt;
&lt;br /&gt;
This will now launch the motion client as root when you boot up.&lt;br /&gt;
&lt;br /&gt;
Also note that unless your BeagleBoard can remember the time (battery backed up clock installed) the timestamps will not be correct until you update the time. If your BeagleBoard has an Internet connection this can be achieved with the ntpdate application.&lt;br /&gt;
&lt;br /&gt;
== Robotics ==&lt;br /&gt;
&lt;br /&gt;
=== ROS ===&lt;br /&gt;
Willow Garage hosts the open source Robotic Operating System (ROS). Whilst it is natively supported in Ubuntu, the official packages are only for the x86 platform. ROS can be installed from source and is generally easy to do so (although slow).&lt;br /&gt;
&lt;br /&gt;
Following the instructions from here will build and install ROS on your BeagleBoard:&lt;br /&gt;
&lt;br /&gt;
http://www.ros.org/wiki/cturtle/Installation/Ubuntu/SVN&lt;br /&gt;
&lt;br /&gt;
You will need an Internet connection for your BeagleBoard for these scripts to work.&lt;br /&gt;
&lt;br /&gt;
For more information about ROS, see www.ros.org.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-06-14T20:36:37Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Demo Image */ 06-14&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x12 kernel&lt;br /&gt;
*** Panda: WiFi works again...&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 713ea6497dd02361e944467756f4a2fd  ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-06-14&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.06 -b v2013.06&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-06-14&lt;br /&gt;
** shellinabox disabled...&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x12 kernel&lt;br /&gt;
*** Panda: WiFi works again...&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone21 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: Now built with the patched 'dtc'...&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 ace6d265669cf7d6870be325279dd137  ubuntu-12.10-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-06-14.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-06-14&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into Ubuntu and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSD card and Ubuntu will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Script for Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
BTW: we are only writing about 500Mb's to the eMMC so the script will only take about 5-6 Minutes after power on.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
 If only two LED's stay lit and nothing happens, the board has crashed due to lack of power. Try with a 5Volt DC supply plugged in..&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/raring/BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz &lt;br /&gt;
 4b6bfbda52b0ae6d7a85569be23063cf  BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure (Maverick's Alpha-1 needs this....)&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
Screenshot: (on my xm it's a little jerky at the moment, investigating..)&lt;br /&gt;
 http://rcn-ee.net/bugs/dsp/dsp_v3.2.1-x2-test.jpg&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Ubuntu will try to use the FBDEV video driver, however for the BeagleBoard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lucid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Changing DVI output resolution ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu 10.10 above defaults to a resolution of 1284x768@16. This is set in the boot.cmd file in the boot partition of the SD card. To change the resolution the DVI output, edit boot.cmd accordingly then recreate the boot.scr file by:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;Ubuntu 10.10&amp;quot; -d ./boot.cmd ./boot.scr&lt;br /&gt;
&lt;br /&gt;
Then reboot the BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
== S-Video ==&lt;br /&gt;
''(For configuring S-Video on Angstrom, click [[BeagleBoardAngstrom#Configuring_uEnv.txt_to_set_s-video_as_the_default_display|here]])''.&lt;br /&gt;
&lt;br /&gt;
===Process for setting up S-Video===&lt;br /&gt;
&lt;br /&gt;
S-video is tested to be working on 2.6.35-rc5-dl9. BeagleBoard s-video output has traditionally been enabled by &amp;quot;using bootargs (boot arguments) at uboot&amp;quot;. In newer versions of the BeagleBoard, the developers have made things easier by instructing U-Boot to look for a .scr file about a dozen lines long that is called cmd.boot.scr, and then follow said parameters. In Angstrom, no boot.scr file is needed, instead, an even easier system is used, where a simple editable .txt file called uEnv.txt containing these parameters suffices (Env is for &amp;quot;environment&amp;quot;). For some reason, in the Ubuntu download files, typically there a bit of convoluted process where uEnv.txt is called up, uEnv.txt says &amp;quot;Go read conf.boot.scr&amp;quot;, and cmd.boot.scr sets up the s-video.&lt;br /&gt;
&lt;br /&gt;
To make cmd.boot.scr, create a text file named cmd.boot, then convert it into a .scr file with mkimage by running the following commands on the terminal:&lt;br /&gt;
&lt;br /&gt;
First, you will probably need to get mkimage with apt-get. Run&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mkimage&lt;br /&gt;
&lt;br /&gt;
Next, convert your cmd.boot.scr&lt;br /&gt;
&lt;br /&gt;
    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage' -d boot.cmd boot.scr&lt;br /&gt;
&lt;br /&gt;
===Bootargs: make this cmd.boot to set s-video===&lt;br /&gt;
&lt;br /&gt;
* NTSC&lt;br /&gt;
&lt;br /&gt;
     omapfb.mode='''tv:ntsc''' &lt;br /&gt;
     omapdss.def_disp='''tv'''&lt;br /&gt;
&lt;br /&gt;
Bootargs that has been validated.&lt;br /&gt;
&lt;br /&gt;
     setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro vram=12M omapfb.mode=tv:ntsc omapdss.def_disp=tv &lt;br /&gt;
     fixrtc buddy=unknown'&lt;br /&gt;
&lt;br /&gt;
===Screen cutoff problem===&lt;br /&gt;
&lt;br /&gt;
NTSC resolution is supposed to be 640x480. However the edge bands around the TV screen differ from TV to TV. Output of '''fbset''' shown below:&lt;br /&gt;
&lt;br /&gt;
    mode &amp;quot;720x482-30&amp;quot;&lt;br /&gt;
         # D: 13.500 MHz, H: 15.734 kHz, V: 29.970 Hz&lt;br /&gt;
         geometry 720 482 720 482 32&lt;br /&gt;
         timings 74074 16 58 6 31 64 6&lt;br /&gt;
         rgba 8/16,8/8,8/0,0/0&lt;br /&gt;
    endmode&lt;br /&gt;
&lt;br /&gt;
Depending on your TV device, and what desktop you are running a certain amount of screen cutoff is likely to occur. This is called [http://en.wikipedia.org/wiki/Overscan overscan]. Typically, around 5-10% of the left and right edges of display are off the screen (using Ubuntu with xfce). This seems to be due to the fact that there is only one display resolution that is set for NTSC: &amp;lt;!-- I don't know about PAL--&amp;gt; 720 X 482. It is not possible to change this setting in the xfce4 Settings Manager like one would normally be able to do, because other options are greyed out/do not exist. Normally, even if the Settings Manager did not allow for it, a different resolution setting could be obtained by editing the xorg.conf file in /etc/X11/xorg.conf-4, or some similar place. HOWEVER there is no xorg.conf file in the Beagle version of xfce. xrandr shows the display is set to the minimum of 720x574. Adding an xorg.conf does not fix the problem, because Beagle takes its (analog) display resolution settings directly from the display driver, where 720 X 480 (720 X 574 for PAL &amp;lt;!-- This I gather, but I really don't know--&amp;gt; ) is hard coded in.  &lt;br /&gt;
&lt;br /&gt;
An inelegant but usable workaround for the xfce desktop environment is simply to create vertical and horizontal panels that fill up the space that is cut off on the screen. This is not a complete solution, but at least it will prevent maximized windows from going off into nowhere land.&lt;br /&gt;
&lt;br /&gt;
Truly fixing this would involve going into the display driver and reprogramming it to include additional S-video settings besides just NTSC and PAL. Specifically, to make the whole framebuffer fit on the screen you would need to adjust the overlay in the display driver, the OMAP DSS2. (Didn't test this yet. Some pointers from the driver's documentation below)&lt;br /&gt;
&lt;br /&gt;
    /sys/devices/platform/omapdss/overlay? directory:&lt;br /&gt;
    enabled		0=off, 1=on&lt;br /&gt;
    input_size		width,height (ie. the framebuffer size)&lt;br /&gt;
    manager		Destination overlay manager name&lt;br /&gt;
    name&lt;br /&gt;
    output_size		width,height&lt;br /&gt;
    position		x,y&lt;br /&gt;
    screen_width	width&lt;br /&gt;
    global_alpha   	global alpha 0-255 0=transparent 255=opaque&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Download SRC&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Optional building the deb file&lt;br /&gt;
 ./build_deb.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Swapfile =&lt;br /&gt;
&lt;br /&gt;
== Using a File for Swap Instead of a Partition ==&lt;br /&gt;
&lt;br /&gt;
On the Bealgeboard you should expect to need a swap file given the limitation of how much RAM they have (between 256&amp;amp;nbsp;MB and 512&amp;amp;nbsp;MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256&amp;amp;nbsp;MB not being enough RAM).&lt;br /&gt;
&lt;br /&gt;
Some images such as those from Linaro.org do not come with a swap partition or any swap space allocated.&lt;br /&gt;
&lt;br /&gt;
Under Linux swap space can be either a dedicated partition or a single file. Both can be mounted as swap which the OS can access.&lt;br /&gt;
&lt;br /&gt;
=== Creating a Swapfile ===&lt;br /&gt;
&lt;br /&gt;
The following commands will create a 1 gigabyte file, lock access to only root, format it as swap and then advertise it to the OS.&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/cache/swap/   &lt;br /&gt;
 sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024&lt;br /&gt;
 sudo chmod 0600 /var/cache/swap/swapfile &lt;br /&gt;
 sudo mkswap /var/cache/swap/swapfile &lt;br /&gt;
 sudo swapon /var/cache/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
To ask the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:&lt;br /&gt;
&lt;br /&gt;
 /var/cache/swap/swapfile    none    swap    sw    0   0&lt;br /&gt;
&lt;br /&gt;
To verify that the swapfile is accessilble as swap to the OS, run &amp;quot;top&amp;quot; of &amp;quot;htop&amp;quot; at a console.&lt;br /&gt;
&lt;br /&gt;
= Ubuntu Software =&lt;br /&gt;
&lt;br /&gt;
== Wi-Fi Networking (command line) ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&lt;br /&gt;
It is possible and relatively easy to configure a Wi-Fi card from the command line.&lt;br /&gt;
&lt;br /&gt;
You will need to edit the /etc/network/interfaces file. There are several guides available via Google.&lt;br /&gt;
&lt;br /&gt;
This is a particularly useful guide http://ubuntuforums.org/showthread.php?t=202834 &lt;br /&gt;
&lt;br /&gt;
A sample /etc/network/interfaces file for a WPA2 encrypted access point is:&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-ssid &amp;lt;NAME OF AP&amp;gt;&lt;br /&gt;
 wpa-ap-scan 1&lt;br /&gt;
 wpa-proto RSN&lt;br /&gt;
 wpa-pairwise CCMP&lt;br /&gt;
 wpa-group CCMP&lt;br /&gt;
 wpa-key-mgmt WPA-PSK&lt;br /&gt;
 wpa-psk &amp;lt; INSERT KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your Wi-Fi card will automatically load these settings on start up and give network access.&lt;br /&gt;
&lt;br /&gt;
== Lightweight window managers ==&lt;br /&gt;
&lt;br /&gt;
If you intend to use Ubuntu on the BeagleBoard you can install JWM or IceWM to improve performance.&lt;br /&gt;
&lt;br /&gt;
JWM in particular uses little RAM. On a BeagleBoard with 256&amp;amp;nbsp;MB, using JWM will leave about 60&amp;amp;nbsp;MB free to run applications in.&lt;br /&gt;
&lt;br /&gt;
== Web Apps ==&lt;br /&gt;
&lt;br /&gt;
=== Midori ===&lt;br /&gt;
Given that the BeagleBoard has fewer resources than a desktop a light-weight browser is more responsive. Midori is a light-weight browser that still supports flash, etc. It is available from the standard repositories.&lt;br /&gt;
http://en.wikipedia.org/wiki/Midori_%28web_browser%29&lt;br /&gt;
&lt;br /&gt;
== Surveillance ==&lt;br /&gt;
&lt;br /&gt;
=== Motion ===&lt;br /&gt;
If you have a video source (webcam, IP cam, etc.) which appears as /dev/video0, etc. then you can use the Linux surveillance software &amp;quot;motion&amp;quot; to monitor the video stream and record periods of activity.&lt;br /&gt;
&lt;br /&gt;
Motion is also available from the standard repositories.&lt;br /&gt;
http://www.debian-administration.org/article/An_Introduction_to_Video_Surveillance_with_%27Motion%27&lt;br /&gt;
Using a 960x720 resolution webcam with a 15&amp;amp;nbsp;fps rate under the UVC driver the Rev C BeagleBoard under Xubuntu reports ~60% CPU utilisation.&lt;br /&gt;
&lt;br /&gt;
To make the BeagleBoard automatically start recording on boot do the following:&lt;br /&gt;
&lt;br /&gt;
* Auto Login - run &amp;quot;gdmsetup&amp;quot; from a terminal and select a user to automatically login &lt;br /&gt;
* Sessions - make sure you don't save any previous X Windows sessions so that it doesn't prompt you for which one you want&lt;br /&gt;
* motion.conf - amend /etc/motion/motion.conf to the settings you want (that is, video output directory, record only video, record in MPEG-4, set frame rate, etc). Do this with &amp;quot;sudo medit /etc/motion/motion.conf&amp;quot; at a prompt.&lt;br /&gt;
* Boot script - create a new script in /etc/rc2.d called &amp;quot;S65motion_client&amp;quot; and set permissions appropriately (&amp;quot;sudo chmod 777 /etc/rc2.d/S65motion_client&amp;quot;). Then edit the file so it has the following text in it:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 /usr/bin/motion -c /etc/motion/motion.conf&lt;br /&gt;
&lt;br /&gt;
This will now launch the motion client as root when you boot up.&lt;br /&gt;
&lt;br /&gt;
Also note that unless your BeagleBoard can remember the time (battery backed up clock installed) the timestamps will not be correct until you update the time. If your BeagleBoard has an Internet connection this can be achieved with the ntpdate application.&lt;br /&gt;
&lt;br /&gt;
== Robotics ==&lt;br /&gt;
&lt;br /&gt;
=== ROS ===&lt;br /&gt;
Willow Garage hosts the open source Robotic Operating System (ROS). Whilst it is natively supported in Ubuntu, the official packages are only for the x86 platform. ROS can be installed from source and is generally easy to do so (although slow).&lt;br /&gt;
&lt;br /&gt;
Following the instructions from here will build and install ROS on your BeagleBoard:&lt;br /&gt;
&lt;br /&gt;
http://www.ros.org/wiki/cturtle/Installation/Ubuntu/SVN&lt;br /&gt;
&lt;br /&gt;
You will need an Internet connection for your BeagleBoard for these scripts to work.&lt;br /&gt;
&lt;br /&gt;
For more information about ROS, see www.ros.org.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-06-04T05:04:53Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 42eb043c6f81097d4184de73f84bfb85  ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.05.1 -b v2013.05.1&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 c883668c655897ce20bf5fbdc9875f6f  ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into Ubuntu and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSD card and Ubuntu will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Script for Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
BTW: we are only writing about 500Mb's to the eMMC so the script will only take about 5-6 Minutes after power on.&lt;br /&gt;
&lt;br /&gt;
Notes:&lt;br /&gt;
 If only two LED's stay lit and nothing happens, the board has crashed due to lack of power. Try with a 5Volt DC supply plugged in..&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/raring/BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz &lt;br /&gt;
 4b6bfbda52b0ae6d7a85569be23063cf  BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure (Maverick's Alpha-1 needs this....)&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
Screenshot: (on my xm it's a little jerky at the moment, investigating..)&lt;br /&gt;
 http://rcn-ee.net/bugs/dsp/dsp_v3.2.1-x2-test.jpg&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Ubuntu will try to use the FBDEV video driver, however for the BeagleBoard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lucid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Changing DVI output resolution ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu 10.10 above defaults to a resolution of 1284x768@16. This is set in the boot.cmd file in the boot partition of the SD card. To change the resolution the DVI output, edit boot.cmd accordingly then recreate the boot.scr file by:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;Ubuntu 10.10&amp;quot; -d ./boot.cmd ./boot.scr&lt;br /&gt;
&lt;br /&gt;
Then reboot the BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
== S-Video ==&lt;br /&gt;
''(For configuring S-Video on Angstrom, click [[BeagleBoardAngstrom#Configuring_uEnv.txt_to_set_s-video_as_the_default_display|here]])''.&lt;br /&gt;
&lt;br /&gt;
===Process for setting up S-Video===&lt;br /&gt;
&lt;br /&gt;
S-video is tested to be working on 2.6.35-rc5-dl9. BeagleBoard s-video output has traditionally been enabled by &amp;quot;using bootargs (boot arguments) at uboot&amp;quot;. In newer versions of the BeagleBoard, the developers have made things easier by instructing U-Boot to look for a .scr file about a dozen lines long that is called cmd.boot.scr, and then follow said parameters. In Angstrom, no boot.scr file is needed, instead, an even easier system is used, where a simple editable .txt file called uEnv.txt containing these parameters suffices (Env is for &amp;quot;environment&amp;quot;). For some reason, in the Ubuntu download files, typically there a bit of convoluted process where uEnv.txt is called up, uEnv.txt says &amp;quot;Go read conf.boot.scr&amp;quot;, and cmd.boot.scr sets up the s-video.&lt;br /&gt;
&lt;br /&gt;
To make cmd.boot.scr, create a text file named cmd.boot, then convert it into a .scr file with mkimage by running the following commands on the terminal:&lt;br /&gt;
&lt;br /&gt;
First, you will probably need to get mkimage with apt-get. Run&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mkimage&lt;br /&gt;
&lt;br /&gt;
Next, convert your cmd.boot.scr&lt;br /&gt;
&lt;br /&gt;
    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage' -d boot.cmd boot.scr&lt;br /&gt;
&lt;br /&gt;
===Bootargs: make this cmd.boot to set s-video===&lt;br /&gt;
&lt;br /&gt;
* NTSC&lt;br /&gt;
&lt;br /&gt;
     omapfb.mode='''tv:ntsc''' &lt;br /&gt;
     omapdss.def_disp='''tv'''&lt;br /&gt;
&lt;br /&gt;
Bootargs that has been validated.&lt;br /&gt;
&lt;br /&gt;
     setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro vram=12M omapfb.mode=tv:ntsc omapdss.def_disp=tv &lt;br /&gt;
     fixrtc buddy=unknown'&lt;br /&gt;
&lt;br /&gt;
===Screen cutoff problem===&lt;br /&gt;
&lt;br /&gt;
NTSC resolution is supposed to be 640x480. However the edge bands around the TV screen differ from TV to TV. Output of '''fbset''' shown below:&lt;br /&gt;
&lt;br /&gt;
    mode &amp;quot;720x482-30&amp;quot;&lt;br /&gt;
         # D: 13.500 MHz, H: 15.734 kHz, V: 29.970 Hz&lt;br /&gt;
         geometry 720 482 720 482 32&lt;br /&gt;
         timings 74074 16 58 6 31 64 6&lt;br /&gt;
         rgba 8/16,8/8,8/0,0/0&lt;br /&gt;
    endmode&lt;br /&gt;
&lt;br /&gt;
Depending on your TV device, and what desktop you are running a certain amount of screen cutoff is likely to occur. This is called [http://en.wikipedia.org/wiki/Overscan overscan]. Typically, around 5-10% of the left and right edges of display are off the screen (using Ubuntu with xfce). This seems to be due to the fact that there is only one display resolution that is set for NTSC: &amp;lt;!-- I don't know about PAL--&amp;gt; 720 X 482. It is not possible to change this setting in the xfce4 Settings Manager like one would normally be able to do, because other options are greyed out/do not exist. Normally, even if the Settings Manager did not allow for it, a different resolution setting could be obtained by editing the xorg.conf file in /etc/X11/xorg.conf-4, or some similar place. HOWEVER there is no xorg.conf file in the Beagle version of xfce. xrandr shows the display is set to the minimum of 720x574. Adding an xorg.conf does not fix the problem, because Beagle takes its (analog) display resolution settings directly from the display driver, where 720 X 480 (720 X 574 for PAL &amp;lt;!-- This I gather, but I really don't know--&amp;gt; ) is hard coded in.  &lt;br /&gt;
&lt;br /&gt;
An inelegant but usable workaround for the xfce desktop environment is simply to create vertical and horizontal panels that fill up the space that is cut off on the screen. This is not a complete solution, but at least it will prevent maximized windows from going off into nowhere land.&lt;br /&gt;
&lt;br /&gt;
Truly fixing this would involve going into the display driver and reprogramming it to include additional S-video settings besides just NTSC and PAL. Specifically, to make the whole framebuffer fit on the screen you would need to adjust the overlay in the display driver, the OMAP DSS2. (Didn't test this yet. Some pointers from the driver's documentation below)&lt;br /&gt;
&lt;br /&gt;
    /sys/devices/platform/omapdss/overlay? directory:&lt;br /&gt;
    enabled		0=off, 1=on&lt;br /&gt;
    input_size		width,height (ie. the framebuffer size)&lt;br /&gt;
    manager		Destination overlay manager name&lt;br /&gt;
    name&lt;br /&gt;
    output_size		width,height&lt;br /&gt;
    position		x,y&lt;br /&gt;
    screen_width	width&lt;br /&gt;
    global_alpha   	global alpha 0-255 0=transparent 255=opaque&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Download SRC&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Optional building the deb file&lt;br /&gt;
 ./build_deb.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Swapfile =&lt;br /&gt;
&lt;br /&gt;
== Using a File for Swap Instead of a Partition ==&lt;br /&gt;
&lt;br /&gt;
On the Bealgeboard you should expect to need a swap file given the limitation of how much RAM they have (between 256&amp;amp;nbsp;MB and 512&amp;amp;nbsp;MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256&amp;amp;nbsp;MB not being enough RAM).&lt;br /&gt;
&lt;br /&gt;
Some images such as those from Linaro.org do not come with a swap partition or any swap space allocated.&lt;br /&gt;
&lt;br /&gt;
Under Linux swap space can be either a dedicated partition or a single file. Both can be mounted as swap which the OS can access.&lt;br /&gt;
&lt;br /&gt;
=== Creating a Swapfile ===&lt;br /&gt;
&lt;br /&gt;
The following commands will create a 1 gigabyte file, lock access to only root, format it as swap and then advertise it to the OS.&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/cache/swap/   &lt;br /&gt;
 sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024&lt;br /&gt;
 sudo chmod 0600 /var/cache/swap/swapfile &lt;br /&gt;
 sudo mkswap /var/cache/swap/swapfile &lt;br /&gt;
 sudo swapon /var/cache/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
To ask the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:&lt;br /&gt;
&lt;br /&gt;
 /var/cache/swap/swapfile    none    swap    sw    0   0&lt;br /&gt;
&lt;br /&gt;
To verify that the swapfile is accessilble as swap to the OS, run &amp;quot;top&amp;quot; of &amp;quot;htop&amp;quot; at a console.&lt;br /&gt;
&lt;br /&gt;
= Ubuntu Software =&lt;br /&gt;
&lt;br /&gt;
== Wi-Fi Networking (command line) ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&lt;br /&gt;
It is possible and relatively easy to configure a Wi-Fi card from the command line.&lt;br /&gt;
&lt;br /&gt;
You will need to edit the /etc/network/interfaces file. There are several guides available via Google.&lt;br /&gt;
&lt;br /&gt;
This is a particularly useful guide http://ubuntuforums.org/showthread.php?t=202834 &lt;br /&gt;
&lt;br /&gt;
A sample /etc/network/interfaces file for a WPA2 encrypted access point is:&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-ssid &amp;lt;NAME OF AP&amp;gt;&lt;br /&gt;
 wpa-ap-scan 1&lt;br /&gt;
 wpa-proto RSN&lt;br /&gt;
 wpa-pairwise CCMP&lt;br /&gt;
 wpa-group CCMP&lt;br /&gt;
 wpa-key-mgmt WPA-PSK&lt;br /&gt;
 wpa-psk &amp;lt; INSERT KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your Wi-Fi card will automatically load these settings on start up and give network access.&lt;br /&gt;
&lt;br /&gt;
== Lightweight window managers ==&lt;br /&gt;
&lt;br /&gt;
If you intend to use Ubuntu on the BeagleBoard you can install JWM or IceWM to improve performance.&lt;br /&gt;
&lt;br /&gt;
JWM in particular uses little RAM. On a BeagleBoard with 256&amp;amp;nbsp;MB, using JWM will leave about 60&amp;amp;nbsp;MB free to run applications in.&lt;br /&gt;
&lt;br /&gt;
== Web Apps ==&lt;br /&gt;
&lt;br /&gt;
=== Midori ===&lt;br /&gt;
Given that the BeagleBoard has fewer resources than a desktop a light-weight browser is more responsive. Midori is a light-weight browser that still supports flash, etc. It is available from the standard repositories.&lt;br /&gt;
http://en.wikipedia.org/wiki/Midori_%28web_browser%29&lt;br /&gt;
&lt;br /&gt;
== Surveillance ==&lt;br /&gt;
&lt;br /&gt;
=== Motion ===&lt;br /&gt;
If you have a video source (webcam, IP cam, etc.) which appears as /dev/video0, etc. then you can use the Linux surveillance software &amp;quot;motion&amp;quot; to monitor the video stream and record periods of activity.&lt;br /&gt;
&lt;br /&gt;
Motion is also available from the standard repositories.&lt;br /&gt;
http://www.debian-administration.org/article/An_Introduction_to_Video_Surveillance_with_%27Motion%27&lt;br /&gt;
Using a 960x720 resolution webcam with a 15&amp;amp;nbsp;fps rate under the UVC driver the Rev C BeagleBoard under Xubuntu reports ~60% CPU utilisation.&lt;br /&gt;
&lt;br /&gt;
To make the BeagleBoard automatically start recording on boot do the following:&lt;br /&gt;
&lt;br /&gt;
* Auto Login - run &amp;quot;gdmsetup&amp;quot; from a terminal and select a user to automatically login &lt;br /&gt;
* Sessions - make sure you don't save any previous X Windows sessions so that it doesn't prompt you for which one you want&lt;br /&gt;
* motion.conf - amend /etc/motion/motion.conf to the settings you want (that is, video output directory, record only video, record in MPEG-4, set frame rate, etc). Do this with &amp;quot;sudo medit /etc/motion/motion.conf&amp;quot; at a prompt.&lt;br /&gt;
* Boot script - create a new script in /etc/rc2.d called &amp;quot;S65motion_client&amp;quot; and set permissions appropriately (&amp;quot;sudo chmod 777 /etc/rc2.d/S65motion_client&amp;quot;). Then edit the file so it has the following text in it:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 /usr/bin/motion -c /etc/motion/motion.conf&lt;br /&gt;
&lt;br /&gt;
This will now launch the motion client as root when you boot up.&lt;br /&gt;
&lt;br /&gt;
Also note that unless your BeagleBoard can remember the time (battery backed up clock installed) the timestamps will not be correct until you update the time. If your BeagleBoard has an Internet connection this can be achieved with the ntpdate application.&lt;br /&gt;
&lt;br /&gt;
== Robotics ==&lt;br /&gt;
&lt;br /&gt;
=== ROS ===&lt;br /&gt;
Willow Garage hosts the open source Robotic Operating System (ROS). Whilst it is natively supported in Ubuntu, the official packages are only for the x86 platform. ROS can be installed from source and is generally easy to do so (although slow).&lt;br /&gt;
&lt;br /&gt;
Following the instructions from here will build and install ROS on your BeagleBoard:&lt;br /&gt;
&lt;br /&gt;
http://www.ros.org/wiki/cturtle/Installation/Ubuntu/SVN&lt;br /&gt;
&lt;br /&gt;
You will need an Internet connection for your BeagleBoard for these scripts to work.&lt;br /&gt;
&lt;br /&gt;
For more information about ROS, see www.ros.org.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-06-03T14:08:29Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* eMMC: BeagleBone Black */ note...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 42eb043c6f81097d4184de73f84bfb85  ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.05.1 -b v2013.05.1&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 c883668c655897ce20bf5fbdc9875f6f  ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into Ubuntu and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSD card and Ubuntu will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Script for Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
BTW: we are only writing about 500Mb's to the eMMC so the script will only take about 5-6 Minutes after power on.&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/raring/BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz &lt;br /&gt;
 4b6bfbda52b0ae6d7a85569be23063cf  BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure (Maverick's Alpha-1 needs this....)&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
Screenshot: (on my xm it's a little jerky at the moment, investigating..)&lt;br /&gt;
 http://rcn-ee.net/bugs/dsp/dsp_v3.2.1-x2-test.jpg&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Ubuntu will try to use the FBDEV video driver, however for the BeagleBoard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lucid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Changing DVI output resolution ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu 10.10 above defaults to a resolution of 1284x768@16. This is set in the boot.cmd file in the boot partition of the SD card. To change the resolution the DVI output, edit boot.cmd accordingly then recreate the boot.scr file by:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;Ubuntu 10.10&amp;quot; -d ./boot.cmd ./boot.scr&lt;br /&gt;
&lt;br /&gt;
Then reboot the BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
== S-Video ==&lt;br /&gt;
''(For configuring S-Video on Angstrom, click [[BeagleBoardAngstrom#Configuring_uEnv.txt_to_set_s-video_as_the_default_display|here]])''.&lt;br /&gt;
&lt;br /&gt;
===Process for setting up S-Video===&lt;br /&gt;
&lt;br /&gt;
S-video is tested to be working on 2.6.35-rc5-dl9. BeagleBoard s-video output has traditionally been enabled by &amp;quot;using bootargs (boot arguments) at uboot&amp;quot;. In newer versions of the BeagleBoard, the developers have made things easier by instructing U-Boot to look for a .scr file about a dozen lines long that is called cmd.boot.scr, and then follow said parameters. In Angstrom, no boot.scr file is needed, instead, an even easier system is used, where a simple editable .txt file called uEnv.txt containing these parameters suffices (Env is for &amp;quot;environment&amp;quot;). For some reason, in the Ubuntu download files, typically there a bit of convoluted process where uEnv.txt is called up, uEnv.txt says &amp;quot;Go read conf.boot.scr&amp;quot;, and cmd.boot.scr sets up the s-video.&lt;br /&gt;
&lt;br /&gt;
To make cmd.boot.scr, create a text file named cmd.boot, then convert it into a .scr file with mkimage by running the following commands on the terminal:&lt;br /&gt;
&lt;br /&gt;
First, you will probably need to get mkimage with apt-get. Run&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mkimage&lt;br /&gt;
&lt;br /&gt;
Next, convert your cmd.boot.scr&lt;br /&gt;
&lt;br /&gt;
    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage' -d boot.cmd boot.scr&lt;br /&gt;
&lt;br /&gt;
===Bootargs: make this cmd.boot to set s-video===&lt;br /&gt;
&lt;br /&gt;
* NTSC&lt;br /&gt;
&lt;br /&gt;
     omapfb.mode='''tv:ntsc''' &lt;br /&gt;
     omapdss.def_disp='''tv'''&lt;br /&gt;
&lt;br /&gt;
Bootargs that has been validated.&lt;br /&gt;
&lt;br /&gt;
     setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro vram=12M omapfb.mode=tv:ntsc omapdss.def_disp=tv &lt;br /&gt;
     fixrtc buddy=unknown'&lt;br /&gt;
&lt;br /&gt;
===Screen cutoff problem===&lt;br /&gt;
&lt;br /&gt;
NTSC resolution is supposed to be 640x480. However the edge bands around the TV screen differ from TV to TV. Output of '''fbset''' shown below:&lt;br /&gt;
&lt;br /&gt;
    mode &amp;quot;720x482-30&amp;quot;&lt;br /&gt;
         # D: 13.500 MHz, H: 15.734 kHz, V: 29.970 Hz&lt;br /&gt;
         geometry 720 482 720 482 32&lt;br /&gt;
         timings 74074 16 58 6 31 64 6&lt;br /&gt;
         rgba 8/16,8/8,8/0,0/0&lt;br /&gt;
    endmode&lt;br /&gt;
&lt;br /&gt;
Depending on your TV device, and what desktop you are running a certain amount of screen cutoff is likely to occur. This is called [http://en.wikipedia.org/wiki/Overscan overscan]. Typically, around 5-10% of the left and right edges of display are off the screen (using Ubuntu with xfce). This seems to be due to the fact that there is only one display resolution that is set for NTSC: &amp;lt;!-- I don't know about PAL--&amp;gt; 720 X 482. It is not possible to change this setting in the xfce4 Settings Manager like one would normally be able to do, because other options are greyed out/do not exist. Normally, even if the Settings Manager did not allow for it, a different resolution setting could be obtained by editing the xorg.conf file in /etc/X11/xorg.conf-4, or some similar place. HOWEVER there is no xorg.conf file in the Beagle version of xfce. xrandr shows the display is set to the minimum of 720x574. Adding an xorg.conf does not fix the problem, because Beagle takes its (analog) display resolution settings directly from the display driver, where 720 X 480 (720 X 574 for PAL &amp;lt;!-- This I gather, but I really don't know--&amp;gt; ) is hard coded in.  &lt;br /&gt;
&lt;br /&gt;
An inelegant but usable workaround for the xfce desktop environment is simply to create vertical and horizontal panels that fill up the space that is cut off on the screen. This is not a complete solution, but at least it will prevent maximized windows from going off into nowhere land.&lt;br /&gt;
&lt;br /&gt;
Truly fixing this would involve going into the display driver and reprogramming it to include additional S-video settings besides just NTSC and PAL. Specifically, to make the whole framebuffer fit on the screen you would need to adjust the overlay in the display driver, the OMAP DSS2. (Didn't test this yet. Some pointers from the driver's documentation below)&lt;br /&gt;
&lt;br /&gt;
    /sys/devices/platform/omapdss/overlay? directory:&lt;br /&gt;
    enabled		0=off, 1=on&lt;br /&gt;
    input_size		width,height (ie. the framebuffer size)&lt;br /&gt;
    manager		Destination overlay manager name&lt;br /&gt;
    name&lt;br /&gt;
    output_size		width,height&lt;br /&gt;
    position		x,y&lt;br /&gt;
    screen_width	width&lt;br /&gt;
    global_alpha   	global alpha 0-255 0=transparent 255=opaque&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Download SRC&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Optional building the deb file&lt;br /&gt;
 ./build_deb.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Swapfile =&lt;br /&gt;
&lt;br /&gt;
== Using a File for Swap Instead of a Partition ==&lt;br /&gt;
&lt;br /&gt;
On the Bealgeboard you should expect to need a swap file given the limitation of how much RAM they have (between 256&amp;amp;nbsp;MB and 512&amp;amp;nbsp;MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256&amp;amp;nbsp;MB not being enough RAM).&lt;br /&gt;
&lt;br /&gt;
Some images such as those from Linaro.org do not come with a swap partition or any swap space allocated.&lt;br /&gt;
&lt;br /&gt;
Under Linux swap space can be either a dedicated partition or a single file. Both can be mounted as swap which the OS can access.&lt;br /&gt;
&lt;br /&gt;
=== Creating a Swapfile ===&lt;br /&gt;
&lt;br /&gt;
The following commands will create a 1 gigabyte file, lock access to only root, format it as swap and then advertise it to the OS.&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/cache/swap/   &lt;br /&gt;
 sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024&lt;br /&gt;
 sudo chmod 0600 /var/cache/swap/swapfile &lt;br /&gt;
 sudo mkswap /var/cache/swap/swapfile &lt;br /&gt;
 sudo swapon /var/cache/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
To ask the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:&lt;br /&gt;
&lt;br /&gt;
 /var/cache/swap/swapfile    none    swap    sw    0   0&lt;br /&gt;
&lt;br /&gt;
To verify that the swapfile is accessilble as swap to the OS, run &amp;quot;top&amp;quot; of &amp;quot;htop&amp;quot; at a console.&lt;br /&gt;
&lt;br /&gt;
= Ubuntu Software =&lt;br /&gt;
&lt;br /&gt;
== Wi-Fi Networking (command line) ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&lt;br /&gt;
It is possible and relatively easy to configure a Wi-Fi card from the command line.&lt;br /&gt;
&lt;br /&gt;
You will need to edit the /etc/network/interfaces file. There are several guides available via Google.&lt;br /&gt;
&lt;br /&gt;
This is a particularly useful guide http://ubuntuforums.org/showthread.php?t=202834 &lt;br /&gt;
&lt;br /&gt;
A sample /etc/network/interfaces file for a WPA2 encrypted access point is:&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-ssid &amp;lt;NAME OF AP&amp;gt;&lt;br /&gt;
 wpa-ap-scan 1&lt;br /&gt;
 wpa-proto RSN&lt;br /&gt;
 wpa-pairwise CCMP&lt;br /&gt;
 wpa-group CCMP&lt;br /&gt;
 wpa-key-mgmt WPA-PSK&lt;br /&gt;
 wpa-psk &amp;lt; INSERT KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your Wi-Fi card will automatically load these settings on start up and give network access.&lt;br /&gt;
&lt;br /&gt;
== Lightweight window managers ==&lt;br /&gt;
&lt;br /&gt;
If you intend to use Ubuntu on the BeagleBoard you can install JWM or IceWM to improve performance.&lt;br /&gt;
&lt;br /&gt;
JWM in particular uses little RAM. On a BeagleBoard with 256&amp;amp;nbsp;MB, using JWM will leave about 60&amp;amp;nbsp;MB free to run applications in.&lt;br /&gt;
&lt;br /&gt;
== Web Apps ==&lt;br /&gt;
&lt;br /&gt;
=== Midori ===&lt;br /&gt;
Given that the BeagleBoard has fewer resources than a desktop a light-weight browser is more responsive. Midori is a light-weight browser that still supports flash, etc. It is available from the standard repositories.&lt;br /&gt;
http://en.wikipedia.org/wiki/Midori_%28web_browser%29&lt;br /&gt;
&lt;br /&gt;
== Surveillance ==&lt;br /&gt;
&lt;br /&gt;
=== Motion ===&lt;br /&gt;
If you have a video source (webcam, IP cam, etc.) which appears as /dev/video0, etc. then you can use the Linux surveillance software &amp;quot;motion&amp;quot; to monitor the video stream and record periods of activity.&lt;br /&gt;
&lt;br /&gt;
Motion is also available from the standard repositories.&lt;br /&gt;
http://www.debian-administration.org/article/An_Introduction_to_Video_Surveillance_with_%27Motion%27&lt;br /&gt;
Using a 960x720 resolution webcam with a 15&amp;amp;nbsp;fps rate under the UVC driver the Rev C BeagleBoard under Xubuntu reports ~60% CPU utilisation.&lt;br /&gt;
&lt;br /&gt;
To make the BeagleBoard automatically start recording on boot do the following:&lt;br /&gt;
&lt;br /&gt;
* Auto Login - run &amp;quot;gdmsetup&amp;quot; from a terminal and select a user to automatically login &lt;br /&gt;
* Sessions - make sure you don't save any previous X Windows sessions so that it doesn't prompt you for which one you want&lt;br /&gt;
* motion.conf - amend /etc/motion/motion.conf to the settings you want (that is, video output directory, record only video, record in MPEG-4, set frame rate, etc). Do this with &amp;quot;sudo medit /etc/motion/motion.conf&amp;quot; at a prompt.&lt;br /&gt;
* Boot script - create a new script in /etc/rc2.d called &amp;quot;S65motion_client&amp;quot; and set permissions appropriately (&amp;quot;sudo chmod 777 /etc/rc2.d/S65motion_client&amp;quot;). Then edit the file so it has the following text in it:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 /usr/bin/motion -c /etc/motion/motion.conf&lt;br /&gt;
&lt;br /&gt;
This will now launch the motion client as root when you boot up.&lt;br /&gt;
&lt;br /&gt;
Also note that unless your BeagleBoard can remember the time (battery backed up clock installed) the timestamps will not be correct until you update the time. If your BeagleBoard has an Internet connection this can be achieved with the ntpdate application.&lt;br /&gt;
&lt;br /&gt;
== Robotics ==&lt;br /&gt;
&lt;br /&gt;
=== ROS ===&lt;br /&gt;
Willow Garage hosts the open source Robotic Operating System (ROS). Whilst it is natively supported in Ubuntu, the official packages are only for the x86 platform. ROS can be installed from source and is generally easy to do so (although slow).&lt;br /&gt;
&lt;br /&gt;
Following the instructions from here will build and install ROS on your BeagleBoard:&lt;br /&gt;
&lt;br /&gt;
http://www.ros.org/wiki/cturtle/Installation/Ubuntu/SVN&lt;br /&gt;
&lt;br /&gt;
You will need an Internet connection for your BeagleBoard for these scripts to work.&lt;br /&gt;
&lt;br /&gt;
For more information about ROS, see www.ros.org.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-30T01:37:41Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* eMMC: BeagleBone Black */ flash speed..&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian 7.0.0 (wheezy)  ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 8b355f33e2c97685c7bdbdbfd166729f  debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
== Debian Jessie (development snapshot) ==&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
**2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 2d087763b2d0ea8c8ba8ac81ca38aafe  debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-jessie-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSDcard and Debian will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
BTW: we are only writing about 500Mb's to the eMMC so the script will only take about 5-6 Minutes after power on.&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/wheezy/BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
 ca0bcbf6ccb9b9bd5a5952a6284d58a2  BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-05-30T01:37:13Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 42eb043c6f81097d4184de73f84bfb85  ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.05.1 -b v2013.05.1&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 c883668c655897ce20bf5fbdc9875f6f  ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSD card and Ubuntu will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
BTW: we are only writing about 500Mb's to the eMMC so the script will only take about 5-6 Minutes after power on.&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/raring/BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz &lt;br /&gt;
 4b6bfbda52b0ae6d7a85569be23063cf  BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure (Maverick's Alpha-1 needs this....)&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
Screenshot: (on my xm it's a little jerky at the moment, investigating..)&lt;br /&gt;
 http://rcn-ee.net/bugs/dsp/dsp_v3.2.1-x2-test.jpg&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Ubuntu will try to use the FBDEV video driver, however for the BeagleBoard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lucid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Changing DVI output resolution ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu 10.10 above defaults to a resolution of 1284x768@16. This is set in the boot.cmd file in the boot partition of the SD card. To change the resolution the DVI output, edit boot.cmd accordingly then recreate the boot.scr file by:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;Ubuntu 10.10&amp;quot; -d ./boot.cmd ./boot.scr&lt;br /&gt;
&lt;br /&gt;
Then reboot the BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
== S-Video ==&lt;br /&gt;
''(For configuring S-Video on Angstrom, click [[BeagleBoardAngstrom#Configuring_uEnv.txt_to_set_s-video_as_the_default_display|here]])''.&lt;br /&gt;
&lt;br /&gt;
===Process for setting up S-Video===&lt;br /&gt;
&lt;br /&gt;
S-video is tested to be working on 2.6.35-rc5-dl9. BeagleBoard s-video output has traditionally been enabled by &amp;quot;using bootargs (boot arguments) at uboot&amp;quot;. In newer versions of the BeagleBoard, the developers have made things easier by instructing U-Boot to look for a .scr file about a dozen lines long that is called cmd.boot.scr, and then follow said parameters. In Angstrom, no boot.scr file is needed, instead, an even easier system is used, where a simple editable .txt file called uEnv.txt containing these parameters suffices (Env is for &amp;quot;environment&amp;quot;). For some reason, in the Ubuntu download files, typically there a bit of convoluted process where uEnv.txt is called up, uEnv.txt says &amp;quot;Go read conf.boot.scr&amp;quot;, and cmd.boot.scr sets up the s-video.&lt;br /&gt;
&lt;br /&gt;
To make cmd.boot.scr, create a text file named cmd.boot, then convert it into a .scr file with mkimage by running the following commands on the terminal:&lt;br /&gt;
&lt;br /&gt;
First, you will probably need to get mkimage with apt-get. Run&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mkimage&lt;br /&gt;
&lt;br /&gt;
Next, convert your cmd.boot.scr&lt;br /&gt;
&lt;br /&gt;
    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage' -d boot.cmd boot.scr&lt;br /&gt;
&lt;br /&gt;
===Bootargs: make this cmd.boot to set s-video===&lt;br /&gt;
&lt;br /&gt;
* NTSC&lt;br /&gt;
&lt;br /&gt;
     omapfb.mode='''tv:ntsc''' &lt;br /&gt;
     omapdss.def_disp='''tv'''&lt;br /&gt;
&lt;br /&gt;
Bootargs that has been validated.&lt;br /&gt;
&lt;br /&gt;
     setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro vram=12M omapfb.mode=tv:ntsc omapdss.def_disp=tv &lt;br /&gt;
     fixrtc buddy=unknown'&lt;br /&gt;
&lt;br /&gt;
===Screen cutoff problem===&lt;br /&gt;
&lt;br /&gt;
NTSC resolution is supposed to be 640x480. However the edge bands around the TV screen differ from TV to TV. Output of '''fbset''' shown below:&lt;br /&gt;
&lt;br /&gt;
    mode &amp;quot;720x482-30&amp;quot;&lt;br /&gt;
         # D: 13.500 MHz, H: 15.734 kHz, V: 29.970 Hz&lt;br /&gt;
         geometry 720 482 720 482 32&lt;br /&gt;
         timings 74074 16 58 6 31 64 6&lt;br /&gt;
         rgba 8/16,8/8,8/0,0/0&lt;br /&gt;
    endmode&lt;br /&gt;
&lt;br /&gt;
Depending on your TV device, and what desktop you are running a certain amount of screen cutoff is likely to occur. This is called [http://en.wikipedia.org/wiki/Overscan overscan]. Typically, around 5-10% of the left and right edges of display are off the screen (using Ubuntu with xfce). This seems to be due to the fact that there is only one display resolution that is set for NTSC: &amp;lt;!-- I don't know about PAL--&amp;gt; 720 X 482. It is not possible to change this setting in the xfce4 Settings Manager like one would normally be able to do, because other options are greyed out/do not exist. Normally, even if the Settings Manager did not allow for it, a different resolution setting could be obtained by editing the xorg.conf file in /etc/X11/xorg.conf-4, or some similar place. HOWEVER there is no xorg.conf file in the Beagle version of xfce. xrandr shows the display is set to the minimum of 720x574. Adding an xorg.conf does not fix the problem, because Beagle takes its (analog) display resolution settings directly from the display driver, where 720 X 480 (720 X 574 for PAL &amp;lt;!-- This I gather, but I really don't know--&amp;gt; ) is hard coded in.  &lt;br /&gt;
&lt;br /&gt;
An inelegant but usable workaround for the xfce desktop environment is simply to create vertical and horizontal panels that fill up the space that is cut off on the screen. This is not a complete solution, but at least it will prevent maximized windows from going off into nowhere land.&lt;br /&gt;
&lt;br /&gt;
Truly fixing this would involve going into the display driver and reprogramming it to include additional S-video settings besides just NTSC and PAL. Specifically, to make the whole framebuffer fit on the screen you would need to adjust the overlay in the display driver, the OMAP DSS2. (Didn't test this yet. Some pointers from the driver's documentation below)&lt;br /&gt;
&lt;br /&gt;
    /sys/devices/platform/omapdss/overlay? directory:&lt;br /&gt;
    enabled		0=off, 1=on&lt;br /&gt;
    input_size		width,height (ie. the framebuffer size)&lt;br /&gt;
    manager		Destination overlay manager name&lt;br /&gt;
    name&lt;br /&gt;
    output_size		width,height&lt;br /&gt;
    position		x,y&lt;br /&gt;
    screen_width	width&lt;br /&gt;
    global_alpha   	global alpha 0-255 0=transparent 255=opaque&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Download SRC&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Optional building the deb file&lt;br /&gt;
 ./build_deb.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Swapfile =&lt;br /&gt;
&lt;br /&gt;
== Using a File for Swap Instead of a Partition ==&lt;br /&gt;
&lt;br /&gt;
On the Bealgeboard you should expect to need a swap file given the limitation of how much RAM they have (between 256&amp;amp;nbsp;MB and 512&amp;amp;nbsp;MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256&amp;amp;nbsp;MB not being enough RAM).&lt;br /&gt;
&lt;br /&gt;
Some images such as those from Linaro.org do not come with a swap partition or any swap space allocated.&lt;br /&gt;
&lt;br /&gt;
Under Linux swap space can be either a dedicated partition or a single file. Both can be mounted as swap which the OS can access.&lt;br /&gt;
&lt;br /&gt;
=== Creating a Swapfile ===&lt;br /&gt;
&lt;br /&gt;
The following commands will create a 1 gigabyte file, lock access to only root, format it as swap and then advertise it to the OS.&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/cache/swap/   &lt;br /&gt;
 sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024&lt;br /&gt;
 sudo chmod 0600 /var/cache/swap/swapfile &lt;br /&gt;
 sudo mkswap /var/cache/swap/swapfile &lt;br /&gt;
 sudo swapon /var/cache/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
To ask the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:&lt;br /&gt;
&lt;br /&gt;
 /var/cache/swap/swapfile    none    swap    sw    0   0&lt;br /&gt;
&lt;br /&gt;
To verify that the swapfile is accessilble as swap to the OS, run &amp;quot;top&amp;quot; of &amp;quot;htop&amp;quot; at a console.&lt;br /&gt;
&lt;br /&gt;
= Ubuntu Software =&lt;br /&gt;
&lt;br /&gt;
== Wi-Fi Networking (command line) ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&lt;br /&gt;
It is possible and relatively easy to configure a Wi-Fi card from the command line.&lt;br /&gt;
&lt;br /&gt;
You will need to edit the /etc/network/interfaces file. There are several guides available via Google.&lt;br /&gt;
&lt;br /&gt;
This is a particularly useful guide http://ubuntuforums.org/showthread.php?t=202834 &lt;br /&gt;
&lt;br /&gt;
A sample /etc/network/interfaces file for a WPA2 encrypted access point is:&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-ssid &amp;lt;NAME OF AP&amp;gt;&lt;br /&gt;
 wpa-ap-scan 1&lt;br /&gt;
 wpa-proto RSN&lt;br /&gt;
 wpa-pairwise CCMP&lt;br /&gt;
 wpa-group CCMP&lt;br /&gt;
 wpa-key-mgmt WPA-PSK&lt;br /&gt;
 wpa-psk &amp;lt; INSERT KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your Wi-Fi card will automatically load these settings on start up and give network access.&lt;br /&gt;
&lt;br /&gt;
== Lightweight window managers ==&lt;br /&gt;
&lt;br /&gt;
If you intend to use Ubuntu on the BeagleBoard you can install JWM or IceWM to improve performance.&lt;br /&gt;
&lt;br /&gt;
JWM in particular uses little RAM. On a BeagleBoard with 256&amp;amp;nbsp;MB, using JWM will leave about 60&amp;amp;nbsp;MB free to run applications in.&lt;br /&gt;
&lt;br /&gt;
== Web Apps ==&lt;br /&gt;
&lt;br /&gt;
=== Midori ===&lt;br /&gt;
Given that the BeagleBoard has fewer resources than a desktop a light-weight browser is more responsive. Midori is a light-weight browser that still supports flash, etc. It is available from the standard repositories.&lt;br /&gt;
http://en.wikipedia.org/wiki/Midori_%28web_browser%29&lt;br /&gt;
&lt;br /&gt;
== Surveillance ==&lt;br /&gt;
&lt;br /&gt;
=== Motion ===&lt;br /&gt;
If you have a video source (webcam, IP cam, etc.) which appears as /dev/video0, etc. then you can use the Linux surveillance software &amp;quot;motion&amp;quot; to monitor the video stream and record periods of activity.&lt;br /&gt;
&lt;br /&gt;
Motion is also available from the standard repositories.&lt;br /&gt;
http://www.debian-administration.org/article/An_Introduction_to_Video_Surveillance_with_%27Motion%27&lt;br /&gt;
Using a 960x720 resolution webcam with a 15&amp;amp;nbsp;fps rate under the UVC driver the Rev C BeagleBoard under Xubuntu reports ~60% CPU utilisation.&lt;br /&gt;
&lt;br /&gt;
To make the BeagleBoard automatically start recording on boot do the following:&lt;br /&gt;
&lt;br /&gt;
* Auto Login - run &amp;quot;gdmsetup&amp;quot; from a terminal and select a user to automatically login &lt;br /&gt;
* Sessions - make sure you don't save any previous X Windows sessions so that it doesn't prompt you for which one you want&lt;br /&gt;
* motion.conf - amend /etc/motion/motion.conf to the settings you want (that is, video output directory, record only video, record in MPEG-4, set frame rate, etc). Do this with &amp;quot;sudo medit /etc/motion/motion.conf&amp;quot; at a prompt.&lt;br /&gt;
* Boot script - create a new script in /etc/rc2.d called &amp;quot;S65motion_client&amp;quot; and set permissions appropriately (&amp;quot;sudo chmod 777 /etc/rc2.d/S65motion_client&amp;quot;). Then edit the file so it has the following text in it:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 /usr/bin/motion -c /etc/motion/motion.conf&lt;br /&gt;
&lt;br /&gt;
This will now launch the motion client as root when you boot up.&lt;br /&gt;
&lt;br /&gt;
Also note that unless your BeagleBoard can remember the time (battery backed up clock installed) the timestamps will not be correct until you update the time. If your BeagleBoard has an Internet connection this can be achieved with the ntpdate application.&lt;br /&gt;
&lt;br /&gt;
== Robotics ==&lt;br /&gt;
&lt;br /&gt;
=== ROS ===&lt;br /&gt;
Willow Garage hosts the open source Robotic Operating System (ROS). Whilst it is natively supported in Ubuntu, the official packages are only for the x86 platform. ROS can be installed from source and is generally easy to do so (although slow).&lt;br /&gt;
&lt;br /&gt;
Following the instructions from here will build and install ROS on your BeagleBoard:&lt;br /&gt;
&lt;br /&gt;
http://www.ros.org/wiki/cturtle/Installation/Ubuntu/SVN&lt;br /&gt;
&lt;br /&gt;
You will need an Internet connection for your BeagleBoard for these scripts to work.&lt;br /&gt;
&lt;br /&gt;
For more information about ROS, see www.ros.org.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-30T00:44:35Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* eMMC: BeagleBone Black */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian 7.0.0 (wheezy)  ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 8b355f33e2c97685c7bdbdbfd166729f  debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
== Debian Jessie (development snapshot) ==&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
**2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 2d087763b2d0ea8c8ba8ac81ca38aafe  debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-jessie-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSDcard and Debian will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/wheezy/BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
 ca0bcbf6ccb9b9bd5a5952a6284d58a2  BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-05-30T00:32:05Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Demo Image */ add flasher/2013-05-29 image updates...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 42eb043c6f81097d4184de73f84bfb85  ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.05.1 -b v2013.05.1&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 c883668c655897ce20bf5fbdc9875f6f  ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on CircuitCo's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official CircuitCo images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove microSD card and Ubuntu will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/raring/BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz &lt;br /&gt;
 4b6bfbda52b0ae6d7a85569be23063cf  BBB-eMMC-flasher-ubuntu-13.04-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure (Maverick's Alpha-1 needs this....)&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
Screenshot: (on my xm it's a little jerky at the moment, investigating..)&lt;br /&gt;
 http://rcn-ee.net/bugs/dsp/dsp_v3.2.1-x2-test.jpg&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Ubuntu will try to use the FBDEV video driver, however for the BeagleBoard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lucid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Changing DVI output resolution ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu 10.10 above defaults to a resolution of 1284x768@16. This is set in the boot.cmd file in the boot partition of the SD card. To change the resolution the DVI output, edit boot.cmd accordingly then recreate the boot.scr file by:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;Ubuntu 10.10&amp;quot; -d ./boot.cmd ./boot.scr&lt;br /&gt;
&lt;br /&gt;
Then reboot the BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
== S-Video ==&lt;br /&gt;
''(For configuring S-Video on Angstrom, click [[BeagleBoardAngstrom#Configuring_uEnv.txt_to_set_s-video_as_the_default_display|here]])''.&lt;br /&gt;
&lt;br /&gt;
===Process for setting up S-Video===&lt;br /&gt;
&lt;br /&gt;
S-video is tested to be working on 2.6.35-rc5-dl9. BeagleBoard s-video output has traditionally been enabled by &amp;quot;using bootargs (boot arguments) at uboot&amp;quot;. In newer versions of the BeagleBoard, the developers have made things easier by instructing U-Boot to look for a .scr file about a dozen lines long that is called cmd.boot.scr, and then follow said parameters. In Angstrom, no boot.scr file is needed, instead, an even easier system is used, where a simple editable .txt file called uEnv.txt containing these parameters suffices (Env is for &amp;quot;environment&amp;quot;). For some reason, in the Ubuntu download files, typically there a bit of convoluted process where uEnv.txt is called up, uEnv.txt says &amp;quot;Go read conf.boot.scr&amp;quot;, and cmd.boot.scr sets up the s-video.&lt;br /&gt;
&lt;br /&gt;
To make cmd.boot.scr, create a text file named cmd.boot, then convert it into a .scr file with mkimage by running the following commands on the terminal:&lt;br /&gt;
&lt;br /&gt;
First, you will probably need to get mkimage with apt-get. Run&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mkimage&lt;br /&gt;
&lt;br /&gt;
Next, convert your cmd.boot.scr&lt;br /&gt;
&lt;br /&gt;
    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage' -d boot.cmd boot.scr&lt;br /&gt;
&lt;br /&gt;
===Bootargs: make this cmd.boot to set s-video===&lt;br /&gt;
&lt;br /&gt;
* NTSC&lt;br /&gt;
&lt;br /&gt;
     omapfb.mode='''tv:ntsc''' &lt;br /&gt;
     omapdss.def_disp='''tv'''&lt;br /&gt;
&lt;br /&gt;
Bootargs that has been validated.&lt;br /&gt;
&lt;br /&gt;
     setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro vram=12M omapfb.mode=tv:ntsc omapdss.def_disp=tv &lt;br /&gt;
     fixrtc buddy=unknown'&lt;br /&gt;
&lt;br /&gt;
===Screen cutoff problem===&lt;br /&gt;
&lt;br /&gt;
NTSC resolution is supposed to be 640x480. However the edge bands around the TV screen differ from TV to TV. Output of '''fbset''' shown below:&lt;br /&gt;
&lt;br /&gt;
    mode &amp;quot;720x482-30&amp;quot;&lt;br /&gt;
         # D: 13.500 MHz, H: 15.734 kHz, V: 29.970 Hz&lt;br /&gt;
         geometry 720 482 720 482 32&lt;br /&gt;
         timings 74074 16 58 6 31 64 6&lt;br /&gt;
         rgba 8/16,8/8,8/0,0/0&lt;br /&gt;
    endmode&lt;br /&gt;
&lt;br /&gt;
Depending on your TV device, and what desktop you are running a certain amount of screen cutoff is likely to occur. This is called [http://en.wikipedia.org/wiki/Overscan overscan]. Typically, around 5-10% of the left and right edges of display are off the screen (using Ubuntu with xfce). This seems to be due to the fact that there is only one display resolution that is set for NTSC: &amp;lt;!-- I don't know about PAL--&amp;gt; 720 X 482. It is not possible to change this setting in the xfce4 Settings Manager like one would normally be able to do, because other options are greyed out/do not exist. Normally, even if the Settings Manager did not allow for it, a different resolution setting could be obtained by editing the xorg.conf file in /etc/X11/xorg.conf-4, or some similar place. HOWEVER there is no xorg.conf file in the Beagle version of xfce. xrandr shows the display is set to the minimum of 720x574. Adding an xorg.conf does not fix the problem, because Beagle takes its (analog) display resolution settings directly from the display driver, where 720 X 480 (720 X 574 for PAL &amp;lt;!-- This I gather, but I really don't know--&amp;gt; ) is hard coded in.  &lt;br /&gt;
&lt;br /&gt;
An inelegant but usable workaround for the xfce desktop environment is simply to create vertical and horizontal panels that fill up the space that is cut off on the screen. This is not a complete solution, but at least it will prevent maximized windows from going off into nowhere land.&lt;br /&gt;
&lt;br /&gt;
Truly fixing this would involve going into the display driver and reprogramming it to include additional S-video settings besides just NTSC and PAL. Specifically, to make the whole framebuffer fit on the screen you would need to adjust the overlay in the display driver, the OMAP DSS2. (Didn't test this yet. Some pointers from the driver's documentation below)&lt;br /&gt;
&lt;br /&gt;
    /sys/devices/platform/omapdss/overlay? directory:&lt;br /&gt;
    enabled		0=off, 1=on&lt;br /&gt;
    input_size		width,height (ie. the framebuffer size)&lt;br /&gt;
    manager		Destination overlay manager name&lt;br /&gt;
    name&lt;br /&gt;
    output_size		width,height&lt;br /&gt;
    position		x,y&lt;br /&gt;
    screen_width	width&lt;br /&gt;
    global_alpha   	global alpha 0-255 0=transparent 255=opaque&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Download SRC&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Optional building the deb file&lt;br /&gt;
 ./build_deb.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Swapfile =&lt;br /&gt;
&lt;br /&gt;
== Using a File for Swap Instead of a Partition ==&lt;br /&gt;
&lt;br /&gt;
On the Bealgeboard you should expect to need a swap file given the limitation of how much RAM they have (between 256&amp;amp;nbsp;MB and 512&amp;amp;nbsp;MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256&amp;amp;nbsp;MB not being enough RAM).&lt;br /&gt;
&lt;br /&gt;
Some images such as those from Linaro.org do not come with a swap partition or any swap space allocated.&lt;br /&gt;
&lt;br /&gt;
Under Linux swap space can be either a dedicated partition or a single file. Both can be mounted as swap which the OS can access.&lt;br /&gt;
&lt;br /&gt;
=== Creating a Swapfile ===&lt;br /&gt;
&lt;br /&gt;
The following commands will create a 1 gigabyte file, lock access to only root, format it as swap and then advertise it to the OS.&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/cache/swap/   &lt;br /&gt;
 sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024&lt;br /&gt;
 sudo chmod 0600 /var/cache/swap/swapfile &lt;br /&gt;
 sudo mkswap /var/cache/swap/swapfile &lt;br /&gt;
 sudo swapon /var/cache/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
To ask the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:&lt;br /&gt;
&lt;br /&gt;
 /var/cache/swap/swapfile    none    swap    sw    0   0&lt;br /&gt;
&lt;br /&gt;
To verify that the swapfile is accessilble as swap to the OS, run &amp;quot;top&amp;quot; of &amp;quot;htop&amp;quot; at a console.&lt;br /&gt;
&lt;br /&gt;
= Ubuntu Software =&lt;br /&gt;
&lt;br /&gt;
== Wi-Fi Networking (command line) ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&lt;br /&gt;
It is possible and relatively easy to configure a Wi-Fi card from the command line.&lt;br /&gt;
&lt;br /&gt;
You will need to edit the /etc/network/interfaces file. There are several guides available via Google.&lt;br /&gt;
&lt;br /&gt;
This is a particularly useful guide http://ubuntuforums.org/showthread.php?t=202834 &lt;br /&gt;
&lt;br /&gt;
A sample /etc/network/interfaces file for a WPA2 encrypted access point is:&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-ssid &amp;lt;NAME OF AP&amp;gt;&lt;br /&gt;
 wpa-ap-scan 1&lt;br /&gt;
 wpa-proto RSN&lt;br /&gt;
 wpa-pairwise CCMP&lt;br /&gt;
 wpa-group CCMP&lt;br /&gt;
 wpa-key-mgmt WPA-PSK&lt;br /&gt;
 wpa-psk &amp;lt; INSERT KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your Wi-Fi card will automatically load these settings on start up and give network access.&lt;br /&gt;
&lt;br /&gt;
== Lightweight window managers ==&lt;br /&gt;
&lt;br /&gt;
If you intend to use Ubuntu on the BeagleBoard you can install JWM or IceWM to improve performance.&lt;br /&gt;
&lt;br /&gt;
JWM in particular uses little RAM. On a BeagleBoard with 256&amp;amp;nbsp;MB, using JWM will leave about 60&amp;amp;nbsp;MB free to run applications in.&lt;br /&gt;
&lt;br /&gt;
== Web Apps ==&lt;br /&gt;
&lt;br /&gt;
=== Midori ===&lt;br /&gt;
Given that the BeagleBoard has fewer resources than a desktop a light-weight browser is more responsive. Midori is a light-weight browser that still supports flash, etc. It is available from the standard repositories.&lt;br /&gt;
http://en.wikipedia.org/wiki/Midori_%28web_browser%29&lt;br /&gt;
&lt;br /&gt;
== Surveillance ==&lt;br /&gt;
&lt;br /&gt;
=== Motion ===&lt;br /&gt;
If you have a video source (webcam, IP cam, etc.) which appears as /dev/video0, etc. then you can use the Linux surveillance software &amp;quot;motion&amp;quot; to monitor the video stream and record periods of activity.&lt;br /&gt;
&lt;br /&gt;
Motion is also available from the standard repositories.&lt;br /&gt;
http://www.debian-administration.org/article/An_Introduction_to_Video_Surveillance_with_%27Motion%27&lt;br /&gt;
Using a 960x720 resolution webcam with a 15&amp;amp;nbsp;fps rate under the UVC driver the Rev C BeagleBoard under Xubuntu reports ~60% CPU utilisation.&lt;br /&gt;
&lt;br /&gt;
To make the BeagleBoard automatically start recording on boot do the following:&lt;br /&gt;
&lt;br /&gt;
* Auto Login - run &amp;quot;gdmsetup&amp;quot; from a terminal and select a user to automatically login &lt;br /&gt;
* Sessions - make sure you don't save any previous X Windows sessions so that it doesn't prompt you for which one you want&lt;br /&gt;
* motion.conf - amend /etc/motion/motion.conf to the settings you want (that is, video output directory, record only video, record in MPEG-4, set frame rate, etc). Do this with &amp;quot;sudo medit /etc/motion/motion.conf&amp;quot; at a prompt.&lt;br /&gt;
* Boot script - create a new script in /etc/rc2.d called &amp;quot;S65motion_client&amp;quot; and set permissions appropriately (&amp;quot;sudo chmod 777 /etc/rc2.d/S65motion_client&amp;quot;). Then edit the file so it has the following text in it:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 /usr/bin/motion -c /etc/motion/motion.conf&lt;br /&gt;
&lt;br /&gt;
This will now launch the motion client as root when you boot up.&lt;br /&gt;
&lt;br /&gt;
Also note that unless your BeagleBoard can remember the time (battery backed up clock installed) the timestamps will not be correct until you update the time. If your BeagleBoard has an Internet connection this can be achieved with the ntpdate application.&lt;br /&gt;
&lt;br /&gt;
== Robotics ==&lt;br /&gt;
&lt;br /&gt;
=== ROS ===&lt;br /&gt;
Willow Garage hosts the open source Robotic Operating System (ROS). Whilst it is natively supported in Ubuntu, the official packages are only for the x86 platform. ROS can be installed from source and is generally easy to do so (although slow).&lt;br /&gt;
&lt;br /&gt;
Following the instructions from here will build and install ROS on your BeagleBoard:&lt;br /&gt;
&lt;br /&gt;
http://www.ros.org/wiki/cturtle/Installation/Ubuntu/SVN&lt;br /&gt;
&lt;br /&gt;
You will need an Internet connection for your BeagleBoard for these scripts to work.&lt;br /&gt;
&lt;br /&gt;
For more information about ROS, see www.ros.org.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-30T00:27:50Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Flasher */ is my head on straight today?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian 7.0.0 (wheezy)  ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 8b355f33e2c97685c7bdbdbfd166729f  debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
== Debian Jessie (development snapshot) ==&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
**2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 2d087763b2d0ea8c8ba8ac81ca38aafe  debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-jessie-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on circuitco's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official circuitco images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove sd card and Debian will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/flasher/wheezy/BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
 ca0bcbf6ccb9b9bd5a5952a6284d58a2  BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-30T00:26:56Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Demo Image */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian 7.0.0 (wheezy)  ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 8b355f33e2c97685c7bdbdbfd166729f  debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
== Debian Jessie (development snapshot) ==&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
**2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 2d087763b2d0ea8c8ba8ac81ca38aafe  debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-jessie-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on circuitco's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official circuitco images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove sd card and Debian will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
 ca0bcbf6ccb9b9bd5a5952a6284d58a2  BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-30T00:26:40Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Debian 7.0.0 (wheezy) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian 7.0.0 (wheezy)  ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-29&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 8b355f33e2c97685c7bdbdbfd166729f  debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
== Debian Jessie (development snapshot) ==&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 2d087763b2d0ea8c8ba8ac81ca38aafe  debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-jessie-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on circuitco's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official circuitco images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove sd card and Debian will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
 ca0bcbf6ccb9b9bd5a5952a6284d58a2  BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-30T00:23:45Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* eMMC: BeagleBone Black */ add script for what file is used..&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian 7.0.0 (wheezy)  ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 8b355f33e2c97685c7bdbdbfd166729f  debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
== Debian Jessie (development snapshot) ==&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 2d087763b2d0ea8c8ba8ac81ca38aafe  debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-jessie-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on circuitco's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official circuitco images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove sd card and Debian will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Reference: (this is the script that writes to the eMMC)&lt;br /&gt;
 https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
 ca0bcbf6ccb9b9bd5a5952a6284d58a2  BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-30T00:21:57Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Demo Image */ add eMMC flasher stuff. ;)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian 7.0.0 (wheezy)  ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 8b355f33e2c97685c7bdbdbfd166729f  debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
== Debian Jessie (development snapshot) ==&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/jessie/debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 2d087763b2d0ea8c8ba8ac81ca38aafe  debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf debian-jessie-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-jessie-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Flasher =&lt;br /&gt;
&lt;br /&gt;
== eMMC: BeagleBone Black ==&lt;br /&gt;
&lt;br /&gt;
This image can be written to a 1Gb (or greater) microSD card, via 'dd' in linux or the win32 image program linked to on circuitco's wiki page.  First hold down on the boot select button (next to microSD card) and apply &lt;br /&gt;
power (same procedure as the official circuitco images), it should boot into debian and begin flashing the eMMC, once completed all 4 LED's should be full ON...  Simply remove power, remove sd card and Debian will now boot from eMMC.&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** BeagleBone Black: v3.8.13-bone20 kernel&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with:&lt;br /&gt;
 md5sum BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
 ca0bcbf6ccb9b9bd5a5952a6284d58a2  BBB-eMMC-flasher-debian-7.0.0-2013-05-29.img.xz&lt;br /&gt;
&lt;br /&gt;
Follow the &amp;quot;standard&amp;quot; update procedure.&lt;br /&gt;
 http://circuitco.com/support/index.php?title=Updating_The_Software&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-30T00:12:42Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Debian Wheezy snapshot */ debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone20 kernel (--uboot bone_dtb)&lt;br /&gt;
*** BBB: USB hotplug now works...&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Active on Boot Script:&lt;br /&gt;
*Disable by removing &amp;quot;run_boot-scripts&amp;quot; from small boot partition...*&lt;br /&gt;
 /opt/boot-scripts/&amp;lt;board&amp;gt;.sh&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 8b355f33e2c97685c7bdbdbfd166729f  debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-05-29.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-05-29&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
*Note: This section is BeagleBoard(-xM) only since the BeagleBone (Black) doesn't have a DSP.&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-05-20T15:27:33Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: wording...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 8c791b69ee4c6ddfd1ce4c9049ecf23e  ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-05-18&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.05 -b v2013.05&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 feb3e41208dba6ec1593ac0b910cff3d  ubuntu-12.10-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-05-18&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure (Maverick's Alpha-1 needs this....)&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
Screenshot: (on my xm it's a little jerky at the moment, investigating..)&lt;br /&gt;
 http://rcn-ee.net/bugs/dsp/dsp_v3.2.1-x2-test.jpg&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Ubuntu will try to use the FBDEV video driver, however for the BeagleBoard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lucid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Changing DVI output resolution ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu 10.10 above defaults to a resolution of 1284x768@16. This is set in the boot.cmd file in the boot partition of the SD card. To change the resolution the DVI output, edit boot.cmd accordingly then recreate the boot.scr file by:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;Ubuntu 10.10&amp;quot; -d ./boot.cmd ./boot.scr&lt;br /&gt;
&lt;br /&gt;
Then reboot the BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
== S-Video ==&lt;br /&gt;
''(For configuring S-Video on Angstrom, click [[BeagleBoardAngstrom#Configuring_uEnv.txt_to_set_s-video_as_the_default_display|here]])''.&lt;br /&gt;
&lt;br /&gt;
===Process for setting up S-Video===&lt;br /&gt;
&lt;br /&gt;
S-video is tested to be working on 2.6.35-rc5-dl9. BeagleBoard s-video output has traditionally been enabled by &amp;quot;using bootargs (boot arguments) at uboot&amp;quot;. In newer versions of the BeagleBoard, the developers have made things easier by instructing U-Boot to look for a .scr file about a dozen lines long that is called cmd.boot.scr, and then follow said parameters. In Angstrom, no boot.scr file is needed, instead, an even easier system is used, where a simple editable .txt file called uEnv.txt containing these parameters suffices (Env is for &amp;quot;environment&amp;quot;). For some reason, in the Ubuntu download files, typically there a bit of convoluted process where uEnv.txt is called up, uEnv.txt says &amp;quot;Go read conf.boot.scr&amp;quot;, and cmd.boot.scr sets up the s-video.&lt;br /&gt;
&lt;br /&gt;
To make cmd.boot.scr, create a text file named cmd.boot, then convert it into a .scr file with mkimage by running the following commands on the terminal:&lt;br /&gt;
&lt;br /&gt;
First, you will probably need to get mkimage with apt-get. Run&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mkimage&lt;br /&gt;
&lt;br /&gt;
Next, convert your cmd.boot.scr&lt;br /&gt;
&lt;br /&gt;
    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage' -d boot.cmd boot.scr&lt;br /&gt;
&lt;br /&gt;
===Bootargs: make this cmd.boot to set s-video===&lt;br /&gt;
&lt;br /&gt;
* NTSC&lt;br /&gt;
&lt;br /&gt;
     omapfb.mode='''tv:ntsc''' &lt;br /&gt;
     omapdss.def_disp='''tv'''&lt;br /&gt;
&lt;br /&gt;
Bootargs that has been validated.&lt;br /&gt;
&lt;br /&gt;
     setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro vram=12M omapfb.mode=tv:ntsc omapdss.def_disp=tv &lt;br /&gt;
     fixrtc buddy=unknown'&lt;br /&gt;
&lt;br /&gt;
===Screen cutoff problem===&lt;br /&gt;
&lt;br /&gt;
NTSC resolution is supposed to be 640x480. However the edge bands around the TV screen differ from TV to TV. Output of '''fbset''' shown below:&lt;br /&gt;
&lt;br /&gt;
    mode &amp;quot;720x482-30&amp;quot;&lt;br /&gt;
         # D: 13.500 MHz, H: 15.734 kHz, V: 29.970 Hz&lt;br /&gt;
         geometry 720 482 720 482 32&lt;br /&gt;
         timings 74074 16 58 6 31 64 6&lt;br /&gt;
         rgba 8/16,8/8,8/0,0/0&lt;br /&gt;
    endmode&lt;br /&gt;
&lt;br /&gt;
Depending on your TV device, and what desktop you are running a certain amount of screen cutoff is likely to occur. This is called [http://en.wikipedia.org/wiki/Overscan overscan]. Typically, around 5-10% of the left and right edges of display are off the screen (using Ubuntu with xfce). This seems to be due to the fact that there is only one display resolution that is set for NTSC: &amp;lt;!-- I don't know about PAL--&amp;gt; 720 X 482. It is not possible to change this setting in the xfce4 Settings Manager like one would normally be able to do, because other options are greyed out/do not exist. Normally, even if the Settings Manager did not allow for it, a different resolution setting could be obtained by editing the xorg.conf file in /etc/X11/xorg.conf-4, or some similar place. HOWEVER there is no xorg.conf file in the Beagle version of xfce. xrandr shows the display is set to the minimum of 720x574. Adding an xorg.conf does not fix the problem, because Beagle takes its (analog) display resolution settings directly from the display driver, where 720 X 480 (720 X 574 for PAL &amp;lt;!-- This I gather, but I really don't know--&amp;gt; ) is hard coded in.  &lt;br /&gt;
&lt;br /&gt;
An inelegant but usable workaround for the xfce desktop environment is simply to create vertical and horizontal panels that fill up the space that is cut off on the screen. This is not a complete solution, but at least it will prevent maximized windows from going off into nowhere land.&lt;br /&gt;
&lt;br /&gt;
Truly fixing this would involve going into the display driver and reprogramming it to include additional S-video settings besides just NTSC and PAL. Specifically, to make the whole framebuffer fit on the screen you would need to adjust the overlay in the display driver, the OMAP DSS2. (Didn't test this yet. Some pointers from the driver's documentation below)&lt;br /&gt;
&lt;br /&gt;
    /sys/devices/platform/omapdss/overlay? directory:&lt;br /&gt;
    enabled		0=off, 1=on&lt;br /&gt;
    input_size		width,height (ie. the framebuffer size)&lt;br /&gt;
    manager		Destination overlay manager name&lt;br /&gt;
    name&lt;br /&gt;
    output_size		width,height&lt;br /&gt;
    position		x,y&lt;br /&gt;
    screen_width	width&lt;br /&gt;
    global_alpha   	global alpha 0-255 0=transparent 255=opaque&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Download SRC&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Optional building the deb file&lt;br /&gt;
 ./build_deb.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Swapfile =&lt;br /&gt;
&lt;br /&gt;
== Using a File for Swap Instead of a Partition ==&lt;br /&gt;
&lt;br /&gt;
On the Bealgeboard you should expect to need a swap file given the limitation of how much RAM they have (between 256&amp;amp;nbsp;MB and 512&amp;amp;nbsp;MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256&amp;amp;nbsp;MB not being enough RAM).&lt;br /&gt;
&lt;br /&gt;
Some images such as those from Linaro.org do not come with a swap partition or any swap space allocated.&lt;br /&gt;
&lt;br /&gt;
Under Linux swap space can be either a dedicated partition or a single file. Both can be mounted as swap which the OS can access.&lt;br /&gt;
&lt;br /&gt;
=== Creating a Swapfile ===&lt;br /&gt;
&lt;br /&gt;
The following commands will create a 1 gigabyte file, lock access to only root, format it as swap and then advertise it to the OS.&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/cache/swap/   &lt;br /&gt;
 sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024&lt;br /&gt;
 sudo chmod 0600 /var/cache/swap/swapfile &lt;br /&gt;
 sudo mkswap /var/cache/swap/swapfile &lt;br /&gt;
 sudo swapon /var/cache/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
To ask the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:&lt;br /&gt;
&lt;br /&gt;
 /var/cache/swap/swapfile    none    swap    sw    0   0&lt;br /&gt;
&lt;br /&gt;
To verify that the swapfile is accessilble as swap to the OS, run &amp;quot;top&amp;quot; of &amp;quot;htop&amp;quot; at a console.&lt;br /&gt;
&lt;br /&gt;
= Ubuntu Software =&lt;br /&gt;
&lt;br /&gt;
== Wi-Fi Networking (command line) ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&lt;br /&gt;
It is possible and relatively easy to configure a Wi-Fi card from the command line.&lt;br /&gt;
&lt;br /&gt;
You will need to edit the /etc/network/interfaces file. There are several guides available via Google.&lt;br /&gt;
&lt;br /&gt;
This is a particularly useful guide http://ubuntuforums.org/showthread.php?t=202834 &lt;br /&gt;
&lt;br /&gt;
A sample /etc/network/interfaces file for a WPA2 encrypted access point is:&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-ssid &amp;lt;NAME OF AP&amp;gt;&lt;br /&gt;
 wpa-ap-scan 1&lt;br /&gt;
 wpa-proto RSN&lt;br /&gt;
 wpa-pairwise CCMP&lt;br /&gt;
 wpa-group CCMP&lt;br /&gt;
 wpa-key-mgmt WPA-PSK&lt;br /&gt;
 wpa-psk &amp;lt; INSERT KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your Wi-Fi card will automatically load these settings on start up and give network access.&lt;br /&gt;
&lt;br /&gt;
== Lightweight window managers ==&lt;br /&gt;
&lt;br /&gt;
If you intend to use Ubuntu on the BeagleBoard you can install JWM or IceWM to improve performance.&lt;br /&gt;
&lt;br /&gt;
JWM in particular uses little RAM. On a BeagleBoard with 256&amp;amp;nbsp;MB, using JWM will leave about 60&amp;amp;nbsp;MB free to run applications in.&lt;br /&gt;
&lt;br /&gt;
== Web Apps ==&lt;br /&gt;
&lt;br /&gt;
=== Midori ===&lt;br /&gt;
Given that the BeagleBoard has fewer resources than a desktop a light-weight browser is more responsive. Midori is a light-weight browser that still supports flash, etc. It is available from the standard repositories.&lt;br /&gt;
http://en.wikipedia.org/wiki/Midori_%28web_browser%29&lt;br /&gt;
&lt;br /&gt;
== Surveillance ==&lt;br /&gt;
&lt;br /&gt;
=== Motion ===&lt;br /&gt;
If you have a video source (webcam, IP cam, etc.) which appears as /dev/video0, etc. then you can use the Linux surveillance software &amp;quot;motion&amp;quot; to monitor the video stream and record periods of activity.&lt;br /&gt;
&lt;br /&gt;
Motion is also available from the standard repositories.&lt;br /&gt;
http://www.debian-administration.org/article/An_Introduction_to_Video_Surveillance_with_%27Motion%27&lt;br /&gt;
Using a 960x720 resolution webcam with a 15&amp;amp;nbsp;fps rate under the UVC driver the Rev C BeagleBoard under Xubuntu reports ~60% CPU utilisation.&lt;br /&gt;
&lt;br /&gt;
To make the BeagleBoard automatically start recording on boot do the following:&lt;br /&gt;
&lt;br /&gt;
* Auto Login - run &amp;quot;gdmsetup&amp;quot; from a terminal and select a user to automatically login &lt;br /&gt;
* Sessions - make sure you don't save any previous X Windows sessions so that it doesn't prompt you for which one you want&lt;br /&gt;
* motion.conf - amend /etc/motion/motion.conf to the settings you want (that is, video output directory, record only video, record in MPEG-4, set frame rate, etc). Do this with &amp;quot;sudo medit /etc/motion/motion.conf&amp;quot; at a prompt.&lt;br /&gt;
* Boot script - create a new script in /etc/rc2.d called &amp;quot;S65motion_client&amp;quot; and set permissions appropriately (&amp;quot;sudo chmod 777 /etc/rc2.d/S65motion_client&amp;quot;). Then edit the file so it has the following text in it:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 /usr/bin/motion -c /etc/motion/motion.conf&lt;br /&gt;
&lt;br /&gt;
This will now launch the motion client as root when you boot up.&lt;br /&gt;
&lt;br /&gt;
Also note that unless your BeagleBoard can remember the time (battery backed up clock installed) the timestamps will not be correct until you update the time. If your BeagleBoard has an Internet connection this can be achieved with the ntpdate application.&lt;br /&gt;
&lt;br /&gt;
== Robotics ==&lt;br /&gt;
&lt;br /&gt;
=== ROS ===&lt;br /&gt;
Willow Garage hosts the open source Robotic Operating System (ROS). Whilst it is natively supported in Ubuntu, the official packages are only for the x86 platform. ROS can be installed from source and is generally easy to do so (although slow).&lt;br /&gt;
&lt;br /&gt;
Following the instructions from here will build and install ROS on your BeagleBoard:&lt;br /&gt;
&lt;br /&gt;
http://www.ros.org/wiki/cturtle/Installation/Ubuntu/SVN&lt;br /&gt;
&lt;br /&gt;
You will need an Internet connection for your BeagleBoard for these scripts to work.&lt;br /&gt;
&lt;br /&gt;
For more information about ROS, see www.ros.org.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-20T15:26:53Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Debian Wheezy snapshot */ debian-7.0.0-console-armhf-2013-05-18&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-7.0.0-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-7.0.0-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 dfe308e3e534d8adef75db5308174cf6  debian-7.0.0-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-7.0.0-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 cd debian-7.0.0-console-armhf-2013-05-18&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-05-20T15:25:05Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Quantal 12.10 armhf */ ubuntu-12.10-console-armhf-2013-05-18&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: or via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: or via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: or via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 8c791b69ee4c6ddfd1ce4c9049ecf23e  ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-05-18&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.05 -b v2013.05&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 feb3e41208dba6ec1593ac0b910cff3d  ubuntu-12.10-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-05-18&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure (Maverick's Alpha-1 needs this....)&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
Screenshot: (on my xm it's a little jerky at the moment, investigating..)&lt;br /&gt;
 http://rcn-ee.net/bugs/dsp/dsp_v3.2.1-x2-test.jpg&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Ubuntu will try to use the FBDEV video driver, however for the BeagleBoard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lucid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Changing DVI output resolution ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu 10.10 above defaults to a resolution of 1284x768@16. This is set in the boot.cmd file in the boot partition of the SD card. To change the resolution the DVI output, edit boot.cmd accordingly then recreate the boot.scr file by:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;Ubuntu 10.10&amp;quot; -d ./boot.cmd ./boot.scr&lt;br /&gt;
&lt;br /&gt;
Then reboot the BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
== S-Video ==&lt;br /&gt;
''(For configuring S-Video on Angstrom, click [[BeagleBoardAngstrom#Configuring_uEnv.txt_to_set_s-video_as_the_default_display|here]])''.&lt;br /&gt;
&lt;br /&gt;
===Process for setting up S-Video===&lt;br /&gt;
&lt;br /&gt;
S-video is tested to be working on 2.6.35-rc5-dl9. BeagleBoard s-video output has traditionally been enabled by &amp;quot;using bootargs (boot arguments) at uboot&amp;quot;. In newer versions of the BeagleBoard, the developers have made things easier by instructing U-Boot to look for a .scr file about a dozen lines long that is called cmd.boot.scr, and then follow said parameters. In Angstrom, no boot.scr file is needed, instead, an even easier system is used, where a simple editable .txt file called uEnv.txt containing these parameters suffices (Env is for &amp;quot;environment&amp;quot;). For some reason, in the Ubuntu download files, typically there a bit of convoluted process where uEnv.txt is called up, uEnv.txt says &amp;quot;Go read conf.boot.scr&amp;quot;, and cmd.boot.scr sets up the s-video.&lt;br /&gt;
&lt;br /&gt;
To make cmd.boot.scr, create a text file named cmd.boot, then convert it into a .scr file with mkimage by running the following commands on the terminal:&lt;br /&gt;
&lt;br /&gt;
First, you will probably need to get mkimage with apt-get. Run&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mkimage&lt;br /&gt;
&lt;br /&gt;
Next, convert your cmd.boot.scr&lt;br /&gt;
&lt;br /&gt;
    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage' -d boot.cmd boot.scr&lt;br /&gt;
&lt;br /&gt;
===Bootargs: make this cmd.boot to set s-video===&lt;br /&gt;
&lt;br /&gt;
* NTSC&lt;br /&gt;
&lt;br /&gt;
     omapfb.mode='''tv:ntsc''' &lt;br /&gt;
     omapdss.def_disp='''tv'''&lt;br /&gt;
&lt;br /&gt;
Bootargs that has been validated.&lt;br /&gt;
&lt;br /&gt;
     setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro vram=12M omapfb.mode=tv:ntsc omapdss.def_disp=tv &lt;br /&gt;
     fixrtc buddy=unknown'&lt;br /&gt;
&lt;br /&gt;
===Screen cutoff problem===&lt;br /&gt;
&lt;br /&gt;
NTSC resolution is supposed to be 640x480. However the edge bands around the TV screen differ from TV to TV. Output of '''fbset''' shown below:&lt;br /&gt;
&lt;br /&gt;
    mode &amp;quot;720x482-30&amp;quot;&lt;br /&gt;
         # D: 13.500 MHz, H: 15.734 kHz, V: 29.970 Hz&lt;br /&gt;
         geometry 720 482 720 482 32&lt;br /&gt;
         timings 74074 16 58 6 31 64 6&lt;br /&gt;
         rgba 8/16,8/8,8/0,0/0&lt;br /&gt;
    endmode&lt;br /&gt;
&lt;br /&gt;
Depending on your TV device, and what desktop you are running a certain amount of screen cutoff is likely to occur. This is called [http://en.wikipedia.org/wiki/Overscan overscan]. Typically, around 5-10% of the left and right edges of display are off the screen (using Ubuntu with xfce). This seems to be due to the fact that there is only one display resolution that is set for NTSC: &amp;lt;!-- I don't know about PAL--&amp;gt; 720 X 482. It is not possible to change this setting in the xfce4 Settings Manager like one would normally be able to do, because other options are greyed out/do not exist. Normally, even if the Settings Manager did not allow for it, a different resolution setting could be obtained by editing the xorg.conf file in /etc/X11/xorg.conf-4, or some similar place. HOWEVER there is no xorg.conf file in the Beagle version of xfce. xrandr shows the display is set to the minimum of 720x574. Adding an xorg.conf does not fix the problem, because Beagle takes its (analog) display resolution settings directly from the display driver, where 720 X 480 (720 X 574 for PAL &amp;lt;!-- This I gather, but I really don't know--&amp;gt; ) is hard coded in.  &lt;br /&gt;
&lt;br /&gt;
An inelegant but usable workaround for the xfce desktop environment is simply to create vertical and horizontal panels that fill up the space that is cut off on the screen. This is not a complete solution, but at least it will prevent maximized windows from going off into nowhere land.&lt;br /&gt;
&lt;br /&gt;
Truly fixing this would involve going into the display driver and reprogramming it to include additional S-video settings besides just NTSC and PAL. Specifically, to make the whole framebuffer fit on the screen you would need to adjust the overlay in the display driver, the OMAP DSS2. (Didn't test this yet. Some pointers from the driver's documentation below)&lt;br /&gt;
&lt;br /&gt;
    /sys/devices/platform/omapdss/overlay? directory:&lt;br /&gt;
    enabled		0=off, 1=on&lt;br /&gt;
    input_size		width,height (ie. the framebuffer size)&lt;br /&gt;
    manager		Destination overlay manager name&lt;br /&gt;
    name&lt;br /&gt;
    output_size		width,height&lt;br /&gt;
    position		x,y&lt;br /&gt;
    screen_width	width&lt;br /&gt;
    global_alpha   	global alpha 0-255 0=transparent 255=opaque&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Download SRC&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Optional building the deb file&lt;br /&gt;
 ./build_deb.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Swapfile =&lt;br /&gt;
&lt;br /&gt;
== Using a File for Swap Instead of a Partition ==&lt;br /&gt;
&lt;br /&gt;
On the Bealgeboard you should expect to need a swap file given the limitation of how much RAM they have (between 256&amp;amp;nbsp;MB and 512&amp;amp;nbsp;MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256&amp;amp;nbsp;MB not being enough RAM).&lt;br /&gt;
&lt;br /&gt;
Some images such as those from Linaro.org do not come with a swap partition or any swap space allocated.&lt;br /&gt;
&lt;br /&gt;
Under Linux swap space can be either a dedicated partition or a single file. Both can be mounted as swap which the OS can access.&lt;br /&gt;
&lt;br /&gt;
=== Creating a Swapfile ===&lt;br /&gt;
&lt;br /&gt;
The following commands will create a 1 gigabyte file, lock access to only root, format it as swap and then advertise it to the OS.&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/cache/swap/   &lt;br /&gt;
 sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024&lt;br /&gt;
 sudo chmod 0600 /var/cache/swap/swapfile &lt;br /&gt;
 sudo mkswap /var/cache/swap/swapfile &lt;br /&gt;
 sudo swapon /var/cache/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
To ask the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:&lt;br /&gt;
&lt;br /&gt;
 /var/cache/swap/swapfile    none    swap    sw    0   0&lt;br /&gt;
&lt;br /&gt;
To verify that the swapfile is accessilble as swap to the OS, run &amp;quot;top&amp;quot; of &amp;quot;htop&amp;quot; at a console.&lt;br /&gt;
&lt;br /&gt;
= Ubuntu Software =&lt;br /&gt;
&lt;br /&gt;
== Wi-Fi Networking (command line) ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&lt;br /&gt;
It is possible and relatively easy to configure a Wi-Fi card from the command line.&lt;br /&gt;
&lt;br /&gt;
You will need to edit the /etc/network/interfaces file. There are several guides available via Google.&lt;br /&gt;
&lt;br /&gt;
This is a particularly useful guide http://ubuntuforums.org/showthread.php?t=202834 &lt;br /&gt;
&lt;br /&gt;
A sample /etc/network/interfaces file for a WPA2 encrypted access point is:&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-ssid &amp;lt;NAME OF AP&amp;gt;&lt;br /&gt;
 wpa-ap-scan 1&lt;br /&gt;
 wpa-proto RSN&lt;br /&gt;
 wpa-pairwise CCMP&lt;br /&gt;
 wpa-group CCMP&lt;br /&gt;
 wpa-key-mgmt WPA-PSK&lt;br /&gt;
 wpa-psk &amp;lt; INSERT KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your Wi-Fi card will automatically load these settings on start up and give network access.&lt;br /&gt;
&lt;br /&gt;
== Lightweight window managers ==&lt;br /&gt;
&lt;br /&gt;
If you intend to use Ubuntu on the BeagleBoard you can install JWM or IceWM to improve performance.&lt;br /&gt;
&lt;br /&gt;
JWM in particular uses little RAM. On a BeagleBoard with 256&amp;amp;nbsp;MB, using JWM will leave about 60&amp;amp;nbsp;MB free to run applications in.&lt;br /&gt;
&lt;br /&gt;
== Web Apps ==&lt;br /&gt;
&lt;br /&gt;
=== Midori ===&lt;br /&gt;
Given that the BeagleBoard has fewer resources than a desktop a light-weight browser is more responsive. Midori is a light-weight browser that still supports flash, etc. It is available from the standard repositories.&lt;br /&gt;
http://en.wikipedia.org/wiki/Midori_%28web_browser%29&lt;br /&gt;
&lt;br /&gt;
== Surveillance ==&lt;br /&gt;
&lt;br /&gt;
=== Motion ===&lt;br /&gt;
If you have a video source (webcam, IP cam, etc.) which appears as /dev/video0, etc. then you can use the Linux surveillance software &amp;quot;motion&amp;quot; to monitor the video stream and record periods of activity.&lt;br /&gt;
&lt;br /&gt;
Motion is also available from the standard repositories.&lt;br /&gt;
http://www.debian-administration.org/article/An_Introduction_to_Video_Surveillance_with_%27Motion%27&lt;br /&gt;
Using a 960x720 resolution webcam with a 15&amp;amp;nbsp;fps rate under the UVC driver the Rev C BeagleBoard under Xubuntu reports ~60% CPU utilisation.&lt;br /&gt;
&lt;br /&gt;
To make the BeagleBoard automatically start recording on boot do the following:&lt;br /&gt;
&lt;br /&gt;
* Auto Login - run &amp;quot;gdmsetup&amp;quot; from a terminal and select a user to automatically login &lt;br /&gt;
* Sessions - make sure you don't save any previous X Windows sessions so that it doesn't prompt you for which one you want&lt;br /&gt;
* motion.conf - amend /etc/motion/motion.conf to the settings you want (that is, video output directory, record only video, record in MPEG-4, set frame rate, etc). Do this with &amp;quot;sudo medit /etc/motion/motion.conf&amp;quot; at a prompt.&lt;br /&gt;
* Boot script - create a new script in /etc/rc2.d called &amp;quot;S65motion_client&amp;quot; and set permissions appropriately (&amp;quot;sudo chmod 777 /etc/rc2.d/S65motion_client&amp;quot;). Then edit the file so it has the following text in it:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 /usr/bin/motion -c /etc/motion/motion.conf&lt;br /&gt;
&lt;br /&gt;
This will now launch the motion client as root when you boot up.&lt;br /&gt;
&lt;br /&gt;
Also note that unless your BeagleBoard can remember the time (battery backed up clock installed) the timestamps will not be correct until you update the time. If your BeagleBoard has an Internet connection this can be achieved with the ntpdate application.&lt;br /&gt;
&lt;br /&gt;
== Robotics ==&lt;br /&gt;
&lt;br /&gt;
=== ROS ===&lt;br /&gt;
Willow Garage hosts the open source Robotic Operating System (ROS). Whilst it is natively supported in Ubuntu, the official packages are only for the x86 platform. ROS can be installed from source and is generally easy to do so (although slow).&lt;br /&gt;
&lt;br /&gt;
Following the instructions from here will build and install ROS on your BeagleBoard:&lt;br /&gt;
&lt;br /&gt;
http://www.ros.org/wiki/cturtle/Installation/Ubuntu/SVN&lt;br /&gt;
&lt;br /&gt;
You will need an Internet connection for your BeagleBoard for these scripts to work.&lt;br /&gt;
&lt;br /&gt;
For more information about ROS, see www.ros.org.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-05-20T15:24:01Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Raring 13.04 armhf */ ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-05-18&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.13-bone18 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/ (Bone: or via usb) http://192.168.7.2&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm (Bone: or via usb) ubuntu@192.168.7.2&lt;br /&gt;
 shellinabox, Port 4200: https://arm:4200/ (Bone: or via usb) https://192.168.7.2:4200&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 8c791b69ee4c6ddfd1ce4c9049ecf23e  ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-05-18.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-05-18&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.05 -b v2013.05&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 b7cd2f94c0dbc75f8d6897e559d52c0a  ubuntu-12.10-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure (Maverick's Alpha-1 needs this....)&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
Screenshot: (on my xm it's a little jerky at the moment, investigating..)&lt;br /&gt;
 http://rcn-ee.net/bugs/dsp/dsp_v3.2.1-x2-test.jpg&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Ubuntu will try to use the FBDEV video driver, however for the BeagleBoard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lucid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Ubuntu and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Changing DVI output resolution ==&lt;br /&gt;
&lt;br /&gt;
Ubuntu 10.10 above defaults to a resolution of 1284x768@16. This is set in the boot.cmd file in the boot partition of the SD card. To change the resolution the DVI output, edit boot.cmd accordingly then recreate the boot.scr file by:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n &amp;quot;Ubuntu 10.10&amp;quot; -d ./boot.cmd ./boot.scr&lt;br /&gt;
&lt;br /&gt;
Then reboot the BeagleBoard.&lt;br /&gt;
&lt;br /&gt;
== S-Video ==&lt;br /&gt;
''(For configuring S-Video on Angstrom, click [[BeagleBoardAngstrom#Configuring_uEnv.txt_to_set_s-video_as_the_default_display|here]])''.&lt;br /&gt;
&lt;br /&gt;
===Process for setting up S-Video===&lt;br /&gt;
&lt;br /&gt;
S-video is tested to be working on 2.6.35-rc5-dl9. BeagleBoard s-video output has traditionally been enabled by &amp;quot;using bootargs (boot arguments) at uboot&amp;quot;. In newer versions of the BeagleBoard, the developers have made things easier by instructing U-Boot to look for a .scr file about a dozen lines long that is called cmd.boot.scr, and then follow said parameters. In Angstrom, no boot.scr file is needed, instead, an even easier system is used, where a simple editable .txt file called uEnv.txt containing these parameters suffices (Env is for &amp;quot;environment&amp;quot;). For some reason, in the Ubuntu download files, typically there a bit of convoluted process where uEnv.txt is called up, uEnv.txt says &amp;quot;Go read conf.boot.scr&amp;quot;, and cmd.boot.scr sets up the s-video.&lt;br /&gt;
&lt;br /&gt;
To make cmd.boot.scr, create a text file named cmd.boot, then convert it into a .scr file with mkimage by running the following commands on the terminal:&lt;br /&gt;
&lt;br /&gt;
First, you will probably need to get mkimage with apt-get. Run&lt;br /&gt;
&lt;br /&gt;
    sudo apt-get install mkimage&lt;br /&gt;
&lt;br /&gt;
Next, convert your cmd.boot.scr&lt;br /&gt;
&lt;br /&gt;
    mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute uImage' -d boot.cmd boot.scr&lt;br /&gt;
&lt;br /&gt;
===Bootargs: make this cmd.boot to set s-video===&lt;br /&gt;
&lt;br /&gt;
* NTSC&lt;br /&gt;
&lt;br /&gt;
     omapfb.mode='''tv:ntsc''' &lt;br /&gt;
     omapdss.def_disp='''tv'''&lt;br /&gt;
&lt;br /&gt;
Bootargs that has been validated.&lt;br /&gt;
&lt;br /&gt;
     setenv bootargs 'console=tty0 console=ttyO2,115200n8 root=/dev/mmcblk0p2 rootwait ro vram=12M omapfb.mode=tv:ntsc omapdss.def_disp=tv &lt;br /&gt;
     fixrtc buddy=unknown'&lt;br /&gt;
&lt;br /&gt;
===Screen cutoff problem===&lt;br /&gt;
&lt;br /&gt;
NTSC resolution is supposed to be 640x480. However the edge bands around the TV screen differ from TV to TV. Output of '''fbset''' shown below:&lt;br /&gt;
&lt;br /&gt;
    mode &amp;quot;720x482-30&amp;quot;&lt;br /&gt;
         # D: 13.500 MHz, H: 15.734 kHz, V: 29.970 Hz&lt;br /&gt;
         geometry 720 482 720 482 32&lt;br /&gt;
         timings 74074 16 58 6 31 64 6&lt;br /&gt;
         rgba 8/16,8/8,8/0,0/0&lt;br /&gt;
    endmode&lt;br /&gt;
&lt;br /&gt;
Depending on your TV device, and what desktop you are running a certain amount of screen cutoff is likely to occur. This is called [http://en.wikipedia.org/wiki/Overscan overscan]. Typically, around 5-10% of the left and right edges of display are off the screen (using Ubuntu with xfce). This seems to be due to the fact that there is only one display resolution that is set for NTSC: &amp;lt;!-- I don't know about PAL--&amp;gt; 720 X 482. It is not possible to change this setting in the xfce4 Settings Manager like one would normally be able to do, because other options are greyed out/do not exist. Normally, even if the Settings Manager did not allow for it, a different resolution setting could be obtained by editing the xorg.conf file in /etc/X11/xorg.conf-4, or some similar place. HOWEVER there is no xorg.conf file in the Beagle version of xfce. xrandr shows the display is set to the minimum of 720x574. Adding an xorg.conf does not fix the problem, because Beagle takes its (analog) display resolution settings directly from the display driver, where 720 X 480 (720 X 574 for PAL &amp;lt;!-- This I gather, but I really don't know--&amp;gt; ) is hard coded in.  &lt;br /&gt;
&lt;br /&gt;
An inelegant but usable workaround for the xfce desktop environment is simply to create vertical and horizontal panels that fill up the space that is cut off on the screen. This is not a complete solution, but at least it will prevent maximized windows from going off into nowhere land.&lt;br /&gt;
&lt;br /&gt;
Truly fixing this would involve going into the display driver and reprogramming it to include additional S-video settings besides just NTSC and PAL. Specifically, to make the whole framebuffer fit on the screen you would need to adjust the overlay in the display driver, the OMAP DSS2. (Didn't test this yet. Some pointers from the driver's documentation below)&lt;br /&gt;
&lt;br /&gt;
    /sys/devices/platform/omapdss/overlay? directory:&lt;br /&gt;
    enabled		0=off, 1=on&lt;br /&gt;
    input_size		width,height (ie. the framebuffer size)&lt;br /&gt;
    manager		Destination overlay manager name&lt;br /&gt;
    name&lt;br /&gt;
    output_size		width,height&lt;br /&gt;
    position		x,y&lt;br /&gt;
    screen_width	width&lt;br /&gt;
    global_alpha   	global alpha 0-255 0=transparent 255=opaque&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Download SRC&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Optional building the deb file&lt;br /&gt;
 ./build_deb.sh&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Swapfile =&lt;br /&gt;
&lt;br /&gt;
== Using a File for Swap Instead of a Partition ==&lt;br /&gt;
&lt;br /&gt;
On the Bealgeboard you should expect to need a swap file given the limitation of how much RAM they have (between 256&amp;amp;nbsp;MB and 512&amp;amp;nbsp;MB). Some system programs like apt-get will only run properly when some swap space is present (due to 256&amp;amp;nbsp;MB not being enough RAM).&lt;br /&gt;
&lt;br /&gt;
Some images such as those from Linaro.org do not come with a swap partition or any swap space allocated.&lt;br /&gt;
&lt;br /&gt;
Under Linux swap space can be either a dedicated partition or a single file. Both can be mounted as swap which the OS can access.&lt;br /&gt;
&lt;br /&gt;
=== Creating a Swapfile ===&lt;br /&gt;
&lt;br /&gt;
The following commands will create a 1 gigabyte file, lock access to only root, format it as swap and then advertise it to the OS.&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p /var/cache/swap/   &lt;br /&gt;
 sudo dd if=/dev/zero of=/var/cache/swap/swapfile bs=1M count=1024&lt;br /&gt;
 sudo chmod 0600 /var/cache/swap/swapfile &lt;br /&gt;
 sudo mkswap /var/cache/swap/swapfile &lt;br /&gt;
 sudo swapon /var/cache/swap/swapfile &lt;br /&gt;
&lt;br /&gt;
To ask the OS to load this swapfile on each start up, edit the /etc/fstab file to include the following additional line:&lt;br /&gt;
&lt;br /&gt;
 /var/cache/swap/swapfile    none    swap    sw    0   0&lt;br /&gt;
&lt;br /&gt;
To verify that the swapfile is accessilble as swap to the OS, run &amp;quot;top&amp;quot; of &amp;quot;htop&amp;quot; at a console.&lt;br /&gt;
&lt;br /&gt;
= Ubuntu Software =&lt;br /&gt;
&lt;br /&gt;
== Wi-Fi Networking (command line) ==&lt;br /&gt;
&lt;br /&gt;
=== /etc/network/interfaces ===&lt;br /&gt;
&lt;br /&gt;
It is possible and relatively easy to configure a Wi-Fi card from the command line.&lt;br /&gt;
&lt;br /&gt;
You will need to edit the /etc/network/interfaces file. There are several guides available via Google.&lt;br /&gt;
&lt;br /&gt;
This is a particularly useful guide http://ubuntuforums.org/showthread.php?t=202834 &lt;br /&gt;
&lt;br /&gt;
A sample /etc/network/interfaces file for a WPA2 encrypted access point is:&lt;br /&gt;
&lt;br /&gt;
 auto lo&lt;br /&gt;
 iface lo inet loopback&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet dhcp&lt;br /&gt;
 wpa-driver wext&lt;br /&gt;
 wpa-ssid &amp;lt;NAME OF AP&amp;gt;&lt;br /&gt;
 wpa-ap-scan 1&lt;br /&gt;
 wpa-proto RSN&lt;br /&gt;
 wpa-pairwise CCMP&lt;br /&gt;
 wpa-group CCMP&lt;br /&gt;
 wpa-key-mgmt WPA-PSK&lt;br /&gt;
 wpa-psk &amp;lt; INSERT KEY XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Your Wi-Fi card will automatically load these settings on start up and give network access.&lt;br /&gt;
&lt;br /&gt;
== Lightweight window managers ==&lt;br /&gt;
&lt;br /&gt;
If you intend to use Ubuntu on the BeagleBoard you can install JWM or IceWM to improve performance.&lt;br /&gt;
&lt;br /&gt;
JWM in particular uses little RAM. On a BeagleBoard with 256&amp;amp;nbsp;MB, using JWM will leave about 60&amp;amp;nbsp;MB free to run applications in.&lt;br /&gt;
&lt;br /&gt;
== Web Apps ==&lt;br /&gt;
&lt;br /&gt;
=== Midori ===&lt;br /&gt;
Given that the BeagleBoard has fewer resources than a desktop a light-weight browser is more responsive. Midori is a light-weight browser that still supports flash, etc. It is available from the standard repositories.&lt;br /&gt;
http://en.wikipedia.org/wiki/Midori_%28web_browser%29&lt;br /&gt;
&lt;br /&gt;
== Surveillance ==&lt;br /&gt;
&lt;br /&gt;
=== Motion ===&lt;br /&gt;
If you have a video source (webcam, IP cam, etc.) which appears as /dev/video0, etc. then you can use the Linux surveillance software &amp;quot;motion&amp;quot; to monitor the video stream and record periods of activity.&lt;br /&gt;
&lt;br /&gt;
Motion is also available from the standard repositories.&lt;br /&gt;
http://www.debian-administration.org/article/An_Introduction_to_Video_Surveillance_with_%27Motion%27&lt;br /&gt;
Using a 960x720 resolution webcam with a 15&amp;amp;nbsp;fps rate under the UVC driver the Rev C BeagleBoard under Xubuntu reports ~60% CPU utilisation.&lt;br /&gt;
&lt;br /&gt;
To make the BeagleBoard automatically start recording on boot do the following:&lt;br /&gt;
&lt;br /&gt;
* Auto Login - run &amp;quot;gdmsetup&amp;quot; from a terminal and select a user to automatically login &lt;br /&gt;
* Sessions - make sure you don't save any previous X Windows sessions so that it doesn't prompt you for which one you want&lt;br /&gt;
* motion.conf - amend /etc/motion/motion.conf to the settings you want (that is, video output directory, record only video, record in MPEG-4, set frame rate, etc). Do this with &amp;quot;sudo medit /etc/motion/motion.conf&amp;quot; at a prompt.&lt;br /&gt;
* Boot script - create a new script in /etc/rc2.d called &amp;quot;S65motion_client&amp;quot; and set permissions appropriately (&amp;quot;sudo chmod 777 /etc/rc2.d/S65motion_client&amp;quot;). Then edit the file so it has the following text in it:&lt;br /&gt;
&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 /usr/bin/motion -c /etc/motion/motion.conf&lt;br /&gt;
&lt;br /&gt;
This will now launch the motion client as root when you boot up.&lt;br /&gt;
&lt;br /&gt;
Also note that unless your BeagleBoard can remember the time (battery backed up clock installed) the timestamps will not be correct until you update the time. If your BeagleBoard has an Internet connection this can be achieved with the ntpdate application.&lt;br /&gt;
&lt;br /&gt;
== Robotics ==&lt;br /&gt;
&lt;br /&gt;
=== ROS ===&lt;br /&gt;
Willow Garage hosts the open source Robotic Operating System (ROS). Whilst it is natively supported in Ubuntu, the official packages are only for the x86 platform. ROS can be installed from source and is generally easy to do so (although slow).&lt;br /&gt;
&lt;br /&gt;
Following the instructions from here will build and install ROS on your BeagleBoard:&lt;br /&gt;
&lt;br /&gt;
http://www.ros.org/wiki/cturtle/Installation/Ubuntu/SVN&lt;br /&gt;
&lt;br /&gt;
You will need an Internet connection for your BeagleBoard for these scripts to work.&lt;br /&gt;
&lt;br /&gt;
For more information about ROS, see www.ros.org.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-05T15:22:34Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* WiFi */ all firmware is now included...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-05T15:22:04Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Serial Ports */ for wheezy...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Wheezy&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 T0:23:respawn:/sbin/getty -L ttyO2 115200 vt102&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-05T15:20:46Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: all armhf now...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-05T15:20:13Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Building Kernel */ add link for the black..&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
Note: Debian armel deb's are compiled for armv4t, this allows debian to support a larger number of arm devices with a single port, at only the sacrifice of speed.&lt;br /&gt;
&lt;br /&gt;
*armhf&lt;br /&gt;
** Port Details: http://wiki.debian.org/ArmHardFloatPort&lt;br /&gt;
** Status: http://wiki.debian.org/ArmHardFloatTodo&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone Black ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone+Black&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-05T15:19:17Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Xorg omapfb Drivers */ these are broken after squeeze....  omapdrm will be available someday...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
Note: Debian armel deb's are compiled for armv4t, this allows debian to support a larger number of arm devices with a single port, at only the sacrifice of speed.&lt;br /&gt;
&lt;br /&gt;
*armhf&lt;br /&gt;
** Port Details: http://wiki.debian.org/ArmHardFloatPort&lt;br /&gt;
** Status: http://wiki.debian.org/ArmHardFloatTodo&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-05T15:18:16Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* SGX Video Acceleration */ update...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
Note: Debian armel deb's are compiled for armv4t, this allows debian to support a larger number of arm devices with a single port, at only the sacrifice of speed.&lt;br /&gt;
&lt;br /&gt;
*armhf&lt;br /&gt;
** Port Details: http://wiki.debian.org/ArmHardFloatPort&lt;br /&gt;
** Status: http://wiki.debian.org/ArmHardFloatTodo&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Debian will try* to use the FBDEV video driver, however for the beagleboard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
Lenny might need this xorg.conf, but it's best to use omapfb later in this guide..&lt;br /&gt;
&lt;br /&gt;
/etc/X11/xorg.conf:&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
 	Identifier	&amp;quot;Configured Video Device&amp;quot; &lt;br /&gt;
 	Option		&amp;quot;UseFBDev&amp;quot;		&amp;quot;true&amp;quot;&lt;br /&gt;
 	Driver		&amp;quot;fbdev&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lenny:&lt;br /&gt;
 wget -c http://rcn-ee.homeip.net:81/dl/deb-sbuild/lenny/xorg-drivers/xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
 sudo dpkg -i xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
&lt;br /&gt;
Squeeze/Sid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
=== xorg.conf ===&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Monitor&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
     Device &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     #Limited by SGX?&lt;br /&gt;
     DefaultDepth 16&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     Driver &amp;quot;omapfb&amp;quot;&lt;br /&gt;
     Option &amp;quot;fb&amp;quot; &amp;quot;/dev/fb0&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-05T15:17:38Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Beagleboard: NetInstall */ done by default...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
Note: Debian armel deb's are compiled for armv4t, this allows debian to support a larger number of arm devices with a single port, at only the sacrifice of speed.&lt;br /&gt;
&lt;br /&gt;
*armhf&lt;br /&gt;
** Port Details: http://wiki.debian.org/ArmHardFloatPort&lt;br /&gt;
** Status: http://wiki.debian.org/ArmHardFloatTodo&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Debian will try* to use the FBDEV video driver, however for the beagleboard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
Lenny might need this xorg.conf, but it's best to use omapfb later in this guide..&lt;br /&gt;
&lt;br /&gt;
/etc/X11/xorg.conf:&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
 	Identifier	&amp;quot;Configured Video Device&amp;quot; &lt;br /&gt;
 	Option		&amp;quot;UseFBDev&amp;quot;		&amp;quot;true&amp;quot;&lt;br /&gt;
 	Driver		&amp;quot;fbdev&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lenny:&lt;br /&gt;
 wget -c http://rcn-ee.homeip.net:81/dl/deb-sbuild/lenny/xorg-drivers/xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
 sudo dpkg -i xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
&lt;br /&gt;
Squeeze/Sid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
=== xorg.conf ===&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Monitor&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
     Device &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     #Limited by SGX?&lt;br /&gt;
     DefaultDepth 16&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     Driver &amp;quot;omapfb&amp;quot;&lt;br /&gt;
     Option &amp;quot;fb&amp;quot; &amp;quot;/dev/fb0&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-05-05T15:17:15Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Debian Wheezy */ this was only in squeeze...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
Note: Debian armel deb's are compiled for armv4t, this allows debian to support a larger number of arm devices with a single port, at only the sacrifice of speed.&lt;br /&gt;
&lt;br /&gt;
*armhf&lt;br /&gt;
** Port Details: http://wiki.debian.org/ArmHardFloatPort&lt;br /&gt;
** Status: http://wiki.debian.org/ArmHardFloatTodo&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
==Beagleboard: NetInstall==&lt;br /&gt;
&lt;br /&gt;
 Choose a language&lt;br /&gt;
  C - No localization&lt;br /&gt;
  English - English&lt;br /&gt;
&lt;br /&gt;
 Configure the network:&lt;br /&gt;
  usb0: USB net &amp;lt;- (usually the OTG port, but could also be the smsc95xx adapter on the beagle and panda)&lt;br /&gt;
  usb1: USB net &amp;lt;- (usually the smsc95xx adapter on the beagle and panda, when usb0 exist)&lt;br /&gt;
  eth0: Ethernet &amp;lt;- Your usb-ethernet device&lt;br /&gt;
  wlan0: Wifi &amp;lt;- Your usb-wifi device.. See [[BeagleBoardDebianWifiInstallInfo]] for my hack to set it up.&lt;br /&gt;
&lt;br /&gt;
===usb0 howto===&lt;br /&gt;
There's a lot of question on irc about this, it might make sense to add a wiki page going thru with linux/winxp etc.. --[[User:RobertCNelson|RobertCNelson]] 00:55, 23 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
 Configuring usb0 network bridge for 2.6.29:&lt;br /&gt;
  While you chose your keyboard layout, setup a bridge with ethX and usbX.&lt;br /&gt;
   # ifconfig ethX 0.0.0.0&lt;br /&gt;
   # ifconfig usbX 0.0.0.0&lt;br /&gt;
   # brctl addbr brX&lt;br /&gt;
   # brctl addif brX ethX&lt;br /&gt;
   # brctl addif brX usbX&lt;br /&gt;
   # ifconfig brX up&lt;br /&gt;
   # dhclient brX&lt;br /&gt;
  ''*Sometimes the first beagle DHCP will fail(probably due PC trying autoconnect), just run the auto configuration again and it will configure it right.''&lt;br /&gt;
&lt;br /&gt;
 Continue the install without loading kernel modules? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks: This partitioner doesn't have the inform.....? : &amp;lt;yes&amp;gt;&lt;br /&gt;
  Logical Volume Manager not available: &amp;lt;Continue&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks:&lt;br /&gt;
  Guided - Use the largest continuous free space&lt;br /&gt;
&lt;br /&gt;
 Partitioning scheme....&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 MMC/SD card #1 (mmcblk0) - 2.0 GB Unknown&lt;br /&gt;
 &amp;gt;  #1 primary  57.5 MB     fat32&lt;br /&gt;
 &amp;gt;  #2 primary   1.8 GB B f ext3  /&lt;br /&gt;
 &amp;gt;  #5 logical 148.0 MB   f swap  swap&lt;br /&gt;
 Finish partitioning and write changes to disk&lt;br /&gt;
  Write the changes to disk? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 No installable kernel was found in the defined APT sources? : &lt;br /&gt;
  Continue without installing a kernel? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Standard System&lt;br /&gt;
&lt;br /&gt;
 No BootLoader: &amp;lt;ok&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Debian will try* to use the FBDEV video driver, however for the beagleboard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
Lenny might need this xorg.conf, but it's best to use omapfb later in this guide..&lt;br /&gt;
&lt;br /&gt;
/etc/X11/xorg.conf:&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
 	Identifier	&amp;quot;Configured Video Device&amp;quot; &lt;br /&gt;
 	Option		&amp;quot;UseFBDev&amp;quot;		&amp;quot;true&amp;quot;&lt;br /&gt;
 	Driver		&amp;quot;fbdev&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lenny:&lt;br /&gt;
 wget -c http://rcn-ee.homeip.net:81/dl/deb-sbuild/lenny/xorg-drivers/xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
 sudo dpkg -i xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
&lt;br /&gt;
Squeeze/Sid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
=== xorg.conf ===&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Monitor&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
     Device &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     #Limited by SGX?&lt;br /&gt;
     DefaultDepth 16&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     Driver &amp;quot;omapfb&amp;quot;&lt;br /&gt;
     Option &amp;quot;fb&amp;quot; &amp;quot;/dev/fb0&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-04-27T18:21:16Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: add note for upgrading to wheezy..&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
Note: Debian armel deb's are compiled for armv4t, this allows debian to support a larger number of arm devices with a single port, at only the sacrifice of speed.&lt;br /&gt;
&lt;br /&gt;
*armhf&lt;br /&gt;
** Port Details: http://wiki.debian.org/ArmHardFloatPort&lt;br /&gt;
** Status: http://wiki.debian.org/ArmHardFloatTodo&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
NOTE: There is a bug in the USB Keyboard mapping, the debian-installer will initially fail, if and when the error occurs switch to the option &amp;quot;kernel keymap&amp;quot; and continue installing..&lt;br /&gt;
&lt;br /&gt;
==Beagleboard: NetInstall==&lt;br /&gt;
&lt;br /&gt;
 Choose a language&lt;br /&gt;
  C - No localization&lt;br /&gt;
  English - English&lt;br /&gt;
&lt;br /&gt;
 Configure the network:&lt;br /&gt;
  usb0: USB net &amp;lt;- (usually the OTG port, but could also be the smsc95xx adapter on the beagle and panda)&lt;br /&gt;
  usb1: USB net &amp;lt;- (usually the smsc95xx adapter on the beagle and panda, when usb0 exist)&lt;br /&gt;
  eth0: Ethernet &amp;lt;- Your usb-ethernet device&lt;br /&gt;
  wlan0: Wifi &amp;lt;- Your usb-wifi device.. See [[BeagleBoardDebianWifiInstallInfo]] for my hack to set it up.&lt;br /&gt;
&lt;br /&gt;
===usb0 howto===&lt;br /&gt;
There's a lot of question on irc about this, it might make sense to add a wiki page going thru with linux/winxp etc.. --[[User:RobertCNelson|RobertCNelson]] 00:55, 23 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
 Configuring usb0 network bridge for 2.6.29:&lt;br /&gt;
  While you chose your keyboard layout, setup a bridge with ethX and usbX.&lt;br /&gt;
   # ifconfig ethX 0.0.0.0&lt;br /&gt;
   # ifconfig usbX 0.0.0.0&lt;br /&gt;
   # brctl addbr brX&lt;br /&gt;
   # brctl addif brX ethX&lt;br /&gt;
   # brctl addif brX usbX&lt;br /&gt;
   # ifconfig brX up&lt;br /&gt;
   # dhclient brX&lt;br /&gt;
  ''*Sometimes the first beagle DHCP will fail(probably due PC trying autoconnect), just run the auto configuration again and it will configure it right.''&lt;br /&gt;
&lt;br /&gt;
 Continue the install without loading kernel modules? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks: This partitioner doesn't have the inform.....? : &amp;lt;yes&amp;gt;&lt;br /&gt;
  Logical Volume Manager not available: &amp;lt;Continue&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks:&lt;br /&gt;
  Guided - Use the largest continuous free space&lt;br /&gt;
&lt;br /&gt;
 Partitioning scheme....&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 MMC/SD card #1 (mmcblk0) - 2.0 GB Unknown&lt;br /&gt;
 &amp;gt;  #1 primary  57.5 MB     fat32&lt;br /&gt;
 &amp;gt;  #2 primary   1.8 GB B f ext3  /&lt;br /&gt;
 &amp;gt;  #5 logical 148.0 MB   f swap  swap&lt;br /&gt;
 Finish partitioning and write changes to disk&lt;br /&gt;
  Write the changes to disk? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 No installable kernel was found in the defined APT sources? : &lt;br /&gt;
  Continue without installing a kernel? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Standard System&lt;br /&gt;
&lt;br /&gt;
 No BootLoader: &amp;lt;ok&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Debian will try* to use the FBDEV video driver, however for the beagleboard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
Lenny might need this xorg.conf, but it's best to use omapfb later in this guide..&lt;br /&gt;
&lt;br /&gt;
/etc/X11/xorg.conf:&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
 	Identifier	&amp;quot;Configured Video Device&amp;quot; &lt;br /&gt;
 	Option		&amp;quot;UseFBDev&amp;quot;		&amp;quot;true&amp;quot;&lt;br /&gt;
 	Driver		&amp;quot;fbdev&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lenny:&lt;br /&gt;
 wget -c http://rcn-ee.homeip.net:81/dl/deb-sbuild/lenny/xorg-drivers/xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
 sudo dpkg -i xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
&lt;br /&gt;
Squeeze/Sid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
=== xorg.conf ===&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Monitor&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
     Device &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     #Limited by SGX?&lt;br /&gt;
     DefaultDepth 16&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     Driver &amp;quot;omapfb&amp;quot;&lt;br /&gt;
     Option &amp;quot;fb&amp;quot; &amp;quot;/dev/fb0&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 6 (Squeeze) to Debian 7 (Wheezy) =&lt;br /&gt;
&lt;br /&gt;
Note, this only goes over &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armel&amp;quot;... For users wishing to switch from &amp;quot;armel&amp;quot; -&amp;gt; &amp;quot;armhf&amp;quot; just re-install...&lt;br /&gt;
&lt;br /&gt;
 sudo apt-get update ; sudo apt-get upgrade&lt;br /&gt;
 sudo sed -i -e &amp;quot;s/squeeze/wheezy/g&amp;quot; /etc/apt/sources.list&lt;br /&gt;
 sudo apt-get update ; sudo apt-get install -y apt aptitude udev dpkg&lt;br /&gt;
 sudo aptitude update ; sudo aptitude -y safe-upgrade ; sudo aptitude -y dist-upgrade&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-04-26T20:15:02Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: moved up...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
Note: Debian armel deb's are compiled for armv4t, this allows debian to support a larger number of arm devices with a single port, at only the sacrifice of speed.&lt;br /&gt;
&lt;br /&gt;
*armhf&lt;br /&gt;
** Port Details: http://wiki.debian.org/ArmHardFloatPort&lt;br /&gt;
** Status: http://wiki.debian.org/ArmHardFloatTodo&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Scripts:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
NOTE: There is a bug in the USB Keyboard mapping, the debian-installer will initially fail, if and when the error occurs switch to the option &amp;quot;kernel keymap&amp;quot; and continue installing..&lt;br /&gt;
&lt;br /&gt;
==Beagleboard: NetInstall==&lt;br /&gt;
&lt;br /&gt;
 Choose a language&lt;br /&gt;
  C - No localization&lt;br /&gt;
  English - English&lt;br /&gt;
&lt;br /&gt;
 Configure the network:&lt;br /&gt;
  usb0: USB net &amp;lt;- (usually the OTG port, but could also be the smsc95xx adapter on the beagle and panda)&lt;br /&gt;
  usb1: USB net &amp;lt;- (usually the smsc95xx adapter on the beagle and panda, when usb0 exist)&lt;br /&gt;
  eth0: Ethernet &amp;lt;- Your usb-ethernet device&lt;br /&gt;
  wlan0: Wifi &amp;lt;- Your usb-wifi device.. See [[BeagleBoardDebianWifiInstallInfo]] for my hack to set it up.&lt;br /&gt;
&lt;br /&gt;
===usb0 howto===&lt;br /&gt;
There's a lot of question on irc about this, it might make sense to add a wiki page going thru with linux/winxp etc.. --[[User:RobertCNelson|RobertCNelson]] 00:55, 23 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
 Configuring usb0 network bridge for 2.6.29:&lt;br /&gt;
  While you chose your keyboard layout, setup a bridge with ethX and usbX.&lt;br /&gt;
   # ifconfig ethX 0.0.0.0&lt;br /&gt;
   # ifconfig usbX 0.0.0.0&lt;br /&gt;
   # brctl addbr brX&lt;br /&gt;
   # brctl addif brX ethX&lt;br /&gt;
   # brctl addif brX usbX&lt;br /&gt;
   # ifconfig brX up&lt;br /&gt;
   # dhclient brX&lt;br /&gt;
  ''*Sometimes the first beagle DHCP will fail(probably due PC trying autoconnect), just run the auto configuration again and it will configure it right.''&lt;br /&gt;
&lt;br /&gt;
 Continue the install without loading kernel modules? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks: This partitioner doesn't have the inform.....? : &amp;lt;yes&amp;gt;&lt;br /&gt;
  Logical Volume Manager not available: &amp;lt;Continue&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks:&lt;br /&gt;
  Guided - Use the largest continuous free space&lt;br /&gt;
&lt;br /&gt;
 Partitioning scheme....&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 MMC/SD card #1 (mmcblk0) - 2.0 GB Unknown&lt;br /&gt;
 &amp;gt;  #1 primary  57.5 MB     fat32&lt;br /&gt;
 &amp;gt;  #2 primary   1.8 GB B f ext3  /&lt;br /&gt;
 &amp;gt;  #5 logical 148.0 MB   f swap  swap&lt;br /&gt;
 Finish partitioning and write changes to disk&lt;br /&gt;
  Write the changes to disk? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 No installable kernel was found in the defined APT sources? : &lt;br /&gt;
  Continue without installing a kernel? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Standard System&lt;br /&gt;
&lt;br /&gt;
 No BootLoader: &amp;lt;ok&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Debian will try* to use the FBDEV video driver, however for the beagleboard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
Lenny might need this xorg.conf, but it's best to use omapfb later in this guide..&lt;br /&gt;
&lt;br /&gt;
/etc/X11/xorg.conf:&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
 	Identifier	&amp;quot;Configured Video Device&amp;quot; &lt;br /&gt;
 	Option		&amp;quot;UseFBDev&amp;quot;		&amp;quot;true&amp;quot;&lt;br /&gt;
 	Driver		&amp;quot;fbdev&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lenny:&lt;br /&gt;
 wget -c http://rcn-ee.homeip.net:81/dl/deb-sbuild/lenny/xorg-drivers/xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
 sudo dpkg -i xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
&lt;br /&gt;
Squeeze/Sid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
=== xorg.conf ===&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Monitor&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
     Device &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     #Limited by SGX?&lt;br /&gt;
     DefaultDepth 16&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     Driver &amp;quot;omapfb&amp;quot;&lt;br /&gt;
     Option &amp;quot;fb&amp;quot; &amp;quot;/dev/fb0&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-04-26T20:14:12Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Debian NetInstall */ for may 5th..&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
Note: Debian armel deb's are compiled for armv4t, this allows debian to support a larger number of arm devices with a single port, at only the sacrifice of speed.&lt;br /&gt;
&lt;br /&gt;
*armhf&lt;br /&gt;
** Port Details: http://wiki.debian.org/ArmHardFloatPort&lt;br /&gt;
** Status: http://wiki.debian.org/ArmHardFloatTodo&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
Device Options:&lt;br /&gt;
 BeagleBoard --uboot beagle_cx&lt;br /&gt;
 BeagleBoard xM --uboot beagle_xm&lt;br /&gt;
 BeagleBone (serial) --uboot bone-serial&lt;br /&gt;
 BeagleBone (video via cape) --uboot bone-video&lt;br /&gt;
 BeagleBone Black --dtb am335x-boneblack&lt;br /&gt;
 PandaBoard --uboot panda&lt;br /&gt;
 PandaBoard ES  --uboot panda_es&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy ==&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro wheezy-armhf&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
NOTE: There is a bug in the USB Keyboard mapping, the debian-installer will initially fail, if and when the error occurs switch to the option &amp;quot;kernel keymap&amp;quot; and continue installing..&lt;br /&gt;
&lt;br /&gt;
==Beagleboard: NetInstall==&lt;br /&gt;
&lt;br /&gt;
 Choose a language&lt;br /&gt;
  C - No localization&lt;br /&gt;
  English - English&lt;br /&gt;
&lt;br /&gt;
 Configure the network:&lt;br /&gt;
  usb0: USB net &amp;lt;- (usually the OTG port, but could also be the smsc95xx adapter on the beagle and panda)&lt;br /&gt;
  usb1: USB net &amp;lt;- (usually the smsc95xx adapter on the beagle and panda, when usb0 exist)&lt;br /&gt;
  eth0: Ethernet &amp;lt;- Your usb-ethernet device&lt;br /&gt;
  wlan0: Wifi &amp;lt;- Your usb-wifi device.. See [[BeagleBoardDebianWifiInstallInfo]] for my hack to set it up.&lt;br /&gt;
&lt;br /&gt;
===usb0 howto===&lt;br /&gt;
There's a lot of question on irc about this, it might make sense to add a wiki page going thru with linux/winxp etc.. --[[User:RobertCNelson|RobertCNelson]] 00:55, 23 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
 Configuring usb0 network bridge for 2.6.29:&lt;br /&gt;
  While you chose your keyboard layout, setup a bridge with ethX and usbX.&lt;br /&gt;
   # ifconfig ethX 0.0.0.0&lt;br /&gt;
   # ifconfig usbX 0.0.0.0&lt;br /&gt;
   # brctl addbr brX&lt;br /&gt;
   # brctl addif brX ethX&lt;br /&gt;
   # brctl addif brX usbX&lt;br /&gt;
   # ifconfig brX up&lt;br /&gt;
   # dhclient brX&lt;br /&gt;
  ''*Sometimes the first beagle DHCP will fail(probably due PC trying autoconnect), just run the auto configuration again and it will configure it right.''&lt;br /&gt;
&lt;br /&gt;
 Continue the install without loading kernel modules? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks: This partitioner doesn't have the inform.....? : &amp;lt;yes&amp;gt;&lt;br /&gt;
  Logical Volume Manager not available: &amp;lt;Continue&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks:&lt;br /&gt;
  Guided - Use the largest continuous free space&lt;br /&gt;
&lt;br /&gt;
 Partitioning scheme....&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 MMC/SD card #1 (mmcblk0) - 2.0 GB Unknown&lt;br /&gt;
 &amp;gt;  #1 primary  57.5 MB     fat32&lt;br /&gt;
 &amp;gt;  #2 primary   1.8 GB B f ext3  /&lt;br /&gt;
 &amp;gt;  #5 logical 148.0 MB   f swap  swap&lt;br /&gt;
 Finish partitioning and write changes to disk&lt;br /&gt;
  Write the changes to disk? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 No installable kernel was found in the defined APT sources? : &lt;br /&gt;
  Continue without installing a kernel? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Standard System&lt;br /&gt;
&lt;br /&gt;
 No BootLoader: &amp;lt;ok&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Debian will try* to use the FBDEV video driver, however for the beagleboard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
Lenny might need this xorg.conf, but it's best to use omapfb later in this guide..&lt;br /&gt;
&lt;br /&gt;
/etc/X11/xorg.conf:&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
 	Identifier	&amp;quot;Configured Video Device&amp;quot; &lt;br /&gt;
 	Option		&amp;quot;UseFBDev&amp;quot;		&amp;quot;true&amp;quot;&lt;br /&gt;
 	Driver		&amp;quot;fbdev&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lenny:&lt;br /&gt;
 wget -c http://rcn-ee.homeip.net:81/dl/deb-sbuild/lenny/xorg-drivers/xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
 sudo dpkg -i xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
&lt;br /&gt;
Squeeze/Sid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
=== xorg.conf ===&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Monitor&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
     Device &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     #Limited by SGX?&lt;br /&gt;
     DefaultDepth 16&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     Driver &amp;quot;omapfb&amp;quot;&lt;br /&gt;
     Option &amp;quot;fb&amp;quot; &amp;quot;/dev/fb0&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardDebian</id>
		<title>BeagleBoardDebian</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardDebian"/>
				<updated>2013-04-26T20:06:31Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Demo Image */ release the hound...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
This page is about running a (ARM EABI) [http://www.debian.org/ Debian] distribution at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Debian distribution from [[BeagleBoard#MMC.2FSD_boot|SD card]]. Debian's NetInstall will be used to install Debian onto your Beagle.&lt;br /&gt;
&lt;br /&gt;
Note: Debian armel deb's are compiled for armv4t, this allows debian to support a larger number of arm devices with a single port, at only the sacrifice of speed.&lt;br /&gt;
&lt;br /&gt;
*armhf&lt;br /&gt;
** Port Details: http://wiki.debian.org/ArmHardFloatPort&lt;br /&gt;
** Status: http://wiki.debian.org/ArmHardFloatTodo&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle irc on freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Recommended Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Debian NetInstall = &lt;br /&gt;
&lt;br /&gt;
You will need a 1GB SD card or greater.&lt;br /&gt;
 Standard System : ~455MB&lt;br /&gt;
 + Desktop environment (GNOME) : ~2.9GB&lt;br /&gt;
&lt;br /&gt;
== Debian Squeeze ==&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot; --distro squeeze&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; Options: &lt;br /&gt;
*BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
*BeagleBoard Cx    - beagle_cx&lt;br /&gt;
*BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
*BeagleBone Ax    - bone&lt;br /&gt;
*PandaBoard Ax - panda&lt;br /&gt;
*PandaBoard ES - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro squeeze&lt;br /&gt;
&lt;br /&gt;
*Options:&lt;br /&gt;
**--uboot : beagle, panda, bone&lt;br /&gt;
**--distro : squeeze&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
NOTE: There is a bug in the USB Keyboard mapping, the debian-installer will initially fail, if and when the error occurs switch to the option &amp;quot;kernel keymap&amp;quot; and continue installing..&lt;br /&gt;
&lt;br /&gt;
==Beagleboard: NetInstall==&lt;br /&gt;
&lt;br /&gt;
 Choose a language&lt;br /&gt;
  C - No localization&lt;br /&gt;
  English - English&lt;br /&gt;
&lt;br /&gt;
 Configure the network:&lt;br /&gt;
  usb0: USB net &amp;lt;- (usually the OTG port, but could also be the smsc95xx adapter on the beagle and panda)&lt;br /&gt;
  usb1: USB net &amp;lt;- (usually the smsc95xx adapter on the beagle and panda, when usb0 exist)&lt;br /&gt;
  eth0: Ethernet &amp;lt;- Your usb-ethernet device&lt;br /&gt;
  wlan0: Wifi &amp;lt;- Your usb-wifi device.. See [[BeagleBoardDebianWifiInstallInfo]] for my hack to set it up.&lt;br /&gt;
&lt;br /&gt;
===usb0 howto===&lt;br /&gt;
There's a lot of question on irc about this, it might make sense to add a wiki page going thru with linux/winxp etc.. --[[User:RobertCNelson|RobertCNelson]] 00:55, 23 April 2010 (UTC)&lt;br /&gt;
&lt;br /&gt;
 Configuring usb0 network bridge for 2.6.29:&lt;br /&gt;
  While you chose your keyboard layout, setup a bridge with ethX and usbX.&lt;br /&gt;
   # ifconfig ethX 0.0.0.0&lt;br /&gt;
   # ifconfig usbX 0.0.0.0&lt;br /&gt;
   # brctl addbr brX&lt;br /&gt;
   # brctl addif brX ethX&lt;br /&gt;
   # brctl addif brX usbX&lt;br /&gt;
   # ifconfig brX up&lt;br /&gt;
   # dhclient brX&lt;br /&gt;
  ''*Sometimes the first beagle DHCP will fail(probably due PC trying autoconnect), just run the auto configuration again and it will configure it right.''&lt;br /&gt;
&lt;br /&gt;
 Continue the install without loading kernel modules? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks: This partitioner doesn't have the inform.....? : &amp;lt;yes&amp;gt;&lt;br /&gt;
  Logical Volume Manager not available: &amp;lt;Continue&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Partition disks:&lt;br /&gt;
  Guided - Use the largest continuous free space&lt;br /&gt;
&lt;br /&gt;
 Partitioning scheme....&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
 MMC/SD card #1 (mmcblk0) - 2.0 GB Unknown&lt;br /&gt;
 &amp;gt;  #1 primary  57.5 MB     fat32&lt;br /&gt;
 &amp;gt;  #2 primary   1.8 GB B f ext3  /&lt;br /&gt;
 &amp;gt;  #5 logical 148.0 MB   f swap  swap&lt;br /&gt;
 Finish partitioning and write changes to disk&lt;br /&gt;
  Write the changes to disk? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 No installable kernel was found in the defined APT sources? : &lt;br /&gt;
  Continue without installing a kernel? : &amp;lt;yes&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 Standard System&lt;br /&gt;
&lt;br /&gt;
 No BootLoader: &amp;lt;ok&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Demo Image =&lt;br /&gt;
&lt;br /&gt;
== Debian Wheezy snapshot ==&lt;br /&gt;
&lt;br /&gt;
Default username/password: &lt;br /&gt;
*username: debian&lt;br /&gt;
*password: temppwd&lt;br /&gt;
&lt;br /&gt;
Default root user/password&lt;br /&gt;
*user: root&lt;br /&gt;
*password: root&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/wheezy/debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify Image with: &lt;br /&gt;
 md5sum debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 8a1c4ff53f3b2a42419ee1c7c1f47e40  debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack Image:&lt;br /&gt;
 tar xJf debian-wheezy-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd debian-wheezy-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Install Image:&lt;br /&gt;
&lt;br /&gt;
Quick Install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot &amp;quot;board&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options: &lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone Ax        - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So For the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
= Debian Configuration =&lt;br /&gt;
&lt;br /&gt;
== Serial Ports ==&lt;br /&gt;
&lt;br /&gt;
Lenny&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyS2&lt;br /&gt;
&lt;br /&gt;
For root access over the serial port add ttyS2 to /etc/securetty&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Squeeze&lt;br /&gt;
&lt;br /&gt;
edit /etc/inittab and add:&lt;br /&gt;
 S:2345:respawn:/sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
== WiFi ==&lt;br /&gt;
&lt;br /&gt;
See [[BeagleBoardDebianWifiInstallInfo|BeagleBoard Debian WiFi install info]].&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a red gradient):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Free the off screen surfaces:&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy the transfer context:&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: unmap display surface from SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Destroy Device Memory Context&lt;br /&gt;
 Display Class API: close the device&lt;br /&gt;
  OK&lt;br /&gt;
 Release SGX Client Info:&lt;br /&gt;
  OK&lt;br /&gt;
 Disconnect from services:&lt;br /&gt;
  OK&lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ------------------------ End ------------------------&lt;br /&gt;
&lt;br /&gt;
=== SGX Legacy armel only upto v3.2.x ===&lt;br /&gt;
NOTE: this only works on BeagleBoard hardware, BeagleBone stuff is in development..&lt;br /&gt;
&lt;br /&gt;
Requirements: stable-kernel (the Demo Images hosted on rcn-ee.net meet this requirement)&lt;br /&gt;
  https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
Note: Due to a bug (seems to only effect older Beagle Bx/Cx boards, use v3.0.8-x3 based kernels)&lt;br /&gt;
 https://github.com/RobertCNelson/stable-kernel/issues/8&lt;br /&gt;
 oneiric:&lt;br /&gt;
 wget http://rcn-ee.net/deb/oneiric/v3.0.8-x3/install-me.sh&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
==== SDK unPackage Script ====&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_sgx_package.sh&amp;quot; script&lt;br /&gt;
 2.6.37&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_2.6.37.sh&lt;br /&gt;
 2.6.38-&amp;gt;3.2.x&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_sgx_package_3.2.x.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
Run script&lt;br /&gt;
 ./create_sgx_package_*.sh&lt;br /&gt;
&lt;br /&gt;
After Successfully running:&lt;br /&gt;
&lt;br /&gt;
 :~/temp$ ls&lt;br /&gt;
 create_sgx_package.sh&lt;br /&gt;
 GFX_X_XX_XX_XX_libs.tar.gz                      : -&amp;gt; Copy to Beagle (System Libs)&lt;br /&gt;
 GFX_Linux_SDK.tar.gz                            : -&amp;gt; Copy to Beagle (DEMO's)&lt;br /&gt;
 Graphics_SDK_setuplinux_X_XX_XX_XX.bin&lt;br /&gt;
 SDK&lt;br /&gt;
 SDK_BIN&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_*_libs.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_4_00_00_01_libs.tar.gz  (extracts install-SGX.sh and run-SGX.sh)&lt;br /&gt;
 ./install-SGX.sh (copies necessary SGX libs and startup script)&lt;br /&gt;
 ./run-SGX.sh (force run the new init script, or you can just reboot...)&lt;br /&gt;
&lt;br /&gt;
On successful install:&lt;br /&gt;
 Stopping PVR&lt;br /&gt;
 Starting PVR&lt;br /&gt;
 Starting SGX fixup for ES2.x (or ES3.x) (or ES5.x xM)&lt;br /&gt;
&lt;br /&gt;
Reboot for good measure&lt;br /&gt;
 sudo reboot&lt;br /&gt;
&lt;br /&gt;
==== Beagle: GFX_Linux_SDK.tar.gz ====&lt;br /&gt;
&lt;br /&gt;
 tar xf GFX_Linux_SDK.tar.gz&lt;br /&gt;
 cd GFX_Linux_SDK&lt;br /&gt;
 tar xf OGLES.tar.gz&lt;br /&gt;
&lt;br /&gt;
==== Test SGX with a DEMO ====&lt;br /&gt;
&lt;br /&gt;
 cd OGLES/SDKPackage/Binaries/CommonX11/Demos/EvilSkull&lt;br /&gt;
 ./OGLESEvilSkull&lt;br /&gt;
&lt;br /&gt;
==== Trouble Shooting ====&lt;br /&gt;
&lt;br /&gt;
 sudo rm /etc/powervr-esrev&lt;br /&gt;
 sudo depmod -a omaplfb&lt;br /&gt;
 sudo /etc/init.d/pvr restart&lt;br /&gt;
&lt;br /&gt;
== DSP ==&lt;br /&gt;
&lt;br /&gt;
=== gst-dsp ===&lt;br /&gt;
&lt;br /&gt;
The following Gstreamer elements will be installed:&lt;br /&gt;
&lt;br /&gt;
  $ gst-inspect | grep dsp&lt;br /&gt;
  dvdspu:  dvdspu: Sub-picture Overlay&lt;br /&gt;
  dsp:  dspdummy: DSP dummy element&lt;br /&gt;
  dsp:  dspvdec: DSP video decoder&lt;br /&gt;
  dsp:  dspadec: DSP audio decoder&lt;br /&gt;
  dsp:  dsph263enc: DSP video encoder&lt;br /&gt;
  dsp:  dspmp4venc: DSP MPEG-4 video encoder&lt;br /&gt;
  dsp:  dspjpegenc: DSP video encoder&lt;br /&gt;
  dsp:  dsph264enc: DSP video encoder&lt;br /&gt;
  dsp:  dspvpp: DSP VPP filter&lt;br /&gt;
  dsp:  dspipp: DSP IPP&lt;br /&gt;
&lt;br /&gt;
Please note that h264 encoder (dsph264enc) will not work because of missing h264venc_sn.dll64P DSP part. [http://groups.google.com/group/omapdiscuss/msg/76d928726656c5fe According to this message], it is not available due to a licensing restriction.&lt;br /&gt;
&lt;br /&gt;
Requirements: Kernel built with: &amp;quot;CONFIG_TIDSPBRIDGE=m&amp;quot;, for reference, here is what rcn-ee.net's image/deb's are configured for:&lt;br /&gt;
 ubuntu@arm:~$ zcat /proc/config.gz | grep TIDSP&lt;br /&gt;
 CONFIG_TIDSPBRIDGE=m&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_MEMPOOL_SIZE=0x600000&lt;br /&gt;
 CONFIG_TIDSPBRIDGE_RECOVERY=y&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_CACHE_LINE_CHECK is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_NTFY_PWRERR is not set&lt;br /&gt;
 # CONFIG_TIDSPBRIDGE_BACKTRACE is not set&lt;br /&gt;
&lt;br /&gt;
On the xM: if 3.2.x is too jerky, try 3.4.x and use the create_dsp_package.sh script, as the module changed..&lt;br /&gt;
&lt;br /&gt;
Download the latest version of the &amp;quot;create_dsp_package.sh&amp;quot; script&lt;br /&gt;
 wget https://raw.github.com/RobertCNelson/tools/master/x86/ti_omap/create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Make script executable&lt;br /&gt;
 chmod a+x ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Package script:&lt;br /&gt;
 ./create_dsp_package.sh&lt;br /&gt;
&lt;br /&gt;
Copy DSP_Install_libs.tar.gz to Beagle&lt;br /&gt;
&lt;br /&gt;
Setup network...&lt;br /&gt;
&lt;br /&gt;
Extract:&lt;br /&gt;
 ubuntu@arm:~$ tar xf DSP_Install_libs.tar.gz&lt;br /&gt;
&lt;br /&gt;
Install:&lt;br /&gt;
 ubuntu@arm:~$ ./install-DSP.sh&lt;br /&gt;
&lt;br /&gt;
What got installed:&lt;br /&gt;
 ubuntu@arm:~$ ls -lh /lib/dsp/&lt;br /&gt;
 total 7.1M&lt;br /&gt;
 -rwxr-xr-x 1 root root 1.3M Dec  3 10:56 baseimage.dof&lt;br /&gt;
 -rwxr-xr-x 1 root root  51K Dec  3 10:56 conversions.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  13K Dec  3 10:56 dctn_dyn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 2.5M Dec  3 10:56 h264vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 481K Dec  3 10:56 jpegdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 229K Dec  3 10:56 jpegenc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 767K Dec  3 10:56 m4venc_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 890K Dec  3 10:56 mp4vdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 707K Dec  3 10:56 mpeg4aacdec_sn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  15K Dec  3 10:56 qosdyn_3430.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root  14K Dec  3 10:56 ringio.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 9.1K Dec  3 10:56 TSPA_Object_Code_Software_License_Agreement.txt&lt;br /&gt;
 -rwxr-xr-x 1 root root  53K Dec  3 10:56 usn.dll64P&lt;br /&gt;
 -rwxr-xr-x 1 root root 245K Dec  3 10:56 vpp_sn.dll64P&lt;br /&gt;
&lt;br /&gt;
Building gst-dsp stuff:&lt;br /&gt;
&lt;br /&gt;
If you installed this image via the demo images or netinstall, the gst-dsp build script is installed:&lt;br /&gt;
&lt;br /&gt;
Update arm tools directory to the latest:&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/&lt;br /&gt;
 ubuntu@arm:/boot/uboot/tools$ sudo ./update.sh&lt;br /&gt;
&lt;br /&gt;
Otherwise, install via git:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/tools.git&lt;br /&gt;
&lt;br /&gt;
Change to the pkgs directory&lt;br /&gt;
 ubuntu@arm:~$ cd /boot/uboot/tools/pkgs&lt;br /&gt;
 (or if just cloned)&lt;br /&gt;
 ubuntu@arm:~$ cd ~/tools/pkgs&lt;br /&gt;
&lt;br /&gt;
Build gst-dsp stuff..&lt;br /&gt;
 ./ti-tidspbridge.sh&lt;br /&gt;
&lt;br /&gt;
Start dspbridge (or just reboot)&lt;br /&gt;
 sudo /etc/init.d/dsp_init start&lt;br /&gt;
&lt;br /&gt;
Test dspbridge&lt;br /&gt;
 sudo dsp-test&lt;br /&gt;
&lt;br /&gt;
Playbin:&lt;br /&gt;
 sudo gst-launch playbin2 uri=file://(file)&lt;br /&gt;
&lt;br /&gt;
Example: (using http://www.bigbuckbunny.org/index.php/download/ 854x480 mp4 )&lt;br /&gt;
 Note: it seems broken in Ubuntu precise armhf...&lt;br /&gt;
&lt;br /&gt;
 sudo gst-launch playbin2 uri=file:///home/USER/big_buck_bunny_480p_surround-fix.avi&lt;br /&gt;
&lt;br /&gt;
== Xorg omapfb Drivers ==&lt;br /&gt;
&lt;br /&gt;
By default Debian will try* to use the FBDEV video driver, however for the beagleboard we can take advantage of a more software optimized driver (still not using the sgx video hardware) using the NEON extensions of the Cortex-A8 core.&lt;br /&gt;
&lt;br /&gt;
Lenny might need this xorg.conf, but it's best to use omapfb later in this guide..&lt;br /&gt;
&lt;br /&gt;
/etc/X11/xorg.conf:&lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
 	Identifier	&amp;quot;Configured Video Device&amp;quot; &lt;br /&gt;
 	Option		&amp;quot;UseFBDev&amp;quot;		&amp;quot;true&amp;quot;&lt;br /&gt;
 	Driver		&amp;quot;fbdev&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep FBDEV&lt;br /&gt;
 (II) FBDEV: driver for framebuffer: fbdev&lt;br /&gt;
 (II) FBDEV(0): using default device&lt;br /&gt;
 (II) FBDEV(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16&lt;br /&gt;
 (==) FBDEV(0): RGB weight 565&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
  no adaptors present&lt;br /&gt;
&lt;br /&gt;
=== Drivers ===&lt;br /&gt;
&lt;br /&gt;
Note: These are built with neon optimizations: http://git.debian.org/?p=collab-maint/xf86-video-omapfb.git;a=blob;f=debian/rules;h=c2f0d5391c96c5abb60b1e691ad86bb27e0c17d8;hb=HEAD  (line 48/49)&lt;br /&gt;
&lt;br /&gt;
Lenny:&lt;br /&gt;
 wget -c http://rcn-ee.homeip.net:81/dl/deb-sbuild/lenny/xorg-drivers/xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
 sudo dpkg -i xserver-xorg-video-omap3_0.1.1-2_armel.deb&lt;br /&gt;
&lt;br /&gt;
Squeeze/Sid:&lt;br /&gt;
 sudo apt-get install xserver-xorg-video-omap3&lt;br /&gt;
&lt;br /&gt;
=== xorg.conf ===&lt;br /&gt;
/etc/X11/xorg.conf&lt;br /&gt;
&lt;br /&gt;
 Section &amp;quot;Monitor&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Monitor&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Screen&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Default Screen&amp;quot;&lt;br /&gt;
     Device &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     #Limited by SGX?&lt;br /&gt;
     DefaultDepth 16&lt;br /&gt;
 EndSection&lt;br /&gt;
 &lt;br /&gt;
 Section &amp;quot;Device&amp;quot;&lt;br /&gt;
     Identifier &amp;quot;Configured Video Device&amp;quot;&lt;br /&gt;
     Driver &amp;quot;omapfb&amp;quot;&lt;br /&gt;
     Option &amp;quot;fb&amp;quot; &amp;quot;/dev/fb0&amp;quot;&lt;br /&gt;
 EndSection&lt;br /&gt;
&lt;br /&gt;
To verify it was correctly installed, reboot and:&lt;br /&gt;
&lt;br /&gt;
cat /var/log/Xorg.0.log | grep omapfb&lt;br /&gt;
 (II) LoadModule: &amp;quot;omapfb&amp;quot;&lt;br /&gt;
 (II) Loading /usr/lib/xorg/modules/drivers//omapfb_drv.so&lt;br /&gt;
 (II) Module omapfb: vendor=&amp;quot;X.Org Foundation&amp;quot;&lt;br /&gt;
 (II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:&lt;br /&gt;
 (WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory&lt;br /&gt;
 (II) omapfb(0): VideoRAM: 1800KiB (SDRAM)&lt;br /&gt;
 (II) omapfb(0): Creating default Display subsection in Screen section&lt;br /&gt;
 (**) omapfb(0): Depth 16, (--) framebuffer bpp 16&lt;br /&gt;
 (==) omapfb(0): RGB weight 565&lt;br /&gt;
 (==) omapfb(0): Default visual is TrueColor&lt;br /&gt;
 (--) omapfb(0): Virtual size is 1280x720 (pitch 1280)&lt;br /&gt;
 (**) omapfb(0):  Built-in mode &amp;quot;current&amp;quot;&lt;br /&gt;
 (==) omapfb(0): DPI set to (96, 96)&lt;br /&gt;
 (II) omapfb(0): DPMS enabled&lt;br /&gt;
 (II) omapfb(0): Video plane capabilities:&lt;br /&gt;
 (II) omapfb(0): Video plane supports the following image formats:&lt;br /&gt;
 (II) omapfb(0): XVideo extension initialized&lt;br /&gt;
&lt;br /&gt;
Login into Debian and open a new terminal, xorg has to be running..&lt;br /&gt;
&lt;br /&gt;
xvinfo -display :0.0&lt;br /&gt;
 X-Video Extension version 2.2&lt;br /&gt;
 screen #0&lt;br /&gt;
   Adaptor #0: &amp;quot;OMAP XV adaptor&amp;quot;&lt;br /&gt;
     number of ports: 1&lt;br /&gt;
     port base: 56&lt;br /&gt;
     operations supported: PutImage &lt;br /&gt;
     supported visuals:&lt;br /&gt;
       depth 16, visualID 0x21&lt;br /&gt;
     number of attributes: 1&lt;br /&gt;
     etc..&lt;br /&gt;
&lt;br /&gt;
== Building Kernel ==&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
=== Beagle/Beagle xM ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
=== BeagleBone ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
=== Panda/Panda ES ===&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Upgrading from Debian 5 to Debian 6 =&lt;br /&gt;
&lt;br /&gt;
[http://www.jeremycole.com/blog/2011/03/09/beagleboard-upgrading-from-debian-5-to-debian-6/ Upgrading] from Debian 5 to Debian 6 report and tutorial.&lt;/div&gt;</summary>
		<author><name>RobertCNelson</name></author>	</entry>

	<entry>
		<id>http://elinux.org/BeagleBoardUbuntu</id>
		<title>BeagleBoardUbuntu</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/BeagleBoardUbuntu"/>
				<updated>2013-04-26T20:03:37Z</updated>
		
		<summary type="html">&lt;p&gt;RobertCNelson: /* Demo Image */ release the &amp;quot;black&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Linux]]&lt;br /&gt;
[[Category: OMAP]]&lt;br /&gt;
[[Category:Development Boards]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
''(For BeagleBoardAngstrom, click [[BeagleBoardAngstrom|here]].)''&lt;br /&gt;
&lt;br /&gt;
This page is about running a distribution (ARM [http://wiki.debian.org/ArmEabiPort EABI]) [http://www.ubuntu.com/ Ubuntu] at [[BeagleBoard]]. BeagleBoard will boot the (ARM EABI) Ubuntu distribution from the [[BeagleBoard#MMC.2FSD_boot|SD card]]. Since much of this page is generic, it has also be extended to help support devices such as the [[PandaBoard]] and [[BeagleBone]].&lt;br /&gt;
&lt;br /&gt;
* For the best experience, make sure you have an LCD/HDMI monitor attached to the BeagleBoard's HDMI port, 2&amp;amp;nbsp;GB/4&amp;amp;nbsp;GB/8&amp;amp;nbsp;GB SD card, and a known good USB&amp;amp;nbsp;2.0 hub with mouse and keyboard.&lt;br /&gt;
&lt;br /&gt;
= Help =&lt;br /&gt;
&lt;br /&gt;
If you need any help:&lt;br /&gt;
&lt;br /&gt;
*Kernel related help:&lt;br /&gt;
** [http://groups.google.com/group/beagleboard Email Beagleboard user group] *Recommended method&lt;br /&gt;
** ''#beagle'': Beagle IRC on Freenode, accessible also by [http://beagleboard.org/discuss web interface] ([http://www.beagleboard.org/irclogs/index.php logs])&lt;br /&gt;
** Kernel Tree's&lt;br /&gt;
*** [https://github.com/RobertCNelson/stable-kernel/tree/v3.7.x Stable (3.7.x) branch]&lt;br /&gt;
*** [https://github.com/RobertCNelson/linux-dev Development Kernel source code]&lt;br /&gt;
&lt;br /&gt;
*Ubuntu related help:&lt;br /&gt;
** ''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
*When asking for help, please provide some debugging information:&lt;br /&gt;
** U-Boot Version installed on board&lt;br /&gt;
** Kernel Version: uname -a&lt;br /&gt;
** pastebin dmesg&lt;br /&gt;
*** Copy from serial port or use &amp;quot;dmesg | pastebinit&amp;quot; (sudo apt-get install pastebinit)&lt;br /&gt;
&lt;br /&gt;
= Required Beagle Software = &lt;br /&gt;
&lt;br /&gt;
Mainline U-Boot:&lt;br /&gt;
* All old BeagleBoard (classic) Ax, Bx, Cx and Dx boards are required to upgrade to at least these U-Boot versions.&lt;br /&gt;
* XM Boards have no NAND, so MLO/u-boot.img is always required on the first partition&lt;br /&gt;
* Directions: [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
&lt;br /&gt;
= Omap Serial Changes =&lt;br /&gt;
&lt;br /&gt;
boot.scr/boot.cmd changes:&lt;br /&gt;
&lt;br /&gt;
With 2.6.35:&lt;br /&gt;
 console=ttyS2,115200n8&lt;br /&gt;
&lt;br /&gt;
With 2.6.36/37+:&lt;br /&gt;
 console=ttyO2,115200n8&lt;br /&gt;
&lt;br /&gt;
Serial console login: /etc/init/ttyO2.conf&lt;br /&gt;
 start on stopped rc RUNLEVEL=[2345]&lt;br /&gt;
 stop on runlevel [!2345]&lt;br /&gt;
 &lt;br /&gt;
 respawn&lt;br /&gt;
 exec /sbin/getty 115200 ttyO2&lt;br /&gt;
&lt;br /&gt;
= Method 1: Download a Complete Pre-Configured Image =&lt;br /&gt;
&lt;br /&gt;
== Canonical/Ubuntu Images ==&lt;br /&gt;
Support:&lt;br /&gt;
''#ubuntu-arm'': Ubuntu's ARM IRC on Freenode ([http://irclogs.ubuntu.com/ logs] -&amp;gt; year -&amp;gt; month -&amp;gt; day -&amp;gt; #ubuntu-arm.html)&lt;br /&gt;
&lt;br /&gt;
At one time, Canonical &amp;quot;supported&amp;quot; a few boards with their own images (11.10 &amp;amp; 12.04 releases).&lt;br /&gt;
*BeagleBoard xM -&amp;gt; &amp;quot;omap&amp;quot;&lt;br /&gt;
*PandaBoard &amp;amp; PandaBoard ES -&amp;gt; &amp;quot;omap4&amp;quot;&lt;br /&gt;
https://wiki.ubuntu.com/ARM/OMAP&lt;br /&gt;
&lt;br /&gt;
==Demo Image==&lt;br /&gt;
&lt;br /&gt;
* These demonstration images contain a custom Mainline based kernel with experimental enhancements to the boards supported. They are usually updated about once a month, as new features/enhancements get added by the community. Currently, this image ships with two kernel's &amp;quot;x&amp;quot; which is for mainline omap3+ devices (BeagleBoard/PandaBoard) and the &amp;quot;psp&amp;quot; which is for specifically the BeagleBone, as much of the kernel support for this device is currently in a TI Git kernel tree on [http://arago-project.org arago-project]. The kernel is stress tested by a farm of Panda/Beagle's running 24/7 under a heavy load (building gcc trunk/mainline kernel).&lt;br /&gt;
&lt;br /&gt;
* '''Advanced Users only''': Beagle/Panda: Kernel source, used in these demo images: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.7.x -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone: Kernel v3.2.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.2 &lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.2 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': BeagleBone/BeagleBone Black:  Kernel v3.8.x source, used in these demo images: https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8&lt;br /&gt;
 git clone git://github.com/RobertCNelson/linux-dev.git&lt;br /&gt;
 cd linux-dev&lt;br /&gt;
 git checkout origin/am33x-v3.8 -b tmp&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
* '''Advanced Users only''': Userspace, used in these demo images:&lt;br /&gt;
 https://github.com/RobertCNelson/omap-image-builder&lt;br /&gt;
&lt;br /&gt;
If the script in these demo images fail: email &amp;quot;bugs@rcn-ee.com&amp;quot; I need: terminal command, terminal log, distribution name, arch...&lt;br /&gt;
&lt;br /&gt;
=== Raring 13.04 armhf ===&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Services Active:&lt;br /&gt;
 Note: Depending on your internal network these may work out the box&lt;br /&gt;
 Apache, Port 80: http://arm/&lt;br /&gt;
 SSH, Port 22: ssh ubuntu@arm&lt;br /&gt;
 Getty, Serial Port&lt;br /&gt;
&lt;br /&gt;
Default user: ubuntu pass: temppwd &lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/raring/ubuntu-13.04-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 mirrors (will take some time to update):&lt;br /&gt;
 wget http://ynezz.ibawizard.net/beagleboard/raring/ubuntu-13.04-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-13.04-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 e54b8693cb92b40d694e5885e4a1b86c  ubuntu-13.04-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-13.04-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd ubuntu-13.04-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./setup_sdcard.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/sdd: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 lsblk:&lt;br /&gt;
 NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT&lt;br /&gt;
 sda      8:0    0 465.8G  0 disk &lt;br /&gt;
 ├─sda1   8:1    0 446.9G  0 part /  '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
 ├─sda2   8:2    0     1K  0 part &lt;br /&gt;
 └─sda5   8:5    0  18.9G  0 part [SWAP]&lt;br /&gt;
 sdd      8:48   1   3.7G  0 disk &lt;br /&gt;
 ├─sdd1   8:49   1    64M  0 part &lt;br /&gt;
 └─sdd2   8:50   1   3.6G  0 part &lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/sdd''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./setup_sdcard.sh...&lt;br /&gt;
&lt;br /&gt;
Install image:&lt;br /&gt;
&lt;br /&gt;
Quick install script for &amp;quot;board&amp;quot;&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot board&lt;br /&gt;
&lt;br /&gt;
&amp;quot;board&amp;quot; options:&lt;br /&gt;
*BeagleBoard Ax/Bx    - beagle_bx&lt;br /&gt;
*BeagleBoard Cx/Dx    - beagle_cx&lt;br /&gt;
*BeagleBoard xM       - beagle_xm&lt;br /&gt;
*BeagleBone           - bone&lt;br /&gt;
*BeagleBone/Black     - bone_dtb&lt;br /&gt;
*PandaBoard Ax        - panda&lt;br /&gt;
*PandaBoard ES        - panda_es&lt;br /&gt;
&lt;br /&gt;
So for the BeagleBoard xM:&lt;br /&gt;
 sudo ./setup_sdcard.sh --mmc /dev/sdX --uboot beagle_xm&lt;br /&gt;
&lt;br /&gt;
*Additional Options&lt;br /&gt;
** --rootfs &amp;lt;ext4 default&amp;gt;&lt;br /&gt;
** --swap_file &amp;lt;swap file size in MB's&amp;gt;&lt;br /&gt;
** --addon pico &amp;lt;ti pico projector&amp;gt;&lt;br /&gt;
** --svideo-ntsc &amp;lt;use ntsc over dvi for video)&lt;br /&gt;
** --svideo-pal &amp;lt;use pal over dvi for video)&lt;br /&gt;
&lt;br /&gt;
You should now be able to unmount the SD card from you PC, insert into your Board, reboot and have the OS loaded.&lt;br /&gt;
&lt;br /&gt;
For a basic '''framebuffer''' driven desktop environment: (make sure network is setup):&lt;br /&gt;
 Ethernet: &amp;quot;sudo ifconfig -a&amp;quot; and &amp;quot;sudo dhclient usb1&amp;quot; or &amp;quot;sudo dhclient eth0&amp;quot;&lt;br /&gt;
 Wireless: http://elinux.org/BeagleBoardUbuntu#Wifi_Networking_.28command_line.29&lt;br /&gt;
&lt;br /&gt;
Then run:&lt;br /&gt;
 /bin/bash /boot/uboot/tools/ubuntu/minimal_lxde_desktop.sh&lt;br /&gt;
&lt;br /&gt;
Additional Expansion Options:&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with Leopard Imaging: li5m03&lt;br /&gt;
** http://shop.leopardimaging.com/product.sc?productId=17&lt;br /&gt;
Add &amp;quot;camera=li5m03&amp;quot; to uEnv.txt and run:&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-media-ctl-n-yavta.sh&lt;br /&gt;
 /boot/uboot/tools/pkgs/aptina-test-capture.sh&lt;br /&gt;
&lt;br /&gt;
*Beagle xM with LSR COM6L wifi adapter (first units are missing eeprom) see in uEnv.txt for overrides:&lt;br /&gt;
 #LSR COM6L Adapter Board&lt;br /&gt;
 #http://eewiki.net/display/linuxonarm/LSR+COM6L+Adapter+Board&lt;br /&gt;
 #First production run has unprogramed eeprom:&lt;br /&gt;
 #buddy=lsr-com6l-adpt&lt;br /&gt;
 &lt;br /&gt;
 #LSR COM6L Adapter Board + TiWi5&lt;br /&gt;
 #wl12xx_clk=wl12xx_26mhz&lt;br /&gt;
&lt;br /&gt;
Advanced: Build Image:&lt;br /&gt;
&lt;br /&gt;
Built with a fork of project-rootstock (ARM native mode, run directly on BeagleBoard), using a script from omap-image-builder:&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/omap-image-builder.git&lt;br /&gt;
 cd omap-image-builder&lt;br /&gt;
 git checkout v2013.04 -b v2013.04&lt;br /&gt;
 touch release&lt;br /&gt;
 ./build_image.sh&lt;br /&gt;
&lt;br /&gt;
=== Quantal 12.10 armhf ===&lt;br /&gt;
&lt;br /&gt;
Image Updated:&lt;br /&gt;
*2013-04-26&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** BeagleBone: v3.2.42-psp27 kernel&lt;br /&gt;
** BeagleBone/BeagleBone Black: v3.8.8-bone14 kernel (--uboot bone_dtb)&lt;br /&gt;
*2013-03-28:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.10-x10 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8.4-bone9)&lt;br /&gt;
*2013-02-16:&lt;br /&gt;
** Beagle/Panda/Panda ES: v3.7.8-x8 kernel&lt;br /&gt;
** Bone: v3.2.33-psp26 kernel (--uboot bone_dtb = v3.8-rc7-bone4)&lt;br /&gt;
&lt;br /&gt;
Get prebuilt image:&lt;br /&gt;
&lt;br /&gt;
 wget http://rcn-ee.net/deb/rootfs/quantal/ubuntu-12.10-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Verify image with: &lt;br /&gt;
 md5sum ubuntu-12.10-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 b7cd2f94c0dbc75f8d6897e559d52c0a  ubuntu-12.10-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
&lt;br /&gt;
Unpack image:&lt;br /&gt;
 tar xJf ubuntu-12.10-console-armhf-2013-04-26.tar.xz&lt;br /&gt;
 cd ubuntu-12.10-console-armhf-2013-04-26&lt;br /&gt;
&lt;br /&gt;
Then follow directions show above with the other images...&lt;br /&gt;
&lt;br /&gt;
= Method 2: Use the NetInstall method=&lt;br /&gt;
&lt;br /&gt;
You will need a 1GB/2GB SD card or greater.&lt;br /&gt;
 Standard system : ~700&amp;amp;nbsp;MB&lt;br /&gt;
&lt;br /&gt;
Report Bugs/Issues to: https://github.com/RobertCNelson/netinstall/issues&lt;br /&gt;
(anywhere else will be ignored..)&lt;br /&gt;
&lt;br /&gt;
Download netinstall script:&lt;br /&gt;
 git clone git://github.com/RobertCNelson/netinstall.git&lt;br /&gt;
 cd netinstall&lt;br /&gt;
&lt;br /&gt;
Current Support Ubuntu distributions:&lt;br /&gt;
 --distro oneiric (11.10)&lt;br /&gt;
 --distro precise-armhf (12.04)&lt;br /&gt;
 --distro quantal-armhf (12.10)&lt;br /&gt;
&lt;br /&gt;
Old &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard Ax/Bx - beagle_bx&lt;br /&gt;
 *BeagleBoard Cx    - beagle_cx&lt;br /&gt;
 *BeagleBoard xMA/B/C    - beagle_xm&lt;br /&gt;
 *BeagleBone Ax     - bone&lt;br /&gt;
 *PandaBoard Ax     - panda&lt;br /&gt;
 *PandaBoard ES     - panda_es&lt;br /&gt;
&lt;br /&gt;
Install script for &amp;lt;board&amp;gt;&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
New &amp;lt;board&amp;gt; selection:&lt;br /&gt;
 *BeagleBoard xMx - omap3-beagle-xm&lt;br /&gt;
&lt;br /&gt;
Install script for new &amp;lt;board&amp;gt; selection: (slowly migrating all devices to this method)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb &amp;lt;board&amp;gt; --distro &amp;lt;distro&amp;gt;&lt;br /&gt;
&lt;br /&gt;
So for the xM: with quantal-armhf:&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_xm --distro quantal-armhf&lt;br /&gt;
 (or)&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --dtb omap3-beagle-xm --distro quantal-armhf&lt;br /&gt;
&lt;br /&gt;
*Other Options:&lt;br /&gt;
**--firmware : installs firmware&lt;br /&gt;
**--serial-mode : debian-installer uses Serial Port&lt;br /&gt;
&lt;br /&gt;
Place SD card into BeagleBoard and boot:&lt;br /&gt;
&lt;br /&gt;
Configure the network:&lt;br /&gt;
 usb0: USB net &amp;lt;- (usually the OTG port)&lt;br /&gt;
 eth0: USB net &amp;lt;- (usually the smsc95xx adapter on the BeagleBoard and PandaBoard)&lt;br /&gt;
 wlan0: Wifi &amp;lt;- Your USDB-Wi-Fi device.. &lt;br /&gt;
&lt;br /&gt;
See my notes for my testing procedure: https://github.com/RobertCNelson/netinstall/blob/master/test.Ubuntu&lt;br /&gt;
&lt;br /&gt;
Troubshooting: If boot fails..&lt;br /&gt;
*Hold the user button down to force booting from MMC&lt;br /&gt;
*Upgrade X-loader and U-boot [http://elinux.org/BeagleBoardUbuntu#Upgrade_X-loader_and_U-boot Upgrade X-loader and U-Boot]&lt;br /&gt;
*Clear U-boot's Environment Variables in nand: &lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
NetInstall assumptions:&lt;br /&gt;
 Assume asll &amp;lt;default&amp;gt;'s... Thanks you preseed.conf!!!&lt;br /&gt;
&lt;br /&gt;
= Method 3: Manual Install (no automatic scripts)=&lt;br /&gt;
&lt;br /&gt;
Note, this section use to have a lot of details, but maintenance of the two wiki's became a pain, so for now on we will just link to my other pages:&lt;br /&gt;
&lt;br /&gt;
== Beagle/Beagle xM ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBoard&lt;br /&gt;
&lt;br /&gt;
== BeagleBone ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/BeagleBone&lt;br /&gt;
&lt;br /&gt;
== Panda/Panda ES ==&lt;br /&gt;
 http://eewiki.net/display/linuxonarm/PandaBoard&lt;br /&gt;
&lt;br /&gt;
= Advanced =&lt;br /&gt;
&lt;br /&gt;
==Install Latest Kernel Image==&lt;br /&gt;
&lt;br /&gt;
===Script File===&lt;br /&gt;
&lt;br /&gt;
Latest Stable is: https://github.com/RobertCNelson/stable-kernel&lt;br /&gt;
&lt;br /&gt;
 export DIST=oneiric  (options are lucid/maverick/natty/oneiric/precise/squeeze/wheezy)&lt;br /&gt;
 export ARCH=armel (options are armel/armhf (armhf only for precise))&lt;br /&gt;
 &lt;br /&gt;
 Beagle/Panda&lt;br /&gt;
 export BOARD=omap&lt;br /&gt;
 &lt;br /&gt;
 BeagleBone&lt;br /&gt;
 export BOARD=omap-psp&lt;br /&gt;
 &lt;br /&gt;
 wget http://rcn-ee.net/deb/${DIST}-${ARCH}/LATEST-${BOARD}&lt;br /&gt;
 wget $(cat ./LATEST-${BOARD} | grep STABLE | awk '{print $3}')&lt;br /&gt;
 /bin/bash install-me.sh&lt;br /&gt;
&lt;br /&gt;
Reboot with your new uImage.&lt;br /&gt;
&lt;br /&gt;
== Upgrade X-loader and U-boot ==&lt;br /&gt;
&lt;br /&gt;
*Note: the functionality of the &amp;quot;X-Loader&amp;quot; project has been merged as u-boot spl.&lt;br /&gt;
&lt;br /&gt;
Compatible with old Ax, Bx, Cx, and Dx BeagleBoards&lt;br /&gt;
&lt;br /&gt;
Note: Sometimes on these older boards, you just have to clear out the stored U-Boot environment variables in nand to make this script work:&lt;br /&gt;
 nand erase 260000 20000&lt;br /&gt;
&lt;br /&gt;
Or: To fully erase the NAND..&lt;br /&gt;
 nand erase.chip&lt;br /&gt;
&lt;br /&gt;
Requires MMC card..&lt;br /&gt;
&lt;br /&gt;
 git clone git://github.com/RobertCNelson/flasher.git&lt;br /&gt;
 cd flasher&lt;br /&gt;
&lt;br /&gt;
For the Beagle Ax/Bx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_bx&lt;br /&gt;
&lt;br /&gt;
For the Beagle Cx/Dx&lt;br /&gt;
 sudo ./mk_mmc.sh --mmc /dev/sdX --uboot beagle_cx&lt;br /&gt;
&lt;br /&gt;
 1: Plug Serial Cable in and Start Serial terminal program&lt;br /&gt;
 2: Place MMC card in Beagle&lt;br /&gt;
 3: Push and hold the user button&lt;br /&gt;
 4: Plug-in power&lt;br /&gt;
 5: Wait for U-Boot countdown to finish, and let off user button&lt;br /&gt;
 6: Wait for flashing/script to end&lt;br /&gt;
 7: Power down, remove and reformat MMC card to final OS&lt;br /&gt;
&lt;br /&gt;
If you don't know the location of your SD card:&lt;br /&gt;
 sudo ./mk_mmc.sh --probe-mmc&lt;br /&gt;
&lt;br /&gt;
You should see something like &lt;br /&gt;
&lt;br /&gt;
 Are you sure? I don't see [/dev/idontknow], here is what I do see...&lt;br /&gt;
 &lt;br /&gt;
 fdisk -l:&lt;br /&gt;
 Disk /dev/sda: 500.1 GB, 500107862016 bytes '''&amp;lt;- x86 Root Drive'''&lt;br /&gt;
 Disk /dev/mmcblk0: 3957 MB, 3957325824 bytes '''&amp;lt;- MMC/SD card'''&lt;br /&gt;
 &lt;br /&gt;
 mount:&lt;br /&gt;
 /dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0) '''&amp;lt;- x86 Root Partition'''&lt;br /&gt;
&lt;br /&gt;
* In this example, we can see via mount, '''/dev/sda1''' is the x86 rootfs, therefore '''/dev/mmcblk0''' is the other drive in the system, which is the MMC/SD card that was inserted and should be used by ./mk_mmc.sh...&lt;br /&gt;
&lt;br /&gt;
== SGX Video Acceleration ==&lt;br /&gt;
&lt;br /&gt;
=== SGX armel/armhf v3.4.x+ ===&lt;br /&gt;
* Note: This is a still a work in progress, but so far all the basic sgx demos seem to work on my Beagle xM C...  Thanks to TI for the special armhf binaries!!! --[[User:RobertCNelson|RobertCNelson]] 19:48, 17 July 2012 (UTC)&lt;br /&gt;
&lt;br /&gt;
* Test with: Precise/12.04 armhf demo image with v3.4.5-x1, desktop was lxde via: &amp;quot;sudo apt-get install lxde lxde-core lxde-icon-theme&amp;quot;&lt;br /&gt;
&lt;br /&gt;
==== Re-Build Kernel and SGX Kernel Modules ====&lt;br /&gt;
 git clone git://github.com/RobertCNelson/stable-kernel.git&lt;br /&gt;
 cd stable-kernel&lt;br /&gt;
 git checkout origin/v3.6.x -b v3.6.x&lt;br /&gt;
 ./build_kernel.sh (and then follow the directions as the script runs...)&lt;br /&gt;
&lt;br /&gt;
Build kernel&lt;br /&gt;
 ./build_kernel.sh&lt;br /&gt;
&lt;br /&gt;
Build SGX modules&lt;br /&gt;
 ./sgx_build_modules.sh&lt;br /&gt;
&lt;br /&gt;
Insert SD card, make sure to modify MMC in system.sh&lt;br /&gt;
 ./tools/install_image.sh&lt;br /&gt;
&lt;br /&gt;
Place SD card into the device and boot...&lt;br /&gt;
 cd /opt/sgx&lt;br /&gt;
 sudo tar xf GFX_4.0*_libs.tar.gz&lt;br /&gt;
 sudo ./install-sgx.sh &lt;br /&gt;
&lt;br /&gt;
Reboot, check modules (lsmod):&lt;br /&gt;
 Module                  Size  Used by&lt;br /&gt;
 bufferclass_ti          5727  0 &lt;br /&gt;
 omaplfb                11512  0 &lt;br /&gt;
 pvrsrvkm              165208  2 bufferclass_ti,omaplfb&lt;br /&gt;
&lt;br /&gt;
Blit Test:&lt;br /&gt;
 ubuntu@omap:/usr/bin/armhf/es5.0$ ./sgx_blit_test &lt;br /&gt;
 ------------------ SGX 3D Blit test -----------------&lt;br /&gt;
 ----------------------- Start -----------------------&lt;br /&gt;
 Call PVRSRVConnect with a valid argument:&lt;br /&gt;
  OK&lt;br /&gt;
 Get number of devices from PVRSRVEnumerateDevices:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Reported 1 devices&lt;br /&gt;
 .... Device Number  | Device Type&lt;br /&gt;
             0000    | PVRSRV_DEVICE_ID_SGX&lt;br /&gt;
 Attempt to acquire device 0:&lt;br /&gt;
  OK&lt;br /&gt;
 Getting SGX Client info&lt;br /&gt;
  OK&lt;br /&gt;
 .... ui32ProcessID:1133&lt;br /&gt;
 Display Class API: enumerate devices&lt;br /&gt;
  OK&lt;br /&gt;
 PVRSRVEnumerateDeviceClass() returns 1 display device(s)&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: open device&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: Get display info&lt;br /&gt;
  OK&lt;br /&gt;
 .... Name:PowerVR OMAP Linux Display Driver&lt;br /&gt;
 .... MaxSwapChains:1&lt;br /&gt;
 .... MaxSwapChainBuffers:1&lt;br /&gt;
 .... MinSwapInterval:0&lt;br /&gt;
 .... MaxSwapInterval:1&lt;br /&gt;
 Display Class API: enumerate display formats&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display format 0 - Pixelformat:1&lt;br /&gt;
 Display Class API: enumerate display dimensions&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 .... Display dimensions 0 - ByteStride:2560 Width:1280 Height:720&lt;br /&gt;
 Attempt to create memory context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 .... Shared heap 0 - HeapID:0x7000000 DevVAddr:0x1000 Size:0x87fe000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 1 - HeapID:0x7000001 DevVAddr:0xc800000 Size:0xfff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 2 - HeapID:0x7000002 DevVAddr:0xe400000 Size:0x7f000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 3 - HeapID:0x7000003 DevVAddr:0xf000000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 4 - HeapID:0x7000004 DevVAddr:0xf400000 Size:0x4ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 5 - HeapID:0x7000005 DevVAddr:0xfc00000 Size:0x1ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 6 - HeapID:0x7000006 DevVAddr:0xdc00000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 7 - HeapID:0x7000007 DevVAddr:0xe800000 Size:0x7ff000 Attr:0x2014200&lt;br /&gt;
 .... Shared heap 8 - HeapID:0x7000008 DevVAddr:0xd800000 Size:0x3ff000 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 9 - HeapID:0x7000009 DevVAddr:0x8800000 Size:0x0 Attr:0x2024200&lt;br /&gt;
 .... Shared heap 10 - HeapID:0x700000a DevVAddr:0x8800000 Size:0x3fff000 Attr:0x2014200&lt;br /&gt;
 Display Class API: get the system (primary) buffer&lt;br /&gt;
  OK&lt;br /&gt;
 Display Class API: map display surface to SGX&lt;br /&gt;
  OK&lt;br /&gt;
 Attempt to create transfer context for SGX:&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the bottom right quadrant of the display:&lt;br /&gt;
 (bottom right quadrant should be red on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit to the top left quadrant of the display:&lt;br /&gt;
 (top left quadrant should be striped (r/g/b/w) on blue background):&lt;br /&gt;
  OK&lt;br /&gt;
  OK&lt;br /&gt;
 Do a CUSTOMSHADER blit to the top right quadrant of the display:&lt;br /&gt;
 (top right quadrant should be yellow):&lt;br /&gt;
 0xb6acd000 (host) 0xf407000 (device): Device mem for custom shader program&lt;br /&gt;
 0xb6acb000 (host) 0xf408000 (device): Device mem for texture&lt;br /&gt;
 USE custom shader program: 0x28841001.c0000000	mov.end o0, sa0&lt;br /&gt;
  OK&lt;br /&gt;
 Do a SRCCOPY blit with COLOUR DOWNSAMPLING from ARGB8888 to RGB565&lt;br /&gt;
 and then present the RGB565 to the bottom right quadrant of the screen&lt;br /&gt;
 (bottom right quadrant should be a