SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I posted the exact same question on the software forum but no answer so far. So I try my luck here. Apologies for the double postings. Here we go.
I just installed slackware 10 on an AMD k6 with a Creative sound blaster 16 PCI in it. At first I just installed only the neccessary packages to get the system up and running and then I started building things up on top. (the purpose is to learn slackware)
When I get to the gnome part, I basically installed everything that is needed for the gnome to come up. However the sound part seems to be not functioning.
The error message I get is:
alsa_sound: no sound card found!
So I search the internet and found that I need to run alsaconf. However after I run it said that No supported PnP or PCI card found. So no luck there. I know that the card is there and running and even it is recognized hardware-wise by the system. The /proc/pci has this on its list:
Bus 0, device 19, function0:
Multimedia audio controller: Ensoniq 5880 AudioPCI (rev 2).
IRQ 9.
Master Capable. Latency=32 Min Gnt=12.Max Lat=128.
I/O at 0xec00 [0xec3f]
And also the card run fine under RH 9 (or RH 7.2)
I tried to modprobe the driver (es1371) that I know work on RH but even with the driver loaded, still the card cannot be found by Alsa.
Do I miss anything here ?
BTW I have a custom kernel and only have the following configuration enabled on the sound part:
OK. I looked through the configuration of my machine and discover something disturbing. As I mention previously that I do a custom made kernel. What I did before I make a custom made kernel was to put a -custom at the EXTRAVERSION parameter on my Makefile. So the module compile process will put the libraries of the new kernel under a separate directory (/lib/modules/kernelversion-custom).
What I found disturbing is when I looked at the files list of the alsa-driver package that the libraries files are hardcoded to install under the original directory (/lib/modules/kernelversion). So that is why I cannot do the depmod snd-ess1371 etc., eventhough I already install the packages, because the modules are located in wrong directory !
Well it turns out that the problem probably rooted in a deeper place than I thought. Let me straight this out first (by learning more on what makes slackware ticks,... coming from RH environment it seems that there is a LOT to learn...)
Don't fret, you've not destroyed your system. We share something in common,
I think, and that is a desire to learn Slackware Linux. So, rather than giving you
a quick fix for your problem, here is a link to my favorite Kernel-Build HOWTO .
Within it you will read
Quote:
Assign Unique Name
We have so far extracted and patched the Linux sources. During our preparation we also determined what hardware is installed in the system so that we will know which modules will need compilation. Before we proceed to actually configuring the kernel there are a couple minor but important details to complete.
Inside the Linux source directory is the default Makefile. This file is used by the make utility to compile the Linux sources. The first few lines of the Makefile contains some versioning information:
Note that there is an additional EXTRAVERSION field. To prevent overwriting any existing kernel modules on the system we will change this EXTRAVERSION to something unique. When the final installation steps are run, kernel module files will then get written to /lib/modules/$VERSION.$PATCHLEVEL.$SUBLEVEL-$EXTRAVERSION.
Since I don't know which guide you used to build your kernel, I don't know
what steps you took, or why you decided to do an EXTRAVERSION. That isn't
exactly how I do mine, but it matters not. Read the stuff in Kwan Lowe's guide,
and then see what you need to know from there.
All is not lost, you just need to get your modules in the right path.
Well, I read through the docs you gave me. It is a good one. However most of it I know already. I used to customize my kernel under RH. And RH's Makefile always has -custom as its EXTRAVERSION entry. That's why when I try to compile kernel with Slackware I do the same.
By itself, adding the EXTRAVERSION would not create any problem (My machine works with no problem with the new customize kernel) However the problem starts when I am installing pre made packages from slackware, because those packages are somehow hardcode to install in a certain directory. I am trying to look for any way to tell the installpkg utility to install it in the directory I want. May be I just better off using the source.
In the mean time I probably will re-format my Linux and reinstall afresh. Other than this alsa driver I don't know what other things that I have installed in the wrong directory.
You mention that you don't put any entry for the EXTRAVERSION. So you clobber your library directory ? May be I should try that.
Sorry but I didn't understand your post at first. I basically compile the kernel following DrOzz guide and don't use any EXTRAVERSION.
After I make the bzImage I copy it and System.map to /boot with their new kernel version as their name, or if it's the same version, I just name it something appropriate. This doesn't change the module path, and the only module I have to add afterwards is that stinking Nvidia module. (NB: There is a method I've read to keep from having to add it when you recompile, but I've not tried it. Just about 3 mintues of my time, so I just install it again.)
For instance, on this system, I installed Slack-10.0 with the default 2.4.26, then I compiled 2.6.7 and this is what I have in /boot
mingdao@james:~$ cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
append="apm=power-off"
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 50
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x64k
vga=791
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda1
label = Slack-2.6.7
read-only
image = /boot/vmlinuz-ide-2.4.26
root = /dev/sda1
label = Slack-2.4.26
read-only
# Linux bootable partition config ends
# Windows bootable partition config begins
other = /dev/hda1
label = Windoze
table = /dev/hda
# Windows bootable partition config ends
I don't think I've clobbered my libraries, but if I did, I wish someone would tell me how to fix 'em.
Edit: The Slack packages that come from Pat at Slackware always work well in my system. Those at other places usually don't. I use CheckInstall when compiling from source, which will make a Slack pack (or rpm or deb) and install it wherever you tell it to do so. That way, if you want to remove it, you just use removepkg, or if you want to install it on another machine, use installpkg. I like where Slackware puts the files, and they follow the Linux File System Standard, which RedHat does not.
I believe you can figure out how you want to do this, and how Pat has Slackware setup, by reading "man pkgtool" which is the software package maintenance tool for Slackware.
Last edited by Bruce Hill; 10-29-2004 at 05:01 AM.
Yeah. You are probably right. It won't clobber it but just put whatever modules/libraries etc. that is new and specific to your kernel into the old directory structure (/lib/modules/kernelversion).
The reason why you want to have a separate directory from your old one, so that once you satisfy with your new kernel you can deleted the old directory and have the lib/modules directory that is really clean and only specific to your kernel without having any extra junks laying around.
I think in RH it is the default mode. BUt I hate the way RH uses dependencies on RPMs. It doesn't let you choose which pakcage you want to install by RPM which one is not. Everything has to be RPM, otherwise you'll get bitten by the dependecy problem.
So I guess I have to learn more about the pakcage tools in Slackware, on how to manipulate the pakcages to do what I want. Do you have any good source to learn this ?
Originally posted by aherrys Yeah. You are probably right. It won't clobber it but just put whatever modules/libraries etc. that is new and specific to your kernel into the old directory structure (/lib/modules/kernelversion).
I forgot this. When you run "make modules_install" this will install
newly compile modules to /lib/modules/x.x.x like you see below.
So when installing 2.6.7 they'll go in /lib/modules/2.6.7 rather than
clobbering the old ones.
What I've done with ALSA was to "installpkg alsa-driver-1.0.5a_2.6.7-i486-1.tgz"
and afterwards run "alsamixer" as user then "alsactl store" as root.
This got me sound in 2.6.7 and you can get that package from
/testing/packages/linux-2.6.7/alsa-driver-1.0.5a_2.6.7-i486-1.tgz
on the Slackware-10.0 CD2. I didn't re-install the alsa-lib, oss or utils.
I think EXTRAVERSION is only needed when you're patching an
existing kernel, not when installing a new one. I might be wrong.
Please post back and let us know how you got on.
Quote:
So I guess I have to learn more about the pakcage tools in Slackware, on how to manipulate the pakcages to do what I want. Do you have any good source to learn this ?
I forgot this. When you run "make modules_install" this will install
newly compile modules to /lib/modules/x.x.x like you see below.
So when installing 2.6.7 they'll go in /lib/modules/2.6.7 rather than
clobbering the old ones.
Of course it won't, because you are compiling a different version of the kernel. (2.6 versus 2.4)
But how about if you dislike the way your 2.6 kernel is setup now, or if you add a new SATA drive (assuming you don't have it previously) and need to build support into the kernel either as static or as modules ? Then you need to do make menuconfig again and other makes... then it will 'clobber' your /lib/modules/2.6.7
But actually I don't think it will. It will just build all the additional drivers/modules on top of the old ones, leaving the old ones intact.
But that exactly the point. That way you will have a /lib/modules/x.x.x directory that have lot of things that you don't even use inside. Adding EXTRAVERSION allows you to ONLY put drivers/modules that you REALLY need inside the /lib/modules/x.x.x. Then once your are happy with your kernel, you can just delete the old version of /lib/modules/x.x.x
Quote:
I think EXTRAVERSION is only needed when you're patching an
existing kernel, not when installing a new one.
You are quite correct. Other than patching an existing kernel, you may also add it if you build a customize version of the existing kernel (like I did). For new kernel version you don't need the EXTRAVERSION
I'll let you know how it goes when I am finish building up the Slack from the ground up (again...).
Hi guys I recently installed Slackware 10.0, the sound seems to work but I can't figure out how to tweak it to make it louder. I dont know what sound architecture its using. Any Ideas?
Help Please!
Hi guys I recently installed Slackware 10.0, the sound seems to work but I can't figure out how to tweak it to make it louder. I dont know what sound architecture its using. Any Ideas?
Help Please!
Well I don't have mine working yet ! May be Chinaman can help you.... but I saw similar problem as yours floating around in this forum somewhere. May be you should search for it.
But you need to know at least what sound card you are using.
Originally posted by aherrys No offense...:) I look at man pkgtool but not much there at all, even it discourages user to try out options that comes with pkgtool.
What do you need to know about pkgtool? I thought it was very comprehensive.
Did you also read installpkg, removepkg, and upgradepkg?
And I think maybe you misunderstood this statement from "man pkgtool"
Quote:
Most users will not want to use any options when running pkgtool.
To me it doesn't discourage using options, just says most will not want to use them.
Issue as root "pkgtool" and check it out. I use "installpkg" and "removepkg" more
than "pkgtool" - they're easy. You just gotta get your head around it first. Give them
a look see, and then post back for help. Slackware installs all Slackpacks from .tgz
files into /var/log/packages - check it out.
And about the other poster. It's not against the LQ Rules (not yet, anyway) to "hijack"
someone else's thread. However, amongst the larger community of Linux, and with
the old guys in particular, it's considered rude. So I finally just adopted a policy that
I ignore the hijacker's post. He should start his own thread - after first searching LQ
and Google <Linux>.
I think one or both of these documents should be required reading for all of us who
use message boards and forums - whatever those are.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.