Difference between revisions of "Hacking Linux for chumby"

From Chumby Wiki
Jump to: navigation, search
(Kernel)
Line 1: Line 1:
=Toolchain=
 
 
* download the [http://files.chumby.com/resources/Gcc-3.3.2-glibc-2.3.2.tar.gz Chumby Toolchain] to <code>/usr</code>
 
* extract
 
# tar zxvf gcc-3.3.2-glibc-2.3.2.tar.gz
 
* create Embedix dir and symlink
 
# mkdir -p /opt/Embedix/usr/local/arm-linux
 
# ln -s /usr /opt/Embedix/usr/local/arm-linux/gcc-3.3.2-glibc-2.3.2
 
* if it does not already exist, open <code>/usr/bin/arm-linux-make</code> with your favorite editor and enter:
 
#!/bin/sh
 
echo make ARCH=arm CROSS=arm-linux- CC=arm-linux-gcc AR=arm-linux-ar NM=arm-linux-nm RANLIB=arm-linux-ranlib CXX=arm-linux-g++ AS=arm-linux-as LD=arm-linux-ld STRIP=arm-linux-strip BUILDCC=gcc BUILD_CC=gcc CC_FOR_BUILD=gcc "$@"
 
exec make ARCH=arm CROSS=arm-linux- CC=arm-linux-gcc AR=arm-linux-ar NM=arm-linux-nm RANLIB=arm-linux-ranlib CXX=arm-linux-g++ AS=arm-linux-as LD=arm-linux-ld STRIP=arm-linux-strip BUILDCC=gcc BUILD_CC=gcc CC_FOR_BUILD=gcc "$@"
 
* set <code>/usr/bin/arm-linux-make</code> executable
 
# chmod +x /usr/bin/arm-linux-make
 
 
=Kernel=
 
 
 
The Alpha Prototype chumby runs a modified linux 2.4.20 kernel.
 
The Alpha Prototype chumby runs a modified linux 2.4.20 kernel.
  
 
'''Compiling the Kernel'''
 
'''Compiling the Kernel'''
 +
 +
First, install the [[GCC Toolchain]].
  
 
In order to build the chumby kernel, you can download the kernel source from [http://files.chumby.com/resources/chumby_kernel.tgz chumby_kernel.tgz] and build by doing the following:
 
In order to build the chumby kernel, you can download the kernel source from [http://files.chumby.com/resources/chumby_kernel.tgz chumby_kernel.tgz] and build by doing the following:

Revision as of 08:34, 5 April 2007

The Alpha Prototype chumby runs a modified linux 2.4.20 kernel.

Compiling the Kernel

First, install the GCC Toolchain.

In order to build the chumby kernel, you can download the kernel source from chumby_kernel.tgz and build by doing the following:

# mkdir kernel
# cd kernel
# tar zxvf chumby_kernel.tgz
# make menuconfig
(then immediately exit and save the config)
# make dep
# make Image

If all goes well, you should end up with an uncompressed kernel image at arch/arm/boot/Image.