Aller au contenu

install modem sous MDK9.2


Messages recommandés

salut à tous

je viens d'installer la MDK9.2 sur mon portable récemment acquis

c'est un toshiba Satellite A10

apres l'install de la distrib je regarde s'il a tout trouver comme driver mais aparement il na pas trouver le modem

alor je fait un lspci :

00:1f.6 Modem: Intel Corp. 82801DB AC'97 Modem Controller (rev 03)

j'ai lu kelke forum en anglais dont : http://www.triptico.com/software/linux-ts-a30-303.html

g bo télécharger les 2.7.10 of the slmdm drivers ou même les 2.9.6 of the slmdm drivers mais apparement il sont fait pour les noyaux 2.4.21

http://rpm.pbone.net/index.php3/stat/4/idp...3.i586.rpm.html

et moi kan je fé un uname -sr g 2.4.22-10mdk !!!

comment faire kelkun a u le même prob ???

Lien vers le commentaire
Partager sur d’autres sites

bon de fil en aiguille je suis tomber sur cette page http://vgcomputing.com.au/lrtecras1.html#Modem

donc je télécharge les drivers slmdm

je fait le tar xzvf donc ca fé bien un dossier

je v dan le makefile je modifi bien la ligne

ensuite dan le readme il dit de faire ca :

Installation

============

1. Unpack tar.gz package file:

$ gzip -dc slmdm-2.X.X.tar.gz | tar xf -

2. 'cd' to package directory:

$ cd slmdm-2.X.X

3. Review and edit (if need) 'Makefile'.

  Note: Probably you will want to correct in Makefile path to your

        local linux kernel header files:

          KERNEL_INCLUDES=/path/to/linux/include

        Another way is to pass command line the parameter while

        running 'make':

          $ make KERNEL_INCLUDES=/path/to/linux/include ...

4. Run 'make' command to compile package:

$ make

5. Install.

  If you are going to use AMR/CNR/PCI modem type (as superuser):

# make install-amr

  , or

