OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: scrapheap on October 30, 2007, 09:52:03 am

Title: Kernel Headers For R198
Post by: scrapheap 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
Title: Kernel Headers For R198
Post by: InSearchOf 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/pdaxrom/branches/pdaxrom-stable/config/kernel/kernel-2.6.16-akita)
http://pdaxrom.svn.sourceforge.net/svnroot...el-2.6.16-corgi (http://pdaxrom.svn.sourceforge.net/svnroot/pdaxrom/branches/pdaxrom-stable/config/kernel/kernel-2.6.16-corgi)

Late
Title: Kernel Headers For R198
Post by: scrapheap 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?
Title: Kernel Headers For R198
Post by: Capn_Fish 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.
Title: Kernel Headers For R198
Post by: scrapheap 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.
Title: Kernel Headers For R198
Post by: scrapheap 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.
Title: Kernel Headers For R198
Post by: InSearchOf 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
Title: Kernel Headers For R198
Post by: scrapheap 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.
Title: Kernel Headers For R198
Post by: Capn_Fish 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 (http://www.tyrannozaurus.com/?q=wiki/Main_Page)
Title: Kernel Headers For R198
Post by: scrapheap 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.
Title: Kernel Headers For R198
Post by: Capn_Fish 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
Title: Kernel Headers For R198
Post by: scrapheap 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.