Hello,
I tried to compile the usbat2 driver in the hope of making my DANE-ELEC
CF-only reader work. My system is a little uncommon I must admit as it is
a RH 7.2 but with a 2.4.17 kernel (for other USB devices I need !).
I followed the instructions for the compilation but at the second file it
compiles (protocol.c) it fails with a series of strange errors :
cc -Wall -DMODULE -D__KERNEL__ -DLINUX -D__SMP__ -I.
-I/lib/modules/2.4.17/build/include -I../scsi -c -o protocol.o
protocol.c
protocol.c: In function `fix_inquiry_data':
protocol.c:64: `INQUIRY' undeclared (first use in this function)
protocol.c:64: (Each undeclared identifier is reported only once
protocol.c:64: for each function it appears in.)
protocol.c: In function `usb_stor_ATAPI_command':
protocol.c:127: `MODE_SENSE' undeclared (first use in this function)
protocol.c:128: `MODE_SELECT' undeclared (first use in this function)
protocol.c:148: `WRITE_6' undeclared (first use in this function)
protocol.c:149: `READ_6' undeclared (first use in this function)
protocol.c:130: warning: unreachable code at beginning of switch statement
protocol.c:173: `GOOD' undeclared (first use in this function)
protocol.c: In function `usb_stor_ufi_command':
... and so on
To me it looks as if there is an include file is not found.
I have chosen to compile usbat2 outside of the kernel tree with the idea
of overwriting the old usb-storage with what ever I would get.
I would be grateful for any advice you could give. There is no rush as I
will be out of town for a week.
Thank you very much in advance for your help.
Best regards
Jan