Q5sys wrote:Im trying to build drivers for a Creative Sound Blaster X-Fi Titanium PCI card
and I have one slight problem...
in the make file, I have this entry where I'm getting an error.
MODPATH = /lib/modules/`uname -r`/kernel/drivers/ssound
however in /lib/modules/3.0.3/kernel/drivers there is no sound sub-dir
Where on earth are the kernel sound drivers in lhp?
sigh... sometimes command line betrays you. GUI lets you see all the folders at once, instead of just cd-ing into the directory you want
If anyone is wondering its under:
/lib/modules/3.0.3/kernel/sound
Any particular reason thats not in with the rest of the drivers?
Problem #2
Here is the make file:
Code: Select all
ctxfi-objs := xfi.o ctatc.o ctvmem.o ctpcm.o ctmixer.o ctresource.o ctsrc.o ctamixer.o ctdaio.o ctimap.o cthardware.o cthw20k2.o cthw20k1.o
obj-m += ctxfi.o
ifeq ($(DEBUG), y)
CFLAGS += -g -DDEBUG
endif
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
all:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
clean:
rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
PHONY := install uninstall
MODDIR = $(PWD)
MODPATH = /lib/modules/`uname -r`/kernel/drivers/ssound
MODULES = ctxfi.ko
install:
@echo "Copy module files..."
@rm -rf $(MODPATH)
@mkdir $(MODPATH)
@cd $(MODDIR)/; cp -f $(MODULES) $(MODPATH)/
@echo "Update module dependency relationships..."
@/sbin/depmod
@/sbin/modprobe ctxfi
users := $(word 3, $(shell /sbin/lsmod | grep ^ctxfi | head -n 1))
uninstall:
@if [ "$(users)" = "0" ]; then \
echo "Unload ctxfi..."; \
/sbin/modprobe -r ctxfi; \
fi
@echo "Remove module files..."
@rm -rf $(MODPATH)
@echo "Update module dependency relationships..."
@/sbin/depmod
.PHONY: $(PHONY)
and here is my output....
Code: Select all
make -C /lib/modules/3.0.3/build M=/initrd/mnt/dev_save/work/XFiDrv_Linux_Public_US_1.00/XFiDrv_Linux_Public_US_1.00
make[1]: Entering directory `/usr/src/linux-3.0.3'
LD /initrd/mnt/dev_save/work/XFiDrv_Linux_Public_US_1.00/XFiDrv_Linux_Public_US_1.00/built-in.o
CC [M] /initrd/mnt/dev_save/work/XFiDrv_Linux_Public_US_1.00/XFiDrv_Linux_Public_US_1.00/xfi.o
/initrd/mnt/dev_save/work/XFiDrv_Linux_Public_US_1.00/XFiDrv_Linux_Public_US_1.00/xfi.c:14:26: fatal error: sound/driver.h: No such file or directory
compilation terminated.
make[2]: *** [/initrd/mnt/dev_save/work/XFiDrv_Linux_Public_US_1.00/XFiDrv_Linux_Public_US_1.00/xfi.o] Error 1
make[1]: *** [_module_/initrd/mnt/dev_save/work/XFiDrv_Linux_Public_US_1.00/XFiDrv_Linux_Public_US_1.00] Error 2
make[1]: Leaving directory `/usr/src/linux-3.0.3'
make: *** [all] Error 2
the package from creative is supposed to be everything you need. But apparently, I'm missing something on my local system I should have. Ideas?