kernel source installation question

Issues related to software problems.
Post Reply
user_aa
Posts: 6
Joined: 2007/05/01 20:16:30

kernel source installation question

Post by user_aa » 2007/05/04 17:35:58

In order to install a modem driver, one must first install and configure the full kernel source.
Does anyone know how to do this?

michaelnel
Posts: 1478
Joined: 2006/05/29 16:50:11
Location: San Francisco, CA

Re: kernel source installation question

Post by michaelnel » 2007/05/04 17:43:48

Best you read this: http://wiki.centos.org/HowTos/Custom_Kernel

user_aa
Posts: 6
Joined: 2007/05/01 20:16:30

Re: kernel source installation question

Post by user_aa » 2007/05/10 18:32:55

My kernel is 2.6.18-8el5xen, but I could not find the source files for it on this website.

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: kernel source installation question

Post by Lenard » 2007/05/10 19:25:09

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

user_aa
Posts: 6
Joined: 2007/05/01 20:16:30

Re: kernel source installation question

Post by user_aa » 2007/05/11 18:04:07

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

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: kernel source installation question

Post by Lenard » 2007/05/11 19:59:36

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/

user_aa
Posts: 6
Joined: 2007/05/01 20:16:30

Re: kernel source installation question

Post by user_aa » 2007/05/14 18:11:44

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.

Lenard
Posts: 2283
Joined: 2005/11/29 02:35:25
Location: Indiana

Re: kernel source installation question

Post by Lenard » 2007/05/15 11:18:16

And which modem do you have???

/sbin/lspci -v

user_aa
Posts: 6
Joined: 2007/05/01 20:16:30

Re: kernel source installation question

Post by user_aa » 2007/05/15 15:19:20

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]

Post Reply