Autor Tópico: Alguém já conseguiu colocar um modem 537EP funcionando ?  (Lida 17239 vezes)

alarcon

  • Visitante
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #15 Online: 05 de Abril de 2006, 14:58 »
Citação de: "cleriston"
dexa eu ver se entendi... entaum eu devo procurar um "kernel-headers"  com a versão  2.6.12-10-386 ??
Se for, eu baixo aqui no meu trampo e depois levo pra casa.


vc tem de baixar isso:

Citar
linux-headers-2.6.12-10-386
 -linux-headers-2.6.12-10


o arquivo e sua dependência.

Offline cleriston

  • Usuário Ubuntu
  • *
  • Mensagens: 93
    • Ver perfil
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #16 Online: 08 de Abril de 2006, 00:12 »
eu baixei o linux-header-2.6.12-10
No make 537 deu certo, mas no make install naum, veja :

cleriston@ubuntu:~/intel-537-2.60.80.0$ sudo make 537
   Module precompile check
   Current

running kernel is: 2.6.12-10-386
   /lib/modules...   autoconf.h exists
diff:

/boot/vmlinuz.autoconf.h: Arquivo ou diretório não encontrado
   autoconf.h matches running

kernel
diff: /boot/vmlinuz.version.h: Arquivo ou diretório não encontrado
   version.h

matches running kernel
2.6.12-10-386
make[1]: Entrando no diretório

`/home/cleriston/intel-537-2.60.80.0/coredrv'
make -C /lib/modules/2.6.12-10-386/build

SUBDIRS=/home/cleriston/intel-537-2.60.80.0/coredrv modules
make[2]: Entrando no diretório

`/usr/src/linux-headers-2.6.12-10-386'
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.o
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:70: warning: type defaults to `int' in

declaration of `EXPORT_SYMBOL_NOVERS'
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:70: warning: parameter names (without

types) in function declaration
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:70:

warning: data definition has no type or storage class
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c: In function `open':
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:394: warning: `pm_register' is

deprecated (declared at include/linux/pm.h:106)
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c: In function `close':
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:416: warning: `pm_unregister' is

deprecated (declared at include/linux/pm.h:111)
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c: In function `hamproc_write':
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:660: warning: ignoring return value of

`copy_from_user', declared with attribute warn_unused_result
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c: At top level:
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:754: warning: initialization from

incompatible pointer type
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:755:

warning: initialization from incompatible pointer type
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c: In function `kScheduleDPC':
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:861: warning: implicit declaration of

function `pm_access'
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c: In function

`dspdrv_CommRamISR':
/home/cleriston/intel-537-2.60.80.0/coredrv/coredrv.c:877: warning:

function declaration isn't a prototype
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/clmmain.o
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/rts.o
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/task.o
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/uart.o
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/wwh_dflt.o
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/locks.o
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/softserial_io.o
/home/cleriston/intel-537-2.60.80.0/coredrv/softserial_io.c: In function

`softserial_write':
/home/cleriston/intel-537-2.60.80.0/coredrv/softserial_io.c:94: warning:

ignoring return value of `copy_from_user', declared with attribute warn_unused_result
  CC

[M]  /home/cleriston/intel-537-2.60.80.0/coredrv/softserial_ioctl.o
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/softserial.o
/home/cleriston/intel-537-2.60.80.0/coredrv/softserial.c: In function

`softserial_register_tty':
/home/cleriston/intel-537-2.60.80.0/coredrv/softserial.c:125:

