Modem LM I56N LG (Help)

Iniciado por yark, 23 de Maio de 2007, 03:48

tópico anterior - próximo tópico

yark

ubuntu 7.04
Modem LM I56N

Tentei alguns link's aqui do forúm mesmo sem resultado. Tentei usar o wvdial e minicom más nem instalar eles instalam. Não sei se tá reconhecendo o modem.. .Enfim, não to sabendo como agir com esse modem. Alguem tem algo que ajude ae, com link's pra baixar atualizados. Tem até uns arquivos de outros tópicos que não existem já nos servidores e talz.

Tô muito interessado em mudar de plataforma más tá soda pra newbie em Linux =\ Se alguem puder ajudar pelo omenos a me conectar na internet.

E outra, o su dele no terminal não aceita minha senha padrão de administrador... Ele também não tem codec's p/ mp3 não? Andei reparando isso...

Abraços :@

yark

Tentei un's tutoriais. Meus novos problemas esá nesse log, se puderem dar uma olhada e me dizer como agir... tô reaumente perdido! o log do modem http://users.cjb.net/yark/logdomodem.txt Obrigado!

yark


yark

yark@YARK:~/slmodem-2.9.10$ make
make -C modem all
make[1]: Entrando no diretório `/home/yark/slmodem-2.9.10/modem'
gcc -Wall -g -O -I. -DCONFIG_DEBUG_MODEM   -o modem_main.o -c modem_main.c
modem_main.c:45:20: error: unistd.h: Arquivo ou diretório inexistente
modem_main.c:46:20: error: stdlib.h: Arquivo ou diretório inexistente
modem_main.c:47:19: error: stdio.h: Arquivo ou diretório inexistente
modem_main.c:48:20: error: string.h: Arquivo ou diretório inexistente
modem_main.c:49:19: error: errno.h: Arquivo ou diretório inexistente
modem_main.c:50:21: error: termios.h: Arquivo ou diretório inexistente
modem_main.c:51:19: error: fcntl.h: Arquivo ou diretório inexistente
modem_main.c:52:23: error: sys/types.h: Arquivo ou diretório inexistente
modem_main.c:53:22: error: sys/stat.h: Arquivo ou diretório inexistente
modem_main.c:54:23: error: sys/ioctl.h: Arquivo ou diretório inexistente
modem_main.c:55:22: error: sys/mman.h: Arquivo ou diretório inexistente
modem_main.c:56:19: error: sched.h: Arquivo ou diretório inexistente
modem_main.c:57:20: error: signal.h: Arquivo ou diretório inexistente
In file included from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/syslimits.h:7,
                 from /usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:11,
                 from modem_main.c:58:
/usr/lib/gcc/i486-linux-gnu/4.1.2/include/limits.h:122:61: error: limits.h: Arquivo ou diretório inexistente
modem_main.c:59:17: error: grp.h: Arquivo ou diretório inexistente
In file included from ./modem.h:49,
                 from modem_main.c:67:
./modem_defs.h:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u8’
./modem_defs.h:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u16’
./modem_defs.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘u32’
./modem_defs.h:54: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s8’
./modem_defs.h:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s16’
./modem_defs.h:56: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘s32’
In file included from ./modem.h:50,
                 from modem_main.c:67:
./modem_homolog.h:53: error: expected specifier-qualifier-list before ‘u8’
./modem_homolog.h:103: error: expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘id’
In file included from ./modem.h:51,
                 from modem_main.c:67:
./modem_dp.h:82: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem_dp.h:83: error: expected declaration specifiers or ‘...’ before ‘u8’
In file included from modem_main.c:67:
./modem.h:138: error: expected specifier-qualifier-list before ‘u16’
./modem.h:174: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:175: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:191: error: expected specifier-qualifier-list before ‘u16’
./modem.h:219: error: expected specifier-qualifier-list before ‘u8’
./modem.h:263: error: field ‘termios’ has incomplete type
./modem.h:319: error: expected specifier-qualifier-list before ‘u8’
./modem.h:340: error: expected specifier-qualifier-list before ‘u32’
./modem.h:342: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:343: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:354: error: expected specifier-qualifier-list before ‘u8’
./modem.h:371: error: expected specifier-qualifier-list before ‘u8’
./modem.h:436: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:437: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:439: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:440: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:442: error: expected declaration specifiers or ‘...’ before ‘u8’
./modem.h:443: error: expected declaration specifiers or ‘...’ before ‘u8’
modem_main.c:94: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘modem_perm’
modem_main.c: In function ‘modemap_start’:
modem_main.c:470: warning: implicit declaration of function ‘ioctl’
modem_main.c:474: warning: implicit declaration of function ‘memset’
modem_main.c:474: warning: incompatible implicit declaration of built-in function ‘memset’
modem_main.c:475: warning: implicit declaration of function ‘write’
modem_main.c: In function ‘mdm_device_read’:
modem_main.c:517: warning: implicit declaration of function ‘read’
modem_main.c: In function ‘mdm_device_setup’:
modem_main.c:531: error: storage size of ‘stbuf’ isn’t known
modem_main.c:533: warning: incompatible implicit declaration of built-in function ‘memset’
modem_main.c:534: warning: implicit declaration of function ‘stat’
modem_main.c:536: warning: implicit declaration of function ‘fprintf’
modem_main.c:536: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:536: error: ‘stderr’ undeclared (first use in this function)
modem_main.c:536: error: (Each undeclared identifier is reported only once
modem_main.c:536: error: for each function it appears in.)
modem_main.c:536: warning: implicit declaration of function ‘strerror’
modem_main.c:536: error: ‘errno’ undeclared (first use in this function)
modem_main.c:536: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
modem_main.c:539: warning: implicit declaration of function ‘S_ISCHR’
modem_main.c:540: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:544: warning: implicit declaration of function ‘open’
modem_main.c:544: error: ‘O_RDWR’ undeclared (first use in this function)
modem_main.c:546: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:546: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
modem_main.c:550: warning: implicit declaration of function ‘minor’
modem_main.c:531: warning: unused variable ‘stbuf’
modem_main.c: In function ‘mdm_device_release’:
modem_main.c:556: warning: implicit declaration of function ‘close’
modem_main.c: At top level:
modem_main.c:566: error: ‘PATH_MAX’ undeclared here (not in a function)
modem_main.c: In function ‘create_pty’:
modem_main.c:570: error: storage size of ‘termios’ isn’t known
modem_main.c:577: warning: implicit declaration of function ‘getpt’
modem_main.c:578: warning: implicit declaration of function ‘grantpt’
modem_main.c:578: warning: implicit declaration of function ‘unlockpt’
modem_main.c:579: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:579: error: ‘stderr’ undeclared (first use in this function)
modem_main.c:579: error: ‘errno’ undeclared (first use in this function)
modem_main.c:579: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:587: warning: implicit declaration of function ‘tcgetattr’
modem_main.c:589: warning: implicit declaration of function ‘cfmakeraw’
modem_main.c:590: warning: implicit declaration of function ‘cfsetispeed’
modem_main.c:590: error: ‘B115200’ undeclared (first use in this function)
modem_main.c:591: warning: implicit declaration of function ‘cfsetospeed’
modem_main.c:594: warning: implicit declaration of function ‘tcsetattr’
modem_main.c:594: error: ‘TCSANOW’ undeclared (first use in this function)
modem_main.c:596: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:596: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:600: warning: implicit declaration of function ‘fcntl’
modem_main.c:600: error: ‘F_SETFL’ undeclared (first use in this function)
modem_main.c:600: error: ‘O_NONBLOCK’ undeclared (first use in this function)
modem_main.c:602: warning: implicit declaration of function ‘ptsname’
modem_main.c:602: warning: assignment makes pointer from integer without a cast
modem_main.c:610: warning: implicit declaration of function ‘getgrnam’
modem_main.c:610: warning: initialization makes pointer from integer without a cast
modem_main.c:612: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:612: warning: format ‘%s’ expects type ‘char *’, but argument 4 has type ‘int’
modem_main.c:616: warning: implicit declaration of function ‘chown’
modem_main.c:616: error: dereferencing pointer to incomplete type
modem_main.c:618: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:618: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
modem_main.c:624: warning: implicit declaration of function ‘chmod’
modem_main.c:624: error: ‘modem_perm’ undeclared (first use in this function)
modem_main.c:626: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:626: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
modem_main.c:631: warning: implicit declaration of function ‘unlink’
modem_main.c:632: warning: implicit declaration of function ‘symlink’
modem_main.c:633: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:633: warning: format ‘%s’ expects type ‘char *’, but argument 5 has type ‘int’
modem_main.c:638: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:570: warning: unused variable ‘termios’
modem_main.c: At top level:
modem_main.c:658: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘keep_running’
modem_main.c: In function ‘mark_termination’:
modem_main.c:663: error: ‘keep_running’ undeclared (first use in this function)
modem_main.c: In function ‘modem_run’:
modem_main.c:669: error: storage size of ‘tmo’ isn’t known
modem_main.c:670: error: ‘fd_set’ undeclared (first use in this function)
modem_main.c:670: error: expected ‘;’ before ‘rset’
modem_main.c:671: error: storage size of ‘termios’ isn’t known
modem_main.c:677: error: ‘keep_running’ undeclared (first use in this function)
modem_main.c:691: warning: implicit declaration of function ‘FD_ZERO’
modem_main.c:691: error: ‘rset’ undeclared (first use in this function)
modem_main.c:692: error: ‘eset’ undeclared (first use in this function)
modem_main.c:694: warning: implicit declaration of function ‘FD_SET’
modem_main.c:709: warning: implicit declaration of function ‘select’
modem_main.c:709: error: ‘NULL’ undeclared (first use in this function)
modem_main.c:712: error: ‘errno’ undeclared (first use in this function)
modem_main.c:712: error: ‘EINTR’ undeclared (first use in this function)
modem_main.c:714: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:714: error: ‘stderr’ undeclared (first use in this function)
modem_main.c:714: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:721: warning: implicit declaration of function ‘FD_ISSET’
modem_main.c:732: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:732: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:742: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:742: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:767: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:767: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:776: warning: incompatible implicit declaration of built-in function ‘memset’
modem_main.c:779: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:779: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:783: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:794: warning: implicit declaration of function ‘memcmp’
modem_main.c:806: error: ‘EAGAIN’ undeclared (first use in this function)
modem_main.c:810: error: ‘EIO’ undeclared (first use in this function)
modem_main.c:813: error: ‘HUPCL’ undeclared (first use in this function)
modem_main.c:818: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:830: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:830: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:839: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:671: warning: unused variable ‘termios’
modem_main.c:669: warning: unused variable ‘tmo’
modem_main.c: In function ‘modem_main’:
modem_main.c:857: warning: implicit declaration of function ‘basename’
modem_main.c:857: warning: passing argument 1 of ‘modem_debug_init’ makes pointer from integer without a cast
modem_main.c:861: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:861: error: ‘stderr’ undeclared (first use in this function)
modem_main.c:862: warning: implicit declaration of function ‘exit’
modem_main.c:862: warning: incompatible implicit declaration of built-in function ‘exit’
modem_main.c:870: warning: implicit declaration of function ‘sprintf’
modem_main.c:870: warning: incompatible implicit declaration of built-in function ‘sprintf’
modem_main.c:872: warning: passing argument 2 of ‘modem_create’ makes pointer from integer without a cast
modem_main.c:873: warning: assignment makes pointer from integer without a cast
modem_main.c:879: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:880: warning: incompatible implicit declaration of built-in function ‘exit’
modem_main.c:883: warning: incompatible implicit declaration of built-in function ‘fprintf’
modem_main.c:886: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:890: error: storage size of ‘prm’ isn’t known
modem_main.c:891: warning: implicit declaration of function ‘mlockall’
modem_main.c:891: error: ‘MCL_CURRENT’ undeclared (first use in this function)
modem_main.c:891: error: ‘MCL_FUTURE’ undeclared (first use in this function)
modem_main.c:892: error: ‘errno’ undeclared (first use in this function)
modem_main.c:892: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:894: warning: implicit declaration of function ‘sched_get_priority_max’
modem_main.c:894: error: ‘SCHED_FIFO’ undeclared (first use in this function)
modem_main.c:895: warning: implicit declaration of function ‘sched_setscheduler’
modem_main.c:896: warning: format ‘%s’ expects type ‘char *’, but argument 3 has type ‘int’
modem_main.c:890: warning: unused variable ‘prm’
modem_main.c:901: warning: implicit declaration of function ‘signal’
modem_main.c:901: error: ‘SIGINT’ undeclared (first use in this function)
modem_main.c:902: error: ‘SIGTERM’ undeclared (first use in this function)
modem_main.c:915: warning: implicit declaration of function ‘usleep’
modem_main.c:928: warning: incompatible implicit declaration of built-in function ‘exit’
modem_main.c:851: warning: unused variable ‘path_name’
make[1]: ** [modem_main.o] Erro 1
make[1]: Saindo do diretório `/home/yark/slmodem-2.9.10/modem'
make: ** [modem] Erro 2
yark@YARK:~/slmodem-2.9.10$


