LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 12-12-2004, 02:16 PM   #1
shah560
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Rep: Reputation: 0
Intel537 driver doesnt work under redhat 9


Hello I am new to linux as well as this forum. I have managed to install red hat 9 kernel ver 2.4.20-8 in a dual boot environment with windows xp. Am using an intel537(Ambiant md3200) based soft modem. The driver i downloaded from h ttp://developer.intel.com/design/modems/support/drivers.htm doesnt make properly and make also fails to install it. I will appreciate any help that is extended towards me. Details of the make process are pasted below:

[root@localhost intel-537EP_secure-2.60.80.0]# make clean
cd coredrv; make clean
make[1]: Entering directory `/root/intel-537EP_secure-2.60.80.0/coredrv'
rm -f *.ko *.o *~ core
make[1]: Leaving directory `/root/intel-537EP_secure-2.60.80.0/coredrv'
rm -f *.o *.ko
[root@localhost intel-537EP_secure-2.60.80.0]# make 537
Module precompile check
Current running kernel is: 2.4.20-8
/lib/modules... autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel
make[1]: Entering directory `/root/intel-537EP_secure-2.60.80.0/coredrv'
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o coredrv.o coredrv.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o clmmain.o clmmain.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o rts.o rts.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o task.o task.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o uart.o uart.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o wwh_dflt.o wwh_dflt.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o locks.o locks.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o softserial_io.o softserial_io.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o softserial_ioctl.o softserial_ioctl.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o softserial.o softserial.c
cc -DTARGET_CATAWBA -DTARGET_LINUX -DLINUX -Wall -O -I /lib/modules/`uname -r`/build/include -I ../inc -fno-common -DTARGET_CATAWBA -c -o afedsp_int.o afedsp_int.c
afedsp_int.c:454: warning: initialization from incompatible pointer type
strip --strip-debug 537core.lib
ld -r coredrv.o clmmain.o rts.o task.o uart.o wwh_dflt.o locks.o softserial_io.o softserial_ioctl.o softserial.o afedsp_int.o 537core.lib -o Intel537.o
make[1]: Leaving directory `/root/intel-537EP_secure-2.60.80.0/coredrv'
[root@localhost intel-537EP_secure-2.60.80.0]# make install
rm -f /etc/hamregistry.bin
bash 537_inst
running kernel 2.4.20-8
installing hamregistry, used for persistant storage
installing usrsound, a soft buzzer
installing 537 module
redhat 537_boot rc2.d, rc3.d and rc5.d scripts
starting module and utilities
depmod: *** Unresolved symbols in /lib/modules/2.4.20-8/kernel/drivers/char/Intel537.o
error loading Intel537
rmmod: module Intel537 is not loaded
done

Again any help will be greatly appreciated.
 
Old 12-14-2004, 08:47 AM   #2
greeneagle
Member
 
Registered: Dec 2004
Location: Dublin Ireland via Cobh, Limerick.
Distribution: RedHat, Suse, Ubuntu.
Posts: 33

Rep: Reputation: 16
got same modem to work this week - Suse - driver from Intel

Hullo,

Your modem and problem sound exactly like mine.
I got the very same driver and had make problems BUT ... I can fix them. yay me!
Got modem working ... but had to do a couple of things first.



I did see around stuff on web about ?slmodem? ohhh something else?
Hmm. I can't remember name now.
Or another non intel driver that might work ...
An open source one more generic so would be preferable.
But I saw it after I got the intel one working.
As this one works for me I'm not going to check it out (for now).

The makefile is silly.
If the files do not exist ... the diff result is blank. Yep.
Makefile thinks the diff has matches succesfully and carries on.

diff: /boot/vmlinuz.autoconf.h: No such file or directory
autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
version.h matches running kernel

Those files were not there for me either.
To fix this I went looking for them.
locate autoconf.h
locate version.h |grep linux


You will find a good few version.h files but you want the one that applies to your kernel.

e.g. (different machine than at home - redhat 9.1)
your kernel versions will probably be different
/usr/include/linux/autoconf.h
/usr/src/linux-2.4.20-8/include/linux/autoconf.h
/usr/src/linux-2.6.3/include/linux/autoconf.h

/usr/src/linux-2.4.20-8/arch/i386/math-emu/version.h
/usr/src/linux-2.4.20-8/drivers/addon/aep/driver_version.h
/usr/src/linux-2.4.20-8/drivers/addon/cipe/version.h
/usr/src/linux-2.4.20-8/drivers/addon/iscsi/iscsi-version.h
/usr/src/linux-2.4.20-8/drivers/addon/iscsi/version.h
/usr/src/linux-2.4.20-8/drivers/addon/qla2200/qla_version.h
/usr/src/linux-2.4.20-8/drivers/net/sk98lin/h/skversion.h
/usr/src/linux-2.4.20-8/include/linux/version.h
/usr/src/linux-2.4.20-8/include/pcmcia/version.h
/usr/src/linux-2.6.3/include/linux/version.h