warning: assignment from incompatible pointer type
  CC [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.o
/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.c:48: warning: function declaration

isn't a prototype
/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.c:61: warning:

initialization from incompatible pointer type
/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.c:65: warning: function declaration

isn't a prototype
/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.c: In function

`afe_Write':
/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.c:417: warning: ignoring

return value of `copy_from_user', declared with attribute warn_unused_result
/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.c: In function `afe_Read':
/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.c:437: warning: ignoring return value

of `copy_to_user', declared with attribute warn_unused_result
/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.c: At top level:
/home/cleriston/intel-537-2.60.80.0/coredrv/afedsp_int.c:454: warning: initialization from

incompatible pointer type
  LD [M]  /home/cleriston/intel-537-2.60.80.0/coredrv/Intel537.o
 

Building modules, stage 2.
  MODPOST
Warning: could not find

/home/cleriston/intel-537-2.60.80.0/coredrv/.537core.lib.cmd for

/home/cleriston/intel-537-2.60.80.0/coredrv/537core.lib
*** Warning: "pm_access"

[/home/cleriston/intel-537-2.60.80.0/coredrv/Intel537.ko] undefined!
  CC      

/home/cleriston/intel-537-2.60.80.0/coredrv/Intel537.mod.o
  LD [M]  

/home/cleriston/intel-537-2.60.80.0/coredrv/Intel537.ko
make[2]: Saindo do diretório

`/usr/src/linux-headers-2.6.12-10-386'
make[1]: Saindo do diretório

`/home/cleriston/intel-537-2.60.80.0/coredrv'
cleriston@ubuntu:~/intel-537-2.60.80.0$ sudo

make install
rm -f /etc/hamregistry.bin
bash 537_inst
running kernel 2.6.12-10-386
installing hamregistry, used for persistant storage
installing usrsound, a soft buzzer
installing 537 module
debian 537_boot rc2.d and rc3.d scripts
starting module and

utilities
error loading Intel537
ERROR: Module Intel537 does not exist in /proc/modules
done

alarcon

  • Visitante
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #17 Online: 08 de Abril de 2006, 14:39 »
Citação de: "cleriston"
eu baixei o linux-header-2.6.12-10
No make 537 deu certo, mas no make install naum, veja :

cleriston@ubuntu:~/intel-537-2.60.80.0$ sudo make 537
   ...


Bom primeiro vc seguiu estes exatamente esses passos antes de compilar o driver do modem:

Citar
Para instalar o driver da Smartlink para o modem HSP56 MR, antes é necessário ter instalado em seu sistema alguns pacotes essenciais que são eles:

   
    make
    gcc
      -binutils
      -gcc-4.0
       
    build-essential
     -dpkg-dev
     -g++

     -g++-4.0
     -libc6-dev
     -libstdc++6-4.0-dev
     -linux-kernel-headers

    linux-headers-2.6.12-10-386
     -linux-headers-2.6.12-10



Estes pacotes, em negrito, vc pode instalar pelo Synaptic do Ubuntu 5.10 sem precisar da internet, pois já vem no Ubuntu mais não estão ainda instalados. Os que estão logo abaixo dos em negrito e com um traço “-” antes do nome são os arquivos dependentes que serão instalados automáticamente com os principais quando vc selecionar eles (os em negrito) lá no Synaptic que se encontra em: Sistema > Administração >Gerenciador de Pacotes Synaptic. Com o programa aberto clique no botão procurar (Search) e digite o nome do pacote desejado e depois de encontrá-los clique com o botão direito do mouse sobre ele e selecione marcar para instalação e depois clique no botão Aplicar e aguarde o processo de instalação.

Ou alternativamente ao Synaptic para quem não souber usá-lo é fazer o seguinte, abra um terminal (Menu Aplicações > Acessórios > Terminal) e digite:

   
    $ sudo su
    Password: sua senha
    # cd /var/cache/apt/achives/
    # dpkg -i make_3.80-9_i386.deb
    # dpkg -i binutils_2.16.1-2ubuntu6_i386.deb
    # dpkg -i gcc-4.0_4.0.1-4ubuntu9_i386.deb
    # dpkg -i gcc_4%3a4.0.1-3_i386.deb
    # dpkg -i dpkg-dev_1.13.10ubuntu4_all.deb
    # dpkg -i g++-4.0_4.0.1-4ubuntu9_i386.deb
    # dpkg -i g++_4%3a4.0.1-3_i386.deb
    # dpkg -i libc6-dev_2.3.5-1ubuntu12_i386.deb
    # dpkg -i libstdc++6-4.0-dev_4.0.1-4ubuntu9_i386.deb
    # dpkg -i linux-kernel-headers_2.6.11.2-0ubuntu13_i386.deb
    # dpkg -i build-essential_11.1_i386.deb
    # dpkg -i linux-headers-2.6.12-9_2.6.12-9.23_i386.deb
    # dpkg -i linux-headers-2.6.12-9-386_2.6.12-9.23_i386.deb




Mas acho este modo mais complicado pq tanto o usuário pode errar na digitação dos nomes que são muitos, como também não tenho certeza se é esta a ordem correta, pois se a ordem estiver errada vai dar erro pq alguns pacotes precisam do outro já instalado como pré-requisito de instalação. Pelo Synaptic a ordem não importa pq ele instalará os arquivos dependentes na ordem correta de maneira automática para vc.

Agora cabe aqui uma explicação. Um problema aqui é que para compilar os módulos sem erros, é preciso instalar a mesma versão do gcc e g++ que foram usadas para compilar o Kernel em uso. Diferentes versões do gcc freqüentemente possuem incompatibilidades entre sí.

A forma mais simples de descobrir isso é através do arquivo "/proc/version":

   
    $ cat /proc/version



Se você estiver usando o Ubuntu 5.10, por exemplo, vai receber como resposta:

   
    Linux version 2.6.12-9-386(buildd@rothera) (gcc version 3.4.5 20050809)


Por aqui podemos ver que está sendo usado o Kernel 2.6.12-9 (compilado sem otimizações para os processadores atuais, daí o "386"), que por sua vez foi compilado usando o gcc 3.4.

Sabendo agora em qual versão do gcc foi compilado o seu kernel então procure na internet pelo pacote .deb para ele com um outro sistema operacional já que com o Ubuntu não é possível.

Se vc usa o Ubuntu 5.10 então os arquivos que vc deve procurar são esses:

   
    gcc-3.4-base_3.4.4-6ubuntu8_i386.deb
    cpp-3.4_3.4.4-6ubuntu8_i386.deb
    gcc-3.4_3.4.4-6ubuntu8_i386.deb




seus links:

http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/gcc-3.4-base_3.4.4-6ubuntu8_i386.deb

http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/cpp-3.4_3.4.4-6ubuntu8_i386.deb

http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/gcc-3.4_3.4.4-6ubuntu8_i386.deb

OBs: abra um terminal ( Menu Aplicações> Acessório > Terminal) e instale nesta ordem apresentada acima, da seguinte forma:

   
    $ sudo su
    Password: sua senha
    # dpkg -i gcc-3.4-base_3.4.4-6ubuntu8_i386.deb cpp-3.4_3.4.4-6ubuntu8_i386.deb gcc-3.4_3.4.4-6ubuntu8_i386.deb




Obs: os símbolos “$” e “#” em negrito e à esquerda dos comandos não são para serem digitados, apenas indicam um comando dado como usuário normal ($) e um comando dado como root (#) que é um superusuário e pode tudo, ao contrário do outro que é limitado.



Ainda com o terminal aberto e como root (símbolo #) digite os seguintes comandos:

   
    # cd /usr/bin
    #  ln -sf /usr/bin/cpp-3.4 cpp
    #  ln -sf /usr/bin/gcc-3.4 gcc
    #  ln -sf /usr/bin/gccbug-3.4 gccbug
    #  ln -sf /usr/bin/gcov-3.4 gcov
    #  ln -sf /usr/bin/i486-linux-gnu-cpp-3.4 i486-linux-gnu-cpp
    #  ln -sf /usr/bin/i486-linux-gnu-gcc-3.4 i486-linux-gnu-gcc


e também seguiu o que tem lá no texto colado do artigo do Morimoto principalmente esta parte aqui:

Citar
$ sed -i -e 's/PM_SAVE_STATE/PM_SUSPEND_MEM/g' coredrv/coredrv.c


e mais isso aqui que falei para o Wpinho:

Citar
Abra um terminal e entre na pasta do driver criada com a descompactação:

cd intel-537EP_secure-2.60.80.0

como root ( comando sudo su e sua senha) edite o seguinte arquivo 537_inst assim:

   
    gedit 537_inst



e altera a seguinte linha:

   
    KERNVER=`cat /proc/version | awk "{print \\$3}"`



para

   
    KERNVER=`cat /proc/version | awk "{print \$3}"`



Ou seja retire apenas uma barra “\” quase no final da linha que está em excesso .

Salve e saia e faça com dito no texto do Morimoto, ou seja, faça aquela correção informada por ele e depois os comandos:

   
    make clean
    make 537
    make install




e veja se assim funciona desta vez ok.

OBS: seria interessante também instalar os pacotes : libasound2_1.0.10-2_i386.deb e libasound2-dev_1.0.10-2_i386.deb, mais eles não estão na sua distro e tem de ser baixados da net. Bom, na instalação do meu driver na forma padrão esses arquivos não precisam estar instalados, mas já a outra forma(ALSA) do meu driver, precisa destes pacotes aí, portanto tente sem eles e se ocorrer algum erro então procure na rede por estes arquivos e instale para ver no que dá ok.



antes de compilar o driver?

Offline cleriston

  • Usuário Ubuntu
  • *
  • Mensagens: 93
    • Ver perfil
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #18 Online: 10 de Abril de 2006, 00:31 »
bom, eu vi q eu num tinha feito a parte dos links simbólicos...
refiz tudo e deu a seguinte mensagem

sudo make install
rm -f /etc/hamregistry.bin
bash 537_inst
running kernel Linux version 2.6.12-10-386 (buildd@terranova) (gcc version 3.4.5 20050809 (prerelease) (Ubuntu 3.4.4-6ubuntu8.1)) #1 Sat Mar 11 16:13:17 UTC 2006
unsupported kernel version. 2.4.x and 2.6.x are supported
make: ** [install] Erro 1


Curiosamente, percebi q esta mensagem "unsupported kernel version. 2.4.x and 2.6.x are supported" vem do
Intel537_inst . Tem um "if" veja

then
      KERNELVER=`cat ${KERNEL_SOURCE}/include/linux/version.h |grep UTS_RELEASE | awk ' { print $3 } ' | awk -F\" ' { print $2 } '`
      CharModDir=${BUILD_ROOT}/lib/modules/${KERNVER}/kernel/drivers/char
      echo Target kernel version is $KERNELVER
else
case $KERNVER in
   2.4*)
      CharModDir=/lib/modules/${KERNVER}/kernel/drivers/char
      ;;
   2.6*)
      CharModDir=/lib/modules/${KERNVER}/kernel/drivers/char
      ;;
   *)
      echo "unsupported kernel version. 2.4.x and 2.6.x are supported"
      exit 1
      ;;
