kopia lustrzana https://gitlab.com/sane-project/website
100 wiersze
4.3 KiB
HTML
100 wiersze
4.3 KiB
HTML
<!-- received="Tue Jul 27 12:25:03 1999 PDT" -->
|
||
<!-- sent="Tue, 27 Jul 1999 13:40:05 -0600 (MDT)" -->
|
||
<!-- name="Kipp C Cannon" -->
|
||
<!-- email="kcannon@Phys.UAlberta.CA" -->
|
||
<!-- subject="HP Scan Jet Plus problems --- help!" -->
|
||
<!-- id="" -->
|
||
<!-- inreplyto="" -->
|
||
<title>sane-devel: HP Scan Jet Plus problems --- help!</title>
|
||
<h1>HP Scan Jet Plus problems --- help!</h1>
|
||
<b>Kipp C Cannon</b> (<a href="mailto:kcannon@Phys.UAlberta.CA"><i>kcannon@Phys.UAlberta.CA</i></a>)<br>
|
||
<i>Tue, 27 Jul 1999 13:40:05 -0600 (MDT)</i>
|
||
<p>
|
||
<ul>
|
||
<li> <b>Messages sorted by:</b> <a href="date.html#195">[ date ]</a><a href="index.html#195">[ thread ]</a><a href="subject.html#195">[ subject ]</a><a href="author.html#195">[ author ]</a>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0196.html">Jens Scheithauer: "Re: sane-1.0.1 available for SCO UnixWare 7.1"</a>
|
||
<li> <b>Previous message:</b> <a href="0194.html">Oliver Rauch: "Re: Document Feeders (was Re: Anyone with a Umax Document Feeder?)"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|
||
<!-- body="start" -->
|
||
Hello. I am having trouble setting up my HP Scan Jet Plus. <br>
|
||
Specifically, the problem is with hpscan (the device driver for the<br>
|
||
parallel interface board). Although this isn't specifically a sane<br>
|
||
development related question, this mail list is my last hope. I tried<br>
|
||
sending e-mail to the address given with the source code but that was<br>
|
||
several weeks ago and I haven't received a response so I'm assuming one<br>
|
||
isn't coming.<br>
|
||
<p>
|
||
I have a Red Hat 5.2 installation which makes my kernel version<br>
|
||
2.0.36 and my compiler gcc 2.7.2.3. The hpscan site says that version<br>
|
||
0.1.1.8 of hpscan is the version appropriate for the 2.0.x series of<br>
|
||
kernels so that's the one I downloaded. When I try to compile it I get an<br>
|
||
error and a warning: <br>
|
||
<p>
|
||
hpscan.c:127: warning: suggest parentheses around comparison in operand of &<br>
|
||
hpscan.c:511: redefinition of `kernel_version'<br>
|
||
/usr/include/linux/module.h:95: `kernel_version' previously defined here<br>
|
||
<p>
|
||
So, ok, line 127 of hpscan reads<br>
|
||
<p>
|
||
if (inb_p(HPSJ_COUNT) & 0x3f != 0x2a)<br>
|
||
<p>
|
||
The logical != operator has a higher precedence than the bitwise &<br>
|
||
operator which makes this a very strange if() statement. I assume the<br>
|
||
author meant to have parentheses around the bitwise & operation so I've<br>
|
||
added them. <br>
|
||
<p>
|
||
Line 511 is the definition of kernel_version[]:<br>
|
||
<p>
|
||
char kernel_version[] = KERNEL_VERSION;<br>
|
||
<p>
|
||
but this is indeed already defined in linux/module.h as<br>
|
||
<p>
|
||
char kernel_version[]=UTS_RELEASE;<br>
|
||
<p>
|
||
and UTS_RELEASE is in linux/version.h as<br>
|
||
<p>
|
||
#define UTS_RELEASE "2.0.36"<br>
|
||
<p>
|
||
Those seem reasonable to me so I've simply commented out the definition in<br>
|
||
hpscan.c. <br>
|
||
<p>
|
||
Having made these two corrections I can compile the code error-free. If I<br>
|
||
then put hpscan.o into my modules directory and do a depmod -a, it returns<br>
|
||
with the message<br>
|
||
<p>
|
||
/lib/modules/2.0.36/misc/hpscan.o: unresolved symbol(s)<br>
|
||
<p>
|
||
Well, having never done any device driver development myself I don't know<br>
|
||
what this message means. I can imagine what it means but since depmod<br>
|
||
doesn't give any details I have no idea what to do about it. If I try<br>
|
||
"insmod hpscan" it says "create_module: Operation not permitted". <br>
|
||
<p>
|
||
The final problem, although I'm not there yet, is how to create<br>
|
||
/dev/hpscan. The source code says it wants to use major number 26 but it<br>
|
||
doesn't say what minor number to use. 0? Also what kind of entry do I<br>
|
||
create: character, block, or fifo? (I'm guessing character). <br>
|
||
<p>
|
||
So my verdict is this thing simply does not work. If anybody *has* got<br>
|
||
this thing to work could you please give me a hand? Thanks. <br>
|
||
<p>
|
||
-Kipp<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">majordomo@mostang.com</a>
|
||
</pre>
|
||
<!-- body="end" -->
|
||
<p>
|
||
<ul>
|
||
<!-- next="start" -->
|
||
<li> <b>Next message:</b> <a href="0196.html">Jens Scheithauer: "Re: sane-1.0.1 available for SCO UnixWare 7.1"</a>
|
||
<li> <b>Previous message:</b> <a href="0194.html">Oliver Rauch: "Re: Document Feeders (was Re: Anyone with a Umax Document Feeder?)"</a>
|
||
<!-- nextthread="start" -->
|
||
<!-- reply="end" -->
|
||
</ul>
|