Author Topic: Kernel Headers For R198  (Read 3972 times)

scrapheap

  • Newbie
  • *
  • Posts: 42
    • View Profile
Kernel Headers For R198
« on: October 30, 2007, 09:52:03 am »
Hi,
  Does anyone have the kernel headers available as a tar so that I can quickly add them to my Zaurus for compiling modules.  I have tried making them on the zaurus but I have no idea what the configuration used for pdaxrom's 2.6.16 kernel is.

  Thanks

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Kernel Headers For R198
« Reply #1 on: October 30, 2007, 10:50:35 am »
I'm not really using the 2.6.16 kernel so I cant get you the headers... but here are the default kernel configs


http://pdaxrom.svn.sourceforge.net/svnroot...el-2.6.16-akita
http://pdaxrom.svn.sourceforge.net/svnroot...el-2.6.16-corgi

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

scrapheap

  • Newbie
  • *
  • Posts: 42
    • View Profile
Kernel Headers For R198
« Reply #2 on: October 30, 2007, 11:54:14 am »
Thanks for the links they will make a big difference for me.

After downloading the config I renamed it .config and then ran make oldconfig.  Now do I need to actually build the kernel or just link to the includes directory in the kernel tree?
« Last Edit: October 30, 2007, 11:55:16 am by scrapheap »

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Kernel Headers For R198
« Reply #3 on: October 30, 2007, 02:23:10 pm »
I think you just need to do a "make dep," then point the thing you want to compile to the kernel source directory.
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

scrapheap

  • Newbie
  • *
  • Posts: 42
    • View Profile
Kernel Headers For R198
« Reply #4 on: October 30, 2007, 04:06:58 pm »
Quote from: Capn_Fish
I think you just need to do a "make dep," then point the thing you want to compile to the kernel source directory.

Thanks I will give it a try.

scrapheap

  • Newbie
  • *
  • Posts: 42
    • View Profile
Kernel Headers For R198
« Reply #5 on: October 31, 2007, 11:58:46 am »
I had to build the kernel but now that I have done this I can compile the module.

Thanks for the help with this guys.

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Kernel Headers For R198
« Reply #6 on: October 31, 2007, 12:08:18 pm »
If I believe correctly... you have build the full kernel... then once the kernel is fully built... you can package the headers

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

scrapheap

  • Newbie
  • *
  • Posts: 42
    • View Profile
Kernel Headers For R198
« Reply #7 on: October 31, 2007, 12:30:25 pm »
Is there any info on creating ipks for pdaxrom?  If so I will look at packaging them.  Of course it might be easier to just tar the lot for those few who would want it.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Kernel Headers For R198
« Reply #8 on: October 31, 2007, 02:25:03 pm »
There are links to nice how-tos (written by me ) here:

http://www.tyrannozaurus.com/?q=wiki/Main_Page
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

scrapheap

  • Newbie
  • *
  • Posts: 42
    • View Profile
Kernel Headers For R198
« Reply #9 on: November 01, 2007, 06:30:18 am »
Is there a way to make an ipk run a script after the module has been installed (can I just add a post-install script in the control.tar.gz).

What I need this for is I am making a ipk for my patched dm9601 kernel module and I need to get the zaurus to run depmod -a after installing.

Capn_Fish

  • Hero Member
  • *****
  • Posts: 2342
    • View Profile
    • http://
Kernel Headers For R198
« Reply #10 on: November 01, 2007, 07:39:26 am »
I believe there is. You just need to name the script something special (can't remember what it is).

You could just tell people to run it after installing the ipk, though
SL-C750- pdaXrom beta 1 (mostly unused)
Current distro: Gentoo

scrapheap

  • Newbie
  • *
  • Posts: 42
    • View Profile
Kernel Headers For R198
« Reply #11 on: November 01, 2007, 07:55:55 am »
From the other pages about ipk's that I have looked at it look like it needs to be called postinst and I also need to create a postrm as well for uninstalling.