esac
fi

isso ajuda a vc me ajudar?

Offline cleriston

  • Usuário Ubuntu
  • *
  • Mensagens: 93
    • Ver perfil
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #19 Online: 10 de Abril de 2006, 08:05 »
Depois de postar minha ultima dúvida eu fiz o seguinte, onde tinha algo do tipo

case $KERNVER in
   2.4*)
      "comando para do 2.4*"
      ;;
   2.6*)
      "comando para do 2.6*"
      ;;
   *)
      echo "unsupported kernel version. 2.4.x and 2.6.x are supported"
      exit 1
      ;;
esac

eu tirei o case e só deixei

"comando para do 2.6*"

então no make install ele avança mais e dah um erro
    "Erro loading Intel537"
    "Intel537 não está no /proc/modules"
ATENÇÃO a mensagem não eh exatamente esta, mas é algo assim blz??
Pelo q eu vi no scritp 537_inst esse erro dá na chamada do 537_boot, dentro dele.
Como faço para incluir na mão no /proc/modules??

Valeu pela ajuda e paciência

Offline cleriston

  • Usuário Ubuntu
  • *
  • Mensagens: 93
    • Ver perfil
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #20 Online: 10 de Abril de 2006, 08:47 »
Vou acompanhar o tópico abaixo, parece q o problema eh igual ao meu. Valeu
http://www.linuxval.org/ubuntu//phpBB2/viewtopic.php?t=5098&highlight=proc+modules

