Abajo está un histórico de comentarios con un programador para instlar el driver de un modem


Linux Voice Band Modems (VBM) of Intel Residential Access Division (RAD)


Im an SuSE 91 uni-proccessor user, and have an Intel 537 DF voice V.92 modem. Because the OS dont recognize the modem device, I used your [INTEL-537EP-2.60.80.0-SUSE91-UP.TGZ] driver. Following all the readme instructions, when I type "make 537", The console shows me 4 warnings, but I think is OK. But in the next step I had a problem, when I type "make install" the Console shows in the bottom message.

-------------------------------Konsole as root--------------------------------

linux:/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0 # make install

rm -f /etc/hamregistry.bin

bash 537_inst

running kernel 2.6.4-52-default

installing hamregistry, used for persistant storage

installing usrsound, a soft buzzer

installing 537 module

SuSE version 9.1

SuSE boot scripts

starting module and utilities

error loading Intel537

ERROR: Module Intel537 does not exist in /proc/modules

done

-------------------------------------------------------------------------------


However, I check the /proc/modules path, and "modules" is an empty document, but it does exist. What can i do?

Thanks for your helpful time and effort.


Sincerely,

Daniel Alejandro Benavides Díaz

Computer Science College Student at Universidad Nacional

Bogotá, Colombia, South America



Hi Daniel


Do you see "Intel537.ko" file ?

Can you send me the screen dump for "make 537" ?


Thanks

Prashant

--------------------FIN 1ero--------


;=======================================================================

; +--\ |\ | +---- | | +---\ ;

; | | | \ | | __ | | |___/ ;

; +--/ | \| | \ | | | \ ;

; | | | +---/ +--- ' +---/ ;

;=======================================================================



-----Original Message-----

From: [email protected] [[email protected]]

Sent: Tuesday, January 04, 2005 2:33 PM

To: vbm linux

Cc: [email protected]

Subject: Driver Help


Hi Prashant, thanks for answer me. I had to rewrite this mail because

the first (answer mail) was deleted (before christmas).

Answer for your questions: yes i see Intel537.ko, as you can see at the

screen dump of the steps.


I got to tell you that first i have to use the 13)a. fix tip of the

readme,

with both version.h and autoconf.h files, because the compiler showed

that those files dont exist, but of those actions, 2 things:

1.By default in my SuSE in the path /lib/modules/<kernel

version>/build, the build directory points the kernel sources:

/usr/src/linux-2.6.4-52.

2.I manually take a copy of /boot/vmlinuz.version.h, and paste in

/usr/src/linux-2.6.4-52/include/linux.The same was done for autoconf.h


----------------------- Konsole as root


linux:/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0 # make

537

Module precompile check

Current running kernel is: 2.6.4-52-default

/lib/modules... autoconf.h exists

autoconf.h matches running kernel

***************** WARNING ************************

The version.h file you are about to compile with

is different than the version of the current

running kernel: 2.6.4-52-default

Modules compiled and loaded with a different

version of kernel headers than the current running

kernel may cause your system to CRASH!

**************************************************


You will need to syncronize the kernel and build

configurations to create a functional driver for this kernel.

call "make config_sync" and this script will

copy the file /boot/vmlinuz.version.h to

/lib/modules/2.6.4-52-default/build/include/linux/version.h

and backup the original version.h as version.bak

The same will be done for autoconf.h

Then repeat the build and installation procedure over again.

make: *** [check] Error 3

linux:/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0 # make

config_sync

mv /lib/modules/`uname -r`/build/include/linux/version.h version.bak

mv /lib/modules/`uname -r`/build/include/linux/autoconf.h autoconf.bak

cp /boot/vmlinuz.version.h /lib/modules/`uname

-r`/build/include/linux/version.h

cp /boot/vmlinuz.autoconf.h /lib/modules/`uname

-r`/build/include/linux/autoconf.h

linux:/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0 # make

537

Module precompile check

Current running kernel is: 2.6.4-52-default

/lib/modules... autoconf.h exists

autoconf.h matches running kernel

version.h matches running kernel

2.6.4-52-default

make[1]: Entering directory

`/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv'

make -C /lib/modules/2.6.4-52-default/build

SUBDIRS=/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/cored

rv

modules

make[2]: Entering directory `/usr/src/linux-2.6.4-52'

