Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-11-2003, 12:35 PM
|
#1
|
Member
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130
Rep:
|
once again. sound card driver installation problem
i followed up this achieve (here) to setup my sound card driver. there is an error occured when i was trying to do this:
[root@localhost alsa-driver-0.9.4]# make; make install
make all-deps
make[1]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4'
make[1]: Nothing to be done for `all-deps'.
make[1]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4'
Please, run the configure script as first...
rm -f /snd*.o /persist.o /isapnp.o
make[1]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'make[1]: *** No rule to make target `modules_install'. Stop.
make[1]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'
make: *** [install-modules] Error 1
[root@localhost alsa-driver-0.9.4]#
what does this mean? what do i need to do? thx for your help.
ps: i m using RH9 on A7V8X mainboard. thx
|
|
|
11-11-2003, 12:42 PM
|
#2
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
Before typing make you must run the configure script for the package. You invoke it by cd'ing to the directory (alsa-driver-0.9.4) and typing ./configure.
After that you can make and make install.
By the way, you don't need to be root to configure and build it. Only the last step, make install, requires root privileges. So do the config and making as yourself, then when you're ready to install it, type su and then the root password when you're asked for it. Type exit to return to your normal self when you're done.
Håkan
|
|
|
11-11-2003, 12:44 PM
|
#3
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
Oh, and you can type ./configure --help before configuring to get a list of options. Since there are so many cards supported (and my computer is slow) i use ./configure --with-cards=cs4236 or whatever card is in my computer. It really saves time, especially if you haven't broken the 400MHz barrier yet.
Håkan
|
|
|
11-11-2003, 12:53 PM
|
#4
|
Member
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130
Original Poster
Rep:
|
well... i did what u said as follow:
[root@localhost alsa-driver-0.9.4]# ./configure --with-cards=via82xx
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/xp/softwarez/audio/alsa-driver-0.9.4
checking cross compile...
checking for directory with kernel source... /lib/modules/2.4.20-8/build
checking for kernel version... The file /lib/modules/2.4.20-8/build/include/linux/version.h does not exist.
Please, install the package with full kernel sources for your distribution
or use --with-kernel=dir option to specify another directory with kernel
sources (default is /usr/src/linux).
and it displayed the same message as above. anything wrong? thx
|
|
|
11-12-2003, 04:32 PM
|
#5
|
Member
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130
Original Poster
Rep:
|
anyone knows? :S
|
|
|
11-13-2003, 06:28 AM
|
#6
|
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032
Rep:
|
You need the configured kernel source in /usr/src/linux. If you have it elsewhere, like in /usr/local/src/linux, you have to specify it on the configure command line, like this: ./configure --with-kernel=/usr/local/src/linux
Håkan
|
|
|
11-14-2003, 05:51 PM
|
#7
|
Member
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130
Original Poster
Rep:
|
Quote:
Originally posted by hw-tph
You need the configured kernel source in /usr/src/linux. If you have it elsewhere, like in /usr/local/src/linux, you have to specify it on the configure command line, like this: ./configure --with-kernel=/usr/local/src/linux
Håkan
|
thx! but it can't find the file/directory in neither /usr/src/linux or /usr/local/src/linux . where is it pls? anywhere else?
|
|
|
11-15-2003, 06:43 PM
|
#8
|
Member
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130
Original Poster
Rep:
|
sign..... help.......please.....
|
|
|
11-15-2003, 06:56 PM
|
#9
|
LQ Newbie
Registered: Oct 2003
Posts: 19
Rep:
|
I don't know where it is in Red Hat but one possibility is that you didn't have it installed. I just read up that it is on the second CD if you do not have it installed.
|
|
|
11-17-2003, 12:34 PM
|
#10
|
Member
Registered: Nov 2003
Location: London
Distribution: SuSE
Posts: 130
Original Poster
Rep:
|
ok... thx for your advice. i just installed the kernel source. and i just try to config as below:
[root@localhost alsa-driver-0.9.4]# ./configure --with-kernel=/usr/src/linux-2.4checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for gcc option to accept ANSI C... none needed
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether time.h and sys/time.h may both be included... yes
checking whether gcc needs -traditional... no
checking for current directory... /home/xp/softwarez/audio/alsa-driver-0.9.4
checking cross compile...
checking for directory with kernel source... /usr/src/linux-2.4
checking for kernel version... 2.4.20-8
checking for GCC version... Kernel compiler: Used compiler: gcc (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
*** NO PREDEFINED KERNEL COMPILER IS DETECTED
*** Assuming the same compiler is used with the current system compiler.
*** Please make sure that the same compiler version was used for building kernel.
checking for kernel linux/pm.h... "yes"
checking for kernel linux/spinlock.h... "yes"
checking for kernel linux/irq.h... "yes"
checking for kernel linux/threads.h... "yes"
checking for kernel linux/rwsem.h... "yes"
checking for kernel linux/gameport.h... "yes"
checking for kernel linux/devfs_fs_kernel.h... "yes"
checking for kernel linux/highmem.h... "yes"
checking for kernel linux/workqueue.h... "yes"
Removing a dummy linux/workqueue.h.
checking for redhat kernel... "yes"
It looks like you're using a RedHat 9 kernel.
Disabling their incomplete workqueue.h modification.
checking for kernel asm/hw_irq.h... "yes"
checking for kernel linux/jiffies.h... "no"
checking for kernel linux/adb.h... "yes"
checking for kernel linux/cuda.h... "yes"
checking for kernel linux/pmu.h... "yes"
checking for kernel module symbol versions... "yes"
checking for PCI support in kernel... "yes"
checking for SGI/MIPS (HAL2) architecture... "no"
checking for directory to store kernel modules... /lib/modules/2.4.20-8/kernel/sound
checking for verbose printk... on
checking for debug level... none
checking for ISA support in kernel... "yes"
checking for processor type... k7
checking for SMP... "no"
checking for ISA PnP driver in kernel... yes
checking for PnP driver in kernel... no
checking for Kernel ISA-PnP support... "yes"
checking for strlcpy... "no"
checking for snprintf... "yes"
checking for vmalloc_to_page... "yes"
checking for old kmod... "yes"
checking for driver version... 0.9.4
checking for sequencer support... yes
checking for OSS/Free emulation... yes
checking for RTC callback support in kernel... "no"
checking for USB support... "no"
checking for USB module support... "yes"
checking for kernel PCMCIA
checking for PCMCIA support... "no"
checking for PCMCIA module support... "yes"
checking for PC9800 support in kernel... "no"
checking for which soundcards to compile driver for... all
configure: creating ./config.status
config.status: creating version
config.status: creating Makefile.conf
config.status: creating snddevices
config.status: creating utils/alsa-driver.spec
config.status: creating utils/buildrpm
config.status: creating toplevel.config
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: creating include/config1.h
config.status: include/config1.h is unchanged
config.status: creating include/version.h
config.status: include/version.h is unchanged
and then:
[root@localhost alsa-driver-0.9.4]# make;make install
make dep
make[1]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4'
make[2]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'make[2]: *** No rule to make target `fastdep'. Stop.
make[2]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'
make[1]: *** [dep] Error 1
make[1]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4'
make: *** [include/sndversions.h] Error 2
rm -rf /lib/modules/2.4.20-8/kernel/sound
make[1]: Entering directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'make[1]: *** No rule to make target `modules_install'. Stop.
make[1]: Leaving directory `/home/xp/softwarez/audio/alsa-driver-0.9.4/support'
make: *** [install-modules] Error 1
it still has errors..... what is the problem? thanks for you guys to help me--> super newbie. thanks again!
|
|
|
11-22-2003, 10:18 AM
|
#11
|
LQ Newbie
Registered: Nov 2003
Posts: 3
Rep:
|
Let me try to clarify what is needed here.
In order to install alsa, you need a *configured* Linux source tree. Minimally the include
directory which is typically located at /usr/src/linux/include. RH I believe normally installs
this directory.
Before a Linux kernel can be built certain options must be selected. During the kernel configuration process, certain lines are changed in the various header files (like version.h) to make linux build right.
Of interest to alsa is the sound options which were configured into your specific kernel as
it was built. You can't simply restore this directory from a clean kernel distribution. You
need to restore thus directory from your RH9 installation disk set (not the SRPM disks).
Unfortunately, its been a while since I installed RH in pieces so I don't recall the
procedure. If I had RH9 installed, I could post the header directory as a tar.bz2 for you.
Probably the quickest way is to install RH9 on a clean partition and copy the needed
linux directory over to your working partition.
A word of caution: I also have a A7V8X motherboard. It took some tweaking to get it
working. Everything seemed to work, but any sound player would hang and there would
be no sound output. In the end it turned out to be IRQ conflicts. I configured BIOS to
make it think the OS was non-PNP. Then it all works fine. I'm using a custom configured
2.4.20 kernel, so you might not have this problem.
|
|
|
All times are GMT -5. The time now is 10:06 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|