Difference between revisions of "NeTV local compilation"

From Chumby Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
To do local development, you will use this facility to install gcc.  
 
To do local development, you will use this facility to install gcc.  
 +
 +
WARNING -- DO NOT USE THIS PROCEDURE IT HAS NOT BEEN COMPLETELY DEBUGGED. In particular, if the device runs out of space during tool installation you can brick the device. Currently trying to figure out a more robust method for installing the very large package of tools required for development.
  
 
==Getting the compiler installed==
 
==Getting the compiler installed==

Revision as of 05:32, 7 September 2011

NeTV includes the abilities to download packages that are pre-compiled from the chumby release servers.

To do local development, you will use this facility to install gcc.

WARNING -- DO NOT USE THIS PROCEDURE IT HAS NOT BEEN COMPLETELY DEBUGGED. In particular, if the device runs out of space during tool installation you can brick the device. Currently trying to figure out a more robust method for installing the very large package of tools required for development.

Getting the compiler installed

First, connect to the network using the NeTV UI. Once you are connected to the network, ssh into the device.

Now, type the command

opkg update

This will update the list of installable packages.

Before going on, you will need to change / to be writeable. This is done by using

mount -o remount,rw /

In order to install gcc, you will need to first remove some packages to make space. If you aren't planning on using python, that's an easy to remove and fairly large package. You can remove it by doing

opkg remove python-core --force-removal-of-dependent-packages

If you do want to retain python, have a look at the list of installed packages using "opkg list-installed" and pick packages that you don't need.

Once you have freed up about 250 MB, you can run

opkg install task-sdk-native

This process will download all of the files, headers, and executables required to do C development.

Once this process is done, you can now use gcc:

gcc -o hello hello.c
./hello
hello world!