which one? The one for your kernel:
maybe /usr/include/linux/autoconf.h (take a look inside) better
maybe to go for one exactly matching kernel
/usr/src/linux-2.4.20-8/include/linux/autoconf.h
/usr/src/linux-2.4.20-8/include/linux/version.h

As root copy them to where makefile wants them:

cp /usr/src/linux-2.4.20-8/include/linux/autoconf.h /boot/vmlinuz.autoconf.h
cp /usr/src/linux-2.4.20-8/include/linux/version.h /boot/vmlinuz.version.h


_now_ try the make again.

and make install.

I had lots of warnings in the make - don't like seeing warnings. They are our
friends BUT they are our friends as developers and we should make sure
to explicitly allow them or remove them. But build was good.

Now the modem was working.
Test using dial up, test using minicom, however you want.
BUT ... next time I restarted the computer the modem service failed to start.
It was not installed as a service on any runlevel.
Or at least ... I saw it but not sure exactly.
Was trying to start before any other service?

Can start the service manually after every restart like this:
/etc/init.d/537_boot start
(as root)
but that would be a pain

So .... need to do more fixing.
As root edit script /etc/init.d/537_boot which was installed as the
service start script for the soft modem.
(NOTE: maybe your installer did work?
check out does modem still work after reboot?
script name could maybe be different)

I changes all calls to lsmod, depmod, rmmod .... to use full
path i.e. /sbin/lsmod /sbin/depmod etc
That's just because I'm fussy.

Add in following lines near top of script:

# chkconfig: 2345
# description: hugely bloated but working intel 537 softmodem driver
# processname: 537_boot


Then install script to start at these runlevels (2,3,4 and 5)
(runlevel 3 would do but ... not worried about others)
as root:

/sbin/chkconfig --add 537_boot
/sbin/chkconfig --list 537_boot


Okay. Hope it works for you.
I'll check back maybe see if it all went horribly wrong :-7

A couple of comments:

Errors in make and service scripts are a little tricky but pretty basic.
Should always put full path in root commands called from service
scripts otherwise scripts fail for non root and sudo users.
e.g. /sbin/lsmod and /sbin/depmod ... instead of just lsmod and depmod ...

The module being loaded into the kernel is ... 6 MEGABYTES!! AIE!
But it seems grand and works beautifully, seems stable.

Now, hmmm, that I've written all this up where could we log bugs/fixes with intel?
 
Old 12-15-2004, 02:31 AM   #3
shah560
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Tried all the stuff and the modem didnt work even afterwards then i tried googleing spent almost one and a half day non stop found out that the driver i should have used was Intel537DF(data fax)not Intel537 EF(Enhanced Features or something like that) downloaded the driver from http://linmodems.technion.ac.il/packages/Intel/537 and make (ed) it. The vmlinuz.autoconf.h warning stayed there but it had already found the right autoconf.h besides giving me the warning so therefore i ignored it. The driver worked perfactly all i had to do was to make a connection using redhat-config-network and point to /dev/modem istead of ttys0 in the device dropdown box (you have to type it in manually since the drop doown list didnt have /dev/modem) anyways the modem is working flawlessly and it boots up on restart as well. For those like me who suffer endlessly run scanModem (in linux not in windows it wont give the package name if you use it under windows and it wont tell you about the modem correctly either) to find out the correct chip and package name and download the package.

On a side note you can download scanModem utility from http://linmodems.org/. Good luck to all newbies(since i have somehow became a vetern in war with difficulties occuring in linux although i must say i enjoy every little victory going through).
 
Old 12-15-2004, 02:36 AM   #4
shah560
LQ Newbie
 
Registered: Dec 2004
Posts: 3

Original Poster
Rep: Reputation: 0
And thanks greeneagle. Since when did eagles start being green in color.Ummm perhaps its a linux eagle.
 
Old 12-15-2004, 07:00 AM   #5
greeneagle
Member
 
Registered: Dec 2004
Location: Dublin Ireland via Cobh, Limerick.
Distribution: RedHat, Suse, Ubuntu.
Posts: 33

Rep: Reputation: 16
it's kindof a new colour for me

whoo go you! you fixed it yourself
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why doesnt my USB mouse doesnt work? barkha Linux - Hardware 2 08-16-2005 11:31 AM
Installed nvidia driver, doesnt work though Schumi4ever Linux - Newbie 8 11-28-2004 08:37 PM
pctel Modem installation perfect in redhat 9...but doesnt work intercodes Linux - Hardware 4 08-18-2004 07:12 AM
can only run text mode x driver wont work in redhat 7.0 rob,carly Linux - Software 2 08-13-2003 04:48 PM
already install modem driver but still doesnt work!!! h_tony11 Linux - Hardware 3 01-21-2003 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration