Author Topic: [resolved]kernel Source's For 5500 Collie  (Read 3033 times)

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
[resolved]kernel Source's For 5500 Collie
« 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.
« Last Edit: June 03, 2007, 01:46:03 pm by telemetric_au »
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
[resolved]kernel Source's For 5500 Collie
« Reply #1 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...
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
[resolved]kernel Source's For 5500 Collie
« Reply #2 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
« Last Edit: June 03, 2007, 11:48:00 pm by telemetric_au »
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
[resolved]kernel Source's For 5500 Collie
« Reply #3 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.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
[resolved]kernel Source's For 5500 Collie
« Reply #4 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/


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"

  • Enable loadable module support
  •   Set version information on all module symbols
  •   Kernel module loader


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
« Last Edit: July 18, 2007, 03:04:38 pm by telemetric_au »
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
[resolved]kernel Source's For 5500 Collie
« Reply #5 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
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
[resolved]kernel Source's For 5500 Collie
« Reply #6 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!
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

telemetric_au

  • Sr. Member
  • ****
  • Posts: 327
    • View Profile
    • http://www.tyrannozaurus.com/feed/contribs/telemetric/index.htm
[resolved]kernel Source's For 5500 Collie
« Reply #7 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/

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


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
« Last Edit: July 03, 2007, 10:41:37 pm by telemetric_au »
Collie w/ pdaxrom & Puppy OS w/ cross-sdk
Hawking HCF686TX 10/100, Ambicom 802.11b (WL1100C-CF), Xircom 56K Global CF
Kingston CF Elite Pro & SD 1Gb & 128mb for flashing
$2 screen protector, collie.pdaxrom.feed : my collie pdaxrom site