[00:23] <wolf> http://wolfgang-city.myminicity.com/tra
[03:06] <mekius> Hey, got forwarded here.  Was wondering if anyone knew if pata_via was going to be put back into the stock Ubuntu kernel in the near future?
[03:08] <mekius> OEM using VIA and no driver is being loaded for the IDE controller.  Manually loading ide-generic in the live environment brings it to life, but since it doesn't load at startup I would think we'd have issues booting the installed system
[03:09] <mekius> I would think the pata_via driver would provide better support in the long term and also hopefully load at boot.
[20:37] <blizzow> How should I go about patching and recompiling a single driver/kernel module?  Specifically the cx88-alsa module.  I already installed the linux-source package and patched the /usr/src/linux-source-`uname -r`/drivers/media/video/cx88-alsa.c file.
[20:49] <hanishkvc> in make menuconfig select the corresponding module and then do a make modules and copy the module to /lib/modules/<kernel-version>. There could be a shorter way of doing this with the kbuild system in 2.6, but you will have to dig that up from the net or maybe README in the kernel source
[20:54] <blizzow> hanishkvc: should I make mrproper and make clean before doing this?
[21:00] <blizzow> If I get "insmod: error inserting '/usr/src/linux-source-2.6.22/drivers/media/video/cx88/cx88-alsa.ko': -1 Invalid module format"
[21:00] <blizzow> What should I do?
[21:27] <hanishkvc> Idealy you should select the same config parameters for the kernel source as what is running on your machine
[21:32] <hanishkvc> Also are you sure the module source is not missing something
[21:35] <blizzow> I don't think so, but I'm trying again to see what happens.
[21:43] <hanishkvc> Also try building the kernel from the source before building the module, it might be depending on some dynamically generated header file indirectly
[21:44] <hanishkvc> But as I told when building the kernel use the same config as used by the distro (if you are using distro's default kernel)
[21:47] <hanishkvc> If this doesn't help, then go back to the original cx88-alsa.c (i.e revert back the patch) and build that and see if the module builds (a) if yes, then look at the patch you are applying and see what it might be messing up (b) if No, then something wrong in the compiling/process used for building
[21:48] <hanishkvc> Above when I told if the module builds I meant if module loads
[21:49] <blizzow> It takes forever to compile all the modules in the ubuntu kernel so I'm going to go get some coffee.
[21:49] <blizzow> ;)
[21:51] <hanishkvc> Am going to bed, If I am not wrong compiling the kernel (bzimage) with running kernels config and then compiling the module should mostly fix your problem
[21:51] <hanishkvc> Good luck.
[21:53] <hanishkvc> Also maybe going into the directory where the driver/module is in the source and then doing a make modules may save you from having to sit throu all the modules compiling