[484] in linux-scsi channel archive

home help back first fref pref prev next nref lref last post

Compile time override woes

daemon@ATHENA.MIT.EDU (Joseph Nyilas (R))
Mon Aug 7 16:06:12 1995

From: jnyilas@ford.com (Joseph Nyilas (R))
To: linux-scsi@vger.rutgers.edu
Date: Mon, 7 Aug 1995 08:11:32 -0400 (EDT)


Hello Linux Wizards--
 
 
I have a Trantor T160 SCSI host adaptor. It seems to work fine
if I use the generic NCR5380 SCSI driver. However, since my card
is not recognized by the kernel, I have to pass options into LILO
in order to get it to work.
 
I would like to make a bootdisk with the parameters already built into
the kernel. ( I don't want to use LILO...)
 
There is an option in the low level driver source (g_NCR5380.c) to override
the default recognized configuration. (Kernel 1.2.10 source)
 
I have tried the following compile time hacks:
 
        1) added a -DGENERIC_NCR5380_OVERRIDE={{0x360, IRQ_NONE, DMA_NONE}}
to the CFLAGS string in the /usr/src/linux/drivers/scsi/Makefile
 
        2) added #define GENERIC_NCR5380_OVERRIDE {0x360, IRQ_NONE, DMA_NONE} 
to the beginning of g_NCR5380.c
 
        3) added #define GENERIC_NCR5380_OVERRIDE {0x360, IRQ_NONE, DMA_NONE}
to the beginning of g_NCR5380.h
 
All of these methods fail with the following compile errors---
 
(ie, running make zdisk)
 
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-f
rame-pointer -pipe -m386 -c g_NCR5380.c
g_NCR5380.c:94: parse error before `void'
g_NCR5380.c:101: `commandline_current' undeclared here (not in a function)
g_NCR5380.c:101: parse error before `.'
g_NCR5380.c:102: `commandline_current' undeclared here (not in a function)
g_NCR5380.c:102: parse error before `.'
make[2]: *** [g_NCR5380.o] Error 1
make[2]: Leaving directory `/usr/src/linux/drivers/scsi'
make[1]: *** [driversubdirs] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [linuxsubdirs] Error 2
 
 
The kernel compiles fine UNLESS I put the override define in. 
 
 
Anyone have any ideas?
Thanks for your help!
 
--Joe

jnyilas@pt8165.pto.ford.com
or
jnyilas@ford.com

home help back first fref pref prev next nref lref last post