compilando modulo pata_marvell no kernel 2.6.18 [RESOLVIDO]

1. compilando modulo pata_marvell no kernel 2.6.18 [RESOLVIDO]

Roni Gasparetto
ronigasparetto

(usa Debian)

Enviado em 03/02/2009 - 10:32h

Bom dia pessoal!
Estou tentando compilar o modulo pata_marvell.c com o kernel 2.6.18,no entanto não é uma tarefa tão facil, na tentativa de compilar o driver deu alguns erros:

/usr/src/marvell_pata/pata_marvell.c:68: warning: ‘struct ata_link’ declared inside parameter list
/usr/src/marvell_pata/pata_marvell.c:68: warning: its scope is only this definition or declaration, which is probably not what you want
/usr/src/marvell_pata/pata_marvell.c: In function ‘marvell_pre_reset’:
/usr/src/marvell_pata/pata_marvell.c:70: error: dereferencing pointer to incomplete type
/usr/src/marvell_pata/pata_marvell.c:71: error: ‘struct Scsi_Host’ has no member named ‘dev’
/usr/src/marvell_pata/pata_marvell.c:77: warning: implicit declaration of function ‘ata_sff_prereset’
/usr/src/marvell_pata/pata_marvell.c: In function ‘marvell_cable_detect’:
/usr/src/marvell_pata/pata_marvell.c:86: warning: passing argument 1 of ‘ioread8’ makes pointer from integer without a cast
/usr/src/marvell_pata/pata_marvell.c: At top level:
/usr/src/marvell_pata/pata_marvell.c:100: warning: implicit declaration of function ‘ATA_BMDMA_SHT’
/usr/src/marvell_pata/pata_marvell.c:100: error: initializer element is not constant
/usr/src/marvell_pata/pata_marvell.c:100: error: (near initialization for ‘marvell_sht.module’)
/usr/src/marvell_pata/pata_marvell.c:104: error: unknown field ‘inherits’ specified in initializer
/usr/src/marvell_pata/pata_marvell.c:104: error: ‘ata_bmdma_port_ops’ undeclared here (not in a function)
/usr/src/marvell_pata/pata_marvell.c:105: error: unknown field ‘cable_detect’ specified in initializer
/usr/src/marvell_pata/pata_marvell.c:105: warning: initialization from incompatible pointer type
/usr/src/marvell_pata/pata_marvell.c:106: error: unknown field ‘prereset’ specified in initializer
/usr/src/marvell_pata/pata_marvell.c:106: warning: initialization from incompatible pointer type
/usr/src/marvell_pata/pata_marvell.c: In function ‘marvell_init_one’:
/usr/src/marvell_pata/pata_marvell.c:127: error: unknown field ‘flags’ specified in initializer
/usr/src/marvell_pata/pata_marvell.c:127: warning: initialization makes pointer from integer without a cast
/usr/src/marvell_pata/pata_marvell.c:137: error: unknown field ‘flags’ specified in initializer
/usr/src/marvell_pata/pata_marvell.c:137: warning: initialization makes pointer from integer without a cast
/usr/src/marvell_pata/pata_marvell.c:148: error: ‘ata_dummy_port_info’ undeclared (first use in this function)
/usr/src/marvell_pata/pata_marvell.c:148: error: (Each undeclared identifier is reported only once
/usr/src/marvell_pata/pata_marvell.c:148: error: for each function it appears in.)
/usr/src/marvell_pata/pata_marvell.c:156: warning: implicit declaration of function ‘ata_pci_sff_init_one’
make[2]: ** [/usr/src/marvell_pata/pata_marvell.o] Erro 1
make[1]: ** [_module_/usr/src/marvell_pata] Erro 2

acredito que esteja faltando arquivos de cabeçalhos. A partir do kernel 2.6.24 tem suporte para esse modulos, porém preciso virtualizar essa maquina com o xen, e mesmo so tem suporte para kernel 2.6.18.

qualquer ajuda agradeço!


  


2. Re: compilando modulo pata_marvell no kernel 2.6.18 [RESOLVIDO]

Roni Gasparetto
ronigasparetto

(usa Debian)

Enviado em 03/02/2009 - 15:19h

Esse modulo foi escrito para versões 2.6.24 a 2.6.28, então fica dificil compilar na versão 2.6.18.


3. Re: compilando modulo pata_marvell no kernel 2.6.18 [RESOLVIDO]

Tharsis Novais
tharsismn

(usa Ubuntu)

Enviado em 11/10/2009 - 01:51h

Olá...
tente fazer o seguinte...

digite o seguinte comando: uname -r
desta forma irá aparecer a sua versão.

depois digite: apt-get install linux-headers-sua.versao

depois que o hedears tiver instalado tente compilar novamente






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts