[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Sheflug] Scanner for Sale *Works with Linux*
On Tue, 2003-04-22 at 20:47, James Mears wrote:
> OK. The 4830P works very nicely so the 4831P should do the same :-)
that's what I thought!
> I will have a go.
thanks a lot
> > 1. the parallel port support is not included with sane so the
> > plustek-sane AND sane both need to be (re)compiled from source
>
> Yes that's right. You have to build the module from source.
> The plustek-sane-0.45-5.tar.gz file is a complete tar-ball including the
> whole of SANE.
> Since you already have sane 1.0.8 you should be able to leave you
> current sane install as it is and just download and build the
> plustek-module-0_42_9.tar.gz which is the latest version of the module.
Well, I had a binary distribution with no sources, so I rpm -e 'd it and
installed sane from new sources; no problems there.
> It is better to build it from source.
yes, actually the only way I think.
> Try the instructions at
> http://www.gjaeger.de/scanner/howtos/Plustek_HowTo.txt
> To get more info on what to do. It does cover installing the module on a
> system that already
> Has SANE installed.
thanks, again this only works if you've got sane sources, which I have
now; now compared with what I did next some missing rpms and broken
dependencies are small fry...
> Make sure the kernel headers are installed
ah, yes, that little gotcha. This is where I think I've messed up
big-time. As you point out, plustek drivers can't be built without the
kernel headers...
The situation with SuSE up to 7.3 at least is not good with respect to
kernel sources and headers. SuSE kernel sources are installed in
/usr/src/linuxXXX; you might think that /usr/src/linux matches the
sources and configuration of the running kernel, but no, it contains the
previous one. Wherever the kernel headers are supposed to be, they are
not, and need to be constructed. So, forgetting the injunction NOT to
use the area /usr/src/linux, and reading instructions on installing new
kernels from the SuSE web pages, I ran make cloneconfig; make dep in the
kernel source tree /usr/src/linux-2.4.10.SuSE.
Now depmod is broken and I can't proceed to installing the drivers:
radon sane-backends-1.0.8/plustek_driver# make install
mkdir -p /lib/modules/2.4.10-4GB/misc
install -c -m "644" pt_drv.o /lib/modules/2.4.10-4GB/misc
/sbin/depmod -a
depmod: Unexpected value (20) in
'/lib/modules/2.4.10-4GB/kernel/drivers/ieee1394/sbp2.o' for ieee1394_device_size
It is likely that the kernel structure has changed, if so then
you probably need a new version of modutils to handle this kernel.
Check linux/Documentation/Changes.
make: *** [install] Error 255
So I now confidently anticipate major problems with my kernel modules
and don't see how to fix things. No problem, one might think: just
re-install kernel sources and rebuild the kernel and away I go. Not so
simple, because there are some little modules in /lib/modules, not in
the kernel sources, indeed without any sources at all, that I had to put
in on installation of SuSE so I can use the Promise RAID chip on my
mobo, to which my HDDs are attached. Maybe I can uninstall and
re-install the kernel-source package and get back to where I started; I
don't know if that will work. And it still leaves me without the
plustek modules...
oh well, I guess I'll keep trying...since otherwise bad things will
happen...
thanks again for your help,
Matt.
> and from what I remember from
> last time I did this within the unpacked directory it was just a case of
> the old:
> ./configure
> Make
> Make install
>
> Edit /etc/modules.conf and add
>
> alias char-major-40 pt_drv
> post-install pt_drv modprobe -k parport
> options pt_drv lampoff=180 warmup=15 lOffonEnd=0 port=0x378
>
> Then do a:
>
> Depmod
> Make unload
> Make load
>
> If all has gone well the lamp should turn on now and with scanimage -L
> you'll get a list of
> available devices. Then you should be able to use xscanimage as the GUI
> for scanning.
--
== . Matt Fairtlough . +44 (0)114 236 2067 . ==
== . 22 Harley Road . . ==
== . Sheffield, S11 9SE, UK . matt [at] fairtlough.net . ==
___________________________________________________________________
Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html
GNU the choice of a complete generation.