PDA

Visualizza la versione completa : Problemi con modem


luidec
28-09-2005, 15:09
Ciao.
Ho da pochi giorni installato sul mio portatile, un acer travelmate 225, linux mandrake 9.1.
Mi ha riconosciuto tutto tranne il modem incorporato e il modem USB (URMET) fornito da Tiscali a cui sono abbonato per l'adsl.
Ho scaricato dei driver che dovrebbero permettere a linux di riconoscere i due dispositivi ma sono troppo alle prime armi e non riesco ad installarli.
Qualcuno sa dirmi se passando a qualche distibuzione più recente posso risolvere questi problemi.

Grazie.

Highway Star
28-09-2005, 17:02
Ciao,
per quanto riguarda il tuo portatile guarda questo link:
Linux on Acer TravelMate 225X (220 Series) (http://zdeeck.borg.cz/linuxhw/acertm.phtml)

Per il modem USB ti passo questo link:
Installare e Configurare Modem Adsl Usb su Linux (http://www.p2pforum.it/forum/showthread.php?t=21440) il tuo c'è nell'elenco :zizi:

Ciao :ciauz:

luidec
29-09-2005, 00:22
Ho iniziato a lavorare suk modem interno.
Ho scaricato i driver e ho provato ad installarli (e tutto molto più complicato che con windows); ho prima lanciato il make e poi il make install ma con quest'ultimo ho ricevuto il seguente errore:
from amrmo_init.c:52:
[root@localhost slmodem-2.9.10]# make install
make -C modem all
make[1]: Entering directory `/modem/slmodem-2.9.10/modem'
make[1]: Leaving directory `/modem/slmodem-2.9.10/modem'
make -C drivers KERNEL_DIR=/lib/modules/2.4.21-0.13mdk/build
make[1]: Entering directory `/modem/slmodem-2.9.10/drivers'
cc -I/lib/modules/2.4.21-0.13mdk/build/include -o kernel-ver kernel-ver.c
make all KERNEL_VER=2.4.21
make[2]: Entering directory `/modem/slmodem-2.9.10/drivers'
cc -Wall -pipe -O3 -fomit-frame-pointer -D__KERNEL__ -DMODULE -DEXPORT_SYMTAB -DMODVERSIONS --include /lib/modules/2.4.21-0.13mdk/build/include/linux/modversions.h -I/lib/modules/2.4.21-0.13mdk/build/include -I. -I./../modem -o amrmo_init.o -c amrmo_init.c
<command line>:137971759:18488: /lib/modules/2.4.21-0.13mdk/build/include/linux/modversions.h: No such file or directory
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: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/processor.h:55: 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: parse error before "UTS_RELEASE"
/usr/include/linux/module.h: In function `print_symbol':
/usr/include/linux/module.h:433: `ESRCH' undeclared (first use in this function)
/usr/include/linux/module.h:433: (Each undeclared identifier is reported only once
/usr/include/linux/module.h:433: for each function it appears in.)
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/asm/hardirq.h:6,
from /usr/include/linux/interrupt.h:46,
from amrmo_init.c:52:
/usr/include/linux/irq.h: At top level:
/usr/include/linux/irq.h:65: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/irq.h:65: requested alignment is not a constant
In file included from /usr/include/linux/interrupt.h:46,
from amrmo_init.c:52:
/usr/include/asm/hardirq.h:16: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/asm/hardirq.h:16: requested alignment is not a constant
In file included from amrmo_init.c:52:
/usr/include/linux/interrupt.h:129: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
/usr/include/linux/interrupt.h:129: requested alignment is not a constant
amrmo_init.c:58:40: missing binary operator before '('
amrmo_init.c:65:26: linux/device.h: No such file or directory
amrmo_init.c: In function `amrmo_open':
amrmo_init.c:427: warning: implicit declaration of function `iminor'
amrmo_init.c: At top level:
amrmo_init.c:484: parse error before "amrmo_pci_interrupt"
amrmo_init.c:485: warning: return type defaults to `int'
amrmo_init.c: In function `amrmo_pci_interrupt':
amrmo_init.c:488: `IRQ_HANDLED' undeclared (first use in this function)
amrmo_init.c: In function `amrmo_pci_probe':
amrmo_init.c:548: warning: implicit declaration of function `pci_request_regions'
amrmo_init.c:560: warning: implicit declaration of function `pci_release_regions'
amrmo_init.c:569: warning: passing arg 2 of `request_irq' from incompatible pointer type
amrmo_init.c:623: warning: implicit declaration of function `class_simple_device_add'
amrmo_init.c:624: warning: implicit declaration of function `devfs_mk_cdev'
amrmo_init.c: In function `amrmo_pci_remove':
amrmo_init.c:655: warning: implicit declaration of function `class_simple_device_remove'
amrmo_init.c:656: warning: implicit declaration of function `devfs_remove'
amrmo_init.c: In function `amrmo_init':
amrmo_init.c:712: warning: implicit declaration of function `pci_dev_driver'
amrmo_init.c:721: warning: implicit declaration of function `get_device'
amrmo_init.c:721: structure has no member named `dev'
amrmo_init.c:721: warning: initialization makes pointer from integer without a cast
amrmo_init.c:725: dereferencing pointer to incomplete type
amrmo_init.c:725: dereferencing pointer to incomplete type
amrmo_init.c:727: warning: implicit declaration of function `device_release_driver'
amrmo_init.c:728: warning: implicit declaration of function `put_device'
amrmo_init.c:735: warning: implicit declaration of function `class_simple_create'
amrmo_init.c:735: warning: assignment makes pointer from integer without a cast
amrmo_init.c:746: warning: implicit declaration of function `class_simple_destroy'
make[2]: *** [amrmo_init.o] Error 1
make[2]: Leaving directory `/modem/slmodem-2.9.10/drivers'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/modem/slmodem-2.9.10/drivers'
make: *** [drivers] Error 2

Qualcuno sa dirmi cosa devo fare (in parole molto semplici).

Grazie.

Highway Star
29-09-2005, 00:38
/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 effetti leggendo l'errore ti viene proposta anche la soluzione, in pratica ti dice che:

- per compilare il modulo del kernel (il driver) devi avere installati i sorgenti del kernel, perciò se non ci sono installali;

- assicurati che il link simbolico /lib/modules/`uname -r`/build esista e punti alla directory corretta (uname -r è il comando per ottenere la versione del kernel installato sul sistema)

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

- infine quando compili assicurati che il Makefile contenga la stringa "-I/lib/modules/`uname -r`/build/include" correggendolo a mano nel caso servisse.

Spero di non averti confuso ancora di più le idee :D

luidec
10-10-2005, 12:49
mi continua a dare sempre lo stesso errore... ci rinuncio.
Provo ad installare Debian che a quanto pare dovrebbe riconoscere il modem interno e provo a ripartire da zero.

Grazie della'aiuto ma probabilmente (anzi sicuramente) sono messo ancora troppo male per queste operazioni complicate in linux!!!

Loading