alarcon

  • Visitante
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #21 Online: 10 de Abril de 2006, 10:33 »
Citação de: "cleriston"
Vou acompanhar o tópico abaixo, parece q o problema eh igual ao meu. Valeu
http://www.linuxval.org/ubuntu//phpBB2/viewtopic.php?t=5098&highlight=proc+modules


Este tópico aí o modem do usuário em questão não deverá usar o driver da Intel e sim o da Samrtlink

Tente o mais novo driver da Intel que este que vc tá usando é um pouco antigo com eu escrevi neum tópico aqui.

Offline cleriston

  • Usuário Ubuntu
  • *
  • Mensagens: 93
    • Ver perfil
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #22 Online: 10 de Abril de 2006, 15:00 »
ô loco, eu vi no site da intel,  ultima versão é essa q estou usando... de 2004....
Vc sabe me dizer se eu utilizar o Smartlink dá certo para o meu modem?
Vlw

alarcon

  • Visitante
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #23 Online: 10 de Abril de 2006, 17:48 »
Citação de: "cleriston"
ô loco, eu vi no site da intel,  ultima versão é essa q estou usando... de 2004....
Vc sabe me dizer se eu utilizar o Smartlink dá certo para o meu modem?
Vlw

Intel-537EP-2.70.95.0-suse9.3.tgz de 2005 :-)

Offline cleriston

  • Usuário Ubuntu
  • *
  • Mensagens: 93
    • Ver perfil
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #24 Online: 11 de Abril de 2006, 00:13 »
alarcon eu baixei essa versão q vc me recomendou. Parece q essa foi um pouco mais longe... mas ainda num deu certo...
Veja q tentei fazer o make install e depois carregar na mão.
Obs.: Qdo testo o modemo no gnome-ppp, num vai nem no /dev/modem nem /dev/ttySL0

cleriston@ubuntu:~$ cd Intel-537
cleriston@ubuntu:~/Intel-537$ ls
537_boot  537_inst~     coredrv      Intel537.ko  makefile
537_inst  config_check  hamregistry  license.txt  readme.txt
cleriston@ubuntu:~/Intel-537$ make clean
Tente `uname --help' para mais informação.
cd coredrv; make clean
make[1]: Entrando no diretório `/home/cleriston/Intel-537/coredrv'
rm -f *.ko *.o *~ core
make[1]: Saindo do diretório `/home/cleriston/Intel-537/coredrv'
rm -f *.o *.ko
cleriston@ubuntu:~/Intel-537$ !sed
sed -i -e 's/PM_SAVE_STATE/PM_SUSPEND_MEM/g' coredrv/coredrv.c
cleriston@ubuntu:~/Intel-537$ make 537
Tente `uname --help' para mais informação.
   Module precompile check
   Current running kernel is: 2.6.12-10-386
   /lib/modules...   autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: Arquivo ou diretório não encontrado
   autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: Arquivo ou diretório não encontrado
   version.h matches running kernel
2.6.12-10-386
make[1]: Entrando no diretório `/home/cleriston/Intel-537/coredrv'
make -C /lib/modules/2.6.12-10-386/build SUBDIRS=/home/cleriston/Intel-537/coredrv modules
make[2]: Entrando no diretório `/usr/src/linux-headers-2.6.12-10-386'
  CC [M]  /home/cleriston/Intel-537/coredrv/coredrv.o
