Skip to content

Instantly share code, notes, and snippets.

@jvcleave
Created February 13, 2012 05:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jvcleave/1813851 to your computer and use it in GitHub Desktop.
Save jvcleave/1813851 to your computer and use it in GitHub Desktop.
beaglebone write image
DON'T JUST COPY AND PASTE
YOUR USB DRIVE MAY NOT BE /dev/sdd AND THIS WILL ERASE IT
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 7.4G 3.9G 3.2G 56% /
none 3.9G 720K 3.9G 1% /dev
none 3.9G 704K 3.9G 1% /dev/shm
none 3.9G 96K 3.9G 1% /var/run
none 3.9G 0 3.9G 0% /var/lock
/dev/sda5 276M 39M 223M 15% /boot
/dev/sda8 447G 15G 410G 4% /home
/dev/sdd1 74M 5.9M 69M 8% /media/boot
/dev/sdd2 7.3G 2.7G 4.3G 39% /media/rootfs
#sdd is my usb drive - need to umount these
$ sudo umount /dev/sdd1
$ sudo umount /dev/sdd2
#need to be root to write the image
$ su
#now write the new image
$ zcat beaglebone_debian_of_cloud9_no_FIBERS.img.gz > /dev/sdd
@jvcleave
Copy link
Author

File is here http://www.jvcref.com/files/beaglebone_debian_of_cloud9_no_FIBERS.img.gz
alt version
http://www.jvcref.com/files/DEBIAN_OF_OFXKINECT_NO_CLOUD9.img.gz

Image is derived from http://elinux.org/BeagleBoardDebian#Debian_armhf_port which supposedly will give 5-6% faster floating point performance

Any libraries that you don't get from apt-get will need to use the flags (thanks Arturo for help with this)
-mfloat-abi=hard -mfpu=vfp

  • OpenNI/Sensor/SensorKinect is also complied and installed with the above flags
  • The root home folder is a mess - you probably only care about the openFrameworks folder and maybe cloud9_workspace and OpenNI
  • I don't know if SSH via USB works - I plug in via Ethernet and SSH in with user:root, password:root
  • SMB is turned on and configured for the root user (easy to edit files)
  • Cloud9 is installed but needs Fibers to run Bonescript. This part is probably messy due to my noobness with Node.js module paths
  • Cloud9 can be ran with node /usr/local/lib/nodejs/.npm/cloud9/0.5.1/package/bin/cloud9.js -l 192.168.200.101 (192.168.200.101) being whatever ip the bone has
  • emptyExample will need ofAppGlutWindow (2 instances) changed to ofAppNoWindow in main.cpp - the version I use is in
    /root/openFrameworks/apps/jvcapps/emptyExample
#include "ofMain.h"
#include "testApp.h"
#include "ofAppNoWindow.h"

//========================================================================
int main( ){

    ofAppNoWindow window;
        ofSetupOpenGL(&window, 1024,768, OF_WINDOW);                    // <-------- setup the GL context

        // this kicks off the running of my app
        // can be OF_WINDOW or OF_FULLSCREEN
        // pass in width and height too:
        ofRunApp( new testApp());

}

Enjoy - feel free to gmail me (jvcleave) about any issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment