Autor Tópico: Problemas para compilar drivers ou qualquer outra coisa...  (Lida 1637 vezes)

Offline kadimus2

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Problemas para compilar drivers ou qualquer outra coisa...
« Online: 12 de Janeiro de 2011, 16:36 »
Desde que eu instalei o Ubuntu o meu principal problema é usar a internet. Tenho um Winmodem Intel 537 e pesquisando no Fórum achei vários guias para tentar fazê-lo funcionar. Baixei os drivers do bendito, mas na hora de compilar sempre ocorre algum erro.

Antes que perguntem eu já instalei (pelo menos acho que instalei) o build-essentials, linux-headers do maverick, além do gcc. Li um pouco e depois de várias tentativas EU acho que é o porque o script de compilação procura por arquivos do Linux, que no Ubuntu estão em diretórios diferentes dos do script. Abaixo segue a sequência de erros, após tentar digitar make 537 e make install.


Código: [Selecionar]
root@R-system:/home/kadimus2/intel-536-537# make 537
cd coredrv; make clean
make[1]: Entering directory `/home/kadimus2/intel-536-537/coredrv'
rm -f *.ko .*.o.cmd *.mod.c .*.ko.cmd *.o *~ core Module.* modules.*
rm -rf .tmp_versions
make[1]: Leaving directory `/home/kadimus2/intel-536-537/coredrv'
rm -f *.o *.ko
   Module precompile check
   Current running kernel is: 2.6.35-22-generic
   /lib/modules...   autoconf.h exists
diff: /boot/vmlinuz.autoconf.h: No such file or directory
   autoconf.h matches running kernel
diff: /boot/vmlinuz.version.h: No such file or directory
   version.h matches running kernel
make[1]: Entering directory `/home/kadimus2/intel-536-537'
Building for 537
2.6.35-22-generic
make[2]: Entering directory `/home/kadimus2/intel-536-537/coredrv'
make -C /lib/modules/2.6.35-22-generic/build SUBDIRS=/home/kadimus2/intel-536-537/coredrv modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.35-22-generic'
  CC [M]  /home/kadimus2/intel-536-537/coredrv/coredrv.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/coredrv.c:33:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/coredrv.c:33:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  CC [M]  /home/kadimus2/intel-536-537/coredrv/clmmain.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/clmmain.c:37:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  CC [M]  /home/kadimus2/intel-536-537/coredrv/rts.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/rts.c:37:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  CC [M]  /home/kadimus2/intel-536-537/coredrv/task.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/task.c:38:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  CC [M]  /home/kadimus2/intel-536-537/coredrv/uart.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/uart.c:33:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  CC [M]  /home/kadimus2/intel-536-537/coredrv/wwh_dflt.o
  CC [M]  /home/kadimus2/intel-536-537/coredrv/locks.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/locks.c:37:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  CC [M]  /home/kadimus2/intel-536-537/coredrv/softserial_io.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/softserial_io.c:34:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  CC [M]  /home/kadimus2/intel-536-537/coredrv/softserial_ioctl.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/softserial_ioctl.c:34:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  CC [M]  /home/kadimus2/intel-536-537/coredrv/softserial.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/softserial.c:36:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  CC [M]  /home/kadimus2/intel-536-537/coredrv/afedsp_int.o
In file included from /home/kadimus2/intel-536-537/coredrv/hamdefs.h:54,
                 from /home/kadimus2/intel-536-537/coredrv/hamcore.h:45,
                 from /home/kadimus2/intel-536-537/coredrv/afedsp_int.h:36,
                 from /home/kadimus2/intel-536-537/coredrv/afedsp_int.c:33:
include/linux/autoconf.h:4283: warning: "CONFIG_VERSION_SIGNATURE" redefined
./include/generated/autoconf.h:4283: note: this is the location of the previous definition
  LD [M]  /home/kadimus2/intel-536-537/coredrv/Intel537.o
  Building modules, stage 2.
  MODPOST 1 modules
WARNING: could not find /home/kadimus2/intel-536-537/coredrv/.537core.lib.cmd for /home/kadimus2/intel-536-537/coredrv/537core.lib
  CC      /home/kadimus2/intel-536-537/coredrv/Intel537.mod.o
  LD [M]  /home/kadimus2/intel-536-537/coredrv/Intel537.ko
make[3]: Leaving directory `/usr/src/linux-headers-2.6.35-22-generic'
make[2]: Leaving directory `/home/kadimus2/intel-536-537/coredrv'
make[1]: Leaving directory `/home/kadimus2/intel-536-537'
root@R-system:/home/kadimus2/intel-536-537# make install
make[1]: Entering directory `/home/kadimus2/intel-536-537'
rm -f /usr/sbin/hamregistry.bin
bash 537_inst
running kernel 2.6.35-22-generic
installing hamregistry, used for persistant storage
installing usrsound, a soft buzzer
installing 537 module
install UBUNTU 537 boot script and links
starting module and utilities
usrsound: no process found

hamregistry: no process found

FATAL: Error inserting Intel537 (/lib/modules/2.6.35-22-generic/kernel/drivers/char/Intel537.ko): No such device
insmod: can't read 'Intel537': No such file or directory
error loading Intel537
ERROR: Module Intel537 does not exist in /proc/modules
done
make[1]: Leaving directory `/home/kadimus2/intel-536-537'


Qualquer ajuda é bem vinda, agradeço desde já.

Offline zekkerj

  • Usuário Ubuntu
  • *
  • Mensagens: 19.735
  • Gratidão gera gratidão, lamúria atrai lamúria...
    • Ver perfil
    • Blog do Zekke
Re: Problemas para compilar drivers ou qualquer outra coisa...
« Resposta #1 Online: 13 de Janeiro de 2011, 18:45 »
Comece por aqui:

- Pra compilar qualquer coisa:

sudo apt-get install build-essential

Você precisa estar conectado à internet pra esse comando funcionar.

- Pra compilar drivers:

sudo apt-get linux-headers-generic

Também precisa estar conectado à internet.
Pesquise antes de perguntar, sua dúvida pode já ter sido respondida.
Não respondo dúvidas por MP, coloque sua dúvida no fórum onde ela pode ser pesquisada pelos seus colegas!
Não venha ao fórum apenas para perguntar. Se você sabe a resposta de um problema, porque não ajudar seu colega? ;D