s/home/cleriston/Intel-537/coredrv/coredrv.c:73: warning: type defaults to `int' in declaration of `EXPORT_SYMBOL_NOVERS'
/home/cleriston/Intel-537/coredrv/coredrv.c:73: warning: parameter names (without types) in function declaration
/home/cleriston/Intel-537/coredrv/coredrv.c:73: warning: data definition has no type or storage class
/home/cleriston/Intel-537/coredrv/coredrv.c: In function `open':
/home/cleriston/Intel-537/coredrv/coredrv.c:407: warning: `pm_register' is deprecated (declared at include/linux/pm.h:106)
/home/cleriston/Intel-537/coredrv/coredrv.c: In function `close':
/home/cleriston/Intel-537/coredrv/coredrv.c:439: warning: `pm_unregister' is deprecated (declared at include/linux/pm.h:111)
/home/cleriston/Intel-537/coredrv/coredrv.c: In function `hamproc_write':
/home/cleriston/Intel-537/coredrv/coredrv.c:684: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result
/home/cleriston/Intel-537/coredrv/coredrv.c: At top level:
/home/cleriston/Intel-537/coredrv/coredrv.c:880: warning: initialization makes integer from pointer without a cast
  CC [M]  /home/cleriston/Intel-537/coredrv/clmmain.o
  CC [M]  /home/cleriston/Intel-537/coredrv/rts.o
  CC [M]  /home/cleriston/Intel-537/coredrv/task.o
  CC [M]  /home/cleriston/Intel-537/coredrv/uart.o
  CC [M]  /home/cleriston/Intel-537/coredrv/wwh_dflt.o
  CC [M]  /home/cleriston/Intel-537/coredrv/locks.o
  CC [M]  /home/cleriston/Intel-537/coredrv/softserial_io.o
  CC [M]  /home/cleriston/Intel-537/coredrv/softserial_ioctl.o
  CC [M]  /home/cleriston/Intel-537/coredrv/softserial.o
  CC [M]  /home/cleriston/Intel-537/coredrv/afedsp_int.o
/home/cleriston/Intel-537/coredrv/afedsp_int.c:39: warning: initialization makes integer from pointer without a cast
/home/cleriston/Intel-537/coredrv/afedsp_int.c:48: warning: function declaration isn't a prototype
/home/cleriston/Intel-537/coredrv/afedsp_int.c:61: warning: initialization from incompatible pointer type
/home/cleriston/Intel-537/coredrv/afedsp_int.c:65: warning: function declaration isn't a prototype
/home/cleriston/Intel-537/coredrv/afedsp_int.c: In function `afe_Write':
/home/cleriston/Intel-537/coredrv/afedsp_int.c:409: warning: ignoring return value of `copy_from_user', declared with attribute warn_unused_result
/home/cleriston/Intel-537/coredrv/afedsp_int.c: In function `afe_Read':
/home/cleriston/Intel-537/coredrv/afedsp_int.c:429: warning: ignoring return value of `copy_to_user', declared with attribute warn_unused_result
/home/cleriston/Intel-537/coredrv/afedsp_int.c: At top level:
/home/cleriston/Intel-537/coredrv/afedsp_int.c:446: warning: initialization from incompatible pointer type
  LD [M]  /home/cleriston/Intel-537/coredrv/Intel537.o
  Building modules, stage 2.
  MODPOST
Warning: could not find /home/cleriston/Intel-537/coredrv/.537core.lib.cmd for /home/cleriston/Intel-537/coredrv/537core.lib
  CC      /home/cleriston/Intel-537/coredrv/Intel537.mod.o
  LD [M]  /home/cleriston/Intel-537/coredrv/Intel537.ko
make[2]: Saindo do diretório `/usr/src/linux-headers-2.6.12-10-386'
make[1]: Saindo do diretório `/home/cleriston/Intel-537/coredrv'
cleriston@ubuntu:~/Intel-537$ sudo make install
Password:
Tente `uname --help' para mais informação.
rm -f /etc/hamregistry.bin
bash 537_inst
running kernel 2.6.12-10-386
chmod: impossível acessar `usrsound': Arquivo ou diretório não encontrado
installing hamregistry, used for persistant storage
installing usrsound, a soft buzzer
install: impossível fazer stat em `usrsound': Arquivo ou diretório não encontrado
installing 537 module
debian 537_boot rc2.d and rc3.d scripts
starting module and utilities
chgrp: impossível acessar `/dev/537': Arquivo ou diretório não encontrado
chmod: impossível acessar `/dev/537': Arquivo ou diretório não encontrado
done
cleriston@ubuntu:~/Intel-537$ sudo insmod -f Intel537.ko
insmod: error inserting 'Intel537.ko': -1 File exists

alarcon

  • Visitante
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #25 Online: 11 de Abril de 2006, 11:24 »
Copie o arquivo usrsound do driver antigo da Intel e coloque no novo driver da Intel na mesma localização do correspondete antigo e altere o script 537_inst para ficar Exatamente assim:

Citar

#!/bin/sh

#**********************************************************************************
# Copyright (c) 1999-2000, Intel Corporation
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
#
# 2. Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# 3. Neither the name of Intel Corporation nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
# DISCLAIMED. IN NO EVENT SHALL CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
#***********************************************************************************

#KERNVER=`cat /proc/version | awk "{print \$3}"`
KERNVER=`cat /proc/version | cut -d' ' -f3`

echo running kernel $KERNVER

#if [ ${BUILD_ROOT} ]
#then
#      KERNELVER=`cat ${KERNEL_SOURCE}/include/linux/version.h |grep UTS_RELEASE | awk ' { print $3 } ' | awk -F\" ' { print $2 } '`
#      CharModDir=${BUILD_ROOT}/lib/modules/${KERNVER}/kernel/drivers/char
#      echo Target kernel version is $KERNELVER
#else
case $KERNVER in
   2.4*)
      CharModDir=/lib/modules/${KERNVER}/kernel/drivers/char
      ;;
   2.6*)
      CharModDir=/lib/modules/${KERNVER}/kernel/drivers/char
      ;;
   *)
      echo "unsupported kernel version. 2.4.x and 2.6.x are supported"
      exit 1
      ;;
esac
#fi


chmod 755 hamregistry usrsound

#if [ -a /etc/mandrake-release ]; then
#{
#   if [ -a ./hamregistry.bin ]; then
#   {
#      mv -f /etc/hamregistry.bin /etc/hamregistry.bak
#      cp ./hamregistry.bin /etc/hamregistry.bin
#   }
#   else
#   {
#      rm -f /etc/hamregistry.bin
#   }
#   fi
#   echo installing hamregistry, used for persistant storage
#   install -o root -g root -m 110 hamregistry /usr/sbin
#   echo installing usrsound, a soft buzzer
#   install -o root -g root -m 755 usrsound /usr/sbin
#   echo installing 537 module
#case $KERNVER in
#   2.4*)
#      install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
#      ;;
#   2.6*)
#      install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
#      ;;
#esac

#   echo mandrake 537_boot script
#   install -o root -g root -m 110 537_boot /etc/rc.d/init.d || exit 1