Alguem helpá ae ;\

yark

problema resolvido de compilação

ta faltando agora so o driver certo.. nenhum do forum deu certo

alarcon

Se você puder reinstalar o ubuntu 7.04, veja este tópico aqui:

http://ubuntuforum-pt.org/index.php/topic,4204.msg113490.html#msg113490

Lá você terá um link para baixar um pacote que fiz chamado de modem-arquivos-v16.tar.gz que tem tudo para ativar os modems que usam o driver smartlink.

Se você não sabe como descompactar o arquivo baixado faça assim:

- coloque o arquivo baixado na sua pasta de usuário na /home/

- clique com o botão direito sobre o arquivo e escolha a opção extrair aqui. Depois é só ler o arquivo de texto Leia-me e/ou o arquivo guia_instalação.pdf para maiores explicações.

Se preferir via terminal, para descompactar:

- vá no Menu superior Aplicações > Acessórios > Terminal

- com o terminal aberto na sua pasta dentro da /home/ digite:

tar -zxvf modem-arquivos-v16.tar.gz

dmmadmax

 tbm tenho esse mesmo modem e versao do ubuntu, ja baixei o pacote q o alarcon passou mas nao da certo  em dado momento diz fatal error module slamr not fund, ja fiz varias coisas mas nao da certo, no kurumin esse modem funciona normal, é a primeira vex q instalo o Ubuntu e gostaria q alguem me ajudasse a fazer o modem funcionar, to mto estusiasmado com o Feisty.


