kopia lustrzana https://gitlab.com/sane-project/website
359 wiersze
11 KiB
HTML
359 wiersze
11 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<HTML>
|
|
<HEAD>
|
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-2022-jp">
|
|
<TITLE>sane-devel: The aha152x panic of Canon Backend for FB620S</TITLE>
|
|
<META NAME="Author" CONTENT="Mitsuru Okaniwa (m-okaniwa@bea.hi-ho.ne.jp)">
|
|
<META NAME="Subject" CONTENT="The aha152x panic of Canon Backend for FB620S">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
|
|
<H1>The aha152x panic of Canon Backend for FB620S</H1>
|
|
<!-- received="Sun Jan 28 20:03:09 2001" -->
|
|
<!-- isoreceived="20010129040309" -->
|
|
<!-- sent="Mon, 29 Jan 2001 13:03:40 +0900" -->
|
|
<!-- isosent="20010129040340" -->
|
|
<!-- name="Mitsuru Okaniwa" -->
|
|
<!-- email="m-okaniwa@bea.hi-ho.ne.jp" -->
|
|
<!-- subject="The aha152x panic of Canon Backend for FB620S" -->
|
|
<!-- id="001501c089a8$a53ca520$6425530a@necpcuser" -->
|
|
<!-- charset="iso-2022-jp" -->
|
|
<STRONG>From:</STRONG> Mitsuru Okaniwa (<A HREF="mailto:m-okaniwa@bea.hi-ho.ne.jp?Subject=Re:%20The%20aha152x%20panic%20of%20Canon%20Backend%20for%20FB620S&In-Reply-To=<001501c089a8$a53ca520$6425530a@necpcuser>"><EM>m-okaniwa@bea.hi-ho.ne.jp</EM></A>)<BR>
|
|
<STRONG>Date:</STRONG> Sun Jan 28 2001 - 20:03:40 PST
|
|
<P>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0302.html">stef: "UMAX 1220P/2000P & HP 320C backend initial release"</A>
|
|
<UL>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0300.html">Alex Belits: "Re: FireWire (i.Link / 1394) support?"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0308.html">Juergen E Fischer: "Re: The aha152x panic of Canon Backend for FB620S"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0308.html">Juergen E Fischer: "Re: The aha152x panic of Canon Backend for FB620S"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#301">[ date ]</A>
|
|
<A HREF="index.html#301">[ thread ]</A>
|
|
<A HREF="subject.html#301">[ subject ]</A>
|
|
<A HREF="author.html#301">[ author ]</A>
|
|
</UL>
|
|
<HR NOSHADE><P>
|
|
<!-- body="start" -->
|
|
<P>
|
|
Hi
|
|
<BR>
|
|
I modified Canon backend for FB620S and SANE1.0.3.
|
|
<BR>
|
|
I have added a reset_scanner function and a calibration function as
|
|
<BR>
|
|
follows.
|
|
<BR>
|
|
<P>1) a reset_scanner
|
|
<BR>
|
|
This command resets the scanner.
|
|
<BR>
|
|
When issuing this Reset command during a scan, follow the procedure below:
|
|
<BR>
|
|
* Switch to the Standby mode (return to HP).
|
|
<BR>
|
|
* Execute Reset, then send back the Status.
|
|
<BR>
|
|
<P>This command sends back an error only in the case of a command parameter
|
|
<BR>
|
|
error.
|
|
<BR>
|
|
For other errors(like HP errors), it still sends back the Good status.
|
|
<BR>
|
|
<P>I modified canon-scsi.c as follows.
|
|
<BR>
|
|
=================================================
|
|
<BR>
|
|
static SANE_Status
|
|
<BR>
|
|
reset_scanner (int fd)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
static u_char cmd[6];
|
|
<BR>
|
|
int status;
|
|
<BR>
|
|
DBG (31, ">> reset_scanner\n");
|
|
<BR>
|
|
<P> memset (cmd, 0, sizeof (cmd));
|
|
<BR>
|
|
cmd[0] = 0xc1;
|
|
<BR>
|
|
status = sanei_scsi_cmd2 (fd, cmd, sizeof (cmd), 0, 0, 0, 0);
|
|
<BR>
|
|
<P> DBG (31, "<< reset_scanner \n");
|
|
<BR>
|
|
return (status);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
=================================================
|
|
<BR>
|
|
<P>And modified canon-sane.c as follows.
|
|
<BR>
|
|
=================================================
|
|
<BR>
|
|
In sane_get_parameters function
|
|
<BR>
|
|
<P> case OPT_RESET_SCANNER:
|
|
<BR>
|
|
sanei_scsi_open (s->hw->sane.name, &s->fd, sense_handler, 0);
|
|
<BR>
|
|
if (status == SANE_STATUS_GOOD)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
status = reset_scanner(s->fd);
|
|
<BR>
|
|
if (status != SANE_STATUS_GOOD)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
DBG (21, "RESET SCANNER failed\n");
|
|
<BR>
|
|
sanei_scsi_close (s->fd);
|
|
<BR>
|
|
s->fd = -1;
|
|
<BR>
|
|
return (SANE_STATUS_INVAL);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
DBG (21, "RESET SCANNER\n");
|
|
<BR>
|
|
sanei_scsi_close (s->fd);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
else
|
|
<BR>
|
|
{
|
|
<BR>
|
|
DBG (1, "reset scanner: cannot open device file\n");
|
|
<BR>
|
|
}
|
|
<BR>
|
|
s->fd = -1;
|
|
<BR>
|
|
return status;
|
|
<BR>
|
|
=================================================
|
|
<BR>
|
|
<P><P>2) a calibration
|
|
<BR>
|
|
modulated-light data setting and shading.
|
|
<BR>
|
|
<P>I modified canon-scsi.c as follows.
|
|
<BR>
|
|
=================================================
|
|
<BR>
|
|
static SANE_Status
|
|
<BR>
|
|
execute_calibration (int fd)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
static u_char cmd[6];
|
|
<BR>
|
|
u_char data[2];
|
|
<BR>
|
|
int status;
|
|
<BR>
|
|
DBG (31, ">> execute_calibration\n");
|
|
<BR>
|
|
<P> memset (cmd, 0, sizeof (cmd));
|
|
<BR>
|
|
memset (data, 0, sizeof (data));
|
|
<BR>
|
|
cmd[0] = 0xc2;
|
|
<BR>
|
|
cmd[4] = 2;
|
|
<BR>
|
|
status = sanei_scsi_cmd2 (fd, cmd, sizeof (cmd), data, sizeof (data), 0,
|
|
<BR>
|
|
0);
|
|
<BR>
|
|
<P> DBG (31, "<< execute_calibration\n");
|
|
<BR>
|
|
return (status);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
=================================================
|
|
<BR>
|
|
<P>And modified canon-sane.c as follows.
|
|
<BR>
|
|
=================================================
|
|
<BR>
|
|
In sane_get_parameters function
|
|
<BR>
|
|
<P> case OPT_CALIBRATION_NOW:
|
|
<BR>
|
|
sanei_scsi_open (s->hw->sane.name, &s->fd, sense_handler, 0);
|
|
<BR>
|
|
if (status == SANE_STATUS_GOOD)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
status = execute_calibration(s->fd);
|
|
<BR>
|
|
if (status != SANE_STATUS_GOOD)
|
|
<BR>
|
|
{
|
|
<BR>
|
|
DBG (21, "EXECUTE CALIBRATION failed\n");
|
|
<BR>
|
|
sanei_scsi_close (s->fd);
|
|
<BR>
|
|
s->fd = -1;
|
|
<BR>
|
|
return (SANE_STATUS_INVAL);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
DBG (21, "EXECUTE CALIBRATION\n");
|
|
<BR>
|
|
sanei_scsi_close (s->fd);
|
|
<BR>
|
|
}
|
|
<BR>
|
|
else
|
|
<BR>
|
|
{
|
|
<BR>
|
|
DBG (1, "calibration: cannot open device file\n");
|
|
<BR>
|
|
}
|
|
<BR>
|
|
s->fd = -1;
|
|
<BR>
|
|
return status;
|
|
<BR>
|
|
=================================================
|
|
<BR>
|
|
I have made the button of "reset_scanner" and "execute_calibration"
|
|
<BR>
|
|
in the xscanimage.
|
|
<BR>
|
|
It was run very well.....
|
|
<BR>
|
|
So, this modification seemed to be successful at first.
|
|
<BR>
|
|
But when I used xscanimage as follows I found the bug.
|
|
<BR>
|
|
<P>In xscanimage, during a return to the start position of a light
|
|
<BR>
|
|
source bar in scanner after the preview, I click the reset_scanner button.
|
|
<BR>
|
|
Then a light bar in scanner stop halfway.
|
|
<BR>
|
|
And I click the execute_calibration button.
|
|
<BR>
|
|
So, the calibration does not run and I have an "aha152x panic".
|
|
<BR>
|
|
I must reboot the Linux to run the xscanimage.
|
|
<BR>
|
|
And X server was broken.
|
|
<BR>
|
|
<P>The kernel(2.2.16) was not shutdown normally as follows.
|
|
<BR>
|
|
My computer is note-PC and I use Adaptec Slim SCSI(aha152x).
|
|
<BR>
|
|
<P>========================================================
|
|
<BR>
|
|
Shutting down interface eth0
|
|
<BR>
|
|
Stopping pcmcia SCSI device not inactive - r
|
|
<BR>
|
|
rq - status = 1, target = 2, pid = 912, state = 4099, owner = 258.
|
|
<BR>
|
|
Device busy ???
|
|
<BR>
|
|
target doesn't enter MSGI to identify(phase = 01)
|
|
<BR>
|
|
<P>aha152x: unknown lun
|
|
<BR>
|
|
QUEUE STATUS:
|
|
<BR>
|
|
issue_SC:
|
|
<BR>
|
|
current_SC:
|
|
<BR>
|
|
none
|
|
<BR>
|
|
disconnected_SC:
|
|
<BR>
|
|
0xc2ee600: target = 2; lun = 0; cmnd = (VENDOR SPECIFIC (0xc2) 00 00 00 02
|
|
<BR>
|
|
00 00 00 00 00); residual = 0; buffers = 0; phase | disconnected |
|
|
<BR>
|
|
send_ident |;
|
|
<BR>
|
|
in other (MESSAGE IN); phaseend; next = 0x00000000
|
|
<BR>
|
|
enabled interrupts (ENSELDO ENSELDI ENSELINGO ENSWRAP ENSDONE ENSPIORDY
|
|
<BR>
|
|
ENDMADONE ENSELTIMO ENATNTARG ENPHASEMIS ENBUSFREE ENSCSIPERR ENPHASECHG
|
|
<BR>
|
|
ENREQINIT)
|
|
<BR>
|
|
Kernel panic: aha152x panic
|
|
<BR>
|
|
In interrupt handler - not syncing
|
|
<BR>
|
|
========================================================
|
|
<BR>
|
|
<P>I don't know the reason of this bug.
|
|
<BR>
|
|
This problem is hard.
|
|
<BR>
|
|
<P>Would anybody help me ?
|
|
<BR>
|
|
regards,
|
|
<BR>
|
|
-----------------------------
|
|
<BR>
|
|
Mitsuru Okaniwa
|
|
<BR>
|
|
email : <A HREF="mailto:m-okaniwa@bea.hi-ho.ne.jp?Subject=Re:%20The%20aha152x%20panic%20of%20Canon%20Backend%20for%20FB620S&In-Reply-To=<001501c089a8$a53ca520$6425530a@necpcuser>">m-okaniwa@bea.hi-ho.ne.jp</A>
|
|
<BR>
|
|
tel : (Japan)0566-26-6105
|
|
<BR>
|
|
-----------------------------
|
|
<BR>
|
|
<P><P><PRE>
|
|
--
|
|
Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
|
|
To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%20The%20aha152x%20panic%20of%20Canon%20Backend%20for%20FB620S&In-Reply-To=<001501c089a8$a53ca520$6425530a@necpcuser>">majordomo@mostang.com</A>
|
|
</PRE>
|
|
<P><!-- body="end" -->
|
|
<HR NOSHADE>
|
|
<UL>
|
|
<!-- next="start" -->
|
|
<LI><STRONG>Next message:</STRONG> <A HREF="0302.html">stef: "UMAX 1220P/2000P & HP 320C backend initial release"</A>
|
|
<LI><STRONG>Previous message:</STRONG> <A HREF="0300.html">Alex Belits: "Re: FireWire (i.Link / 1394) support?"</A>
|
|
<!-- nextthread="start" -->
|
|
<LI><STRONG>Next in thread:</STRONG> <A HREF="0308.html">Juergen E Fischer: "Re: The aha152x panic of Canon Backend for FB620S"</A>
|
|
<LI><STRONG>Reply:</STRONG> <A HREF="0308.html">Juergen E Fischer: "Re: The aha152x panic of Canon Backend for FB620S"</A>
|
|
<!-- reply="end" -->
|
|
<LI><STRONG>Messages sorted by:</STRONG>
|
|
<A HREF="date.html#301">[ date ]</A>
|
|
<A HREF="index.html#301">[ thread ]</A>
|
|
<A HREF="subject.html#301">[ subject ]</A>
|
|
<A HREF="author.html#301">[ author ]</A>
|
|
</UL>
|
|
<!-- trailer="footer" -->
|
|
<HR NOSHADE>
|
|
<P>
|
|
<SMALL>
|
|
<EM>
|
|
This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A>
|
|
: <EM>Sun Jan 28 2001 - 20:17:34 PST</EM>
|
|
</EM>
|
|
</SMALL>
|
|
</BODY>
|
|
</HTML>
|