OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: telemetric_au on May 30, 2007, 01:25:09 am

Title: [resolved]kernel Source's For 5500 Collie
Post by: telemetric_au on May 30, 2007, 01:25:09 am
hi, im looking for a way to compile this bestcrypt package, it requires  kernel source during build of crypto modules...

any help, thankyou,

H.
Title: [resolved]kernel Source's For 5500 Collie
Post by: telemetric_au on May 31, 2007, 07:45:16 am
ok i found a source code tarball for the kerel now i know it aint a distro specific thing, especially if you just need the headers to compile some modules...

but i cant figure out what to do with it... ive extarcted it,configured it and make dep's it with the xsdk, but now ie moved it to teh z how do i integrate it so a make finds it and uses it ???

thankyou...
Title: [resolved]kernel Source's For 5500 Collie
Post by: telemetric_au on June 03, 2007, 01:40:05 pm
ok i worked that one out :

for 2.4.x kernel

just symlink /lib/modules/2.4.18-rmk7-pxa3-embedix/build to the location of your kernel-source's "root" 'linux' directory .

ps if you get to the part in your module build and it says it cant find modversions.h as i did,

you need to go back and recompile your kernel enabling module version support options

more easily with make xconfig than make menuconfig (though tcl/tk required)

now when you issue make dep it will make this file
Title: [resolved]kernel Source's For 5500 Collie
Post by: Capn_Fish on June 12, 2007, 10:53:50 am
Could you post how to set this up in baby steps? I'm having a little trouble getting this to work.

Thanks.
Title: [resolved]kernel Source's For 5500 Collie
Post by: telemetric_au on June 13, 2007, 01:35:26 am
use latest 2003 version mentioned later**(update)


 unpack it on your x86, which has the hardfloat cross sdk installed and running:

 http://www.telemetric.1gb.cc/pdaxrom.org/cross-sdk/ (http://www.telemetric.1gb.cc/pdaxrom.org/cross-sdk/)


then cd to the unpacked kernel's "linux" directory, and issue:

make xconfig (or 'make menuconfig' if you dont have tcl/tk)

The configuration for the 5500 and the 5000D are stored within the kernel source and should be loaded. Choose "Load an Alternate Configuration File" and Input
 "arch/arm/def-configs/sl5500" for the SL-5500 and
 "arch/arm/def-configs/sl5000d" for the SL-5000D.

Select "OK"

Make whatever changes to the kernel config that are desired.
such as enabling "y" to teh following: from within "Loadable module support"



that will cause a modversions.h to be generated by the make process which is needed by some programs to build modules with 2.4.x kernel


then exit saving changes

and issue "make dep" assuming 'arm-linux-gcc' (cross compiler) in in your path (part of starting cross-sdk)

once this is done re-tar the linux folder: # tar czvf kernel.tar.gz linux/
(tar,untar not necessary if transferring via memory card reader as apposed to say ftp)
transfer it to your z (memory card), and unpack it again.... then,

just symlink /lib/modules/2.4.18-rmk7-pxa3-embedix/build to the location of your kernel-source's "root" 'linux' directory .

you now have a configured, compiled and installed kernel source tree  

more info on from here such as building new flash image from kernel:
https://www.oesf.org/index.php?title=Compiling_the_Kernel (https://www.oesf.org/index.php?title=Compiling_the_Kernel)
Title: [resolved]kernel Source's For 5500 Collie
Post by: telemetric_au on July 02, 2007, 11:30:14 pm
just  a quick update, the version you need most likely is 2.4.18-rmk7-pxa3-embedix (linux-sl5500-20030509-rom3_10.tar.bz2)

rather than 2.4.6-rmk1-np2-embedix (linux-sl5500-20020910.tar.bz2)

see here for more details:

https://www.oesf.org/forums/index.php?showtopic=24307 (https://www.oesf.org/forums/index.php?showtopic=24307)
Title: [resolved]kernel Source's For 5500 Collie
Post by: Capn_Fish on July 03, 2007, 02:03:01 pm
I'm trying to build a 2.4.18 kernel, but your site is down. Is this a temporary thing? Is there another place I can get the how-tos?

Thanks!
Title: [resolved]kernel Source's For 5500 Collie
Post by: telemetric_au on July 03, 2007, 10:39:52 pm
hmmm, i had a feeling something might be 'going down' with that host as had been having trouble signing up for new account for another idea, but had no luck, didnt check my site though...

and yes , sure enough its down...  have to look into that ...

ok, now you mention you want to set up a hardfloat compiler to do the kernel. im not sure at all if it makes any difference if you compile a kernel with what version, but heres my summary and script for getting the 2.95.3 fpa hardfloat cross compiler available from the handhelds.org site i mentioned.

 you can get a 2.95.3 hard float fpa crosscompiler from here:

http://www.handhelds.org/download/projects...lchain/archive/ (http://www.handhelds.org/download/projects/toolchain/archive/)

put it in /usr/local/arm/  (ie /usr/local/arm/2.95.3/...)

and init your self or use my script attached

and here's a reference site:

http://www.mnementh.co.uk/arm26linux/doc/crosscompile.html (http://www.mnementh.co.uk/arm26linux/doc/crosscompile.html)


no to compile your kernel with it i did the following , unpack your kernel source wherever* ,

linux-sl5500-20030509-rom3_10.tar.bz2 (2.4.18-rmk7-pxa3-embedix or better)

cd to the intial linux directory or it, and issue

# make mrproper
# make xconfig

once inside xconfig (or menuconfig if you prefer), load the config arc/arm/def-configs/sl5500 (or ...),

then i enable all options in "Loadable Module Support" section (there are three),

save and exit, then proceed...

(note for the coming "make dep" step: i cant quite remember if i had issues wih my startup script being too much for the kenel compile env, and you might only need to add the /usr/local/arm/2.95.3/bin to your current $PATH and no more so it can access the 2.95.3 arm-linux-gcc... (but dont think the script is useless as i use it successfully to cross compile glibc a few times)

then this to make missing header:

# make include/linux/version.h

then

# make dep

this ("builds"/"configures" it)

after this finishes good , copy to target, and symlink to /lib/modules/2.4.18-rmk7-pxa3-embedix/build to the linux directory

hope this helps