[SOLVED] where are kernel-headers in filesystem?

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] where are kernel-headers in filesystem?

Postby h2aar » Jun 18th, '11, 14:43

I have a dvb-t usb-stick (Terratec Cinergy T stick) and used it with success in Debian, Mint and OpenSuse.
But in Mageia is is not possible for me to use the Makefile for I do not know the place of the kernel-headers in my filesystem.

Here is the Makefile:

# (C) 2009 Andrea Mennucc <mennucc1@debian.org>
# License: GPL

#### CONFIGURE THE FOLLOWING LINES
#the precompiled kernel headers
KDIR = /usr/src/linux-headers-2.6.32-21-generic
#the unpacked kernel source
KSRC = /usr/src/linux-source-2.6.32
#where the modules will be installed
KINSTALL = /lib/modules/2.6.32-21-generic
#### END OF CONFIGURABLE LINES

EXTRA_CFLAGS = -DDETACHED_TERRATEC_MODULES -I$(KDIR)/drivers/media/dvb/dvb-usb/ -I$(KDIR)/drivers/media/dvb/dvb-core/ -I$(KDIR)/drivers/media/dvb/frontends/ -I$(KSRC)/drivers/media/dvb/dvb-usb/ -I$(KSRC)/drivers/media/dvb/dvb-core/ -I$(KSRC)/drivers/media/dvb/frontends/

module= af9033 tua9001 dvb-usb-af9035
dvb-usb-af9035-objs = af9035.o
obj-m += tua9001.o dvb-usb-af9035.o af9033.o

default:
make -C $(KDIR) SUBDIRS=$(PWD) modules

install:
cp af9033.ko dvb-usb-af9035.ko tua9001.ko $(KINSTALL)
depmod -a

clean::
-rm -f *.o *.ko *.mod.c .*.o.cmd .*.o.d .*.ko.cmd Module.symvers Module.markers modules.order
-rm -rf .tmp_versions



My problem is :

KDIR= ???????

Thanks for your help

h2aar
h2aar
 
Posts: 3
Joined: Jun 16th, '11, 06:48
Location: Netherlands

Re: where are kernel-headers in filesystem?

Postby jkerr82508 » Jun 18th, '11, 15:54

I think that what you need to do is to install the kernel-*-devel-latest package corresponding to your running kernel.

You should then find what is needed in /usr/src/linux-version-flavour

Jim
jkerr82508
 
Posts: 946
Joined: Mar 26th, '11, 01:34
Location: Fife, Scotland

Re: where are kernel-headers in filesystem?

Postby h2aar » Jun 18th, '11, 19:04

Hello Jim,

Thanks for your answer.

I had already downloaded the kernel-source and kernel-devel (=kernel-headers).
I saw in /usr/src:
a) link to folder Linux
b) folder linux-2.6.38.7-1.mga
c) folder linux-2.6.38.7-desktop586-1.mga

in terminal "uname -r" gives 2.6.38.7-desktop586-1.mga

My problem is:
what files must be set in the Makefile behind:

KDIR= ???
KSRC= ???

In Debian etc. is it very clear in OpenSuse have I also had good result but here in Mageia it is not clear for me. :(

Who can help me?

h2aar
h2aar
 
Posts: 3
Joined: Jun 16th, '11, 06:48
Location: Netherlands

Re: where are kernel-headers in filesystem?

Postby doktor5000 » Jun 18th, '11, 20:35

KDIR= c)
KSRC= b)

;)
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: where are kernel-headers in filesystem?

Postby h2aar » Jun 19th, '11, 12:44

SOLVED

Thanks to doctor5000 for the solution!

It was now possible to make the driver fot the Cinergy T stick.
I have already seen t.v. and recorded a movie on my harddisk.

h2aar
h2aar
 
Posts: 3
Joined: Jun 16th, '11, 06:48
Location: Netherlands


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron