i'm going through linux hell..

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
i got DSL up and running and i did a "modprobe opl3sa2" to listen to music. i begin to listen to xMMs with the oss driver. then about a minute or so later my laptop freezes so i have to reboot it.

so it turns out, i need a different driver like ALSA. i download a special alsa package with DSL and try to install it. i change the driver in xMMs from oss to alsa. it gives me an error message. after lots of googling, it seems i need to "modprobe snd-opl3sa2" as that's the module for asla. it says it can't find that module. i'm sure this is the last thing i need to do and then i can get my audio working.

there was a LOT of other things i've tried doing, but it'll take to long to type so i'll just leave it out.
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
hmm, I dont know much about that one. Depending on how it is setup, you are going to need to download and compile the alsa modules yourself, or find a package with apt for damn small linux (I'm assuming they have something like this because it is debian based). Wish I could be more help, but I've never used the distro so I dont know how they handle modules that dont come on the CD.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
well maybe you can, actually.

i tried downloading and installing the alsa packages just now. i got the driver, utils, and libs packages. i got to untar, ./configure, make, and make install for both the driver package (alsa-driver-1.0.9rc4) and libs package (alsa-libs-1.0.9rc4), but not for the utils package (alsa-utils-1.0.9rc4) because it had some kind of libncurses error (for now we can forget this because i think all we need to worry about is the driver package, correct?), but afaik the driver package and lib package both compiled successfully. i also ran ./snddevices in the driver package.

then when i ran 'modprobe snd-opl3sa2' it said it could not find the module. any ideas?

edit: am i missing a step between compiling the packages and running modprobe snd-opl3sa2 that would cause the module to not be where its supposed to be? where would it go to anyway?
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
well for modprobe to work you have to run depmod to calculate out the dependancies of the module.

You see each module depends on certain functionality in the kernel to be present. Much of the time this functionality is found in the form of more modules. Depmod figures out these relationships for your.. Like how snd-whatever needs to have snd module loaded before it will work, that sort of thing.

Otherwise you can use insmod /path/to/module.filename to try to insert the module into protected memory and if you have everything pre-loaded that it needs for basic functionality it will work.

Generally, however the 'make install' script runs depmod as a matter of course, but not always.

Module files are located in /lib/modules/<kernelversion>/ also.

So run depmod, then double check /lib/modules/<kernelversion>/

You can find your kernel version easily by using the command "uname -a".

To find files easily you can use "locate" and "find" commands/tools. Locate depends on a simple database that has been made of your filing system.. generally this is generated every day at a certain time via a cronjob. However you can manually update it to reflect recent changes in the filing system by running "updatedb". It will generate a lot of disk activity, though, as it trolls thru your directory system, so it may take some time.

To use locate you simply go:
locate filename
and it will display everything that has that filename string it it's name.

Find is the other way. Find is a command that basicly does a recursive 'ls' of a directory.. I like to go:
find /directoryname/ |grep filename
to find specific files, but that's lazy way. Find has some powerfull options beyond a simple ls-style search and can use expressions and look for files or directories and whatnot. See the man file.

But if a module is not located then either you haven't run depmod, or it isn't present in the correct /lib/module/<kernelversion> directory....

Sometimes the scripts that make isntall use are stupid and may put it in the wrong directory or whatnot, in that case you can just find the module and copy it over and run depmod then modprobe it.

Also if you've run make correctly it will probably have the compiled module laying around in your source tree your working with and sometimes finding that and copying it over will work.

Probably though you just have to run depmod.

also, at least on my system, there is a alsaconf script that I use to configure and setup my sound card in Debian so that it loads and is configured at boot-up time. Saves me the effort of having to manually create the files that you need for oss emulation and such like that. See the alsa project website for details.. also they will have notes and have a wiki with a page dedicated to each alsa module they have.

Sometimes, and especially with ISA sound cards you'll have to pass options to the module at modprobe/insmod time for specific configurations, too.

also if you install the modulname-source package for a module thru apt-get be sure to take a look at the documentation aviable with the package at /usr/share/doc/<packagename>

Looks like you use modules-assistant with official Debian kernels mostly.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
thanks! it seems the modules it compiled were made for 2.4.26-rsbac while the real kernel should be at 2.4.26. i don't even remember there being a 2.4.26-rsbac before the make and make install. the files were at /lib/modules/2.4.26-rsbac/misc so i copied them to /lib/modules/2.4.26/misc. i ran sudo depmod and got this.

dsl@box:/$ sudo depmod
depmod: *** Unresolved symbols in /lib/modules/2.4.26/kernel/drivers/usb/auerswald.o
depmod: *** Unresolved symbols in /lib/modules/2.4.26/kernel/drivers/usb/speedtch.o
depmod: *** Unresolved symbols in /lib/modules/2.4.26/kernel/net/bridge/bridge.o
depmod: *** Unresolved symbols in /lib/modules/2.4.26/kernel/net/sctp/sctp.o

then i went ahead and ran sudo modprobe snd-opl3sa2 and i got this.

dsl@box:/$ sudo modprobe snd-opl3sa2
/lib/modules/2.4.26/misc/snd-page-alloc.c: kernel-module version mismatch
/lib/modules/2.4.26/misc/snd-page-alloc.c was compiled for kernel version 2.4.26-rsbac while this kernel is version 2.4.26.
/lib/modules/2.4.26/misc/snd-page-alloc.c: insmod snd-opl3sa2 failed

it gives me the same error when i try to insmod it. so i guess i'll have to recompile it? is there some option to make it compile to 2.4.26 this time?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
This is why people should use distros like Debian, Ubuntu or even Fedora. Using the pre-built packages would have saved you a lot of hassle, just 'apt-get install alsa-modules-<kernel-version> alsa-utils' and they're installed. There's a few other packages for ALSA tools, but most of them are optional.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Usually something to do with the ./configure script.

You'll have to look around yourself, read the readme and install files and do things like
./configure --help

Maybe there is a option like:
./configure --with-linux-kernel-headers=/usr/src/linux-2.4.26/

It's going to differ from source tree to source tree and it depends on how the programmer originally set it up

It could also be a option in the Makefile, which governs the behavior of make.

If there is a symbolic link from /usr/src/linux2.4 (I think) or /usr/src/linux to a kernel source tree, or header files then you can remove it and make a similar link to the tree were you compiled your kernel from.

Also sometimes you can use insmod to force load a module to override a kernel mismatch error, but that is dangerous, it can crash your machine or corrupt a file system or all sorts of horrible crap. (Linux kernel is one big multitasking multithreading preemptive program and a modern system kernel is one very very complex thing)
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
actually i just went back and in /lib/modules/ there was a directory called /extra. in there was a directory called /alsa. there were drivers there too. i think that's where the compiled ones went. so i copied those in to /lib/modules/2.4.26/build/misc and ran sudo depmod. it had some undefined symbols for a few of them, but when i ran sudo modprobe snd-opl3sa2 there was no error!

so i went to xmms and made sure the alsa driver was selected and played an mp3. in 2 seconds, my lappy froze. :(

before all this alsa stuff, i used the oss driver for opl3sa2 and managed to play for a minute or so until it froze which is why i had to install the alsa drivers. why is it so complicated..

side note: maybe i should just grab a different distro. but i just love this fluxbox theme i got :D. fluxbox looks so sexy. i hate gnome. i once installed ubuntu and it had gnome. every time i browsed folders it would open a new one and i'd end up with a crap load of folders and wouldn't be able to find the option to turn it off.. maybe kde is good? i guess i'll have to find a different distro that would work best with my lappy..
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
i once installed ubuntu and it had gnome

Just about every other window manager is available in ubuntu too, you don't have to use Gnome.

every time i browsed folders it would open a new one and i'd end up with a crap load of folders and wouldn't be able to find the option to turn it off.

Yea, I think to disable the spatial browsing crap you have to use gconf-editor and disable it manually. Personally, I have a keyboard shortcut that runs 'nautilus --no-desktop --browser' and it acts more like Explorer.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
which file would i have to use gconf-editor on to disable it? i have an ubuntu cd over here and i wouldn't mind installing it on the laptop. it seems like i'm getting nowhere with this problem in DSL.
 

bersl2

Golden Member
Aug 2, 2004
1,617
0
0
You know, ALSA 1.0.9 went stable a while ago. Why did you try a release candidate?

Also, it looks like we're dealing with an ISA card. From the ALSA Wiki, it looks like ISA PnP, at least for this card, isn't. So you need to manually configure the IRQ and DMA yourself.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
yeah you're right, i shouldn't have got the release candidate. i'm used to getting the newest of everything. my bad.

i loaded the module with the irq, dma1, and dma2 set. it loaded fine with modprobe, but xmms told me to configure my sound card. then again, i unloaded the module and just loaded snd-opl3sa2 without any options and it still says that..

i'm think i'm just going to go install ubuntu right now. then i'm sure i can easily just apt-get the alsa package like you said, nothinman. i also just tried installing my wireless card drivers just now and i got an error running the make command with the drivers.. well what should i expect from a bare bones linux distro? yeah i'm gonna install ubuntu. i always liked the fact that ubuntu was one cd. :) i'll report back if i get any problems with it.

thanks for all your help, guys! :D <3 anandtech.
 

bersl2

Golden Member
Aug 2, 2004
1,617
0
0
Actually---and this may seem counterintuitive at first---1.0.9-rc4 came before 1.0.9.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
damn i seem to be having issues with ubuntu 4.10 warty. i only have 32megs of ram on this lappy so its near impossible to install. i even tried mounting my old swap from the last distro. the main issue, it seems, is when it gets to the partitioning stage. it goes to 35% then stops. it looks like i might have to move on to another distro maybe. lolz.

i think i'm going to order at least a 128 stick of ram for this laptop soon, but for now i would at least like to install an os.
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
/i think that your problems with the sound freezing your computer is related to the fact that your sound card is ISA and not PCI.

ISA, if you remember correctly, has to have a correct IRQ and Memory address configured and you can end up with things like IRQ conflicts. So for it to work correctly you have to pass all these options to the module so it knows what hardware to use...

See here for a example:
http://www.sr.bham.ac.uk/~sjt/opl3sa2.html

I don't know much about ISA anymore, forgotten most of this stuff unfortunately.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I wouldn't attempt to run anything at all on a box with only 32M of memory, hell my old firewall had 128M and I thought that was low.
 

stars

Golden Member
Feb 27, 2002
1,068
0
0
Drag is on the right track (as usual) about the IRQ. Wow, this post brings back many memories of using Linux on an old 333.
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
go to Desktop, Preferences, File managment and behavior and you can turn off spatial browsing there.

You can also do a server install of ubuntu and then after enabling universe install blackbox.
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
ok i followed that guide, but there are two things i couldn't do. one, not being important afaik, is installing the utils package. i have the error in a post on the first page.

the second thing, which i think is important, is defining modules in /etc/conf.modules. i can't find that file. there isn't even a /etc/modules.conf. i think the file is /etc/modules.conf.old, which is the only file that seems similar. but what does it mean by define?
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
Originally posted by: sourceninja
go to Desktop, Preferences, File managment and behavior and you can turn off spatial browsing there.

You can also do a server install of ubuntu and then after enabling universe install blackbox.

alright thanks, i'll try that right now.

edit: i actually got to load all the installer components and modules in ubuntu. :) unfortunately, when it loads the partitioner it stops at 35%. :( maybe its because i loaded the swap?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
You should use /etc/modules as a generic list of modules to load at startup and edit/create your own file in /etc/modutils and run update-modules to manage modules.conf
 

SleepWalkerX

Platinum Member
Jun 29, 2004
2,649
0
0
what should i do to load my module at startup file in /etc/modutils? create a file, i assume. but what should it say?