kernel source installation question
kernel source installation question
In order to install a modem driver, one must first install and configure the full kernel source.
Does anyone know how to do this?
Does anyone know how to do this?
-
- Posts: 1478
- Joined: 2006/05/29 16:50:11
- Location: San Francisco, CA
Re: kernel source installation question
Best you read this: http://wiki.centos.org/HowTos/Custom_Kernel
Re: kernel source installation question
My kernel is 2.6.18-8el5xen, but I could not find the source files for it on this website.
Re: kernel source installation question
errr......... not really any more.
All you really need are the kernel-headers and the kernel-devel rpm packages installed if all you are doing is install a modem driver.
yum install kernel-devel kernel-xen-devel kernel-headers
All you really need are the kernel-headers and the kernel-devel rpm packages installed if all you are doing is install a modem driver.
yum install kernel-devel kernel-xen-devel kernel-headers
Re: kernel source installation question
I got and installed the packages, then typed "make" in "/tmp/slmodem-2.9.9". Below are my error messages. Any ideas?
make -C modem all
make[1]: Entering directory `/tmp/slmodem-2.9.9/modem'
make[1]: Leaving directory `/tmp/slmodem-2.9.9/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.18-8.el5xen/build
make[1]: Entering directory `/tmp/slmodem-2.9.9/drivers'
cc -I/lib/modules/2.6.18-8.el5xen/build/include -o kernel-ver kernel-ver.c
kernel-ver.c: In function 'main':
kernel-ver.c:11: error: 'UTS_RELEASE' undeclared (first use in this function)
kernel-ver.c:11: error: (Each undeclared identifier is reported only once
kernel-ver.c:11: error: for each function it appears in.)
make[1]: *** [kernel-ver] Error 1
make[1]: Leaving directory `/tmp/slmodem-2.9.9/drivers'
make: *** [drivers] Error 2
make -C modem all
make[1]: Entering directory `/tmp/slmodem-2.9.9/modem'
make[1]: Leaving directory `/tmp/slmodem-2.9.9/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.6.18-8.el5xen/build
make[1]: Entering directory `/tmp/slmodem-2.9.9/drivers'
cc -I/lib/modules/2.6.18-8.el5xen/build/include -o kernel-ver kernel-ver.c
kernel-ver.c: In function 'main':
kernel-ver.c:11: error: 'UTS_RELEASE' undeclared (first use in this function)
kernel-ver.c:11: error: (Each undeclared identifier is reported only once
kernel-ver.c:11: error: for each function it appears in.)
make[1]: *** [kernel-ver] Error 1
make[1]: Leaving directory `/tmp/slmodem-2.9.9/drivers'
make: *** [drivers] Error 2
Re: kernel source installation question
Actually yes...................
This slmodem-2.9.9 package does not build on newer kernels, sorry I do not remember when this got broken exactly but sometime in 2005. You can try the latest version, this is a direct link;
http://linmodems.technion.ac.il/packages/smartlink/slmodem-2.9.11-20070505.tar.gz
But if this is a x86_64 (64-bit) installation it will not work. Also you reallt should read the extracted README file because all you really need to do is;
3. Build application 'slmodemd' with ALSA support. For this in
slmodem-2.9.x dir:
$ cd modem
$ make SUPPORT_ALSA=1
If you still have a problem then your best bet is here: https://www.linuxant.com/drivers/
This slmodem-2.9.9 package does not build on newer kernels, sorry I do not remember when this got broken exactly but sometime in 2005. You can try the latest version, this is a direct link;
http://linmodems.technion.ac.il/packages/smartlink/slmodem-2.9.11-20070505.tar.gz
But if this is a x86_64 (64-bit) installation it will not work. Also you reallt should read the extracted README file because all you really need to do is;
3. Build application 'slmodemd' with ALSA support. For this in
slmodem-2.9.x dir:
$ cd modem
$ make SUPPORT_ALSA=1
If you still have a problem then your best bet is here: https://www.linuxant.com/drivers/
Re: kernel source installation question
I downloaded and successfully installed the latest version:
http://linmodems.technion.ac.il/packages/smartlink/slmodem-2.9.11-20070505.tar.gz
but got errors upon typing "make SUPPORT_ALSA=1". (I only include a few lines of screen output.)
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_main.o -c modem_main.c
modem_main.c:64:28: error: alsa/asoundlib.h: No such file or directory
modem_main.c:106: error: expected specifier-qualifier-list before ?snd_pcm_t?
modem_main.c:134: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
modem_main.c: In function ?alsa_mixer_setup?:
modem_main.c:141: error: ?snd_mixer_elem_t? undeclared (first use in this function)
modem_main.c:141: error: (Each undeclared identifier is reported only once
[...]
make: *** [modem_main.o] Error 1
My ALSA version:
----------------------
Installed Packages
alsa-lib.i386 1.0.12-3.el5 installed
alsa-utils.i386 1.0.12-3.fc6 installed
Available Packages
alsa-lib-devel.i386 1.0.12-3.el5 base
alsaplayer.i386 0.99.76-2.2.el4.rf rpmforge
Any more ideas? https://www.linuxant.com/drivers/ was too general to be of help.
http://linmodems.technion.ac.il/packages/smartlink/slmodem-2.9.11-20070505.tar.gz
but got errors upon typing "make SUPPORT_ALSA=1". (I only include a few lines of screen output.)
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM -DSUPPORT_ALSA=1 -o modem_main.o -c modem_main.c
modem_main.c:64:28: error: alsa/asoundlib.h: No such file or directory
modem_main.c:106: error: expected specifier-qualifier-list before ?snd_pcm_t?
modem_main.c:134: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
modem_main.c: In function ?alsa_mixer_setup?:
modem_main.c:141: error: ?snd_mixer_elem_t? undeclared (first use in this function)
modem_main.c:141: error: (Each undeclared identifier is reported only once
[...]
make: *** [modem_main.o] Error 1
My ALSA version:
----------------------
Installed Packages
alsa-lib.i386 1.0.12-3.el5 installed
alsa-utils.i386 1.0.12-3.fc6 installed
Available Packages
alsa-lib-devel.i386 1.0.12-3.el5 base
alsaplayer.i386 0.99.76-2.2.el4.rf rpmforge
Any more ideas? https://www.linuxant.com/drivers/ was too general to be of help.
Re: kernel source installation question
And which modem do you have???
/sbin/lspci -v
/sbin/lspci -v
Re: kernel source installation question
00:09.0 Modem: Smart Link Ltd. Unknown device 305a (rev 06) (prog-if 00 [Generic])
Subsystem: Quadrics Ltd Unknown device 0005
Flags: bus master, stepping, medium devsel, latency 32, IRQ 169
Memory at fdf7e000 (32-bit, non-prefetchable) [size=4K]
I/O ports at f800 [size=256]
Expansion ROM at
Capabilities: [fc]
Subsystem: Quadrics Ltd Unknown device 0005
Flags: bus master, stepping, medium devsel, latency 32, IRQ 169
Memory at fdf7e000 (32-bit, non-prefetchable) [size=4K]
I/O ports at f800 [size=256]
Expansion ROM at
Capabilities: [fc]