# make install-usb

  if you are going to use USB modem.

  It will install:

  - modem kernel modules slmdm.o (modem core), slfax.o (fax)

    into '/lib/modules/<kernel-version>/misc' directory

    (standard linux modules' directory).

  - hardware specific kernel module slamrmo.o (for AMR/CNR/PCI) or

    slusb.o (for USB) into '/lib/modules/<kernel-version>/misc'

    directory (standard linux modules' directory).

  - country settings data file 'country.dat' into directory '/etc'.

  Also it will:

  - create character tty device entry '/dev/ttySL0' with major

    number 212 and symbolic link 'dev/modem'.

  - config you '/etc/modules.conf' file in order to provide

    possibility for loading the modem modules into kernel on demand

    automatically by kmod, when you are going to use them.

  Note: currently you cannot use both AMR/CNR/PCI and USB Modems.

6. Config modem country.

  You can configure your current country by using module parameters

  'country' or 'country_code'.

  Add 'options' directive line to file '/etc/modules.conf':

options slmdm country=<MyCountry>

  , for example

options slmdm country=USA

  , or use module parameter while module loading:

# modprobe slmdm country=<MyCountry>

  Use 'slver -c' to see list of all supported countries and their

  codes (utility 'slver' may be found in package directory).

  Note: Command ATI7 shows installed country setting.

7. Using the modem.

  Installation will automatically create character tty device entry

  '/dev/ttySL0' with major number 212 and symbolic link '/dev/modem'.

  Use one of them as modem device for your dialing application.

8. Uninstallation.

  In package directory just type:

# make uninstall

donc je modifie le KERNEL_INCLUDES par /usr/include/linux/

je fé le make et bim g cette erreur:

[root@sane79portableMDK slmdm-2.7.10]# make

gcc -Wall -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -I. -I/usr/include  -DMODVERSIONS --include /usr/include/linux/modversions.h -o amrmo_init.o -c amrmo_init.c

In file included from <command line>:D:

/usr/include/linux/modversions.h:1:2: #error "======================================================="

/usr/include/linux/modversions.h:2:2: #error "You should not include /usr/include/{linux,asm}/ header"

/usr/include/linux/modversions.h:3:2: #error "files directly for the compilation of kernel modules."

/usr/include/linux/modversions.h:4:2: #error ""

/usr/include/linux/modversions.h:5:2: #error "glibc now uses kernel header files from a well-defined"

/usr/include/linux/modversions.h:6:2: #error "working kernel version (as recommended by Linus Torvalds)"

/usr/include/linux/modversions.h:7:2: #error "These files are glibc internal and may not match the"

/usr/include/linux/modversions.h:8:2: #error "currently running kernel. They should only be"

/usr/include/linux/modversions.h:9:2: #error "included via other system header files - user space"

/usr/include/linux/modversions.h:10:2: #error "programs should not directly include <linux/*.h> or"

/usr/include/linux/modversions.h:11:2: #error "<asm/*.h> as well."

/usr/include/linux/modversions.h:12:2: #error ""

/usr/include/linux/modversions.h:13:2: #error "To build kernel modules please do the following:"

/usr/include/linux/modversions.h:14:2: #error ""

/usr/include/linux/modversions.h:15:2: #error " o Have the kernel sources installed"

/usr/include/linux/modversions.h:16:2: #error ""

/usr/include/linux/modversions.h:17:2: #error " o Make sure that the symbolic link"

/usr/include/linux/modversions.h:18:2: #error "  /lib/modules/`uname -r`/build exists and points to"

/usr/include/linux/modversions.h:19:2: #error "  the matching kernel source directory"

/usr/include/linux/modversions.h:20:2: #error ""

/usr/include/linux/modversions.h:21:2: #error " o Now copy /boot/vmlinuz.version.h to"

/usr/include/linux/modversions.h:22:2: #error "  /lib/modules/`uname -r`/build/include/linux/version.h"

/usr/include/linux/modversions.h:23:2: #error ""

/usr/include/linux/modversions.h:24:2: #error " o When compiling, make sure to use the following"

/usr/include/linux/modversions.h:25:2: #error "  compiler option to use the correct include files:"

/usr/include/linux/modversions.h:26:2: #error ""

/usr/include/linux/modversions.h:27:2: #error "  -I/lib/modules/`uname -r`/build/include"

/usr/include/linux/modversions.h:28:2: #error ""

/usr/include/linux/modversions.h:29:2: #error "  instead of"

/usr/include/linux/modversions.h:30:2: #error ""

/usr/include/linux/modversions.h:31:2: #error "  -I/usr/include/linux"

/usr/include/linux/modversions.h:32:2: #error ""

/usr/include/linux/modversions.h:33:2: #error "  Please adjust the Makefile accordingly."

/usr/include/linux/modversions.h:34:2: #error "======================================================="

In file included from /usr/include/linux/prefetch.h:13,

                from /usr/include/linux/list.h:6,

                from /usr/include/linux/module.h:11,

                from amrmo_init.c:47:

/usr/include/asm/processor.h:55: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)

/usr/include/asm/processor.h:55: error: requested alignment is not a constant

In file included from /usr/include/linux/module.h:297,

                from amrmo_init.c:47:

/usr/include/linux/version.h:2:2: #error "======================================================="

/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"

/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."

/usr/include/linux/version.h:5:2: #error ""

/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"

/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"

/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"

/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"

/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"

/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"

/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."

/usr/include/linux/version.h:13:2: #error ""

/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"

/usr/include/linux/version.h:15:2: #error ""

/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"

/usr/include/linux/version.h:17:2: #error ""

/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"

/usr/include/linux/version.h:19:2: #error "  /lib/modules/`uname -r`/build exists and points to"

/usr/include/linux/version.h:20:2: #error "  the matching kernel source directory"

/usr/include/linux/version.h:21:2: #error ""

/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"

/usr/include/linux/version.h:23:2: #error "  /lib/modules/`uname -r`/build/include/linux/version.h"

/usr/include/linux/version.h:24:2: #error ""

/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"

/usr/include/linux/version.h:26:2: #error "  compiler option to use the correct include files:"

/usr/include/linux/version.h:27:2: #error ""

/usr/include/linux/version.h:28:2: #error "  -I/lib/modules/`uname -r`/build/include"

/usr/include/linux/version.h:29:2: #error ""

/usr/include/linux/version.h:30:2: #error "  instead of"

/usr/include/linux/version.h:31:2: #error ""

/usr/include/linux/version.h:32:2: #error "  -I/usr/include/linux"

/usr/include/linux/version.h:33:2: #error ""

/usr/include/linux/version.h:34:2: #error "  Please adjust the Makefile accordingly."

/usr/include/linux/version.h:35:2: #error "======================================================="

In file included from amrmo_init.c:47:

/usr/include/linux/module.h:299: error: syntax error before "UTS_RELEASE"

In file included from amrmo_init.c:48:

/usr/include/linux/version.h:2:2: #error "======================================================="

/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"

/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."

/usr/include/linux/version.h:5:2: #error ""

/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"

/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"

/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"

/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"

/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"

/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"

/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."

/usr/include/linux/version.h:13:2: #error ""

/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"

/usr/include/linux/version.h:15:2: #error ""

/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"

/usr/include/linux/version.h:17:2: #error ""

/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"

/usr/include/linux/version.h:19:2: #error "  /lib/modules/`uname -r`/build exists and points to"

/usr/include/linux/version.h:20:2: #error "  the matching kernel source directory"

/usr/include/linux/version.h:21:2: #error ""

/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"

/usr/include/linux/version.h:23:2: #error "  /lib/modules/`uname -r`/build/include/linux/version.h"

/usr/include/linux/version.h:24:2: #error ""

/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"

/usr/include/linux/version.h:26:2: #error "  compiler option to use the correct include files:"

/usr/include/linux/version.h:27:2: #error ""

/usr/include/linux/version.h:28:2: #error "  -I/lib/modules/`uname -r`/build/include"

/usr/include/linux/version.h:29:2: #error ""

/usr/include/linux/version.h:30:2: #error "  instead of"

/usr/include/linux/version.h:31:2: #error ""

/usr/include/linux/version.h:32:2: #error "  -I/usr/include/linux"

/usr/include/linux/version.h:33:2: #error ""

/usr/include/linux/version.h:34:2: #error "  Please adjust the Makefile accordingly."

/usr/include/linux/version.h:35:2: #error "======================================================="

In file included from /usr/include/linux/mm.h:12,

                from /usr/include/linux/slab.h:14,

                from /usr/include/asm/pci.h:37,

                from /usr/include/linux/pci.h:654,

                from amrmo_init.c:50:

/usr/include/linux/mmzone.h:44: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)