Linux User #438573
celeron d 2.8
512 mb ddr
80 gb sata II Samsung
8vm-800m
796 mb plus 17" plano
cd-rw/dvd LG
Ubuntu 7.10
Turbo 1 Mbps

alarcon

#7
Citação de: dmmadmax online 05 de Junho de 2007, 09:39
tbm tenho esse mesmo modem e versao do ubuntu, ja baixei o pacote q o alarcon passou mas nao da certo  em dado momento diz fatal error module slamr not fund, ja fiz varias coisas mas nao da certo, no kurumin esse modem funciona normal, é a primeira vex q instalo o Ubuntu e gostaria q alguem me ajudasse a fazer o modem funcionar, to mto estusiasmado com o Feisty.

Veja para mim se estes pacotes foram instalados:

make
gcc
build-essential
linux-headers-2.6.20.15-generic
libasound2
libasound2-dev
sl-modem-daemon


Veja as informações acima pelo Synaptic ( Menu Sistema > Adiministração > Gerenciador de apcotes Synaptic ) clicando no botão procurar.

agora veja se em /usr/sbin existe o arquivo slmodemd

se em /lib/modules/2.6.20.15-generic/extra/ existem os seguintes arquivos: slamr.ko, slusb.ko e ungrab-winmodem.ko

