Re: hx2000 kernel compliling

From: Steffen Kern <sk_at_pn.org>
Date: Fri, 30 Dec 2005 10:22:11 +0100

On Fri, Dec 30, 2005 at 12:06:37AM +0200, Kesfx Kesfx wrote:
> Can mr. Richard or somebody else shortly write how compile linux kernel for hx2410? OpenEmbedded documentation looks too complex for beginner and other people would save a lot of time of analyzing documentation from many sources. I will learn quikly, but I have very limited time for this hobby so few hints would be very nice:) what tools do I need to compile ARM kernel for hx2410? patches?

sure...compiling a kernel isnt really my problem.. my problem is that
the touchscreen doesnt seem to work with my kernels :P

but..here you go..

1) get gcc+tools for cross compile, for example:
http://www.handhelds.org/download/projects/toolchain/arm-linux-gcc-3.4.1.tar.bz2
   extract this in the root of your system, it will dump all the stuff
   in /usr/local/arm/3.4.1/arm-linux/

2) get kernel sources (I did my experiments with one of the latest
ones) from your nearest kernel mirror, for example:
ftp://ftp.de.kernel.org:/pub/linux/kernel/v2.6/testing/linux-2.6.15-rc5.tar.bz2
   Since the kernel in the 2410 set seemed to have mm patched applied, I
   also snagged this:
   ftp.de.kernel.org:/pub/linux/kernel/people/akpm/patches/2.6/2.6.15-rc5/2.6.15-rc5-mm3/2.6.15-rc5-mm3.bz2

3) get h2750 patches (maybe RP can comment on this, whats necessary
etc), for example from:
http://projects.o-hand.com/hx2750/patches/archive/

---<cut>---
-rw-r--r-- 1 alfi alfi 30765 Dec 28 19:31 hx2750_base-r24.patch
-rw-r--r-- 1 alfi alfi 5938 Dec 28 19:31 hx2750_bl-r4.patch
-rw-r--r-- 1 alfi alfi 17809 Dec 28 19:57 hx2750_defconfig
-rw-r--r-- 1 alfi alfi 5802 Dec 28 19:31 hx2750_pcmcia-r2.patch
-rw-r--r-- 1 alfi alfi 13196 Dec 28 19:31 hx2750_test1-r3.patch
---<cut>---

   there might me newer ones there now..

4) now getting a good kernel config file as base.. I tried different ones...among then:
   http://handhelds.org/cgi-bin/cvsweb.cgi/linux/kernel26/arch/arm/configs/hx2750_defconfig and
   http://handhelds.org/cgi-bin/cvsweb.cgi/linux/kernel26/arch/arm/configs/ipaqpxa_defconfig
   I guess there are probably more current ones in the OE repository?

4) anyway, extract kernel source, apply mm patch, apply hx2750 patches
   make sure you add the directory with the cross-compile tools to your
   PATH, ie:
   export PATH=$PATH:/usr/local/arm/3.41/arm-linux/bin
   then tell the kernel that you want to x-compile for ARM:
   export ARCH=arm
   export CROSS_COMPILE=arm-linux-

5) make menuconfig, check the settings, change what you want, save+quit,
then make, if everything worked out you will have a shiny new
arch/arm/boot/zImage you can try to boot on your ipaq, dont use modules
unless you plan on making a new initrd etc. as well, and be careful not
to make the kernel too big when booting from WinCE using HaRET or it
will overwrite the initrd thats loaded after it in memory (yeah, yeah,
when I have time I will look into this ;))

now, I did all this and I got the ipaq to boot with the new kernel (tho
sometimes it doesnt seem to detect my CF card right away..if I hit reset
and boot again it does...dont know what thats about yet..but when I
reach GPE .. touchscreen doesnt work (RP can you comment on that too?
your driver after all ;) what am I doing wrong?)

have fun, dont blame me for anything bad that happens..somehow I managed
to cause my ipaq to hard reset with one of my compiled kernels right
away... somehow... ;)

cya
Received on Fri Dec 30 2005 - 04:29:42 EST

This archive was generated by hypermail 2.2.0 : Fri Dec 30 2005 - 04:29:50 EST