[04:10] <Redcowl> hello?
[06:26] <rostam> HI All, I am trying to port a proprietary kernel module which we have developed in house on an embedded systtem running an embedded linux. I would like to be able compile/install this driver and ubuntu package? I was told on one of the channel I need to use dkms, Could anyone provide me with any url or hint how to do this? thanks
[07:29] <geirha> rostam: https://help.ubuntu.com/community/DKMS
[12:43] <ms42145245> Hello, I need help with my audio.
[12:43] <ms42145245> I upgraded to 13.04, and It won't recognize the headphone jack on my monitor.
[16:24] <rostam> geriha: so dkms is the only way to compile kernel modules? thx
[16:51] <geirha> rostam: it's the sane way. It ensures that when a new kernel is installed, the module is automatically built for the new kernel.
[16:52] <geirha> So if you want it to be user friendly, you'll want that.
[16:54] <rostam> geirha: TO study how dkms works,I download couple of the dkms kernel module packages, e.g. broadcom-sta-dkms and backfire-dkrms.  I compiled those packages with the following command:  sudo debuild -uc -us   I did not find a .ko file to be produced. Am I missing something? thx
[16:54] <geirha> you shouldn't run debuild as root
[16:55] <geirha> The bi-product of debuild is a deb-package.
[16:55] <geirha> dpkg --contents ../the-package.deb
[17:02] <rostam> geirha:  Here are the content of the two deb files created still I do not see the .ko file: http://pastebin.com/ZqCqfi67
[17:04] <geirha> Hm. Possibly it gets built during package installation, then
[17:08] <rostam> As I am reading on dkrms, it seems it expect the source code to be installed on specific path:/usr...   I am developing build system for  a few developers which should be able to develop kernel modules in their own workspace on the same machine. I was wondering is dkrms configurable? thanks
[17:10] <geirha> Why not built it manually, and once it builds and works fine manually, add the dkms bit
[17:12] <rostam> geirha: Oh okay, that make sense to me, then I need to package them, this is the part dkms come to the picture?
[17:54] <geirha> Yes, at least that's how I understand the process
[18:19] <rostam> geirha: thanks for your information
[18:20] <rostam> To compile my private kernel module I need to download the kernel source .
[18:20] <rostam> Where could I download the precise (12.04 update 2) kernel source tree? thx
[18:21] <rostam> where/how ??
[18:34] <geirha> the headers should be sufficient
[18:35] <geirha> sudo apt-get install "linux-headers-$(uname -r)"
[18:35] <geirha> dpkg -L "linux-headers-$(uname -r)"  # to see where it installed the files
[18:40] <geirha> If you want the actual sources, there's always apt-get source linux-image-"$(uname -r)", but the headers package is meant to be used for building kernel modules
[18:40] <geirha> rostam: ^
[18:43] <rostam> geirha: thanks again, I downloaded the linux-headers-xxx and linux-image-xxx the both look like the same....
[18:44] <geirha> with apt-get source? yes, they both have the same source package...
[18:45] <geirha> you do not need the kernel sources to build a kernel module. You only need the headers
[18:46] <rostam> geirha: comming from embedded world, we always point the Makefile to the kernel source tree,  are there any url that you could point me please? thx
[18:52] <geirha> I don't know of any. Maybe google knows some, but I'd grab some sources of other packages and see how their makefiles does it
[18:58] <Unit193> !info virtualbox-dkms