[Linux-parport] ppscsi: epst with kernel 2.6.10
J Fairbairn
jonf.parport at mailnull.com
Fri Jan 28 14:21:24 EST 2005
I've been using an HP scanner (HP5100C) on a parallel port
with kernels up to 2.4.22 with the ppscsi+epst patch, but
I'm considering switching to a 2.6 kernel.
I've trawled this list for messages relating to this; I
found the patch for 2.6 kernels (from
http://penguin-breeder.org/kernel/download/linux-ppscsi-2.6.x.patch.gz)
and applied the later patch (from
http://lists.infradead.org/pipermail/linux-parport/2005-January/000216.html)
to make it compile with 2.6.10 (parport_get_port needed
exporting -- the patch needed tweaking to make it apply),
but I couldn't find anything that takes it further, so I'm
hoping for some help.
What I have now is a 2.6.10 kernel with parport_pc, sg,
ppscsi and epst all as modules (scsi_mod is built in as some
of the hard discs are scsi).
When I modprobe epst, the module loads happily, but scsi
doesn't report the device -- epst logs it, but it just
doesn't seem to get attached to /dev/sg[anything]. What do I
try now?
I've attached logging messages and the contents of
/proc/scsi/epst/3. /proc/scsi/scsi just lists my hard disc
and CDROM, not the scanner. As can be seen from the log,
epst is talking to the scanner and discovers its device
string, but scsi just says scsi3: epst.
Aside: the first time I loaded the modules it came out
as scsi2, and unloading produced a complaint about epst not
releasing the driver.
--
Jón Fairbairn Jon.Fairbairn at cl.cam.ac.uk
-------------- next part --------------
ident: epst 0.92 (0.92), Shuttle EPST
base port: 0x378
mode: 5
mode name: EPP-32
delay: 1
nice: 0
verbose: 4
quiet: 0
tot_cmds: 47
tot_bytes: 1692
tot_errs: 0
parport device: parport0
claimed: 0
then: 2901757
timeout: 2901857
now: 3461905
timer active: 0
wq_active: 0
abort_flag: 0
return_code: 00010000
last_phase: 0
cmd_count: 0
data_count: 36
data_dir: 1
bulk: 0
tlen: 36
overflow: 0
-------------- next part --------------
Jan 28 18:33:19 monogramme kernel: ppSCSI 0.92 (0.92) installed
Jan 28 18:33:29 monogramme kernel: epst.0: 0x378 is parport0
Jan 28 18:33:29 monogramme kernel: epst.0: version code reads: 0xb2
Jan 28 18:33:29 monogramme kernel: epst.0: test port 0x378 mode 0 errors 0
Jan 28 18:33:29 monogramme kernel: epst.0: Target 0, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:29 monogramme kernel: epst.0: selected target
Jan 28 18:33:29 monogramme kernel: epst.0: Command to 0 (6): 12 0 0 0 24 0
Jan 28 18:33:29 monogramme kernel: epst.0: slow read 36 bytes
Jan 28 18:33:29 monogramme kernel: epst.0: status = 0
Jan 28 18:33:29 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:29 monogramme kernel: epst.0: Command status 00000000 last phase 37
Jan 28 18:33:29 monogramme kernel: epst.0: port 0x378 mode 0 targ 0: ........HP C5190A 3740
Jan 28 18:33:29 monogramme kernel: epst.0: Target 1, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:29 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:29 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:29 monogramme kernel: epst.0: Target 2, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:29 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:29 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:29 monogramme kernel: epst.0: Target 3, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:29 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:29 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:29 monogramme kernel: epst.0: Target 4, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:29 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:30 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:30 monogramme kernel: epst.0: Target 5, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:30 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:30 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:30 monogramme kernel: epst.0: Target 6, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:30 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:30 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:31 monogramme kernel: epst.0: Target 7, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:31 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:31 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:31 monogramme kernel: epst.0: port 0x378 mode 0 test passed (0,0,1)
Jan 28 18:33:31 monogramme kernel: epst.0: version code reads: 0x52
Jan 28 18:33:31 monogramme kernel: epst.0: port 0x378 mode 1 test failed (1,-1,0)
Jan 28 18:33:32 monogramme kernel: epst.0: version code reads: 0xb2
Jan 28 18:33:32 monogramme kernel: epst.0: test port 0x378 mode 2 errors 0
Jan 28 18:33:32 monogramme kernel: epst.0: Target 0, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:32 monogramme kernel: epst.0: selected target
Jan 28 18:33:32 monogramme kernel: epst.0: Command to 0 (6): 12 0 0 0 24 0
Jan 28 18:33:32 monogramme kernel: epst.0: slow read 36 bytes
Jan 28 18:33:33 monogramme kernel: epst.0: status = 0
Jan 28 18:33:33 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:33 monogramme kernel: epst.0: Command status 00000000 last phase 37
Jan 28 18:33:33 monogramme kernel: epst.0: port 0x378 mode 2 targ 0: ........HP C5190A 3740
Jan 28 18:33:33 monogramme kernel: epst.0: Target 1, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:33 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:33 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:33 monogramme kernel: epst.0: Target 2, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:34 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:34 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:34 monogramme kernel: epst.0: Target 3, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:34 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:34 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:34 monogramme kernel: epst.0: Target 4, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:34 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:34 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:34 monogramme kernel: epst.0: Target 5, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:34 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:34 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:34 monogramme kernel: epst.0: Target 6, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:34 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:34 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:34 monogramme kernel: epst.0: Target 7, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:34 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:34 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:34 monogramme kernel: epst.0: port 0x378 mode 2 test passed (0,0,1)
Jan 28 18:33:34 monogramme kernel: epst.0: version code reads: 0xb2
Jan 28 18:33:34 monogramme kernel: epst.0: test port 0x378 mode 3 errors 0
Jan 28 18:33:34 monogramme kernel: epst.0: Target 0, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:34 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:34 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:34 monogramme kernel: epst.0: Target 1, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:35 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:35 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:35 monogramme kernel: epst.0: Target 2, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:35 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:35 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:35 monogramme kernel: epst.0: Target 3, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:35 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:35 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:35 monogramme kernel: epst.0: Target 4, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:35 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:35 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:35 monogramme kernel: epst.0: Target 5, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:35 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:35 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:35 monogramme kernel: epst.0: Target 6, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:35 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:35 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:35 monogramme kernel: epst.0: Target 7, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:35 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:35 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:35 monogramme kernel: epst.0: port 0x378 mode 3 test passed (0,0,0)
Jan 28 18:33:35 monogramme kernel: epst.0: version code reads: 0xb2
Jan 28 18:33:35 monogramme kernel: epst.0: test port 0x378 mode 4 errors 0
Jan 28 18:33:36 monogramme kernel: epst.0: Target 0, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:36 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:36 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:36 monogramme kernel: epst.0: Target 1, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:36 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:36 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:36 monogramme kernel: epst.0: Target 2, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:36 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:36 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:36 monogramme kernel: epst.0: Target 3, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:36 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:36 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:36 monogramme kernel: epst.0: Target 4, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:36 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:36 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:36 monogramme kernel: epst.0: Target 5, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:36 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:36 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:36 monogramme kernel: epst.0: Target 6, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:36 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:36 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:36 monogramme kernel: epst.0: Target 7, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:36 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:36 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:37 monogramme kernel: epst.0: port 0x378 mode 4 test passed (0,0,0)
Jan 28 18:33:37 monogramme kernel: epst.0: version code reads: 0xb2
Jan 28 18:33:37 monogramme kernel: epst.0: test port 0x378 mode 5 errors 0
Jan 28 18:33:37 monogramme kernel: epst.0: Target 0, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:37 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:37 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:37 monogramme kernel: epst.0: Target 1, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:37 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:37 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:37 monogramme kernel: epst.0: Target 2, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:37 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:37 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:37 monogramme kernel: epst.0: Target 3, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:37 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:37 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:37 monogramme kernel: epst.0: Target 4, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:37 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:37 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:37 monogramme kernel: epst.0: Target 5, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:37 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:37 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:37 monogramme kernel: epst.0: Target 6, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:37 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:38 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:38 monogramme kernel: epst.0: Target 7, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:38 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:38 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:38 monogramme kernel: epst.0: port 0x378 mode 5 test passed (0,0,0)
Jan 28 18:33:38 monogramme kernel: epst.0: epst 0.92 (0.92), Shuttle EPST at 0x378 mode 5 (EPP-32) dly 1 nice 0 sg 16
Jan 28 18:33:38 monogramme kernel: scsi3 : epst
Jan 28 18:33:38 monogramme kernel: epst.0: Target 0, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:38 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:38 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:38 monogramme kernel: epst.0: Target 1, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:38 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:38 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:38 monogramme kernel: epst.0: Target 2, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:38 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:38 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:38 monogramme kernel: epst.0: Target 3, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:38 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:38 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:38 monogramme kernel: epst.0: Target 4, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:38 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:38 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:38 monogramme kernel: epst.0: Target 5, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:38 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:39 monogramme kernel: epst.0: Command status 00010000 last phase 0
Jan 28 18:33:39 monogramme kernel: epst.0: Target 6, bl=36 us=0 bf=0 cm=12
Jan 28 18:33:39 monogramme kernel: epst.0: releasing parport
Jan 28 18:33:39 monogramme kernel: epst.0: Command status 00010000 last phase 0
More information about the Linux-parport
mailing list