CHK include/linux/version.h

UPD include/linux/version.h

SPLIT include/linux/autoconf.h -> include/config/*

*** Warning: Overriding SUBDIRS on the command line can cause

*** inconsistencies

CC arch/i386/kernel/asm-offsets.s

CHK include/asm-i386/asm_offsets.h

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/coredrv.o

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:

In function `softcore_init_struct':

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:336:

warning: assignment from incompatible pointer type

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:

At top level:

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:754:

warning: initialization from incompatible pointer type

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:755:

warning: initialization from incompatible pointer type

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:

In function `dspdrv_CommRamISR':

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/coredrv.c:877:

warning: function declaration isn't a prototype

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/clmmain.o

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/rts.o

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/rts.c

:

In function `RTS_Enable':

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/rts.c:118:

warning: assignment from incompatible pointer type

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/task.o

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/uart.o

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/wwh_dflt.o

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/locks.o

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/softserial_io.o

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/softserial_ioctl.o

CC [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/softserial.o

CC [M] /home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.o

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:48:

warning: function declaration isn't a prototype

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:61:

warning: initialization from incompatible pointer type

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:65:

warning: function declaration isn't a prototype

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/afedsp_int.c:454:

warning: initialization from incompatible pointer type LD [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/Intel537.o

Building modules, stage 2.

MODPOST

CC

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/Intel537.mod.o

LD [M]

/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv/Intel537.ko

make[2]: Leaving directory `/usr/src/linux-2.6.4-52'

make[1]: Leaving directory

`/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0/coredrv'

linux:/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0 # make

install

rm -f /etc/hamregistry.bin

bash 537_inst

running kernel 2.6.4-52-default

installing hamregistry, used for persistant storage

installing usrsound, a soft buzzer

installing 537 module

SuSE version 9.1

SuSE boot scripts

starting module and utilities

error loading Intel537

ERROR: Module Intel537 does not exist in /proc/modules

done

linux:/home/benavides/Desktop/Modem/intel-537EP_secure-2.60.80.0 #


------------------------------------------------------------------------

----


Thank you very much, sincerely,


Daniel Benavides

Computer Science College Student at Universidad Nacional

Bogota, Colombia, South America

Respuesta----------------

Hi Daniel


I am attaching the things I had to do to make the driver

work......Please try it out and let me know.


NOTE: I HAD THE KERNEL SOURCE AT /usr/src/linux-2.6.4

************************************************************************

***

[1] STEP 1

Set the KERNEL_SOURCE_PATH variable to the extracted kernel folder.

"linux-2.6.4" is the folder created above.

export KERNEL_SOURCE_PATH=/usr/src/linux-2.6.4

echo $KERNEL_SOURCE_PATH ;/usr/src/linux-2.6.4


[2] STEP 2

Change makefile as follows:

[1] 537: check TO 537:

[2] cd coredrv; make TARGET=TARGET_CATAWBA

KERNEL_INCLUDES=/lib/modules/`uname -

r`/build/include \ TO

cd coredrv; make TARGET=TARGET_CATAWBA

KERNEL_INCLUDES=/usr/tmp/linux-

2.6.4/include \

NOTE: Make sure to restore it back to its original from before tar'ing

the folder


[3] STEP 3

Next step is to transfer the "build" folder to "2.6.4-52-smp" folder

referred by the "makefile" as follows:


//Remove any "build" directory and "build" symbolic link.

rm -rf /lib/modules/2.6.4-52-smp/build

cd /lib/modules/2.6.4-52-smp

rm -f build


// Create symbolic links

ln -s /lib/modules/2.6.4-52-smp/buildclean

/lib/modules/2.6.4-52-smp/build

ls -al /lib/modules/2.6.4-52-smp/build


ln -s /ust/tmp/linux-2.6.4 /lib/modules/2.6.4-52-smp/buildclean

ls -al /lib/modules/2.6.4-52-smp/buildclean

************************************************************************

***


Prashant


-----------Fin 2do-------------------

;=======================================================================

; +--\ |\ | +---- | | +---\ ;

; | | | \ | | __ | | |___/ ;

; +--/ | \| | \ | | | \ ;

; | | | +---/ +--- ' +---/ ;

;=======================================================================

-----Original Message-----

From: [email protected] [[email protected]]

Sent: Wednesday, January 05, 2005 1:50 PM

To: vbm linux

Cc: [email protected]

Subject: Driver Help


Hi Prashant, thanks again, I got to ask you 2 questions about the

yesterday's mail:

Note: My Kernel Sources path is "/usr/src/linux-2.6.4-52"

************************************************************************

*****

About Step 2:

[2]your instruction is: "...KERNEL_INCLUDES=/usr/tmp/linux-2.6.4/include

\"


By default in my SuSE /usr/tmp -> /var/tmp

---------------------

linux:/usr # ls tmp

. .. kdecache-benavides kdecache-root vi.recover

---------------------

So "/usr/tmp/linux..." doesnt exist, Do i have to create the path?

because the problem will be seen after tar'ing, because in

"/.../intel-537EP_secure-2.60.80.0/" path, "build -> /usr/tmp/linux...",

so "build" doesnt exist.


************************************************************************

*****

About Step 3:

Your instruction is: "rm -rf /lib/modules/2.6.4-52-smp/build"

About this path:

----------------

linux:/lib/modules # ls

. 2.6.4-52-default 2.6.4-override-default precompiled

.. 2.6.4-override-bigsmp 2.6.4-override-smp scripts

linux:/lib/modules # ls -al 2.6.4-52-default

total 782

drwxr-xr-x 4 root root 424 2004-12-21 22:02 .

drwxr-xr-x 8 root root 256 2004-12-18 19:47 ..

lrwxrwxrwx 1 root root 23 2004-12-18 19:01 build ->

/usr/src/linux-2.6.4-52

drwxr-xr-x 2 root root 1528 2004-12-18 19:01 extra

drwxr-xr-x 11 root root 264 2004-12-18 19:01 kernel

-rw-r--r-- 1 root root 134889 2004-12-21 22:02 modules.alias

-rw-r--r-- 1 root root 69 2004-12-21 22:02 modules.ccwmap

-rw-r--r-- 1 root root 237663 2004-12-21 22:02 modules.dep

-rw-r--r-- 1 root root 517 2004-12-21 22:02 modules.ieee1394map

-rw-r--r-- 1 root root 620 2004-12-21 22:02 modules.inputmap

-rw-r--r-- 1 root root 16174 2004-12-21 22:02 modules.isapnpmap

-rw-r--r-- 1 root root 123586 2004-12-21 22:02 modules.pcimap

-rw-r--r-- 1 root root 104965 2004-12-21 22:02 modules.symbols

-rw-r--r-- 1 root root 156935 2004-12-21 22:02 modules.usbmap

-----------------

The three other /lib/modules directories


2.6.4-override-bigsmp

2.6.4-override-default

2.6.4-override-smp


In the three above directories only exists 2 files: "Itmodem.ko" and

"Itserial.ko", with diferents sizes for all folders. Which directory do

i have to use?


************************************************************************

*****

Daniel Benavides

Computer Science College Student at Universidad Nacional

Bogota, Colombia, South America



[1] My source was installed in usr/tmp. So replace that with /usr/src

[2] I am not sure about these folders. One way to go about it would be

as follows:

When you login, type "uname -r", and then use that folder under

/usr/src


Hope that helps!


------Fin 3ro----------------------------------

;=======================================================================

; +--\ |\ | +---- | | +---\ ;

; | | | \ | | __ | | |___/ ;

; +--/ | \| | \ | | | \ ;

; | | | +---/ +--- ' +---/ ;

;=======================================================================-----Original Message-----

From: [email protected] [[email protected]]

Sent: Thursday, January 06, 2005 2:07 PM

To: vbm linux

Cc: [email protected]

Subject: Driver Help


Hi Prashant.

In all the proccess of 3 steps that you explained, i got to tell you

that:

-After restore the driver.tgz and tar'ing, the

"/...intel-537EP_secure-2.60.80.0/build" path points to

"/usr/tmp/linux-2.6.4/lib/modules/2.6.4-52-smp/build" that doesnt exist.

Because of this i seted up " /..build-> /usr/src/linux-2.6.4-52"


- I modified the driver.tgz file under Xserver, and some other little

things.


Unfortunately, finally i got the same error that before, with one

difference during all the process:

At the now "make 537" i dont receive the Warning about "...system to

CRASH!", so then i dont have to type "make config_sync".

But the messagges after the correct "make 537" (of before's proccess), i

see are the same (9 warnings).

Then in both "make install" shows: "ERROR: Module Intel537 does not

exist in /proc/modules"

This SuSE 91 has not modified, and almost all the installation options

are by default. What can more I do?


Thank you very much for all your help, sincerely,


Daniel Benavides

Computer Science College Student at Universidad Nacional

Bogota, Colombia, South America


PD if you want, i can send the screen dump

Respuesta:---------------


Do you have the following installed

gcc compiler

* glibc-devel-2.3.3-98.i586.rpm

* gcc-3.3.3-41.i586.rpm

* make-3.80-184.i586.rpm

kernel source

* ncurses-5.4-61.3.i586.rpm

* ncurses-5.4-61.3.i586.patch.rpm

* ncurses-devel-5.4-61.3.i586.rpm

* kernel-source-2.6.4-52.src.rpm


I had to manually install the build tolls and the kernel source.

I am attaching my makefile. Try with the following steps:


[1] export KERNEL_SOURCE_PATH=/usr/src/linux-2.6.4-52

Check it with "echo $KERNEL_SOURCE_PATH"

[2] Copy the makefile into your directory

[2] Change the source path on line 45 from

"/usr/tmp/linux-2.6.4/include" to

"/usr/src/linux-2.6.4-52" in the makefile

///////////////////////////////////////////////////////////////////////////////////////////

@echo usage: make [clean] or [install] or [check] or [config_sync] or [uninstall] or [537]


clean:

cd coredrv; make clean

rm -f *.o *.ko


install:

rm -f /etc/hamregistry.bin

bash 537_inst


uninstall:

@echo Uninstalling on system V boot like only.

@rm -f /etc/init.d/537_boot

@rm -f /etc/hamregistry.bin

@rm -f /usr/sbin/usrsound

@rm -f /usr/sbin/hamregistry

@rmmod Intel537 || echo

@rmmod 537.o >/dev/null 2>&1 || echo

@rmmod 537_core.o >/dev/null 2>&1 || echo

@rm -f `find /lib/modules -name Intel537.o`

@rm -f `find /lib/modules -name Intel537.ko`

@killall usrsound || echo

@echo Uninstalling done.


check:

@bash config_check


config_sync:

mv /lib/modules/`uname -r`/build/include/linux/version.h version.bak

mv /lib/modules/`uname -r`/build/include/linux/autoconf.h autoconf.bak

cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h

cp /boot/vmlinuz.autoconf.h /lib/modules/`uname -r`/build/include/linux/autoconf.h


537:

@uname -r|grep "2.6" && \

cd coredrv && make 537core_26 && \

cp Intel537.ko .. && cd .. && \

strip --strip-debug Intel537.ko && \

exit; \

ls Intel537.ko >/dev/null 2>&1 || uname -r | grep "2.6" && echo "Failed to build driver" && exit; \

if [ $(KERNEL_SOURCE_PATH) ]; then \

cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_SOURCE_PATH=$(KERNEL_SOURCE_PATH) "PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \

else \

cd coredrv; make TARGET=TARGET_CATAWBA KERNEL_INCLUDES=/usr/tmp/linux-2.6.4/include \

"PSTN_DEF=-DTARGET_CATAWBA -DTARGET_LINUX -DLINUX" 537core; \

fi ; \

cp Intel537.o .. ; \

if [ -a /boot/vmlinuz.version.h ]; then \

cp /boot/vmlinuz.version.h /lib/modules/`uname -r`/build/include/linux/version.h;\

------------------------------------------------Final 4to----------------

;=======================================================================

; +--\ |\ | +---- | | +---\ ;

; | | | \ | | __ | | |___/ ;

; +--/ | \| | \ | | | \ ;

; | | | +---/ +--- ' +---/ ;

;=======================================================================

Hi prashant Unfortunately i have the same problems with the installation; same 9 warnings when I type "make install", and finally same "ERROR: Module Intel537 does not exist in /proc/modules" when I type "make install". If you have another suggestions please mail me, and if you met another person with similar troubles under SuSE Could you contact me with him, because i had the same experience under SuSE 90 and SuSE 91. Thank you very much for all your help and time.



Hosted by www.Geocities.ws

1