Author Topic: Kernel Conf File For Kernel 2.6.24.4-yonggun  (Read 34672 times)

abm_y4k

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« on: June 26, 2008, 06:51:11 pm »
Can someone provide me the kernel config file for this kernel version?

If possible the patches as well?

I am trying to rebuild the kernel for hostap injection support with PRISM2_DOWNLOAD_SUPPORT enable.


Thanks,
« Last Edit: June 30, 2008, 10:34:50 pm by abm_y4k »

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #1 on: June 26, 2008, 09:45:12 pm »
It already has packet injection. I don't know about download support. Why not just ask 2or0? He was very helpful when I asked for injection.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

abm_y4k

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #2 on: June 27, 2008, 03:12:24 am »
Quote from: Capn_Fish
It already has packet injection. I don't know about download support. Why not just ask 2or0? He was very helpful when I asked for injection.

He seems very busy. I've sent him two PM and made some comment on his blog... but still no response yet.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #3 on: June 27, 2008, 10:05:55 am »
Hmm...My impression is that he hasn't made the his patch list/sources/config public yet (he has to if asked to comply with the GPL, AFAIK). I suspect it's due to either hosting concerns, lack of time, or just the fact that it's a moving target and would be extra work to post the new stuff each time.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

abm_y4k

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #4 on: June 27, 2008, 12:10:07 pm »
I got PM reply from 2or0. Very helpful.

I'll start my compiling today.


Cheers.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #5 on: June 27, 2008, 03:53:04 pm »
Care to share the details (source, how to compile, etc.)?
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

abm_y4k

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #6 on: June 27, 2008, 05:28:06 pm »
I will... but I am still on the way setting up scratchbox.

abm_y4k

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #7 on: June 30, 2008, 10:32:14 pm »
Hi,

I've successfully recompiled the kernel and the hostap driver for injection with firmware upgradeable.

It seems hard to find a proper way to do the cross compile so I'll like to share my steps with you all.

 
Code: [Select]
wget http://www.codesourcery.com/gnu_toolchains/arm/portal/package2549/public/arm-none-linux-gnueabi/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linu
x-gnu.tar.bz2

tar xjf arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

mv arm-2008q1 /usr/local

export PATH=/usr/local/arm-2008q1/bin/:$PATH

cd /usr/src

*download the kernel conf and patch file from http://yonggun.tistory.com/66
*save the kernel source to /usr/src

tar zxvf kernel-2.6.6.24.4.tar.gz

mv config linux-2.6.24.4/.config

cd /usr/src/linux-2.6.24.4

make zImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

make modules ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

make modules_install

* kernel should be in /usr/src/linux-2.6.24.4/arch/arm/boot/zImage
* modules should be in /lib/modules/
* make sure flash the kernel with the newly built modules

This might be very helpful for many ppl, forum admin should consider sticky this.
Thanks,
« Last Edit: June 30, 2008, 10:33:13 pm by abm_y4k »

LinuxGadget

  • Newbie
  • *
  • Posts: 44
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #8 on: July 01, 2008, 04:58:45 pm »
Quote from: abm_y4k
Hi,

I've successfully recompiled the kernel and the hostap driver for injection with firmware upgradeable.

It seems hard to find a proper way to do the cross compile so I'll like to share my steps with you all.

 
Code: [Select]
wget http://www.codesourcery.com/gnu_toolchains/arm/portal/package2549/public/arm-none-linux-gnueabi/arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linu
x-gnu.tar.bz2

tar xjf arm-2008q1-126-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2

mv arm-2008q1 /usr/local

export PATH=/usr/local/arm-2008q1/bin/:$PATH

cd /usr/src

*download the kernel conf and patch file from http://yonggun.tistory.com/66
*save the kernel source to /usr/src

tar zxvf kernel-2.6.6.24.4.tar.gz

mv config linux-2.6.24.4/.config

cd /usr/src/linux-2.6.24.4

make zImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

make modules ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-

make modules_install

* kernel should be in /usr/src/linux-2.6.24.4/arch/arm/boot/zImage
* modules should be in /lib/modules/
* make sure flash the kernel with the newly built modules

This might be very helpful for many ppl, forum admin should consider sticky this.
Thanks,

Been looking for this for such a long time   , will give it a try on the weekend.
Thanks so much!
C1000, 2.6.24-yonggun, Debian EABI

abm_y4k

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #9 on: July 02, 2008, 12:38:40 am »
NP.

I've only tested and confirmed its working on C3100

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #10 on: July 02, 2008, 03:56:27 am »
Questions:

1. Are we missing the step to patch the kernel sources?

2. Does this cross-compiler support distcc?

3. Will
Code: [Select]
make uImage instead of
Code: [Select]
make zImage build for uBoot?

4. Could someone point me in the direction of the "fastfpe" and "cpufreq" patches?
                      (4a.  They need to be applied separately right?)

5. How about tetsu's pressure sensitive patches? http://translate.google.com/translate?hl=e...cial%26hs%3D4zc
« Last Edit: July 02, 2008, 04:22:53 am by radiochickenwax »
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus

abm_y4k

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #11 on: July 02, 2008, 11:19:55 am »
Quote from: radiochickenwax
Questions:

1. Are we missing the step to patch the kernel sources?

2. Does this cross-compiler support distcc?

3. Will
Code: [Select]
make uImage instead of
Code: [Select]
make zImage build for uBoot?

4. Could someone point me in the direction of the "fastfpe" and "cpufreq" patches?
                      (4a.  They need to be applied separately right?)

5. How about tetsu's pressure sensitive patches? http://translate.google.com/translate?hl=e...cial%26hs%3D4zc

1. get the patch from yonggun's site. and apply it using patch -p0 < patch-2.6.24

2. Not sure.

3. I've not tried with uImage... since I am on sharp loader. I found uBoot give me a lot of trouble.. so I stick with the sharp

4. fastfpe and cpufreg should be in that patch provided by 2or0

5. tetsu's patch are only refer to kernel 2.4.x not for 2.6.24.4

Hope helps.
« Last Edit: July 02, 2008, 03:43:36 pm by abm_y4k »

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #12 on: July 02, 2008, 11:36:13 pm »
Thanks a lot for your help.  I'm not very experienced with kernel building and still having troubles.


1.==============================================

Quote
1. get the patch from yonggun's site. and apply it using patch -p0 < patch-2.6.24

I'm not sure if this is right, but I renamed the patch from http://yonggun.tistory.com/66 to patch-2.6.24.4 and applied using
Code: [Select]
patch -p1 < patch-2.6.24.4 instead of -p0 (-p0 asked me on every step which file to patch).  Is this patch valid for 2.6.24 only?

It also says on http://yonggun.tistory.com/66 that
Quote
These are patched with angstrom patches and without cpufreq.

I think the correct page for the patches is: http://yonggun.tistory.com/64, but I don't know for sure.

2.==============================================

doing
Code: [Select]
make zImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
works okay.

3.==============================================

doing
Code: [Select]
make uImage ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi-
immediately after says:
Code: [Select]
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
:1097:2: warning: #warning syscall fadvise64 not implemented
:1265:2: warning: #warning syscall migrate_pages not implemented
:1321:2: warning: #warning syscall pselect6 not implemented
:1325:2: warning: #warning syscall ppoll not implemented
:1365:2: warning: #warning syscall epoll_pwait not implemented
  CHK     include/linux/compile.h
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
"mkimage" command not found - U-Boot images will not be built
  Image arch/arm/boot/uImage is ready

running
Code: [Select]
make clean before doing
Code: [Select]
make uImage ... seems to work, but I haven't flashed yet.  It gives "arch/arm/boot/Image" instead of "arch/arm/boot/uImage" as I'd anticipated.
« Last Edit: July 03, 2008, 12:53:49 am by radiochickenwax »
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus

radiochickenwax

  • Full Member
  • ***
  • Posts: 158
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #13 on: July 03, 2008, 01:01:14 am »
My next question is:  how do I get uBoot to boot the kernel from SD or CF... i.e.  why are there four copies (hda1,hda2,sd1,sd2) of the kernel on http://yonggun.tistory.com/72?  Is this just to tell the kernel where the rootfs is?
« Last Edit: July 03, 2008, 01:02:46 am by radiochickenwax »
ZAURII:    sl-6000 : (temporarily) bricked pdaxrom b1   ||   sl-c3200 : yonggun/Debian-EABI
OTHERS:  htc-excalibur,  axim x5,  ipaq 4355, (still trying to find useable linux setups)
thinking about gumstix to replace/augment zaurus

abm_y4k

  • Jr. Member
  • **
  • Posts: 71
    • View Profile
Kernel Conf File For Kernel 2.6.24.4-yonggun
« Reply #14 on: July 03, 2008, 01:08:53 am »
Quote from: radiochickenwax
My next question is:  how do I get uBoot to boot the kernel from SD or CF... i.e.  why are there four copies (hda1,hda2,sd1,sd2) of the kernel on http://yonggun.tistory.com/72?  Is this just to tell the kernel where the rootfs is?

You need to modify the kernel .config file and recompile it:

CONFIG_CMDLINE="console=ttyS0,115200n8 console=tty1 noinitrd root=/dev/hda1 rootfstype=ext3 rootdelay=1 rw  fbcon=rotate:1 dyntick=enable debug"

change root=<device you want to boot it at>