[04:10] hello? [06:26] 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] rostam: https://help.ubuntu.com/community/DKMS [12:43] Hello, I need help with my audio. [12:43] I upgraded to 13.04, and It won't recognize the headphone jack on my monitor. [16:24] geriha: so dkms is the only way to compile kernel modules? thx [16:51] 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] So if you want it to be user friendly, you'll want that. [16:54] 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] you shouldn't run debuild as root [16:55] The bi-product of debuild is a deb-package. [16:55] dpkg --contents ../the-package.deb [17:02] 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] Hm. Possibly it gets built during package installation, then [17:08] 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] Why not built it manually, and once it builds and works fine manually, add the dkms bit [17:12] 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] Yes, at least that's how I understand the process [18:19] geirha: thanks for your information [18:20] To compile my private kernel module I need to download the kernel source . [18:20] Where could I download the precise (12.04 update 2) kernel source tree? thx [18:21] where/how ?? [18:34] the headers should be sufficient [18:35] sudo apt-get install "linux-headers-$(uname -r)" [18:35] dpkg -L "linux-headers-$(uname -r)" # to see where it installed the files [18:40] 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] rostam: ^ [18:43] geirha: thanks again, I downloaded the linux-headers-xxx and linux-image-xxx the both look like the same.... [18:44] with apt-get source? yes, they both have the same source package... [18:45] you do not need the kernel sources to build a kernel module. You only need the headers [18:46] 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] 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] !info virtualbox-dkms [18:58] virtualbox-dkms (source: virtualbox): x86 virtualization solution - kernel module sources for dkms. In component multiverse, is optional. Version 4.2.10-dfsg-0ubuntu2 (raring), package size 501 kB, installed size 4037 kB