Handhelds.org - Open source for handheld devices

UserPreferences

UniversalKernel


HTC Universal kernel and kernel compilation

| Home | Status | News | Kernel | Hardware | Installing Linux | Screenshots | Bugs |

Grab latest compiled kernel here (it's pulled in to a WinCe cab installer file together with Haret.exe and the startup script)

[WWW]HTC Universal Linux Image

Or get the latest CVS source from handhelds.org and compile it yourself

Do as follow:

1) Export cvs root to your computer

bash$ export CVSROOT=:pserver:anoncvs@anoncvs.handhelds.org:/cvs
2) Login to the Handhelds CVS tree:
bash$ cvs login 
password: anoncvs
3) And download the latest CVS source by doing as followed:
bash$ cvs -d :pserver:anoncvs@anoncvs.handhelds.org:/cvs checkout linux/kernel26

How to compile your own kernel

You have now gotten the latest kernel source and are allmost ready to start compiling. But first you need a toolchain to compile it for your arm device

Grab gcc-4.1.2 EABI ([WWW]here), and do as followed:

bash$ cd / (where you saved the gcc compiler)
bash$ tar -xvjf arm-{version}-27-arm-none-eabi-i686-pc-linux-gnu.tar.bz2 -C $home/

Add gcc-4.x.x to your path before you can start to compile.

0) Do

bash$ export PATH=$home/arm-{version}/bin:$PATH
1) Move in to this for the kernel source:
bash$ cd /where you placed the source (linux/kernel26/)
2) Do (or do "make htcuniversal_static_defconfig" to use defconfigman static kernel config)
bash$ make htcuniversal_defconfig
2.1) If you want to add or remove some stuff from the kernel run (not required):
bash$ make xconfig or make menuconfig
3) Do
bash$ make CROSS_COMPILE=arm-none-linux-gnueabi-

Now you have made both the kernel and the modules, time to move the kernel and install the modules

5) Copy the kernel (zImage) to the folder where Haret is located:

bash$ cp arch/arm/boot/zImage /where your Haret is located (either on your device or on your SD card)/

6) Time to install the modules:

bash$ INSTALL_MOD_PATH=/the root of your OPIE/GPE on sd card/ make modules_install

7) And that's it, you are ready to boot your own made kernel.

8) To compile the kernek again (if something failed) just start at step 2) again :

-