/usr/include/linux/mmzone.h:44: error: requested alignment is not a constant

In file included from linux_compat.h:50,

                from amrmo_init.c:53:

/usr/include/linux/version.h:2:2: #error "======================================================="

/usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"

/usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."

/usr/include/linux/version.h:5:2: #error ""

/usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"

/usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"

/usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"

/usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"

/usr/include/linux/version.h:10:2: #error "included via other system header files - user space"

/usr/include/linux/version.h:11:2: #error "programs should not directly include <linux/*.h> or"

/usr/include/linux/version.h:12:2: #error "<asm/*.h> as well."

/usr/include/linux/version.h:13:2: #error ""

/usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"

/usr/include/linux/version.h:15:2: #error ""

/usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"

/usr/include/linux/version.h:17:2: #error ""

/usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"

/usr/include/linux/version.h:19:2: #error "  /lib/modules/`uname -r`/build exists and points to"

/usr/include/linux/version.h:20:2: #error "  the matching kernel source directory"

/usr/include/linux/version.h:21:2: #error ""

/usr/include/linux/version.h:22:2: #error " o Now copy /boot/vmlinuz.version.h to"

/usr/include/linux/version.h:23:2: #error "  /lib/modules/`uname -r`/build/include/linux/version.h"

/usr/include/linux/version.h:24:2: #error ""

/usr/include/linux/version.h:25:2: #error " o When compiling, make sure to use the following"

/usr/include/linux/version.h:26:2: #error "  compiler option to use the correct include files:"

/usr/include/linux/version.h:27:2: #error ""

/usr/include/linux/version.h:28:2: #error "  -I/lib/modules/`uname -r`/build/include"

/usr/include/linux/version.h:29:2: #error ""

/usr/include/linux/version.h:30:2: #error "  instead of"

/usr/include/linux/version.h:31:2: #error ""

/usr/include/linux/version.h:32:2: #error "  -I/usr/include/linux"

/usr/include/linux/version.h:33:2: #error ""

/usr/include/linux/version.h:34:2: #error "  Please adjust the Makefile accordingly."

/usr/include/linux/version.h:35:2: #error "======================================================="

In file included from amrmo_init.c:53:

linux_compat.h:55:40: missing binary operator before token "("

linux_compat.h:77:40: missing binary operator before token "("

linux_compat.h:91:40: missing binary operator before token "("

linux_compat.h:98:41: missing binary operator before token "("

amrmo_init.c: In function `amrmo_probe':

amrmo_init.c:320: warning: implicit declaration of function `pci_request_regions'

amrmo_init.c:326: warning: implicit declaration of function `pci_release_regions'

amrmo_init.c: In function `amrmo_init':

amrmo_init.c:387: warning: implicit declaration of function `pci_dev_driver'

make: *** [amrmo_init.o] Erreur 1

donc je c plus koi faire (je suis un newbie moi !)

dans le readme ya aussi un truc pour faire le rpm mais ca me mé la même erreur :D

Lien vers le commentaire
Partager sur d’autres sites

  • 2 semaines après...

salut,

apparemment linux pose énormément de pb d'installation pour les modem...j'ai aussi essayé un driver de modem sans résultat...

linux(mandrake 9.2) reconnait ma cle usb quand il veut...je dirais qu'il la reconnait 1 fois 10....

A quand une version conviviale et compétitive???????????

:D:pleure:

Lien vers le commentaire
Partager sur d’autres sites

J'avais le même genre d'erreur en voulant compiler le driver du modem sagem 908 sous la 9.2.

Je pense que ca vient de la version de gcc utilisée. Quelle version de gcc possèdes-tu ?

Gyan

celle kil y a d'origine dans la MDK , je c pas lakelle c , par contre

Lien vers le commentaire
Partager sur d’autres sites

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×
×
  • Créer...