Configurando o Modem HSP56 Micromodem no Linux
Este artigo/tutorial aborda a configuração passo-a-passo do modem HSP56.
Você vai ver que a configuração desse modelo de hardware é mais fácil do
que se imagina.
Você vai ver que a configuração desse modelo de hardware é mais fácil do
que se imagina.
Introdução
Bom, é bem simples configurar esse modem. Primeiro você tem que baixar o driver do modem.
No nosso caso usaremos o pctel-0.9.6.tar.gz, você pode baixá-lo no endereço:
Este driver é valido para kernel 2.4, se o seu é 2.2 este tutorial não te ajudará!
Se o seu modem é offboard ou a sua placa de som é SIS, de uma olhada nas observações do final deste tutorial.
Fiz tudo como root, mas você só precisará mesmo dos privilégios para os 3 últimos comandos.
Descompacte o arquivo:
# tar -xvzf pctel-0.9.6.tar.gz
acesse a pasta
# cd pctel-0.9.6
Para descobrir o modelo de sua placa de som, basta executar o comando lspci e observar sua saída. No meu caso, tenho uma CM8738. Veja:
Se o seu modem é offboard ou a sua placa de som é SIS, de uma olhada nas observações do final deste tutorial.
Fiz tudo como root, mas você só precisará mesmo dos privilégios para os 3 últimos comandos.
Descompacte o arquivo:
# tar -xvzf pctel-0.9.6.tar.gz
acesse a pasta
# cd pctel-0.9.6
Para descobrir o modelo de sua placa de som, basta executar o comando lspci e observar sua saída. No meu caso, tenho uma CM8738. Veja:
00:09.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
00:09.1 Communication controller: C-Media Electronics Inc CM8738 (rev 10)
00:09.1 Communication controller: C-Media Electronics Inc CM8738 (rev 10)
Feito isto você vai dar os seguintes comandos:
# ./configure --with-hal=cm8738 --with-kernel-includes=/usr/src/linux/include
# make
# make install
# insmod pctel
# insmod ptserial
Após a seqüência, o comando "tail /var/log/messages" deverá te retornar algo parecido com:
May 16 23:28:17 suba kernel: PCTel initialization. Country code is 2.
May 16 23:28:17 suba kernel: PCTel device[00:11.0](0x88) found "PCTel Inc HSP MicroModem 56 (rev 01)" IOBASE 0xe800 IRQ 9.
May 16 23:28:17 suba kernel: PCTel driver version 0.9.6 [5.05c-4.27.215 (09-14-2001)]] (PCT789) (2001-08-18) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled.
May 16 23:28:17 suba kernel: PCTel driver built on [Linux 2.4.8 i686 unknown] with [2.95.3].
May 16 23:28:17 suba kernel: ttyS15 at 0xe800 (irq = 9) is a PCtel
May 16 23:28:17 suba kernel: PCTel device[00:11.0](0x88) found "PCTel Inc HSP MicroModem 56 (rev 01)" IOBASE 0xe800 IRQ 9.
May 16 23:28:17 suba kernel: PCTel driver version 0.9.6 [5.05c-4.27.215 (09-14-2001)]] (PCT789) (2001-08-18) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled.
May 16 23:28:17 suba kernel: PCTel driver built on [Linux 2.4.8 i686 unknown] with [2.95.3].
May 16 23:28:17 suba kernel: ttyS15 at 0xe800 (irq = 9) is a PCtel
Prontinho, seu modem está instalado!!!
Obs.:
- Se a sua placa de som for offboard, mude a linha:
./configure --with-hal=cm8738 --with-kernel-includes=/usr/src/linux/include
para:
./configure --with-hal=pct789
- Se a sua placa de som for SIS, o ./configure deverá ficar assim:
./configure --with-hal=sis --with-kernel-includes=/usr/src/linux/include
Para o modem ser ativado sempre que iniciar o Linux, edite o arquivo /etc/rc.d/rc.local e coloque no final dele as duas linhas do insmod.
Espero que eu tenha ajudado...
[]´s
-=[bAd_TuX]=-
Páginas do artigo
1. IntroduçãoOutros artigos deste autor
Configurando um servidor de logs simples
Configurando placa de som CMI8738
Leitura recomendada
Atheros Wireless + Slackware 12.0
Slackware - Instalação com Tagfiles
Comentários
tentei de todo jeito instalar esse modem do jeito descrito aqui e não consegui, existe algum passo especial que não tenha sido citado aqui?
eu consegui até um certo ponto
no fim do ./configure etc...etc..
na linha depis do gcc deu um erro falando que o compilador nao pode driar os executaveis
alguém sabe como resolver?
grato!
no fim do ./configure etc...etc..
na linha depis do gcc deu um erro falando que o compilador nao pode driar os executaveis
alguém sabe como resolver?
grato!
qual a distro que vc ta utilizando?
lindberg
lindberg
Senhores. Eu sequer passei da primeira fase. pois o site http://www.linuxajuda.com.br/download/pctel-0.9.6.tar.gz simplesmente não existe! Alguma alma caridosa poderia me dizer onde o papai aqui pode conseguir o meledetto arquivo???
Gracias, thanks, Arigatô, Obrigado, dank!
Gracias, thanks, Arigatô, Obrigado, dank!
eu baixei o meu no emule mas apare um monte de resultados no google
Eu fui instalar o modem no meu linux mandrake 9.0 e nao deu certo pois quando digitei o configure ocorreu o seguinte erro
./configure --with-hal=cm8738 --with-kernel-includes=/usr/src/linux/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build driver for... HAL_CM8738
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
./configure --with-hal=cm8738 --with-kernel-includes=/usr/src/linux/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build driver for... HAL_CM8738
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
você tem que instalar o gcc e as bibliotecas task-c task-c++
você tem que instalar o gcc e as bibliotecas task-c e task-c++
Não usem esse driver! Usem o slmdm!!! Procurem por isso aqui no site q tem um dica. O driver pctel não funciona com som enquanto o slmdm sim!
Olá Jefferson, td legal?
Tentei instalar conforme vc instruiu neste artigo e veja só as msgs:
Se puder me dar uma "mãozinha" agradeço muitíssimo!!!
[root@lela pctel-0.9.6]# ./configure --with-hal=cm8738 --with-kernel-includes=/usr/src/linux-2.6.5-63077cl/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build driver for... HAL_CM8738
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking /usr/src/linux-2.6.5-63077cl//linux/modversions.h usability... no
checking /usr/src/linux-2.6.5-63077cl//linux/modversions.h presence... no
checking for /usr/src/linux-2.6.5-63077cl//linux/modversions.h... no
configure: error: modversions.h is missing - you should configure your kernel first!
[root@lela pctel-0.9.6]#
Tentei instalar conforme vc instruiu neste artigo e veja só as msgs:
Se puder me dar uma "mãozinha" agradeço muitíssimo!!!
[root@lela pctel-0.9.6]# ./configure --with-hal=cm8738 --with-kernel-includes=/usr/src/linux-2.6.5-63077cl/
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking build driver for... HAL_CM8738
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gawk... (cached) gawk
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking /usr/src/linux-2.6.5-63077cl//linux/modversions.h usability... no
checking /usr/src/linux-2.6.5-63077cl//linux/modversions.h presence... no
checking for /usr/src/linux-2.6.5-63077cl//linux/modversions.h... no
configure: error: modversions.h is missing - you should configure your kernel first!
[root@lela pctel-0.9.6]#
Olá, Jefferson
Tentei e consegui que o modversions.h fosse encontrado em meu sistema, porém seguindo o README do driver executei o seguinte comando: make clean e houve estas msgs de erro:
ptmodule.c: In function `Pctel_module_init':
ptmodule.c:19: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux-2.6.5-63077cl/include/linux/module.h:540)
ptmodule.c: In function `Pctel_module_free':
ptmodule.c:24: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux-2.6.5-63077cl/include/linux/module.h:552)
ptmodule.c: In function `Pctel_module_is_free':
ptmodule.c:29: error: `MOD_IN_USE' undeclared (first use in this function)
ptmodule.c:29: error: (Each undeclared identifier is reported only once
ptmodule.c:29: error: for each function it appears in.)
make[2]: ** [ptmodule.o] Erro 1
make[2]: Leaving directory `/root/tmp/pctel-modem/pctel-0.9.6/src/module'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/root/tmp/pctel-modem/pctel-0.9.6/src'
make: ** [all-recursive] Erro 1
[root@lela pctel-0.9.6]#
Tentei e consegui que o modversions.h fosse encontrado em meu sistema, porém seguindo o README do driver executei o seguinte comando: make clean e houve estas msgs de erro:
ptmodule.c: In function `Pctel_module_init':
ptmodule.c:19: warning: `MOD_INC_USE_COUNT' is deprecated (declared at /usr/src/linux-2.6.5-63077cl/include/linux/module.h:540)
ptmodule.c: In function `Pctel_module_free':
ptmodule.c:24: warning: `MOD_DEC_USE_COUNT' is deprecated (declared at /usr/src/linux-2.6.5-63077cl/include/linux/module.h:552)
ptmodule.c: In function `Pctel_module_is_free':
ptmodule.c:29: error: `MOD_IN_USE' undeclared (first use in this function)
ptmodule.c:29: error: (Each undeclared identifier is reported only once
ptmodule.c:29: error: for each function it appears in.)
make[2]: ** [ptmodule.o] Erro 1
make[2]: Leaving directory `/root/tmp/pctel-modem/pctel-0.9.6/src/module'
make[1]: ** [all-recursive] Erro 1
make[1]: Leaving directory `/root/tmp/pctel-modem/pctel-0.9.6/src'
make: ** [all-recursive] Erro 1
[root@lela pctel-0.9.6]#
Caro Jefferson Fernando Noronha.
Fiz tudo o que tinha que fazer no seu tutorial mas a partir do comando
#make não deu mais certo
apareceu uma mensagem dizendo o seguinte traduzindo para o portugues: "Alvo não encontrado"
O que devo fazer???
Grato.
Fiz tudo o que tinha que fazer no seu tutorial mas a partir do comando
#make não deu mais certo
apareceu uma mensagem dizendo o seguinte traduzindo para o portugues: "Alvo não encontrado"
O que devo fazer???
Grato.
Alguém sabe de algum que funciona com o kernel 2.6.10 ???
Bom Jefferson tudo blz..
Eu sou novo no linux instalei esse dias o Kurunin Linux 5.0
E tentei conectarsse a internet e não consegui porque o sistema não achava o meu modem hsp56 micromodem queria q por gentileza me passasse bem detalhado como fazer para configurá-lo.
Agradeço deste já..
um abraço
se puder mande e-mail para si-unc-canoinhas@click21.com.br
Eu sou novo no linux instalei esse dias o Kurunin Linux 5.0
E tentei conectarsse a internet e não consegui porque o sistema não achava o meu modem hsp56 micromodem queria q por gentileza me passasse bem detalhado como fazer para configurá-lo.
Agradeço deste já..
um abraço
se puder mande e-mail para si-unc-canoinhas@click21.com.br
Tenho essa mesmo problema,.. as coisas q eles estao pedindo pra fazer sao mto complicadas,.. e preciso ser um Expert,.. o windows ganha disparado na facilidade de fazer ser coisas mas linux tb ganha com outras, mas no geral para usuarios leigos o windows ainda e a melhor opção,.. eustou tentando migrar para o linux,. mas ta mto complicado,.principalmente em relação aos drivers,.. se conseguisse pelo menos cong o modem,.. pois parece q esses drivers sao baixados da internet pelo proprio Linux,... mas tenho q por meu modem pra funfa,,. Help-me,.. se tiver alguma forma mais simples de fazer isso me manda um email,... gutsk8@msn.com
Para instalar o modem no meu pc eu demorei mais ou menos uns 6 meses apanhando nessa instalação. Com um pouco de paciencia eu aprendi o que deve ser feito... Baixando os drivers correspondentes ao Kernel de suas máquinas e dando uma lida no arquivo README que acompanha os drivers, os passos descritos acima serao o bastante para que o Driver seja configurado e carregado no Linux. Uma dica que dou a vocês é tentar isso utilizando a instalação completa do Linux, afim de evitar dependencias. Um passo que faltou o Autor colocar no artigo é como criar o link do driver instalado para o dispositivo modem pois no resultado obtido pelo comando tail o modem estava no dispositivo "ttyS15". Prestem bem atencao no dispositivo apontado na linha de comando porque isso pode variar de pc para pc, e era justamente nesse passo que eu errava. Quem quiser escreva-me falecomorubens@hotmail.com ou bomberman_svc@hotmail.com
Olha ae o que deu... Ve ae o que posso fazer, me ajude, to precisando o mais rapido possivel. Flw:
root@ubuntu:/home/demis/Desktop/pctel-0.9.6# ./configure --with-hal=sis --with-kernel-includes=/usr/linux/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking build driver for... HAL_I8XX
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gawk... (cached) mawk
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking /usr/linux/include/linux/modversions.h usability... no
checking /usr/linux/include/linux/modversions.h presence... no
checking for /usr/linux/include/linux/modversions.h... no
configure: error: modversions.h is missing - you should configure your kernel first!
root@ubuntu:/home/demis/Desktop/pctel-0.9.6# ./configure --with-hal=sis --with-kernel-includes=/usr/linux/include
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets ${MAKE}... yes
checking build driver for... HAL_I8XX
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking whether make sets ${MAKE}... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gawk... (cached) mawk
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking /usr/linux/include/linux/modversions.h usability... no
checking /usr/linux/include/linux/modversions.h presence... no
checking for /usr/linux/include/linux/modversions.h... no
configure: error: modversions.h is missing - you should configure your kernel first!
ae gente esse driver é pra kernel 2.4 , será que da pra instalar o mesmo com o kernel 2.6 ??
depois tem que incluir no arquivo /etc/rc.d/rc.local as linhas :
insmod -f pctel
insmod -f ptserial
seria isso ?
insmod -f pctel
insmod -f ptserial
seria isso ?