#   ln -s -f /etc/rc.d/init.d/537_boot /etc/rc.d/rc2.d/S99537_boot
#   ln -s -f /etc/rc.d/init.d/537_boot /etc/rc.d/rc3.d/S99537_boot
#   ln -s -f /etc/rc.d/init.d/537_boot /etc/rc.d/rc5.d/S99537_boot
#}
#elif [ -a /etc/knoppix-version ]; then
#{
#   if [ -a ./hamregistry.bin ]; then
#   {
#      mv -f ${BUILD_ROOT}/etc/hamregistry.bin ${BUILD_ROOT}/etc/hamregistry.bak
#      cp ./hamregistry.bin ${BUILD_ROOT}/etc/hamregistry.bin
#   }
#   else
#   {
#      rm -f /etc/hamregistry.bin
#   }
#   fi
#   echo installing hamregistry, used for persistant storage
#   install -o root -g root -m 110 hamregistry ${BUILD_ROOT}/usr/sbin
#   echo installing usrsound, a soft buzzer
#   install -o root -g root -m 755 usrsound ${BUILD_ROOT}/usr/sbin
#   echo installing 537 module
#case $KERNVER in
#   2.4*)
#      install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
#      ;;
#   2.6*)
#      install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
#      ;;
#esac
#   echo redhat 537_boot rc2.d, rc3.d and rc5.d scripts
#   install -o root -g root -m 110 537_boot ${BUILD_ROOT}/etc/rc.d/init.d || exit 1
#   ln -s -f ${BUILD_ROOT}/etc/rc.d/init.d/537_boot ${BUILD_ROOT}/etc/rc.d/rc2.d/S99537_boot
#   ln -s -f ${BUILD_ROOT}/etc/rc.d/init.d/537_boot ${BUILD_ROOT}/etc/rc.d/rc3.d/S99537_boot
#   ln -s -f ${BUILD_ROOT}/etc/rc.d/init.d/537_boot ${BUILD_ROOT}/etc/rc.d/rc5.d/S99537_boot
#}
#elif [ -a /etc/SuSE-release ]; then
#{
#   if [ -a ./hamregistry.bin ]; then
#   {
#      mv -f /etc/hamregistry.bin /etc/hamregistry.bak
#      cp ./hamregistry.bin /etc/hamregistry.bin
#   }
#   else
#   {
#      rm -f /etc/hamregistry.bin
#   }
#   fi
#   echo installing hamregistry, used for persistant storage
#   install -o root -g root -m 110 hamregistry /usr/sbin || exit 1
#   echo installing usrsound, a soft buzzer
#   install -o root -g root -m 755 usrsound /usr/sbin
#   echo installing 537 module
#case $KERNVER in
#   2.4*)
#      install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
#      ;;
#   2.6*)
#      install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
#      ;;
#esac

#   DISTVER=`grep VERSION /etc/SuSE-release | cut -f3 -d' '`
#   echo SuSE version ${DISTVER}
#   case $DISTVER in
#      6*|7.0)
#         echo "SuSE <= 7.0 boot scripts"
#         INITDIR='/sbin/init.d'
#         ;;
#      5* | 4* | 3* | 2* | 1*)
#         echo "unsupported SuSE version. no boot scripts installed"
#         exit 1
#         ;;
#      *)
#         echo "SuSE boot scripts"
#         INITDIR='/etc/init.d'
#         ;;
#   esac
#   install -o root -g root -m 110 537_boot $INITDIR || exit 1
#   ln -s -f ${INITDIR}/537_boot ${INITDIR}/boot.d/S99537_boot

#}
#elif [ -a /etc/redhat-release ]; then
#{
#   if [ -a ./hamregistry.bin ]; then
#   {
#      mv -f ${BUILD_ROOT}/etc/hamregistry.bin ${BUILD_ROOT}/etc/hamregistry.bak
#      cp ./hamregistry.bin ${BUILD_ROOT}/etc/hamregistry.bin
#   }
#   else
#   {
#      rm -f /etc/hamregistry.bin
#   }
#   fi
#   echo installing hamregistry, used for persistant storage
#   install -o root -g root -m 110 hamregistry ${BUILD_ROOT}/usr/sbin
#   echo installing usrsound, a soft buzzer
#   install -o root -g root -m 755 usrsound ${BUILD_ROOT}/usr/sbin
#   echo installing 537 module
#case $KERNVER in
#   2.4*)
 #     install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
 #     ;;
 #  2.6*)
 #     install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
 #     ;;
#esac

 #  echo redhat 537_boot rc2.d, rc3.d and rc5.d scripts
 #  install -o root -g root -m 110 537_boot ${BUILD_ROOT}/etc/rc.d/init.d || exit 1
 #  ln -s -f ${BUILD_ROOT}/etc/rc.d/init.d/537_boot ${BUILD_ROOT}/etc/rc.d/rc2.d/S99537_boot
 #  ln -s -f ${BUILD_ROOT}/etc/rc.d/init.d/537_boot ${BUILD_ROOT}/etc/rc.d/rc3.d/S99537_boot
 #  ln -s -f ${BUILD_ROOT}/etc/rc.d/init.d/537_boot ${BUILD_ROOT}/etc/rc.d/rc5.d/S99537_boot
