Redcowl | hello? | 04:10 |
---|---|---|
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 | 06:26 |
geirha | rostam: https://help.ubuntu.com/community/DKMS | 07:29 |
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. | 12:43 |
rostam | geriha: so dkms is the only way to compile kernel modules? thx | 16:24 |
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:51 |
geirha | So if you want it to be user friendly, you'll want that. | 16:52 |
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:54 |
geirha | The bi-product of debuild is a deb-package. | 16:55 |
geirha | dpkg --contents ../the-package.deb | 16:55 |
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:02 |
geirha | Hm. Possibly it gets built during package installation, then | 17:04 |
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:08 |
geirha | Why not built it manually, and once it builds and works fine manually, add the dkms bit | 17:10 |
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:12 |
geirha | Yes, at least that's how I understand the process | 17:54 |
rostam | geirha: thanks for your information | 18:19 |
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:20 |
rostam | where/how ?? | 18:21 |
geirha | the headers should be sufficient | 18:34 |
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:35 |
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:40 |
rostam | geirha: thanks again, I downloaded the linux-headers-xxx and linux-image-xxx the both look like the same.... | 18:43 |
geirha | with apt-get source? yes, they both have the same source package... | 18:44 |
geirha | you do not need the kernel sources to build a kernel module. You only need the headers | 18:45 |
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:46 |
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:52 |
Unit193 | !info virtualbox-dkms | 18:58 |
ubot93 | 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 | 18:58 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!