/srv/irclogs.ubuntu.com/2013/05/06/#ubuntu-beginners.txt

Redcowlhello?04:10
rostamHI 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? thanks06:26
geirharostam: https://help.ubuntu.com/community/DKMS07:29
ms42145245Hello, I need help with my audio.12:43
ms42145245I upgraded to 13.04, and It won't recognize the headphone jack on my monitor.12:43
rostamgeriha: so dkms is the only way to compile kernel modules? thx16:24
geirharostam: it's the sane way. It ensures that when a new kernel is installed, the module is automatically built for the new kernel.16:51
geirhaSo if you want it to be user friendly, you'll want that.16:52
rostamgeirha: 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? thx16:54
geirhayou shouldn't run debuild as root16:54
geirhaThe bi-product of debuild is a deb-package.16:55
geirhadpkg --contents ../the-package.deb16:55
rostamgeirha:  Here are the content of the two deb files created still I do not see the .ko file: http://pastebin.com/ZqCqfi6717:02
geirhaHm. Possibly it gets built during package installation, then17:04
rostamAs 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? thanks17:08
geirhaWhy not built it manually, and once it builds and works fine manually, add the dkms bit17:10
rostamgeirha: Oh okay, that make sense to me, then I need to package them, this is the part dkms come to the picture?17:12
geirhaYes, at least that's how I understand the process17:54
rostamgeirha: thanks for your information18:19
rostamTo compile my private kernel module I need to download the kernel source .18:20
rostamWhere could I download the precise (12.04 update 2) kernel source tree? thx18:20
rostamwhere/how ??18:21
geirhathe headers should be sufficient18:34
geirhasudo apt-get install "linux-headers-$(uname -r)"18:35
geirhadpkg -L "linux-headers-$(uname -r)"  # to see where it installed the files18:35
geirhaIf 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 modules18:40
geirharostam: ^18:40
rostamgeirha: thanks again, I downloaded the linux-headers-xxx and linux-image-xxx the both look like the same....18:43
geirhawith apt-get source? yes, they both have the same source package...18:44
geirhayou do not need the kernel sources to build a kernel module. You only need the headers18:45
rostamgeirha: comming from embedded world, we always point the Makefile to the kernel source tree,  are there any url that you could point me please? thx18:46
geirhaI don't know of any. Maybe google knows some, but I'd grab some sources of other packages and see how their makefiles does it18:52
Unit193!info virtualbox-dkms18:58
ubot93virtualbox-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 kB18:58

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!