Você notou algum tipo de mensagem de erro durante o processo de compilação do driver?

mostre aqui o resultado dos seguintes comandos:

dmesg | grep slamr

lsmod

Agora execute este comando no terminal:

sudo /etc/init.d/sl-modem-daemon restart

e mostre aqui o resultado deste comando:

ps -aux | grep slmodemd

Atenção: para instalar o pacote que fiz, se você tentou outras soluções antes, seria melhor você reinstalar o Ubuntu 7.04 para começar do zero. Fazendo isso as chances de erros por interferência de qualquer outra coisa que você tenha tntado antes diminue.

dmmadmax

#8
olha so alarcon, eu reinstalei o ubuntu e consegui conectar, somente seguindo os passos do seu pacote
eu li o outro topico q fala do hsp com chip smartlink e vi q podia ser atualizaçao de kernel q poderia ta atrapalhando
e era mesmo, pq tinha tentado instalar antes com uns outros pacotes avulsos
primeiro rodei o ubuntu pelo live cd e vi q conectava, entao instalei de novo e ca estou postando no forum ;D ;D ;D ;D
meu modem: LG LM I56N
Deus te abençoe alarcon :D :D :D :D


Linux User #438573
celeron d 2.8
512 mb ddr
80 gb sata II Samsung
8vm-800m
796 mb plus 17" plano
cd-rw/dvd LG
Ubuntu 7.10
Turbo 1 Mbps