#}
#elif [ -a /etc/redflag-release ]; then
#{
#   if [ -a ./hamregistry.bin ]; then
 #  {
 #     mv -f /etc/hamregistry.bin /etc/hamregistry.bak
 #     cp ./hamregistry.bin /etc/hamregistry.bin
 #  }
 #  else
 #  {
 #     rm -f /etc/hamregistry.bin
 #  }
 #  fi
 #  echo installing hamregistry, used for persistant storage
 #  install -o root -g root -m 110 hamregistry /usr/sbin
 #  echo installing usrsound, a soft buzzer
 #  install -o root -g root -m 755 usrsound /usr/sbin
 #  echo installing 537 module
#case $KERNVER in
 #  2.4*)
 #     install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
 #     ;;
 #  2.6*)
 #     install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
 #     ;;
#esac

 #  echo redhat hamboot rc2.d and rc3.d scripts
 #  install -o root -g root -m 110 537-boot /etc/rc.d/init.d
 #  ln -s -f /etc/rc.d/init.d/537-boot /etc/rc.d/rc2.d/S99537-boot
 #  ln -s -f /etc/rc.d/init.d/537-boot /etc/rc.d/rc3.d/S99537-boot
 #  ln -s -f /etc/rc.d/init.d/537-boot /etc/rc.d/rc5.d/S99537-boot
#}
#elif [ -a /etc/conectiva-release ]; then
#{
 #  if [ -a ./hamregistry.bin ]; then
 #  {
 #     mv -f /etc/hamregistry.bin /etc/hamregistry.bak
 #     cp ./hamregistry.bin /etc/hamregistry.bin
 #  }
 #  else
 #  {
 #     rm -f /etc/hamregistry.bin
 #  }
 #  fi
 #  echo installing hamregistry, used for persistant storage
 #  install -o root -g root -m 110 hamregistry /usr/sbin
 #  echo installing usrsound, a soft buzzer
 #  install -o root -g root -m 755 usrsound /usr/sbin
 #  echo installing 537 module
#case $KERNVER in
 #  2.4*)
 #     install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
 #     ;;
 #  2.6*)
 #     install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
 #     ;;
#esac

 #  echo conectiva 537_boot rc3.d and rc5.d scripts
 #  install -o root -g root -m 755 537_boot /etc/rc.d/init.d
 #  ln -s -f /etc/rc.d/init.d/537_boot /etc/rc.d/rc3.d/S99537_boot
 #  ln -s -f /etc/rc.d/init.d/537_boot /etc/rc.d/rc5.d/S99537_boot
#}
if [ -a /etc/debian_version ]; then
{
   if [ -a ./hamregistry.bin ]; then
   {
      mv -f /etc/hamregistry.bin /etc/hamregistry.bak
      cp ./hamregistry.bin /etc/hamregistry.bin
   }
   else
   {
      rm -f /etc/hamregistry.bin
   }
   fi
   echo installing hamregistry, used for persistant storage
   install -o root -g root -m 110 hamregistry /usr/sbin
   echo installing usrsound, a soft buzzer
   install -o root -g root -m 755 usrsound /usr/sbin
   echo installing 537 module
case $KERNVER in
   2.4*)
      install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
      ;;
   2.6*)
      install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
      ;;
esac

   echo debian 537_boot rc2.d and rc3.d scripts
   install -o root -g root -m 755 537_boot /etc/init.d || exit 1
   ln -s -f /etc/init.d/537_boot /etc/rc2.d/S99537_boot
#   ln -s -f /etc/init.d/537_boot /etc/rc3.d/S99537_boot
#   ln -s -f /etc/init.d/537_boot /etc/rc5.d/S99537_boot
}
fi
#elif [ -a /etc/slackware-version ]; then
#{
#   if [ -a ./hamregistry.bin ]; then
#   {
#      mv -f /etc/hamregistry.bin /etc/hamregistry.bak
#      cp ./hamregistry.bin /etc/hamregistry.bin
#   }
#   else
#   {
#      rm -f /etc/hamregistry.bin
#   }
#   fi
#   echo installing hamregistry,  used for persistant storage
#   install -o root -g root -m 110 hamregistry /usr/sbin
#   echo installing usrsound, a soft buzzer
#   install -o root -g root -m 755 usrsound /usr/sbin
#   echo installing 537 module
#case $KERNVER in
#   2.4*)
#      install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
#      ;;
#   2.6*)
#      install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
#      ;;
#esac

#   echo seting up slackware 537_boot script
#   install -o root -g root -m 110 537_boot /etc/rc.d || exit 1
#   if ! grep 537_boot /etc/rc.d/rc.local > /dev/null 2> /dev/null; then
#   {
#      echo "/etc/rc.d/537_boot start" >> /etc/rc.d/rc.local
#   }
#   fi
#}
#elif [ -a /etc/bluepoint-release ]; then
#{
#   if [ -a ./hamregistry.bin ]; then
#   {
#      mv -f /etc/hamregistry.bin /etc/hamregistry.bak
#      cp ./hamregistry.bin /etc/hamregistry.bin
#   }
#   else
#   {
#      rm -f /etc/hamregistry.bin
#   }
#   fi
#   echo installing hamregistry, used for persistant storage
#   install -o root -g root -m 110 hamregistry /usr/sbin
#   echo installing usrsound, a soft buzzer
#   install -o root -g root -m 755 usrsound /usr/sbin
#   echo installing 537 module
#case $KERNVER in
#   2.4*)
#      install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
#      ;;
#   2.6*)
#      install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
#      ;;
#esac

