Kernel Module (Cross) Compilation


I've tried the rt2x00 drivers, but my adapter isn't noticed for some reason. Damn. I also needed to insert most of those other modules, and some other ones because rt2x00 modules depended on them:

ieee80211_crypt.ko (already on the Caanoo)
ieee80211.ko (already on the Caanoo)
cfg80211.ko (already on the Caanoo)
mac80211.ko
firmware_class.ko
crc_itu_t.ko
rt2x00lib.ko
rt2x00usb.ko
rt73.ko
rt2588usb.ko

Edit:
Just read somewhere that I need the dongle's firmware, and that the legacy drivers have the firmware built-in. Time to use the legacy drivers, I guess.
 
Hi people,

I've just snatched the new kernel sources with the hope of adding USB Audio (should be fairely easy) and USB Midi (probably a lot harder)

I've successfully build an image of the kernel and was toying in menuconfig to find the usb audio driver but didn't see it there. Any idea why it wouldn't appear ?

Thanks for any pointers....
/M
 
Mdashdotdashn said:
Hi people,

I've just snatched the new kernel sources with the hope of adding USB Audio (should be fairely easy) and USB Midi (probably a lot harder)

I've successfully build an image of the kernel and was toying in menuconfig to find the usb audio driver but didn't see it there. Any idea why it wouldn't appear ?

Thanks for any pointers....
/M
Hey, are you sure the drivers are included in the kernel? Try also looking in the older kernel source.
 
Last edited by a moderator:
Check out sound/usb/Kconfig:
Code:
# ALSA USB drivers

menu "USB devices"
        depends on SND!=n && USB!=n

config SND_USB_AUDIO
        tristate "USB Audio/MIDI driver"
        depends on SND && USB
        select SND_HWDEP
        select SND_RAWMIDI
        select SND_PCM
        help
          Say Y here to include support for USB audio and USB MIDI
          devices.

          To compile this driver as a module, choose M here: the module
          will be called snd-usb-audio.
[...]
So it seems you need to use the ALSA driver stack. Not sure how
well that plays with the existing sound driver used on the Wiz...


Edit: Whoops, just realized that this is about the Caanoo...
 
hmn said:
Check out sound/usb/Kconfig:
Code:
# ALSA USB drivers

menu "USB devices"
        depends on SND!=n && USB!=n

config SND_USB_AUDIO
        tristate "USB Audio/MIDI driver"
        depends on SND && USB
        select SND_HWDEP
        select SND_RAWMIDI
        select SND_PCM
        help
          Say Y here to include support for USB audio and USB MIDI
          devices.

          To compile this driver as a module, choose M here: the module
          will be called snd-usb-audio.
[...]
So it seems you need to use the ALSA driver stack. Not sure how
well that plays with the existing sound driver used on the Wiz...

Yeah, Simon from GP told me it was in Device Drivers -> Sound -> ALSA -> USB devices -> USB Audio/MIDI driver which indeed needs the activation of alsa

I've successfull compiled and loaded the various .ko generated:

Code:
./sound/usb/snd-usb-lib.ko
./sound/usb/snd-usb-audio.ko
./sound/core/snd-timer.ko
./sound/core/snd-rawmidi.ko
./sound/core/snd.ko
./sound/core/snd-pcm.ko

But when I connect the audio out, it seems to load something but I can't really tell if anything's available at all, the biggest problem being the generic alsa tools (like amixer) are not on the system. I guess I'll need to find how to compile those and if it will force me to include everything in the kernel as opposed to modules.

If anyone's got pointers for getting amixer on the caanoo, It'll save me time, I'm not a kernel/unix configurator expert :)

Cheers
Marc.
[/code]
 
Last edited by a moderator:
Back
Top