Folks,

        there must be something that I'm doing wrong, but I have been
hitting my head
against the proverbial brick wall for the last four days.

        I'm in the process of converting the Qlogic QLA2100 FC HBA driver
from Intel to
Alpha.  On the Intel side, I have it working successfully, but on the Alpha
side I have not
been able to build it into the kernel.  I have taken the following steps:

*       Copy the driver and include files (qla2100.c, qla2100.h, ql2100_fw.h
and ql2200_fw.h)
into /usr/src/linux/drivers/scsi

*       Add lines to /usr/src/linux/drivers/scsi/Makefile
                o       After QLOGIC_FC section (~line 317) add

                                ifeq ($(CONFIG_SCSI_QLOGIC_QLA2100),y)
                                L_OBJS += qla2x00.o 
                                else
                                  ifeq ($(CONFIG_SCSI_QLOGIC_QLA2100),m)   
                                  M_OBJS += qla2x00.o 
                                  endif
                                endif

                o       Near end of makefile (~line 646) add

                                qla2x00.o: ql2200_fw.h ql2100_fw.h qla2100.h
qla2100.c
                <TAB>   $(CC) $(CFLAGS) -c qla2100.c -o qla2x00.o
                
*       Add lines to /usr/src/linux/drivers/scsi/hosts.c

                o       In appropriate place add

                                #ifdef CONFIG_SCSI_QLOGIC_QLA2100
                                #include "qla2100.h"
                                #endif

                o       In appropriate place add

                                #ifdef CONFIG_SCSI_QLOGIC_QLA2100
                                    QLA2100_LINUX_TEMPLATE,
                                #endif

*       Add line before in /usr/src/linux/drivers/scsi/Config.in

                dep_tristate 'Qlogic QLA2100/2200 driver support'
CONFIG_SCSI_QLOGIC_QLA2100 $CONFIG_SCSI

*       Check /usr/src/linux/.config to make sure the line
CONFIG_SCSI_QLOGIC_QLA2100=y is there and CONFIG_SCSI_QLOGIC_FC=n .

After the above steps, I did a make clean, verified that everything looked
ok, and did a make dep.
I then did the make boot to build the kernel.

        After a couple of failures, I checked the System.map and noticed
that none of the symbols
for the qla2100 driver had made it into the kernel.  I checked scsi.a with
an nm -B and saw that the
symbols were in scsi.a.  The kernel link did not complain about any
problems, but for some reason
does not want to include the qla2100 driver.

        Any thoughts on what I'm missing?  Thanks.

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to