[Voyage-linux] compiling kernel module for Hiface 1 drivers
Roberto Grossi
(spam-protected)
Mon Nov 5 07:00:54 HKT 2012
Hello, I apparently succeded to compile the drivers for Hiface 1 (see
https://github.com/panicking/snd-usb-asyncaudio/wiki). FYI, I did the same
on ubuntu.
I gave up voyage-mpd 0.9rc1 since there are no linux header.
So I tried with voyage-mpd 0.85
apt-get install linux-source-3.2.17-voyage 11.0-1
cd /usr/src/
tar xvjf linux-source-3.2.17-voyage.tar.bz2
ln -s linux-source-3.2.17-voyage linux-headers-3.2.17-voyage
cd /lib/modules/3.2.17-voyage/
ln -s /usr/src/linux-source-3.2.17-voyage build
cd /usr/src/linux-source-3.2.17-voyage
make oldconfig
make prepare
make modules_prepare
cd /root/snd-usb-asyncaudio.git/
make
Here, I modified the Makefile by adding EXTRAVERSION:
EXTRAVERSION := "-voyage"
snd-usb-asyncaudio-objs += chip.o control.o pcm.o
obj-m += snd-usb-asyncaudio.o
KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
default:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
clean:
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean
I copied snd-usb-asyncaudio.ko
in /lib/modules/3.2.17-voyage/kernel/sound/usb/
But then modprobe -v -f snd-usb-asyncaudio fails and returns
insmod /lib/modules/3.2.17-voyage/kernel/sound/usb/snd-usb-asyncaudio.ko
FATAL: Error inserting snd_usb_asyncaudio
(/lib/modules/3.2.17-voyage/kernel/sound/usb/snd-usb-asyncaudio.ko):
Invalid module format
Any help please?
Thanks
Roberto
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20121105/d9ea6882/attachment.html>
More information about the Voyage-linux
mailing list