Thanks, hoopycat, that's a useful clue.
After spending a long time and a
lot of Googling trying to get this to work today, I've adopted a different strategy: it turns out that as of 2.5, ALSA was included in the linux sources. So, no extra download needed: if you've got the kernel sources, you've got ALSA.
So, I upgraded my kernel to the newest supplied by Linode (3.0.4 at the time I write this), and downloaded the sources to 3.0.4 from kernel.org to
/usr/src.
Copying the config from
/proc/config.gz got the config that was used to build the current kernel. Of course, since this is a linode-supplied kernel, it doesn't have ALSA enabled by default, or any of the sound driver modules. So, I used
make menuconfig to edit the config and enable these, modularised.
Then,
make modules appeared to build the modules I needed.
make modules_install seemed to install them to
/lib/modules.
However,
modinfo soundcore failed, because the modules were in
/lib/modules/3.0.4, not
/lib/modules/3.0.4-linode38. So I linked
/lib/modules/3.0.4-linode38 to
/lib/modules/3.0.4.
modinfo still failed, complaining of a missing
modules.dep, so I ran
depmod to create that. Finally,
modinfo soundcore worked!
Quote:
filename: /lib/modules/3.0.4-linode38/kernel/sound/soundcore.ko
license: GPL
author: Alan Cox
description: Core sound module
depends:
vermagic: 3.0.4 SMP mod_unload modversions CORE2
However, modprobe snd-dummy fails.
Quote:
WARNING: All config files need .conf: /etc/modprobe.d/blacklist-modem, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/alsa-base, it will be ignored in a future release.
WARNING: Error inserting soundcore (/lib/modules/3.0.4-linode38/kernel/sound/soundcore.ko): Invalid module format
WARNING: Error inserting snd (/lib/modules/3.0.4-linode38/kernel/sound/core/snd.ko): Invalid module format
WARNING: Error inserting snd_timer (/lib/modules/3.0.4-linode38/kernel/sound/core/snd-timer.ko): Invalid module format
WARNING: Error inserting snd_pcm (/lib/modules/3.0.4-linode38/kernel/sound/core/snd-pcm.ko): Invalid module format
FATAL: Error inserting snd_dummy (/lib/modules/3.0.4-linode38/kernel/sound/drivers/snd-dummy.ko): Invalid module format
I don't get it. Is stock
3.0.4 really so different from
3.0.4-linode38 that modules compiled against it are incompatible?