#   echo bluepoint 537_boot rc2.d, rc3.d, and rc5.d scripts
#   install -o root -g root -m 110 537_boot /etc/rc.d/init.d || exit 1
#   ln -s -f /etc/rc.d/init.d/537_boot /etc/rc.d/rc2.d/S99537_boot
#   ln -s -f /etc/rc.d/init.d/537_boot /etc/rc.d/rc3.d/S99537_boot
#   ln -s -f /etc/rc.d/init.d/537_boot /etc/rc.d/rc5.d/S99537_boot
#}
#else
#{
#   if [ -a ./hamregistry.bin ]; then
#   {
#      mv -f /etc/hamregistry.bin /etc/hamregistry.bak
#      cp ./hamregistry.bin /etc/hamregistry.bin
#   }
#   else
#   {
#      rm -f /etc/hamregistry.bin
#   }
#   fi
#   echo installing hamregistry,  used for persistant storage
#   install -o root -g root -m 110 hamregistry /usr/sbin
#   echo installing usrsound, a soft buzzer
#   install -o root -g root -m 755 usrsound /usr/sbin
#   echo installing 537 module
#case $KERNVER in
#   2.4*)
#      install -o root -g root -m 664 Intel537.o ${CharModDir}/Intel537.o || exit 1
#      ;;
#   2.6*)
#      install -o root -g root -m 664 Intel537.ko ${CharModDir}/Intel537.ko || exit 1
#      ;;
#esac

#   echo unknown distribution. no boot scripts installed
#   exit 1
#}
#fi
echo starting module and utilities
depmod -a
/bin/bash 537_boot restart
echo done


Bom ao final da compilação ele vai colocar o arquivo intel537.ko em /lib/modules/2.6.12-10-386/kernel/drivers/char e vai colocar o script responsável pela inicialização durante o boot (537_boot) em /etc/init.d/ e um link para ele em /etc/rc2.d/ chamado de S99537_boot. Por fim dê o comando no terminal lsmod para ver se o módulo Intel537 está ativo e reinicie o sistema tente usar o gnome-ppp para ver se funciona primeiro com o /dev/modem e se não der certo com o /dev/537 e caso mesmo assim não funcione, então eu desisto deste driver da Intel e digo a vc que desista de modems que usam estes drivers pq são uma @<!#$%&* de ruim.

Offline cleriston

  • Usuário Ubuntu
  • *
  • Mensagens: 93
    • Ver perfil
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #26 Online: 11 de Abril de 2006, 11:33 »
Blz Alarcon!
Fico grato pela ajuda e paciência! A noite quando eu chegar em casa eu vou testar... mas antes me diga uma coisa, um Smartlink é barato? To pensando em comprar um ? Pois pelo q vi ele eh bem compativel com o linux neh? (tirando os externos q custo + de 200)

wpinho

  • Visitante
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #27 Online: 11 de Abril de 2006, 14:51 »
Fala cleriston !!!

cara, eu comprei um modem netgate com chipset Smartlink, as ids são 2000:2800, ainda não tive tempo de configurar porque vou instalar novamente o Ubuntu para tentar com tudo zerado !!

acho que hoje quando chegar em casa vou ver se consigo, quanto ao valor, custou R$ 32,00

Abs.

Offline cleriston

  • Usuário Ubuntu
  • *
  • Mensagens: 93
    • Ver perfil
Alguém já conseguiu colocar um modem 537EP funcionando ?
« Resposta #28 Online: 11 de Abril de 2006, 15:04 »
Vê se dah certo entaum... se der certo, posta ae e diz qual tuto vc usou e se deu td certo.
Dependendo vou gasta trintão também.
Vlw.

Offline cleriston

  • Usuário Ubuntu
  • *
  • Mensagens: 93
    • Ver perfil
Ao alarcon
« Resposta #29 Online: 02 de Maio de 2006, 11:44 »
Olah Alarcon!
Eu tava pensando esses dias no meu modem, e resolvi tentar novamente, ja q ele funfa para outras pessoas.
Então relendo vários tópico q participei neste fórum, eu estava vendo esta parte :

Citar
A forma mais simples de descobrir isso é através do arquivo "/proc/version":

   
    $ cat /proc/version



Se você estiver usando o Ubuntu 5.10, por exemplo, vai receber como resposta:

   
    Linux version 2.6.12-9-386(buildd@rothera) (gcc version 3.4.5 20050809)


Por aqui podemos ver que está sendo usado o Kernel 2.6.12-9 (compilado sem otimizações para os processadores atuais, daí o "386"), que por sua vez foi compilado usando o gcc 3.4.

Sabendo agora em qual versão do gcc foi compilado o seu kernel então procure na internet pelo pacote .deb para ele com um outro sistema operacional já que com o Ubuntu não é possível.

Se vc usa o Ubuntu 5.10 então os arquivos que vc deve procurar são esses:

   
    gcc-3.4-base_3.4.4-6ubuntu8_i386.deb
    cpp-3.4_3.4.4-6ubuntu8_i386.deb
    gcc-3.4_3.4.4-6ubuntu8_i386.deb


Então vi q realmente eu não tinha p gcc 3.4.
Agora vou instalar lah em casa ele (e suas depend.), agora ficou uma duvida: como saberei ao compilar se ele estará usando o gcc 3.4 ao invés do anterior q meu ubuntu usava?
Obs.: Quando procuro por gcc no meu synaptic lah casa ele resulta o gcc-3.3 e gcc-4.0-base. Preciso desinstalá-los antes?