Jump to content

Error compiling driver for Promise PDC30375


somedude
 Share

Recommended Posts

Hi everybody,

 

I am trying to install 10.0 on a PATA drive hooked up to a Promise SATA/UDMA133 TX2plus card.

Since the CD does list a driver but the file is nowhere to be found, I decide to compile my own driver from the source code on the Promise site.

 

The README is somewhat comprehensive and I was able to pass all prerequisites.

 

Unfortunately, the driver won't 'make'. I get make: *** [pdc618_mod.o] Error 1

 

There are many errors reported by make, though, I I don't know whether they are all critical or just one, which is what the error message leads me to believe: Error 1.

 

This is what I am getting from make:

....

make[1]: Leaving directory `/usr/local/src/pdc-ultra/cam'

gcc -D__KERNEL__ -DMODULE -D__LINUX__ -D_MMIO_ -I/lib/modules/2.6.3-7mdk/build/include -I/lib/modules/2.6.3-7mdk/build -Icam -I/lib/modules/2.6.3-7mdk/build/arch/i386/mach-generic -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -mpreferred-stack-boundary=2 -fno-common -march=i386 -c pdc618_mod.c

In file included from pdc618_mod.c:29:

/lib/modules/2.6.3-7mdk/build/include/asm/irq.h:16:25: irq_vectors.h: No such file or directory

In file included from pdc618_mod.c:42:

/lib/modules/2.6.3-7mdk/build/include/linux/blk.h:1:2: warning: #warning this file is obsolete, please use <linux/blkdev.h> instead

pdc618_mod.c:43:26: linux/tqueue.h: No such file or directory

pdc618_mod.c:46:27: linux/wrapper.h: No such file or directory

In file included from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,

from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11,

from pdc618_mod.c:47:

/lib/modules/2.6.3-7mdk/build/include/linux/irq.h:70: error: `NR_IRQS' undeclared here (not in a function)

In file included from /lib/modules/2.6.3-7mdk/build/include/linux/irq.h:72,

from /lib/modules/2.6.3-7mdk/build/include/asm/hardirq.h:6,

from /lib/modules/2.6.3-7mdk/build/include/linux/interrupt.h:11,

from pdc618_mod.c:47:

/lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:28: error: `NR_IRQ_VECTORS' undeclared here (not in a function)

/lib/modules/2.6.3-7mdk/build/include/asm/hw_irq.h:31: error: `NR_IRQS' undeclared here (not in a function)

pdc618_mod.c:50:29: drivers/scsi/sd.h: No such file or directory

pdc618_mod.c: In function `pdc618_init_ioport':

pdc618_mod.c:370: warning: `check_region' is deprecated (declared at /lib/modules/2.6.3-7mdk/build/include/linux/ioport.h:121)

pdc618_mod.c:373: warning: `check_region' is deprecated (declared at /lib/modules/2.6.3-7mdk/build/include/linux/ioport.h:121)

pdc618_mod.c:375: warning: `check_region' is deprecated (declared at /lib/modules/2.6.3-7mdk/build/include/linux/ioport.h:121)

pdc618_mod.c:378: warning: passing arg 2 of `request_irq' from incompatible pointer type

pdc618_mod.c: In function `pdc618_cbk_ata_rw':

pdc618_mod.c:1289: error: structure has no member named `host'

pdc618_mod.c: In function `pdc618_cbk_atapi_dma':

pdc618_mod.c:1346: error: structure has no member named `host'

pdc618_mod.c: In function `pdc618_ata_rw':

pdc618_mod.c:1458: error: structure has no member named `host'

pdc618_mod.c:1463: error: structure has no member named `target'

pdc618_mod.c: In function `pdc618_atapi_dma':

pdc618_mod.c:1566: error: structure has no member named `host'

pdc618_mod.c:1568: error: structure has no member named `target'

pdc618_mod.c: In function `pdc618_atapi_pio':

pdc618_mod.c:1648: error: structure has no member named `host'

pdc618_mod.c:1650: error: structure has no member named `target'

pdc618_mod.c: In function `pdc618_queuecommand':

pdc618_mod.c:1746: error: structure has no member named `target'

pdc618_mod.c:1750: error: structure has no member named `host'

pdc618_mod.c:1759: error: structure has no member named `target'

pdc618_mod.c: In function `pdc618_scsi_reset':

pdc618_mod.c:1913: error: structure has no member named `host'

pdc618_mod.c:1915: error: structure has no member named `target'

pdc618_mod.c: In function `pdc618_scsi_eh_device_reset':

pdc618_mod.c:1934: error: structure has no member named `host'

pdc618_mod.c:1938: error: structure has no member named `target'

pdc618_mod.c: In function `pdc618_scsi_eh_host_reset':

pdc618_mod.c:1959: error: structure has no member named `host'

pdc618_mod.c:1961: error: structure has no member named `target'

pdc618_mod.c: At top level:

pdc618_mod.c:1977: error: parse error before '*' token

pdc618_mod.c:1981: warning: function declaration isn't a prototype

pdc618_mod.c: In function `pdc618_bios_param':

pdc618_mod.c:1986: error: `disk' undeclared (first use in this function)

pdc618_mod.c:1986: error: (Each undeclared identifier is reported only once

pdc618_mod.c:1986: error: for each function it appears in.)

pdc618_mod.c:2000: error: `geom' undeclared (first use in this function)

pdc618_mod.c: At top level:

pdc618_mod.c:2210: error: unknown field `next' specified in initializer

pdc618_mod.c:2210: warning: initialization from incompatible pointer type

pdc618_mod.c:2210: error: unknown field `command' specified in initializer

pdc618_mod.c:2210: warning: initialization from incompatible pointer type

pdc618_mod.c:2210: warning: initialization from incompatible pointer type

pdc618_mod.c:2210: error: unknown field `slave_attach' specified in initializer

pdc618_mod.c:2210: error: unknown field `use_new_eh_code' specified in initializer

pdc618_mod.c: In function `init_module':

pdc618_mod.c:2216: warning: implicit declaration of function `scsi_register_host'

pdc618_mod.c:2226: warning: implicit declaration of function `scsi_unregister_host'

make: *** [pdc618_mod.o] Error 1

 

 

Sorry for the lengthy post.

I would really appreciate some guidance with this issue.

 

Thank you very much.

 

Kernel: 2.6.3-7mdk

Distro: Mandrake 10.0 OE

gcc 3.3.2

Make 3.80 (GNU)

Ld 2.14.90.0.7 20031029 (GNU)

Link to comment
Share on other sites

Thank you for your reply.

 

I did. I have the sources in

/usr/src/linux/

Actually there's a soft link to 2.6.3-7mdk/...

 

Do you think I'm missing modules? If I look at the errors as they occur,

there's a bunch of .h files that are missing.

If these files are specific to 2.4 kernel, is there any way to make it compile with 2.6?

Edited by somedude
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...