Hello, I am trying to get my scanport sq2030 scanner to work under linux so that I don't have to switch over to windows xp every time I need to use it. I did some research and found out that the kernel must be patched with the ppSCSI patch. I downloaded a kernel source file (tar.gz) from
www.kernel.org and patched the kernel with the patch linux-ppscsi-2.6.x-20060424 from penguin-breeder.org I did a make oldconfig and it looked at my existing config file to see what questions were already answered. I answered the rest. After that I compiled the kernel with bzimage. Later I did make modules. When I did the make modules I got an error which is make error [1] and make error[2]:
CC [M] drivers/scsi/advansys.o
drivers/scsi/advansys.c:71:2: warning: #warning this driver is still not properly converted to the DMA API
CC [M] drivers/scsi/BusLogic.o
CC [M] drivers/scsi/aic7xxx_old.o
CC [M] drivers/scsi/ips.o
drivers/scsi/ips.c: In function ‘ips_register_scsi’:
drivers/scsi/ips.c:6870: warning: ignoring return value of ‘scsi_add_host’, declared with attribute warn_unused_result
CC [M] drivers/scsi/qlogicfas408.o
CC [M] drivers/scsi/qla1280.o
CC [M] drivers/scsi/dc395x.o
CC [M] drivers/scsi/tmscsim.o
CC [M] drivers/scsi/megaraid.o
CC [M] drivers/scsi/atp870u.o
CC [M] drivers/scsi/gdth.o
drivers/scsi/gdth.c: In function ‘gdth_search_dev’:
drivers/scsi/gdth.c:646: warning: ‘pci_find_device’ is deprecated (declared at include/linux/pci.h:492)
CC [M] drivers/scsi/initio.o
CC [M] drivers/scsi/a100u2w.o
CC [M] drivers/scsi/3w-xxxx.o
CC [M] drivers/scsi/3w-9xxx.o
CC [M] drivers/scsi/ppa.o
CC [M] drivers/scsi/imm.o
CC [M] drivers/scsi/libsrp.o
CC [M] drivers/scsi/hptiop.o
drivers/scsi/hptiop.c: In function ‘hptiop_host_request_callback’:
drivers/scsi/hptiop.c:378: warning: comparison of distinct pointer types lacks a cast
drivers/scsi/hptiop.c:378: warning: comparison of distinct pointer types lacks a cast
CC [M] drivers/scsi/stex.o
CC [M] drivers/scsi/st.o
CC [M] drivers/scsi/osst.o
LD [M] drivers/scsi/sd_mod.o
LD [M] drivers/scsi/sr_mod.o
CC [M] drivers/scsi/sg.o
CC [M] drivers/scsi/ch.o
CC [M] drivers/scsi/ppscsi.o
In file included from drivers/scsi/ppscsi.c:55:
drivers/scsi/ppscsi.h:16:26: error: linux/config.h: No such file or directory
drivers/scsi/ppscsi.c: In function ‘ppsc_update_sg’:
drivers/scsi/ppscsi.c:486: error: ‘struct scatterlist’ has no member named ‘page’
drivers/scsi/ppscsi.c: In function ‘ppsc_engine’:
drivers/scsi/ppscsi.c:573: error: ‘struct scatterlist’ has no member named ‘page’
drivers/scsi/ppscsi.c:1148:39: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
drivers/scsi/ppscsi.c: In function ‘ppsc_detect’:
drivers/scsi/ppscsi.c:1148: error: ‘INIT_WORK’ undeclared (first use in this function)
drivers/scsi/ppscsi.c:1148: error: (Each undeclared identifier is reported only once
drivers/scsi/ppscsi.c:1148: error: for each function it appears in.)
drivers/scsi/ppscsi.c:1190: warning: cast from pointer to integer of different size
make[2]: *** [drivers/scsi/ppscsi.o] Error 1
make[1]: *** [drivers/scsi] Error 2
make: *** [drivers] Error 2
Next i tried to backup my existing modules and got this error message.
[root@fedoradesktop linux-2.6.24]# mv /lib/modules/`uname -r` /lib/modules/`uname r`.bak
uname: extra operand `r'
Try `uname --help' for more information.
[root@fedoradesktop linux-2.6.24]# uname -r
2.6.23.14-107.fc8 (this is my current kernel)
I tried it a different way.
[root@fedoradesktop linux-2.6.24]# mv /lib/modules/2.6.23.14-107.fc8 /lib/modules/2.6.23.14-107.fc8.bak
mv: cannot stat `/lib/modules/2.6.23.14-107.fc8': No such file or directory
[root@fedoradesktop linux-2.6.24]#
So what do I have to do to get a working patch for the kernel source, (I downloaded kernel 2.6.24) compile the kernel, and install it properly?