PDA

Bekijk de volledige versie : SANE (Scanner server) - Any chance for WL-500g?



Dante_
27-09-2004, 01:04
I have the WL-500g and an USB printer+scanner combo...
I'm not using it on the router, cause i can't use the scanner.
I have found that S.A.N.E. ( http://www.sane-project.org/ ) is able to share a scanner on the network.
Is there any chance to compile it for the WL-500g?
It's avaliable as a debian package for MIPS... Can I use debian packages for MIPS on the router? how?

--------------------------------------------------------------------------
To OLEG: Please use firmware 1.8.1.9 as a base! The WAN port spoeed setting via WEB interface works! no more need for post-boot complicated stuff (for noobs). Also the is the QoS webpage that could be tried to make it work with wondershaper...

chipanzee
27-09-2004, 02:15
If the libraries used in debian is compatible, you can use that. I doubt they are though. Actually, for the WL500G, you can use a little trick to try all the debian stuff, debootstrap a mipsel woody and transfer it to a USB HD/memory stick(but that would be bad for long term use because of write cycles), then mount it on the WL500G and do a chroot. Another similar way is to setup a nfs server and do the same debootstrap. I would try the NFS route soon.

brubber
27-09-2004, 20:41
[QUOTE=Dante_]I have the WL-500g and an USB printer+scanner combo...
I'm not using it on the router, cause i can't use the scanner..................
QUOTE]

Doesn't the printer manufacturer provide software / drivers for this function? The software supplied with HP combo printers supports this function.

Another option might be to use a simple USB hub, connect one to the ASUS, the other one straight to the computer you intend to use for scanning, or if your printer also has an LPT1 connection you can use this port for the scanning functionality.

Dante_
28-09-2004, 01:24
It's an HP psc750... (USB Only)
The driver has two parts...
The printer driver I can set it to use the IP port, but the scanner driver only shows up on the system with the printer pluged in the computer.
As for the USB HUB stuff it wont work, becaus you cant connect 2 USB hosts in a hub.

chipanzee
28-09-2004, 01:50
An idea which you may want to pursue. I have been able to run a chrooted debian woody with WL500G. I run openwrt on it which I have installed dropbear(ssh) that I can connect into. Then I NFS mount to a prepared debian woody and chroot there.

If you want to try out if SANE in debian works with your device on this, you can try this route. After that, think about compressed the whole debian tree(or whatever is necessary) into a memory stick. But can you printer be plug to a hub as you would need 2 connection for the WL500G, memory and printer.

Another geek idea, get the WL-HDD and use it as a NFS server. 100Mbps is much faster than 11Mbps on the USB 1.1. But that would need a hackable firmware as I the stock one doesn't have NFS server built-in.

brubber
28-09-2004, 19:26
It's an HP psc750... (USB Only)
The driver has two parts...
The printer driver I can set it to use the IP port, but the scanner driver only shows up on the system with the printer pluged in the computer.
Yes I know. Just check out the manufacturers site, often it requires a specific installation order to get everything working. You will certainly need more then just the drivers.


It's an HP psc750... (USB Only)
As for the USB HUB stuff it wont work, becaus you cant connect 2 USB hosts in a hub.
Yeah, I meant USB splitter.
(something like this one; http://www.sfcable.com/Merchant2/merchant.mvc?Screen=PROD&Product_Code=UB-SP6&Category_Code=usbsplitter

chipanzee
29-09-2004, 12:32
just curious, if I use this kind of splitter can each device attached still get the max bus power of 5v@500mA ?

Pirat
09-11-2004, 11:32
Is there something new for SANE & WL-500 ? ??????

Dante_
09-11-2004, 20:23
No... :(
I don't know how to make the bootloader use the usb HD for booting debian..
Also.. It's gonna be difficult to setup a debian sytem to resemble the ASUS firmware...

Pirat
10-11-2004, 09:12
...
It's avaliable as a debian package for MIPS...
...Can you post the Link??

Styno
10-11-2004, 10:19
Binary MIPS packages from Debian will likely not run on WL-500g. You need to recompile the source for use on WL500g.

L.Mo
23-11-2004, 11:43
are there any updates for the sane scanner server?

erik_bies
10-01-2005, 19:49
Wll there appears to be a SANE p;ackae for the openwrt platform. Maybe it will work on WL500g too.


http://openwrt.alphacore.net/Packages

Package: saned
Version: 1.0.15
Depends: libpthread
Section: net
Architecture: mipsel
Maintainer: Florian Fainelli <florian@alphacore.net>
MD5Sum: 625e3f3457fcb03fdc94d86a58eb315c
Size: 136665
Filename: saned_1.0.15_mipsel.ipk
Source: http://www.sane-projects.org
Description: SANE stands for "Scanner Access Now Easy" and is an application programming interface (API) that provides standardized access to any raster image scanner hardware (flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.).

Jean-Fabrice
12-05-2005, 13:11
Got sane-backends compiled for wiley (Asus wl series) using unslung build system.
I'll make it available soon in the unslung asus feed.
It would be nice if testing users could give some feedback about it.

JF

Jean-Fabrice
12-05-2005, 14:44
done.
as usual :
ipkg update
ipkg install sane-backends

You'll need xinetd or inetd (inetutils) to make it run.

Oleg
12-05-2005, 14:51
done.
as usual :
ipkg update
ipkg install sane-backends

You'll need xinetd or inetd (inetutils) to make it run.
JF, you're master of ipkgs. :)

Jean-Fabrice
12-05-2005, 14:59
JF, you're master of ipkgs. :)
No. I'm justing trying to learn from gurus like you & rod.

jnaeff@mac.com
04-07-2005, 13:00
I'm trying to get saned working on my wl500g. Saned is working but it isn't detecting my HP PSC 2100. Does any body got it working.

Hope to hear from you soon. I'm real looking forward to get it working.

alex_g
23-08-2005, 01:01
Hello,

After figuring out for several hours what's wrong I got an solution:

The main problem is that the required kernel module for scanner support is not yet compiled in the wl500g kernel (and I found it nowhere on the net)

Here a list of my steps:

Precondition: / must be writable!

1) I had to recompile the sources in order to get the missing scanner.o kernel module (you can recompile the sources for yourself or I can send you the module; just mail me your email adress )

-> trying an "insmod scanner" -> result:

usb.c: registered new driver usbscanner
scanner.c: USB scanner device (0x04a9/0x220d) now attached to scanner0
scanner.c: 0.4.16:USB Scanner Driver
so far so good...

now you can try sane-find-scanner and check if your scanner is found

2) ipkg install xinetd (from unslung)
3) ipkg install sane-backends (from unslung)
4) remove all files from /opt/etc/xinetd.d:
rm /opt/etc/xinetd.d/*
5) create a new file in /opt/etc/xinetd.d/ called saned containing the following lines:

service saned
{
port = 6566
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = root
group = root
wait = no
disable = no
}

6) add the following line to /etc/services:
saned 6566/tcp # SANE network scanner daemon
7) copy /etc/services to /usr/local/etc/services
8) edit /opt/etc/sane.d/saned.conf:
add the following line (after adapting it to your network):
192.168.1.0/24 #grant access to scanner from network 192.168.1.x
9) finally edit /usr/local/sbin/post-boot and add the following lines:

insmod scanner # load scanner module first
cp /usr/local/etc/services /etc/services # copy the previously modified services file to /etc
/opt/sbin/xinetd # start xinetd as wrapper for saned

10) finally.. (pooh) do a

flashfs save && flashfs commit && flashfs enable

11) reboot


To use the system from remote you have to adapt your local /etc/sane.d/net.conf and add the adress of the router to the file.

It is also possible to access the scanner over net via windows. (See www.sane-project.org for details)


HINTS:
after installing xinetd and sane-backends you can do "/opt/sbin/xinetd -d" for debugging output: when doing sane-find-scanner from another machine you should see xinetd starting and stopping saned

you may also test sane-find-scanner after loading the module to see if your scanner is supported:

alex_g
05-09-2005, 23:12
oops... I found the upload button...

put the module into

/lib/modules/2.4.20/kernel/drivers/usb

lohmueller
27-11-2005, 16:17
Hi all

I tried to attach an Epson USB-Scanner to my WL500gx. At first it looks good, but I'm unable to scan anything. Directly connected to my linux-notebook, this scanner works great with sane.

What I did:
- Installed sane-backends
- and alex_g's scanner.o

sane-find-scanner shows me now the device, but scanning with scanimage does not work (see output below).

Any ideas?

Thanks.

Thomas


[admin@router /tmp]$ sane-find-scanner
...
found USB scanner (vendor=0x04b8, product=0x011d) at /dev/usb/scanner0
found USB scanner (vendor=0x04b8 [EPSON], product=0x011d [EPSON Scanner], chip=LM983x?) at libusb:001:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
...

[admin@router /tmp]$ scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

noiser
03-06-2006, 09:15
hi!

can someone tell me how i can copy the scanner.o into the directory /lib/modules/2.4.20/kernel/drivers/usb/ ?

it seams that this is a readonly file system. then when i want to creat a new textfile with nano in this directory, there comes an error " [ Could not open file for writing: Read-only file system ] "

can somebody help me?

thanks!

snobordo
10-06-2006, 08:35
then when i want to creat a new textfile with nano in this directory, there comes an error " [ Could not open file for writing: Read-only file system ] "
Here is the answer:

Precondition: / must be writable!

Here (http://wl500g.dyndns.org/#tips) it is explained how to do this.

noiser
21-06-2006, 11:58
ok. so i need to write a procedure into the post-firewall which copys the scanner.o file to /lib/modules/2.4.20/kernel/drivers/usb/ ?

what is the meaning of / must be writable?

greez

snobordo
26-06-2006, 16:38
ok. so i need to write a procedure into the post-firewall which copys the scanner.o file to /lib/modules/2.4.20/kernel/drivers/usb/ ?

what is the meaning of / must be writable?

greez

'/' = root directory

I posted a link to a howto. The topic is "Root file system on the external USB drive"

wiz
10-01-2007, 17:44
If you don't want to have a writeable / here's what I did:

I've put scanner.o in /opt/scanner (/opt is writeable ). Then put in post-boot 'insmod /opt/scanner/scanner.o' instead of 'insmod scanner'.

I am happy though with the guidance in this thread, I've got my HP scanjet up and running nicely now so everyone can use the scanner and not everyone needs my pc since it had the scanner attached :D

cimarron
18-01-2007, 23:25
I just spend 4 hours on setting up my WL-500gP (hdd, partition, mount, post-boot, etc) to get SANE working with my Epson DX6000.
I just finished installing "sane-backends" with ipkg.

Now I'm stuck.
How do I copy the scanner.o.bz2 file from my windows desktop to the router?

CountZero
18-01-2007, 23:42
ftp is a easy choice.

cimarron
19-01-2007, 14:14
Is FTP available out of the OLEG package? Can I just "ftp://192.168.1.1"? I can't access my box at home now. So I can't try right now.

CountZero
19-01-2007, 16:59
You can simply enable it from the web interface. It is the same procedure as in the standard firmware.

Dutchman
04-03-2007, 22:17
Hi,

I tried to connect my HP Scanjer 3500C to my WL-500G Deluxe.
I have followed this howto:

1) I had to recompile the sources in order to get the missing scanner.o kernel module (you can recompile the sources for yourself or I can send you the module; just mail me your email adress )

-> trying an "insmod scanner" -> result:

usb.c: registered new driver usbscanner
scanner.c: USB scanner device (0x04a9/0x220d) now attached to scanner0
scanner.c: 0.4.16:USB Scanner Driver
so far so good...

now you can try sane-find-scanner and check if your scanner is found

2) ipkg install xinetd (from unslung)
3) ipkg install sane-backends (from unslung)
4) remove all files from /opt/etc/xinetd.d:
rm /opt/etc/xinetd.d/*
5) create a new file in /opt/etc/xinetd.d/ called saned containing the following lines:

service saned
{
port = 6566
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = root
group = root
wait = no
disable = no
}

6) add the following line to /etc/services:
saned 6566/tcp # SANE network scanner daemon
7) copy /etc/services to /usr/local/etc/services
8) edit /opt/etc/sane.d/saned.conf:
add the following line (after adapting it to your network):
192.168.1.0/24 #grant access to scanner from network 192.168.1.x
9) finally edit /usr/local/sbin/post-boot and add the following lines:

insmod scanner # load scanner module first
cp /usr/local/etc/services /etc/services # copy the previously modified services file to /etc
/opt/sbin/xinetd # start xinetd as wrapper for saned

10) finally.. (pooh) do a

flashfs save && flashfs commit && flashfs enable

11) reboot

Everything looks fine in systemlog:


Jan 1 01:02:57 xinetd[141]: xinetd Version 2.3.14 started with no options compiled in.
Jan 1 01:02:57 xinetd[141]: Started working: 1 available service


Jan 1 01:00:26 kernel: usb.c: registered new driver usbscanner
Jan 1 01:00:26 kernel: scanner.c: USB scanner device (0x03f0/0x2205) now attached to scanner0
Jan 1 01:00:26 kernel: scanner.c: 0.4.16:USB Scanner Driver
and sane-find-scanner give:


found USB scanner (vendor=0x03f0, product=0x2205) at /dev/usb/scanner0

and "scanimage -L" give:


[admin@routertje root]$ scanimage -L
device `hp3500:/dev/usb/scanner0' is a Hewlett-Packard ScanJet 3500 scanner

I have tried to scan from my windows PC with Sanetwain, it says "connected to 192.168.1.2" , but give a time out!!
And when i try that, the system log give:

Jan 1 01:04:05 xinetd[143]: START: saned pid=186 from=192.168.1.101
that's looks ok...

Can anyone help me? :)

Dutchman
05-03-2007, 16:19
Hi,

I tried to connect my HP Scanjer 3500C to my WL-500G Deluxe.
I have followed this howto:


Everything looks fine in systemlog:




and sane-find-scanner give:



and "scanimage -L" give:



I have tried to scan from my windows PC with Sanetwain, it says "connected to 192.168.1.2" , but give a time out!!
And when i try that, the system log give:

that's looks ok...

Can anyone help me? :)


Ok, it works now...don't know what was wrong :confused: but.. it's very slowly!

renegade
23-06-2007, 17:30
Hi!

I have a Microtek ScanMaker 3600 scanner, but it doesn't work with my WL500gx router.

It is my scanner in /proc/bus/usb/devices:

T: Bus=03 Lev=02 Prnt=03 Port=02 Cnt=01 Dev#= 4 Spd=12 MxCh= 0
D: Ver= 1.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1
P: Vendor=05da ProdID=40b3 Rev= 0.00
C:* #Ifs= 1 Cfg#= 1 Atr=60 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E: Ad=82(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms

Output of lsmod:

Module Size Used by
scanner 11996 0 (unused)
usb-storage 62184 3
sd_mod 13292 6
scsi_mod 70216 2 [usb-storage sd_mod]
videodev 8344 0 (unused)
audio 50680 0 (unused)
soundcore 5320 0 [audio]
printer 12676 0
ehci-hcd 23820 0 (unused)
usb-uhci 28564 0 (unused)
usbcore 77264 1 [scanner usb-storage audio printer ehci-hcd usb-uhci]
ip_nat_ftp 3944 0 (unused)
ip_conntrack_ftp 5248 1
ipt_NETMAP 992 2
ip_nat_starcraft 2224 0 (unused)
wl 423856 0 (unused)
et 34912 0 (unused)

Output of dmesg | grep scanner*

usb.c: registered new driver usbscanner
scanner.c: 0.4.16:USB Scanner Driver

Why doesn't recognize the kernel my scanner?

Sorry for my poor english... :-(

renegade
24-06-2007, 11:08
Problem fixed. I wrote in post-boot:


insmod /opt/scanner/scanner.o vendor=0x05da product=0x40b3

So sane finds my scanner.

But I have got a new problem: xinetd can't start service sane.

Output of xinetd -d :


07/6/24@11:45:43: DEBUG: 170 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.conf] [line=15]
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 192.168.0.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: sane
id = sane
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned /opt/etc/sane.d/sm3600.conf
Only from: localhost(HOST) 192.168.0.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

07/6/24@11:45:43: ERROR: 170 {activate_normal} bind failed (Address already in use (errno = 125)). service = sane
07/6/24@11:45:43: ERROR: 170 {cnf_start_services} Service sane failed to start and is deactivated.
07/6/24@11:45:43: DEBUG: 170 {cnf_start_services} mask_max = 0, services_started = 0
07/6/24@11:45:43: CRITICAL: 170 {init_services} no services. Exiting...

Any idea?

wiz
25-06-2007, 20:17
yeah, you forgot to copy the /etc/services thingy.

add the following line to /etc/services:
saned 6566/tcp # SANE network scanner daemon
copy /etc/services to /usr/local/etc/services

edit /usr/local/sbin/post-boot and add the following lines:

insmod scanner # load scanner module first
cp /usr/local/etc/services /etc/services # copy the previously modified services


if the /etc/services file does not have an entry saned 6566/tcp in it it moans about no services.

hope this helps.

cheers,

Wiz

p.s. you can check with grep saned /etc/services. If it is not there, copy /etc/services to /usr/local/etc/services, and add the entry. Do not forget to do a flashfs save, flashfs commit and flashfs enable.

renegade
26-06-2007, 07:47
yeah, you forgot to copy the /etc/services thingy.


No, it's OK. But I'm stupid. If xinetd already runs, then "xinetd -d" can't start again sane... :-(

Now I have a new failure notice:


[sm3600] sane_start: Error during device I/O
[sm3600] cancel called...
[sm3600] closing scanner
[sm3600] Error status: 9, Timeout while waiting for CSTAT

What have I to do?

wiz
26-06-2007, 16:38
remove the vendor statements from the insmod statement for the scanner.o file. maybe that helps?

what does scanimage -L say?

renegade
28-06-2007, 20:53
remove the vendor statements from the insmod statement for the scanner.o file. maybe that helps?

No. The scanner.o finds nothing without the vendor statements.


what does scanimage -L say?


device `sm3600:/dev/usb/scanner0' is a Microtek ScanMaker 3600 flatbed scanner

wiz
01-07-2007, 19:53
sounds like sane does know your scanner.

What I find strange is that you have to supply the vendor statements in order to get it running. My scanner is an HP 3400C and all I do is load scanner.o and that's it.

According to sane website it states your scanner is basically supported:

http://www.sane-project.org/ (http://www.sane-project.org/cgi-bin/driver.pl?manu=Microtek+&model=ScanMaker+3600&bus=any&v=&p=)

I don't have any idea why yours does not work.

kacper
19-07-2007, 13:16
What can I do if my scanner is not supported by SANE without a external backend (driver)? My scanner is a Brother DCP-115C.

thira
04-08-2007, 21:18
I installed sane-backends on my 500gP with Oleg firmware.
I can't start service for sane, when I try xinetd -d I've got:

07/8/5@02:40:39: DEBUG: 190 {handle_includedir} Reading included configuration file: /opt/etc/xinetd.d/saned [file=/opt/etc/xinetd.conf] [line=15]
Service defaults
Instances = 60
CPS = max conn:25 wait:30
Bind = All addresses.
Only from: localhost(HOST) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

Service configuration: saned
id = saned
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned
Only from: localhost(HOST) 192.168.1.0/255.255.255.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

07/8/5@02:40:39: ERROR: 190 {activate_normal} bind failed (Address already in use (errno = 125)). service = saned
07/8/5@02:40:39: ERROR: 190 {cnf_start_services} Service saned failed to start and is deactivated.
07/8/5@02:40:39: DEBUG: 190 {cnf_start_services} mask_max = 0, services_started = 0
07/8/5@02:40:39: CRITICAL: 190 {init_services} no services. Exiting...
and command "sane-find-scanner", I got:

[admin@ThiraBox root]$ sane-find-scanner

# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.
# SANE has been built without libusb support. This may be a reason
# for not detecting USB scanners. Read README for more details.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.
[admin@ThiraBox root]$
my scanner.o is in /opt/scanner/scanner.o
and add "insmod /opt/scanner/scanner.o" in my /usr/local/sbin/post-boot

my /opt/etc/init.d/S01sane-backends is

#!/bin/sh
PATH=/sbin:/bin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin
if !( grep -q ^sane-port /etc/services ); then
echo "saned 6566/tcp # SANE network scanner daemon" >> /etc/services
fi
Part of my Systemlog is

Aug 5 03:08:33 kernel: Adding Swap: 514040k swap-space (priority -1)
Aug 5 03:08:33 kernel: usb.c: registered new driver usbscanner
Aug 5 03:08:33 kernel: scanner.c: 0.4.16:USB Scanner Driver
Aug 5 03:08:33 System log daemon exiting.
How can I fix this. Many thanks for help.

mistraller
10-09-2007, 23:57
Great Howto!

I followed this tutorial, and works as a charm!

HP 6300c

with Sanetwain.
No problems at all.
(I still have to create post-boot additions)

I think I will include /etc/services in /usr/local/.files before flashfs save
Looks the easiest solution to me...

mrobo
27-10-2007, 12:25
does this firmware work with asus-w500g Premium ???
need connect scanner-printer canon ir1018
i need scanning and printing too

pavelba
03-01-2008, 13:04
I have Epson scanner V200. The above mentioned procedure is not applicable for it.
I suppose that I need Epson back-end. The source files are on EPKOWA web: http://www.avasys.jp/english/linux_e/dl_scan.html
I am not able to compile it (I am not expert). Can anybody able to compile it?
Please help me. Thanks.

oleo
03-01-2008, 13:58
Hm. Mail me more details on this backend.

oleo
08-01-2008, 15:57
The problem with the iscan source is that it heavily uses C++ for library and patches to the source is needed.

I have attached iscan.mk to start with. For more instructions how to build this visit http://trac.nslu2-linux.org/optware and wiki on www.nslu2-linux.org

When you wil have workable version you can post me to include it into optware. I am watching this thread so we can stay in touch here.

pavelba
22-01-2008, 08:34
Hi Oleo,
Whole package “iscan” is not possible to build due to missing library GDE. I am sure that this library will miss permanently.
I am working on backend “epkowa” only. I installed the following packages: buildrot, coreutils, libtool, m4 and make. I separated backend necessary files and a little bit modified. But one of source file I can not compile “libltdl/ltdl”. This library needs a C++ library “argz”.
Do you know where is possible to get this library and header for it?
When you interest it you can see my version of epkowa backend source files (not finished).

oleo
22-01-2008, 21:14
You should look for emerge builds examples or maybe some debian/ubuntu packages for dependencies. In any case I think that C++ code will need to be adapted for tollchain in use (4.1.1) and uclibc or glibc directly.

pavelba
28-01-2008, 14:52
I founded on Debian server the source files <sane-backends-extras-1.0.18.16>.
I file <configure.in> I remove the following unix variants: AIX, MINIX and ISC_POSIX and set default compiler/linker include directory to </opt/include>.
Run <autoconf> and got <configure> file.
Run <configure> and got a lot of <makefile’s>.
Change <prefix> to </opt> in each of <makefile> and run <make>.
After building all files I tried to use <make install> but without success. Due to I copied all files <libsane-epkowa.*> from <backend/.libs> to </opt/lib/sane> and made symlink and copy <epkowa.conf> file to </opt/etc/sane>.

The command <scanimage –L> do not find any scanner and <sane-find-scanner> find my scanner Epson V200.

Can anybody to test my compiled backend driver for their scanner and tell me how to correct install backend driver.

Thanks.

PS. I planned to attach all files after compilation but there is some space limitation. Due to I attach the original source files and compiled drivers only. If you have some problems, send me your e-mail and I will send to you all files after compilation by e-mail.

oleo
31-01-2008, 22:39
I repeat.
First try to get It working on linux machine. Then go to cross-compile. See instructions at nslu2-linux.org site and http://trac.nslu2-linux.org/optware

pavelba
01-02-2008, 12:54
Oleo,
I found where is problem. The Sane-backends-extras package is compiled well (I hope). But some scannres:
- Perfection 1250/Perfection 1250 PHOTO
- Perfection 1260/Perfection 1260 PHOTO
- Perfection 2480 PHOTO
- Perfection 2580 PHOTO
- Perfection 3170 PHOTO
- Perfection 3490 PHOTO
- Perfection 3590 PHOTO
- Perfection 4180 PHOTO
- Perfection 4490 PHOTO
- Perfection V10
- Perfection V100 PHOTO
- Perfection V200 PHOTO
- Perfection V350 PHOTO
needs a additional plugin. This plugin is in iscan package, but it is precompiled for i386 architecture only. The Avasys company do not distribute a source files.

dotmaster
04-02-2008, 23:13
Hi all,

I have the following problem. Attached my HP AIO USB-Scanner.
- Installed sane-backends
- and alex_g's scanner.o with my vendor settings
sane-find-scanner shows me now the device, but scanning with scanimage does not work, which means that there is no suiting SANE backend. Tried to debug and infact


$ export SANE_DEBUG_DLL=128
$ scanimage -L

gives me the debug output that no backend module in /opt/lib/sane is fitting.
[dll] sane_get_devices: found 0 devices

Going to the sane website gives me no support, as it seems that this project is not very active anymore.
However going to the HPLIP project has support for my device (via SANE), but the module libsane-hpaio seems to be needed.

HPLIP seems not to be available as an Optware Package?!:(

Can someone help me to compile this module (libsane-hpaio) out of HPLIP or to compile HPLIP???

Thx


Gregor


Hi all

I tried to attach an Epson USB-Scanner to my WL500gx. At first it looks good, but I'm unable to scan anything. Directly connected to my linux-notebook, this scanner works great with sane.

What I did:
- Installed sane-backends
- and alex_g's scanner.o

sane-find-scanner shows me now the device, but scanning with scanimage does not work (see output below).

Any ideas?

Thanks.

Thomas


[admin@router /tmp]$ sane-find-scanner
...
found USB scanner (vendor=0x04b8, product=0x011d) at /dev/usb/scanner0
found USB scanner (vendor=0x04b8 [EPSON], product=0x011d [EPSON Scanner], chip=LM983x?) at libusb:001:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.
...

[admin@router /tmp]$ scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).

oleo
05-02-2008, 08:11
Give me a pointer to similar gentoo package and downloadable source code.

dotmaster
05-02-2008, 10:12
Hi oleo,



Give me a pointer to similar gentoo package and downloadable source code.

Gentoo sources I have found can be found here (current version 2.7.12)http://gentoo-portage.com/net-print/hplip
HPLIP homepage is here: http://hplip.sourceforge.net/downloads.html

Then I have found a debian port to mipsel of HPLIP at http://packages.debian.org/hplip?lang=en&keywords=hplip but the packages seam quite old to me and I don't know which kernel they were built for.

don't know if this could be useful?:confused:

please let me know if you need further info!

thank you


Gregor

oleo
06-02-2008, 00:30
I have prepared HPLIP package with changeset/7719 (http://trac.nslu2-linux.org/optware/changeset/7719)

This is quite huge package that I assume needs expert knowledge for getting most of it. Anyway package needs testing for all platforms until it will be available at nslu2 repository. Wait until then. Then fiddle it by yourself and post me your findings when u have positive results.

dotmaster
06-02-2008, 11:03
Thanks oleo,


that´s great news!!! :cool:
The HPLIP package is supporting 1,257 printers and scanners from HP, so I think this will help many people if we get it running.

I´m not a big expert in compiling however, but will try to check it out and cross compile it and let you know here.

Anyway thank you so much for your effort.

Kind regards, gregor

oleo
08-02-2008, 15:14
hplip can be found in repositories by now.

dotmaster
08-02-2008, 17:52
Oleo, you THA MAN faster then a light beam!:)

I will let you know my results soon! Cheers!


hplip can be found in repositories by now.

dotmaster
08-02-2008, 19:01
Hi oleo,

I have installed Hplip; but it doesn't work yet: this is the output I get from scanimage -L

scanimage -L
[sanei_debug] Setting debug level of dll to 128.
[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.18-cvs
[dll] sane_init: reading dll.conf
[dll] add_backend: adding backend `hpaio'
[dll] sane_get_devices
[dll] load: searching backend `hpaio' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-hpaio.so.1'
[dll] load: dlopen()ing `/opt/lib/sane/libsane-hpaio.so.1'
[dll] load: dlopen() failed (File not found)
[dll] sane_get_devices: found 0 devices

The interesting part of this problem is that the file /opt/lib/sane/libsane-hpaio.so.1 is actually where the app is looking for it.

futher reading on the error brought me to the dlopen man page: http://linux.die.net/man/3/dlopen and to this thread (http://www.nabble.com/%22Unable-to-dlopen-%2B-File-not-found%22-with-the-file-already-where%09it's-suposed-to-be-p15068874.html) from a guy on a mips board without an answer ...

hp-check and hp-scan commands provided by hplip give me:

CUPSEXT could not be loaded. Please check HPLIP installation.

This is however related to CUPS and not to SANE, but it makes me think that there is something general missing here. What do you suggest?

This is the only thing I found googling for this error:
https://answers.launchpad.net/hplip/+question/20762

Kind regards

oleo
09-02-2008, 08:22
If you are able to understand kernel system calls than I suggest that you install package strace and run scanimage with strace. Otherwise we must find a line where this ouput occured and figure out possible outcomes that generated this output.

Normally status reports from programs give us most probable cause for the error. Eg. missing filename. If filename is there then there is a problem with loading .so files.

If this is a C++ source code then most probable the problem is with libuclibc++ that has some problems with LJSJ unwind. And the simplest solution is to build the sources without uclibc++.

THis seems to be sane related problem that can be caused by differences in build parameters with sane and hplip. And it might go as far as to uclibc dynamic loader. >What you can do is to install buildroot package on your router and then try to compile simple programs with dlopen.

renegade
15-03-2008, 15:49
SANE-Backends-1.0.19 has been released on Februar with new and updated backends. I'm not a Linux guru, I can't build the ipk package, but I need it -- I want to buy a new scanner. Have anybody already planned to build the new version?

oleo
16-03-2008, 19:08
It was not so old. Anyway http://trac.nslu2-linux.org/optware/changeset/7986 upgraded sane-backends to latest release.

renegade
16-03-2008, 21:34
But the ipk package (http://ipkg.nslu2-linux.org/feeds/unslung/wl500g/sane-backends_1.0.18+cvs20061127-1_mipsel.ipk) is pretty old...

oleo
17-03-2008, 06:51
It seems that wl500g is not supported any more. Oleg firmware now uses http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/
To get this package you must use wl500g toolchain yourself.

PCTV
18-03-2008, 04:42
Hi everyone,

I have been trying to follow this howto and now i am stuck on getting xinet working. i got this strange error:
Jan 1 00:00:14 xinetd[167]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4]

I created the file with nano editor...

Can anyone give a clue of whats the problem?


Thanks in advance,
PCTV

here goes the system log:



Jan 1 00:00:11 kernel: kjournald starting. Commit interval 5 seconds
Jan 1 00:00:11 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
Jan 1 00:00:11 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan 1 00:00:11 kernel: Adding Swap: 70700k swap-space (priority -1)
Jan 1 00:00:12 kernel: printer.c: usblp0 Device ID string [84/max 1552]='MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus CX3600;CLS:PRINTER;DES:EPSON Stylus CX3600;'
Jan 1 00:00:12 kernel: printer.c: Parsing USBLPID...
Jan 1 00:00:12 kernel: HTB init, kernel part version 3.16
Jan 1 00:00:12 kernel: HTB: quantum of class 10001 is big. Consider r2q change.
Jan 1 00:00:13 kernel: HTB: quantum of class 10010 is small. Consider r2q change.
Jan 1 00:00:13 kernel: HTB: quantum of class 10011 is small. Consider r2q change.
Jan 1 00:00:13 kernel: HTB: quantum of class 10013 is big. Consider r2q change.
Jan 1 00:00:14 kernel: HTB init, kernel part version 3.16
Jan 1 00:00:14 kernel: HTB: quantum of class 10001 is big. Consider r2q change.
Jan 1 00:00:14 xinetd[167]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4]
Jan 1 00:00:14 xinetd[167]: Error parsing attribute socket_type - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=4]
Jan 1 00:00:14 xinetd[167]: Server /opt/sbin/saned^M is not executable [file=/opt/etc/xinetd.d/saned] [line=5]
Jan 1 00:00:14 xinetd[167]: Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=5]
Jan 1 00:00:14 xinetd[167]: Protocol tcp^M not in /etc/protocols [file=/opt/etc/xinetd.d/saned] [line=6]
Jan 1 00:00:14 xinetd[167]: Error parsing attribute protocol - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=6]
Jan 1 00:00:14 xinetd[167]: Unknown user: root^M [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:14 xinetd[167]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:14 xinetd[167]: Unknown group: root^M [file=/opt/etc/xinetd.d/saned] [line=8]
Jan 1 00:00:14 xinetd[167]: Error parsing attribute group - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=8]
Jan 1 00:00:14 xinetd[167]: Bad value for wait: no^M [file=/opt/etc/xinetd.d/saned] [line=9]
Jan 1 00:00:14 xinetd[167]: Error parsing attribute wait - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=9]
Jan 1 00:00:14 xinetd[167]: Bad value: no^M [file=/opt/etc/xinetd.d/saned] [line=10]
Jan 1 00:00:14 xinetd[167]: Error parsing attribute disable - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=10]
Jan 1 00:00:14 xinetd[167]: 167 {init_services} no services. Exiting...
Jan 1 00:00:14 kernel: lp driver: get device ID
Jan 1 00:00:14 xinetd[171]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute socket_type - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=4]
Jan 1 00:00:14 xinetd[171]: Server /opt/sbin/saned^M is not executable [file=/opt/etc/xinetd.d/saned] [line=5]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=5]
Jan 1 00:00:14 xinetd[171]: Protocol tcp^M not in /etc/protocols [file=/opt/etc/xinetd.d/saned] [line=6]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute protocol - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=6]
Jan 1 00:00:14 xinetd[171]: Unknown user: root^M [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:14 xinetd[171]: Unknown group: root^M [file=/opt/etc/xinetd.d/saned] [line=8]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute group - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=8]
Jan 1 00:00:14 xinetd[171]: Bad value for wait: no^M [file=/opt/etc/xinetd.d/saned] [line=9]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute wait - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=9]
Jan 1 00:00:14 xinetd[171]: Bad value: no^M [file=/opt/etc/xinetd.d/saned] [line=10]
Jan 1 00:00:14 kernel: neg fail
Jan 1 00:00:14 xinetd[171]: Error parsing attribute disable - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=10]
Jan 1 00:00:14 xinetd[171]: 171 {init_services} no services. Exiting...
Jan 1 00:00:14 kernel: neg fail
Jan 1 00:00:14 kernel: HTB: quantum of class 10010 is small. Consider r2q change.
Jan 1 00:00:14 kernel: HTB: quantum of class 10011 is small. Consider r2q change.
Jan 1 00:00:14 kernel: HTB: quantum of class 10013 is big. Consider r2q change.
Jan 1 00:00:14 kernel: HTB init, kernel part version 3.16
Jan 1 00:00:14 kernel: HTB: quantum of class 10001 is big. Consider r2q change.
Jan 1 00:00:15 kernel: HTB: quantum of class 10010 is small. Consider r2q change.
Jan 1 00:00:15 kernel: HTB: quantum of class 10011 is small. Consider r2q change.
Jan 1 00:00:15 kernel: HTB: quantum of class 10013 is big. Consider r2q change.
Jan 1 00:00:15 dhcp client: bound IP : 83.132.141.130 from 83.132.141.254
Jan 1 00:00:20 kernel: MSDOS FS: Using codepage 850
Jan 1 00:00:20 USB storage: vfat fs at /dev/discs/disc1/part1 mounted to /tmp/mnt/disc1_1
Mar 18 04:23:02 ntp client: Synchronizing time with time.nist.gov ...

oleo
18-03-2008, 07:44
Try
sed -i -e 's/\r$//' /opt/etc/xinetd.d/saned

PCTV
18-03-2008, 12:10
Thanks Oleo, for the fast response but didnt work... :(


Jan 1 00:00:11 kernel: kjournald starting. Commit interval 5 seconds
Jan 1 00:00:11 dnsmasq[90]: DHCPREQUEST(br0) 192.168.1.203 00:19:d2:53:70:51
Jan 1 00:00:11 dnsmasq[90]: DHCPACK(br0) 192.168.1.203 00:19:d2:53:70:51 MARIOGON-M400
Jan 1 00:00:11 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,1), internal journal
Jan 1 00:00:11 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan 1 00:00:11 kernel: Adding Swap: 70700k swap-space (priority -1)
Jan 1 00:00:12 kernel: printer.c: usblp0 Device ID string [84/max 1552]='MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus CX3600;CLS:PRINTER;DES:EPSON Stylus CX3600;'
Jan 1 00:00:12 kernel: printer.c: Parsing USBLPID...
Jan 1 00:00:12 kernel: HTB init, kernel part version 3.16
Jan 1 00:00:13 kernel: HTB: quantum of class 10001 is big. Consider r2q change.
Jan 1 00:00:13 kernel: HTB: quantum of class 10010 is small. Consider r2q change.
Jan 1 00:00:13 kernel: HTB: quantum of class 10011 is small. Consider r2q change.
Jan 1 00:00:13 kernel: HTB: quantum of class 10013 is big. Consider r2q change.
Jan 1 00:00:14 kernel: HTB init, kernel part version 3.16
Jan 1 00:00:14 xinetd[171]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute socket_type - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=4]
Jan 1 00:00:14 xinetd[171]: Server /opt/sbin/saned^M is not executable [file=/opt/etc/xinetd.d/saned] [line=5]
Jan 1 00:00:14 xinetd[166]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4]
Jan 1 00:00:14 xinetd[166]: Error parsing attribute socket_type - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=4]
Jan 1 00:00:14 xinetd[166]: Server /opt/sbin/saned^M is not executable [file=/opt/etc/xinetd.d/saned] [line=5]
Jan 1 00:00:14 xinetd[166]: Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=5]
Jan 1 00:00:14 xinetd[166]: Protocol tcp^M not in /etc/protocols [file=/opt/etc/xinetd.d/saned] [line=6]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=5]
Jan 1 00:00:14 xinetd[171]: Protocol tcp^M not in /etc/protocols [file=/opt/etc/xinetd.d/saned] [line=6]
Jan 1 00:00:14 xinetd[166]: Error parsing attribute protocol - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=6]
Jan 1 00:00:14 xinetd[166]: Unknown user: root^M [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:14 xinetd[166]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:14 xinetd[166]: Unknown group: root^M [file=/opt/etc/xinetd.d/saned] [line=8]
Jan 1 00:00:14 xinetd[166]: Error parsing attribute group - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=8]
Jan 1 00:00:14 xinetd[166]: Bad value for wait: no^M [file=/opt/etc/xinetd.d/saned] [line=9]
Jan 1 00:00:14 xinetd[166]: Error parsing attribute wait - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=9]
Jan 1 00:00:14 xinetd[166]: Bad value: no^M [file=/opt/etc/xinetd.d/saned] [line=10]
Jan 1 00:00:14 xinetd[166]: Error parsing attribute disable - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=10]
Jan 1 00:00:14 xinetd[166]: 166 {init_services} no services. Exiting...
Jan 1 00:00:14 kernel: lp driver: get device ID
Jan 1 00:00:14 xinetd[171]: Error parsing attribute protocol - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=6]
Jan 1 00:00:14 xinetd[171]: Unknown user: root^M [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:14 kernel: neg fail
Jan 1 00:00:14 xinetd[171]: Unknown group: root^M [file=/opt/etc/xinetd.d/saned] [line=8]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute group - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=8]
Jan 1 00:00:14 xinetd[171]: Bad value for wait: no^M [file=/opt/etc/xinetd.d/saned] [line=9]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute wait - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=9]
Jan 1 00:00:14 xinetd[171]: Bad value: no^M [file=/opt/etc/xinetd.d/saned] [line=10]
Jan 1 00:00:14 xinetd[171]: Error parsing attribute disable - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=10]
Jan 1 00:00:14 xinetd[171]: 171 {init_services} no services. Exiting...
Jan 1 00:00:14 kernel: neg fail

oleo
18-03-2008, 12:58
It is obvious that you have DOS CR/LD problem. Erase config and type if from scratch using vi.

PCTV
18-03-2008, 14:03
It got better after editing with VI.

Thanks again for this fantastic HowTo and support!

Now it returns the following error:


Jan 1 00:00:13 xinetd[166]: Unknown user: root [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:13 xinetd[166]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:13 xinetd[166]: service/protocol combination not in /etc/services: saned/tcp
Jan 1 00:00:13 xinetd[166]: 166 {init_services} no services. Exiting...

oleo
18-03-2008, 15:14
duplicate user admin in /etc/passwd to root
and register /etc/passwd in flashfs /usr/local/.files

PCTV
18-03-2008, 15:34
Sorry for my newbie questions, but what do you mean by register, i dont have the file or directory .files...

Concerning the duplicating my passwd its now like this:

admin:$$$$$$$$$$$$$$$$$/:0:0:root:/usr/local/root:/bin/sh
root:$$$$$$$$$$$$$$$$/:0:0:root:/usr/local/root:/bin/sh
nobody:x:99:99:nobody:/:/sbin/nologin

the log appears like this:

Jan 1 00:00:05 kernel: hub.c: USB hub found
Jan 1 00:00:05 kernel: hub.c: 4 ports detected
Jan 1 00:00:05 kernel: lp0: using parport0 (polling).
Jan 1 00:00:06 kernel: hub.c: new USB device 00:04.0-1.1, assigned address 3
Jan 1 00:00:06 kernel: usb.c: USB device 3 (vend/prod 0x1370/0x2168) is not claimed by any active driver.
Jan 1 00:00:06 kernel: usb.c: registered new driver usblp
Jan 1 00:00:06 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 00:00:06 kernel: hub.c: new USB device 00:04.0-1.2, assigned address 4
Jan 1 00:00:06 kernel: printer.c: usblp0: USB Bidirectional printer dev 4 if 1 alt 0 proto 2 vid 0x04B8 pid 0x080E
Jan 1 00:00:06 kernel: printer.c: usblp0 Device ID string [84]='MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus CX3600;CLS:PRINTER;DES:EPSON Stylus CX3600;'

........

Jan 1 00:00:11 kernel: printer.c: usblp0 Device ID string [84/max 1552]='MFG:EPSON;CMD:ESCPL2,BDC,D4;MDL:Stylus CX3600;CLS:PRINTER;DES:EPSON Stylus CX3600;'
Jan 1 00:00:11 kernel: printer.c: Parsing USBLPID...
Jan 1 00:00:12 kernel: HTB init, kernel part version 3.16
Jan 1 00:00:12 kernel: HTB: quantum of class 10001 is big. Consider r2q change.
Jan 1 00:00:12 kernel: HTB: quantum of class 10010 is small. Consider r2q change.
Jan 1 00:00:12 kernel: HTB: quantum of class 10011 is small. Consider r2q change.
Jan 1 00:00:13 kernel: usb.c: registered new driver usbscanner
Jan 1 00:00:13 kernel: scanner.c: 0.4.16:USB Scanner Driver
Jan 1 00:00:13 kernel: HTB: quantum of class 10013 is big. Consider r2q change.
Jan 1 00:00:13 xinetd[158]: Unknown user: root [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:13 xinetd[158]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7]
Jan 1 00:00:13 xinetd[158]: service/protocol combination not in /etc/services: saned/tcp
Jan 1 00:00:13 xinetd[158]: 158 {init_services} no services. Exiting...


And scanimage -L doesn´t found anything...

Once again, thanks,

Mário

PCTV
18-03-2008, 23:55
Hi everyone,

I figure it out the register and dupicating, and minor issues... :)

The only error on log now is:



Jan 1 00:00:03 kernel: hub.c: new USB device 00:04.0-1.2, assigned address 4
Jan 1 00:00:03 kernel: usb.c: USB device 4 (vend/prod 0x4b8/0x80e) is not claimed by any active driver.

........

Jan 1 00:00:13 kernel: usb.c: registered new driver usbscanner
Jan 1 00:00:13 kernel: scanner.c: 0.4.16:USB Scanner Driver
Jan 1 00:00:13 kernel: scanner.c: probe_scanner: User specified USB scanner -- Vendor:Product - 4b8:80e
Jan 1 00:00:13 kernel: HTB init, kernel part version 3.16
Jan 1 00:00:13 kernel: HTB: quantum of class 10001 is big. Consider r2q change.
Jan 1 00:00:13 kernel: HTB: quantum of class 10010 is small. Consider r2q change.
Jan 1 00:00:13 kernel: HTB: quantum of class 10011 is small. Consider r2q change.
Jan 1 00:00:13 xinetd[160]: xinetd Version 2.3.14 started with no options compiled in.
Jan 1 00:00:13 xinetd[160]: Started working: 1 available service
Jan 1 00:00:13 xinetd[166]: bind failed (Address already in use (errno = 125)). service = saned
Jan 1 00:00:13 xinetd[166]: Service saned failed to start and is deactivated.
Jan 1 00:00:13 xinetd[166]: 166 {init_services} no services. Exiting...


So far scanimage -L doesnt find any scanners...
I have a all-in-one Epson CX3650.

I guess i need the Epson backend. I founf this one http://khk.net/sane/download.html but i not able to compile it... Can anyone do it, please?

Thanks in advance, for any help...

PCTV

oleo
19-03-2008, 07:57
xinetd is neded for remote scanning only. You must edit dll.conf and inclde appropriate scanner. Like
# /etc/sane.d/dll.conf - Configuration file for the SANE dynamic backend loader
#
# See the end of this file for information on some specific backends.

# enable the next line if you want to allow access through the network:
#net
epson

Then you could try scanimage of findscanner. Of course you need USB modules loaded into kernel.

Edit /etc/services and include sane service!

Yur driver should be included in sane-backends distro

PCTV
19-03-2008, 08:47
Good morning Oleo,

I have the following info on these files:
- /etc/services

# Local services

saned 6566/tcp # SANE network scanner daemon


- dll.conf, epson, line is included
- /opt/etc/sane.d/epson.conf

usb
# For libusb support for unknown scanners use the following command
# usb <product ID> <device ID>
# e.g.:
usb 0x4b8 0x080e
# And for the scanner module, use the following configuration:
usb /dev/usbscanner0
usb /dev/usb/scanner0

What do you mean by "try scanimage of findscanner".
Regarding the USB modules they should be ok, because i can print remotely...

The output of lsmod, looks like this, and show that scanner module is loaded:

[admin@wl500g sane.d]$ lsmod
Module Size Used by Tainted: P
scanner 11996 0 (unused)
usb-storage 63928 2
sd_mod 13276 4
scsi_mod 70200 2 [usb-storage sd_mod]
printer 12836 0
lp 8668 0
parport_splink 2956 1
parport 25696 1 [lp parport_splink]
usb-ohci 21908 0 (unused)
usbcore 78496 1 [scanner usb-storage printer usb-ohci]
ip_nat_ftp 3912 0 (unused)
ip_conntrack_ftp 5216 1
wl 728968 0 (unused)
et 31256 0 (unused)


What is missing? :confused:

Cheers,
Mário

oleo
19-03-2008, 12:02
man sane-find-scanner and man scanimage

PCTV
19-03-2008, 12:15
unfortenatly, either sane-find-scanner and scanimage -L found the scanner...

PcTv

oleo
19-03-2008, 12:36
I suggest, that You first try to get a running sane/xsane on some linux box. Eventualy You could also try virtualbox or some vmware-server product that is free. Try USB key to prove USB functionality. Then proceed with scanner.

PCTV
19-03-2008, 13:07
I found this HowTo and aparentely the printer and scanner should work with the sane-backend we are using on Oleg firmware...

http://gentoo-wiki.com/HOWTO_EPSON_CX3650_&_DX3850_:_scanner_and_printer_configuration

Do we have any kind o debuging or logging we can activate to determine why the scanner is not being found?

:(

PCTV

PCTV
19-03-2008, 15:51
Activated some debug flags and got the following return from scanimage -T



[dll] sane_init: SANE dll backend version 1.0.12 from sane-backends 1.0.18-cvs
....
[dll] load: searching backend `epson' in `/opt/lib/sane'
[dll] load: trying to load `/opt/lib/sane/libsane-epson.so.1'
[dll] load: dlopen()ing `/opt/lib/sane/libsane-epson.so.1'
[dll] init: initializing backend `epson'
[dll] init: backend `epson' is version 1.0.247
[dll] sane_get_devices: found 0 devices


From the info on http://www.sane-project.org/sane-mfgs.html#API i believe we need a more recent backend like the one (libsane-epson.so.1.0.4) i found on this site http://khk.net/sane/news.html

How can i deploy it? Is just a copy to /opt/lib/saned ? What configuration changes should be done?

I also found this one http://khk.net/sane/download.html but i don't know how to compile it... Can anyone do it, please?


Thanks in advance,
PCTV

karlson911
24-03-2008, 21:42
I use 1.9.2.7-9 Oleg Firmware on Asus wl-500gP
My Printer-Scanner is HP LJ M1120 MFP
Printer work Excellent, but scanner didn't

I setup all like in alex_g's post
Version of sane is 1.0.19+cvs from repository

'sane-find-scanner' output:


# sane-find-scanner will now attempt to detect your scanner. If the
# result is different from what you expected, first make sure your
# scanner is powered up and properly connected to your computer.

# No SCSI scanners found. If you expected something different, make sure that
# you have loaded a kernel SCSI driver for your SCSI adapter.
# Also you need support for SCSI Generic (sg) in your operating system.
# If using Linux, try "modprobe sg".

found USB scanner (vendor=0x03f0, product=0x5617) at libusb:003:002
# Your USB scanner was (probably) detected. It may or may not be supported by
# SANE. Try scanimage -L and read the backend's manpage.

# Not checking for parallel port scanners.

# Most Scanners connected to the parallel port or other proprietary ports
# can't be detected by this program.

'scanimage -L' output


device `hpljm1005:libusb:003:002' is a Hewlett-Packard LaserJet M1120 multi-function peripheral

But 'scanimage -T' command tell me this:

scanimage: can't resolve symbol 'round'

When use scanner through network, all windows sane frontends is hanging.
Saned process on router is starting and finish shortly.

i don't know what to do next.
Can the scanimage message be an error in source of sane?

karlson911
24-03-2008, 22:10
I additionaly search sane sources for 'round' and found this in 'hpljm1005.c' file


/*
* List of pointers to devices - will be dynamically allocated depending
* on the number of devices found.
*/
static SANE_Device **devlist = NULL;

static void
update_img_size (struct device_s *dev)
{
int dx, dy;

/* Only update the width when not scanning,
* otherwise the scanner give us the correct width */
if (dev->status == STATUS_SCANNING)
{
dev->height = -1;
return;
}

dx = dev->optionw[X2_OFFSET] - dev->optionw[X1_OFFSET];
dy = dev->optionw[Y2_OFFSET] - dev->optionw[Y1_OFFSET];

switch (dev->optionw[RES_OFFSET])
{
case 75:
dev->width = round ((dx / ((double) MAX_X_S)) * 640);
dev->height = round ((dy / ((double) MAX_Y_S)) * 880);
break;
case 100:
dev->width = round ((dx / ((double) MAX_X_S)) * 848);
dev->height = round ((dy / ((double) MAX_Y_S)) * 1180);
break;
case 150:
dev->width = round ((dx / ((double) MAX_X_S)) * 1264);
dev->height = round ((dy / ((double) MAX_Y_S)) * 1775);
break;
case 200:
dev->width = round ((dx / ((double) MAX_X_S)) * 1696);
dev->height = round ((dy / ((double) MAX_Y_S)) * 2351);
break;
case 300:
dev->width = round ((dx / ((double) MAX_X_S)) * 2528);
dev->height = round ((dy / ((double) MAX_Y_S)) * 3510);
break;
case 600:
dev->width = round ((dx / ((double) MAX_X_S)) * 5088);
dev->height = round ((dy / ((double) MAX_Y_S)) * 7020);
break;
case 1200:
dev->width = round ((dx / ((double) MAX_X_S)) * 10208);
dev->height = round ((dy / ((double) MAX_Y_S)) * 14025);
break;
}

DBG(2,"New image size: %dx%d\n",dev->width, dev->height);

}

May be i lack some type of program from repo to solve this trouble?
anybody knows?
thnx

oleo
25-03-2008, 08:52
Try
LD_TRACE_LOADED_OBJECTS=1 scanimage -T and post output here.

karlson911
25-03-2008, 19:42
Thats my output of 'LD_TRACE_LOADED_OBJECTS=1 scanimage -T' command


libsane.so.1 => /opt/lib/libsane.so.1 (0x2aaaa000)
libdl.so.0 => /opt/lib/libdl.so.0 (0x2aad7000)
libusb-0.1.so.4 => /opt/lib/libusb-0.1.so.4 (0x2ab01000)
libpthread.so.0 => /opt/lib/libpthread.so.0 (0x2ab19000)
libm.so.0 => /opt/lib/libm.so.0 (0x2ab3c000)
libjpeg.so.62 => /opt/lib/libjpeg.so.62 (0x2ab5b000)
libtiff.so.3 => /opt/lib/libtiff.so.3 (0x2ab90000)
libgcc_s.so.1 => /opt/lib/libgcc_s.so.1 (0x2abfd000)
libc.so.0 => /opt/lib/libc.so.0 (0x2ac1c000)
libz.so => /opt/lib/libz.so (0x2acd1000)
ld-uClibc.so.0 => /opt/lib/ld-uClibc.so.0 (0x2aac0000)

karlson911
07-04-2008, 18:05
I still can't bring to work Sane with my HP LJ 1120 MFP

I think i should rewrite 'hpljm1005.c' without 'round' function, and then recompile sane.

Maybe error 'scanimage: can't resolve symbol 'round' appears because of bad or old system librarys (uclibs, glibc or something else) but all my movements to resolve this didn't lead to success.

carinfo
03-09-2008, 03:40
Hello all,

Sorry to dig up this old thread but it seemed the most appropriate one for my questions...........
I have an ASUS WL520GU & Epson Stylus CX3100 printer-scanner
Stock Asus firmware does not detect my Epson.
BTW, all linux distros detect CX3100 & I can use both printer +scanner with no problem at all.
I flashed the firmware to ddwrt.v.24_mini_generic & followed their wiki to add usb base drivers, printer, & scanner. In the end I managed to get printer working (but there is no info on the web UI about my printer). The info on the wiki about scanner is practically nothing (I only picked "ipkg -force-depends install kmod-usb-scanner) but still I managed to do "insmod /jffs/lib/modules/2.4.30/scanner.o" and "dmesg | grep usb" showed some info about scanner.
Google leads me to this thread & "ipkg -force-depends install xinetd" is a success but ipkg can not find sane-backends.

Then I flashed to Oleg firmware wl520gu-1.9.2.7-10.trx. Web UI detect my printer & I can use it (wired or wireless) with no problem at all.

My questions are:
- is the procedure indicated on page 2 of this thread still valid & can be applied to the firmware version that I am currently using??
- is there still any space left in my 4MB router? oleg fw = 3.6MB with usb storage, printer, camera,etc... vs ddwrt_mini= 2.8MB with no USB at all

Of course, it would be best if somebody can write up a new detail howto.
But still some leads and clues are highly appreciated as well

Thank you

oleo
04-09-2008, 00:02
Sane backends are available for oleg and dd'wrt firmware through Nslu2 Optware feeds. It should work if your scanner is supported. With additional USB key for software, maybe.

PanDor
05-09-2008, 19:38
Greetings. Has read, but has not understood, how to me to connect the scanner to Asus wl-500gp? Help. Stick with a nose.

dccharacter
23-10-2008, 21:07
Hi all, thanks for the thread. Trying to follow, but the scanner simply would not mount.



Oct 23 23:58:34 kernel: usb.c: registered new driver usbscanner
Oct 23 23:58:34 kernel: scanner.c: 0.4.16:USB Scanner Driver
Oct 23 23:58:34 kernel: scanner.c: probe_scanner: User specified USB scanner -- Vendor:Product - 924:4265

What I'm missing here is a row that says "mounted to scanner0".

sane-find-scanner sees the MFD (Xerox 3119), but scanimage -L wouldn't work.

Possible reasons:
1. I put my username in the xinetd config, but ommited group (simply don't know how to find out what it should be)
2. Xerox 3119 is not supported by Sane (however I saw people working with it in Ubuntu)

If you know what's the problem, thanks in advance for helping me here. Best.

Aristotel
30-11-2008, 22:48
Hi everyone!
Could somebody give me correct /opt/etc/xinetd.d/saned file for samsung 4200 ?
Right now I have this one


service saned
{
port = 6566
socket_type = stream
server = /opt/sbin/saned
protocol = tcp
user = root
group = root
wait = no
disable = no
}

But it's incorrect, because of errors


Nov 30 10:32:42 xinetd[296]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4]
Nov 30 10:32:42 xinetd[296]: Error parsing attribute socket_type - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=4]
Nov 30 10:32:42 xinetd[296]: Server /opt/sbin/saned^M is not executable [file=/opt/etc/xinetd.d/saned] [line=5]
Nov 30 10:32:42 xinetd[296]: Error parsing attribute server - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=5]
Nov 30 10:32:42 xinetd[296]: Protocol tcp^M not in /etc/protocols [file=/opt/etc/xinetd.d/saned] [line=6]
Nov 30 10:32:42 xinetd[296]: Error parsing attribute protocol - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=6]
Nov 30 10:32:42 xinetd[296]: Unknown user: root^M [file=/opt/etc/xinetd.d/saned] [line=7]
Nov 30 10:32:42 xinetd[296]: Error parsing attribute user - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=7]
Nov 30 10:32:42 xinetd[296]: Unknown group: root^M [file=/opt/etc/xinetd.d/saned] [line=8]
Nov 30 10:32:42 xinetd[296]: Error parsing attribute group - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=8]
Nov 30 10:32:42 xinetd[296]: Bad value for wait: no^M [file=/opt/etc/xinetd.d/saned] [line=9]
Nov 30 10:32:42 xinetd[296]: Error parsing attribute wait - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=9]
Nov 30 10:32:42 xinetd[296]: Bad value: no^M [file=/opt/etc/xinetd.d/saned] [line=10]
Nov 30 10:32:42 xinetd[296]: Error parsing attribute disable - DISABLING SERVICE [file=/opt/etc/xinetd.d/saned] [line=10]
Nov 30 10:32:42 xinetd[296]: 296 {init_services} no services. Exiting...

I understand, that i have incorrect values, but i don't have true parameters :(:(
Advise me somebody!!

Aristotel
01-12-2008, 15:22
Can anyone help? =(

wiz
01-12-2008, 15:45
try changing user = root to change to admin. That is if you logon to the box as admin.

Aristotel
01-12-2008, 18:34
I tried it, but nothing. =( it was a error too =(

tstlwk
08-02-2009, 00:10
Hi everyone!
Could somebody give me correct /opt/etc/xinetd.d/saned file for samsung 4200 ?
Right now I have this one

(snip....)

But it's incorrect, because of errors


Nov 30 10:32:42 xinetd[296]: Bad socket type: stream^M [file=/opt/etc/xinetd.d/saned] [line=4]


I understand, that i have incorrect values, but i don't have true parameters :(:(
Advise me somebody!!


To quote a post from earlier in this thread:

It is obvious that you have DOS CR/LF problem. Erase config and type if from scratch using vi.

All the ^M characters you see in the log are linefeed characters. They are probably in the config file because you edited it on a windows/dos (mac?) machine.
Make sure there are no more line feed characters in the file, for instance by starting over using vi.
http://www.brandonhutchinson.com/DOS_and_UNIX_end-of-line_characters.html

hooke
19-02-2009, 00:30
hi all!
I have a WL500gP with Oleg's firmware v.1.9.2.7-10
Canon i-SENSYS MF4010 is connected to the router. Printing is no problem,but scanning...
On the sane-project.org (http://www.sane-project.org/cgi-bin/driver.pl?manu=canon&model=mf4010&bus=usb&v=04a9&p=26b4) it is said that the device may be supported but is untested.
sane-find-scanner says that it's found USB scanner:


found USB scanner (vendor=0x04a9 [Canon Inc.], product=0x26b4 [MF4010]) at libusb:003:002

but scanimage -L says that

No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).


Has anybody managed to scan with this device using SANE?
Could anybody please say if there is some working backend for this device?

Thanks.

hooke
19-02-2009, 08:44
Further investigations

pixma backend is of 0.14.3 version:

$ SANE_DEBUG_PIXMA=21 scanimage -L
[sanei_debug] Setting debug level of dll to 0.
[sanei_debug] Setting debug level of pixma to 21.
[pixma] pixma version 0.14.3
[pixma] pixma_find_scanners() found 0 devices


I have installed sane-backends_1.0.19+cvs20080315-3_mipsel.ipk

But there is pixma v.0.15 in CVS already! I've googled in linux.debian.bugs.dist (http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/e4f61f7412a73e07?pli=1), that

"several new ImageCLASS
MFPs are now supported by the pixma backend in CVS (v. 0.15.0).
Plus, the new pixma backend also supports BJNP network scanning for
several PIXMA MFPs, which would probably be welcomed by PIXMA
owners."

I'm not very familiar with compiling... Could somebody do this good job and recompile sane-backends 1.0.19 including latest CVS?
It would be greatly appreciated by many users of new Canon devices...

corwin_x
11-03-2009, 23:03
Hello all,

I'd like to ask anyone for help. I have an Epson DX4400 printer/scanner combo. I did everythink as described in the walkthrough, but I'm getting some strange error messages:

Result of sane-find-scanner

found USB scanner (vendor=0x04b8 [Language Error], product=0x083f [Language Error]) at libusb:001:002

scanimage -L says nothing found.

Any ideas?

EDIT: While I was googling around a bit, I found that I'm most likely missing the epkowa backend... Is there a chance of somebody compiling it for Oleg's firmware for WL500g Premium?

carterb
15-03-2009, 15:43
Hi,

I've got the following problem.

I set up the sane-server on my WL500gP. Now I try to connect a Canon MP830 to the server.

scanimage -L

[admin@ASUS_WL500GP root]$ scanimage -L
device `pixma:04A91713' is a CANON Canon PIXMA MP830 multi-function peripheral

and

found USB scanner (vendor=0x04a9 [Canon], product=0x1713 [MP830]) at libusb:003:005
look good in my opinion.

The sane-service is also started:

Service configuration: saned
id = saned
flags = IPv4
socket_type = stream
Protocol (name,number) = (tcp,6)
port = 6566
wait = no
user = 0
group = 0
Groups = no
PER_SOURCE = -1
Bind = All addresses.
Server = /opt/sbin/saned
Server argv = saned
Only from: localhost(HOST) 10.0.0.0/255.0.0.0(NET)172.16.0.0 255.240.0.0(NET) 192.168.0.0/255 .255.0.0(NET)
No access: No blocked sites
Logging to syslog. Facility = authpriv, level = info
Log_on_success flags = HOST PID
Log_on_failure flags = HOST

09/3/15@16:40:51: DEBUG: 1206 {cnf_start_services} Started service: saned




Now if I try to scan an image out of XSane, I get the error-message

ERROR DURING READ: Error during device I/O

Any idea what could be the reason for that?

Thanks
Oliver

powertrain
19-04-2009, 11:05
Hello,

i have problems with a wl500gx Oleg 1.9.2.7-10
i have install sane but i downt get my HP AIO 5610 to run
i Have ead in the thread that it gives a hplip in the reository but how can
i install it ?

dit some one have run a working installation with a hp aio scanner ?

thanks Powertrain

ram32
03-05-2009, 17:32
[admin@WL-001FC642402C modules]$ ipkg install sane-backends
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package sane-backends.
Check the spelling or perhaps run 'ipkg update'

[admin@WL-001FC642402C modules]$ cat /opt/etc/ipkg.conf
#Uncomment the following line for native packages feed (if any)
#src/gz native http://ipkg.nslu2-linux.org/feeds/optware/oleg/native/stable
#src/gz optware http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
src unslung http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable
dest /opt/ /
#option verbose-wget


What's wrong?

carterb
13-09-2009, 09:44
Hi everybody,

for all of you, who have problems by setting up a sane scanne-server on your Asus-Router:
I compiled the actual stable version of the sane-server on my router and it works fine. The ipkg-package is not up to date, many scanners are not supported and you also need a newer version of router-firmware.
I wrote a little HowTo (http://wl500g.info/showthread.php?t=21081) on how to setup the scanner-server with the XSane Frontend in the german Forum. If there are many users interested in a english translation, I can translat it an post it in the Tutorials section.
If you are able to read it in german language look here (http://wl500g.info/showthread.php?t=21081).

Edit: Here (http://wl500g.info/showthread.php?p=160036#post160036) is the english translation of the Sane-Server How-To :)

Regards
Oliver

chem-vgasu
24-09-2009, 15:10
Hi all,
While getting scanner to work, I can't execute xinetd binary file from USB flash:


/opt/etc/init.d/S10xinetd: line 14: /opt/sbin/xinetd: not found
$ /opt/sbin/xinetd -d
-sh: /opt/sbin/xinetd: not found
$ ls -l /opt/sbin/xinetd
-rwxr-xr-x 1 admin root 195092 Jul 11 2008 /opt/sbin/xinetd

Package inetd is not found.
I tried both VFAT and ext3 journaling system (by mke2fs -j).

carterb
24-09-2009, 16:26
Hi,

tell us some more about your issue.

What system are you using, wich firmware?
How did you install the sane-scanner-server? Self-compiled or ipkg?
Did you try it after my tutorial (http://wl500g.info/showthread.php?t=21162)?
If yes, please ask in the according thread, this thread is not well supported.

Bye
Oliver

chem-vgasu
24-09-2009, 22:54
Hi,
I'm using Oleg firmware 1.9.2.7 on DLink DIR-320. sane-backends and xinetd are installed by ipkg.
I'll try your tutorial later (I've seen it before), but the strange is I can't execute any executable file from my USB flash even when it is ext3 formatted. Of course, it's a bit off-topic here.
Maybe I'll try another USB flash disk.

carterb
25-09-2009, 09:52
Hi,

is your Disk mounted correctly?
Any other software working with xinetd.

Please post the output of:

df
and:

free
and move to folder /opt/

cd /opt
and do a

ls -all
Please post all the outputs. I'm not that familiar with your hardware.
Didi you setup your Router after wengis (http://wl500g.info/showthread.php?t=8424) tutorial?


Of course, it's a bit off-topic here
No problem, the whole thread is out of date ;)

dan_da_mick
13-01-2010, 04:41
I'm trying to follow alex_g's suggestions from 23-08-2005 -

6) add the following line to /etc/services:
saned 6566/tcp # SANE network scanner daemon

but I can't seem to edit my /etc/services file. It seems the filesystem is read-only, and I can't figure out how to make it rw. I'm running dd-wrt on an ASUS WL-520GU.

root@asus_router:/# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro)
none on /dev type devfs (rw)
proc on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
/dev/discs/disc0/part1 on /opt type ext3 (rw)

I've tried lots of variations of the "mount" command to change it to rw, including

mount -no rw /

and other similar iterations. Every time I go back and check the status, the root fs is still (ro). Does anyone know how to change this?

carterb
18-01-2010, 11:08
Hi,

take a look at this How-To.

http://wl500g.info/showthread.php?p=160036#post160036

Regards
Oliver

bseos
30-07-2012, 09:50
Now if I try to scan an image out of XSane, I get the error-message

ERROR DURING READ: Error during device I/O



Did you ever discover what the problem was? I have the same issue with my canon mx310

here is my saned -d5 log:

Tomato v1.28.9007 MIPSR2_RAF K26 USB VPN-NOCAT
root@E3000:/tmp/home/root# saned -d5
[saned] main: starting debug mode (level 5)
[saned] read_config: searching for config file
[saned] read_config: done reading config
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.22 starting up
[saned] do_bindings: trying to get port for service "sane-port" (getaddrinfo)
[saned] do_bindings: [0] socket () using IPv6
[saned] do_bindings: [0] setsockopt ()
[saned] do_bindings: [0] bind () to port 6566
[saned] do_bindings: [0] listen ()
[saned] do_bindings: [1] socket () using IPv4
[saned] do_bindings: [1] setsockopt ()
[saned] do_bindings: [1] bind () to port 6566
[saned] do_bindings: [1] bind failed: Address already in use
[saned] run_standalone: waiting for control connection

[saned] handle_connection: processing client connection
[saned] check_host: detected an IPv4-mapped address
[saned] check_host: access by remote host: ::ffff:192.168.1.62
[saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
[saned] check_host: local hostname: E3000
[saned] check_host: local hostname(s) (from DNS): c0a8:101:d841:b97f::
[saned] check_host: local hostname(s) (from DNS): c0a8:101:d841:b97f::
[saned] check_host: local hostname(s) (from DNS): c0a8:101:d841:b97f::
[saned] check_host: local hostname(s) (from DNS): E3000
[saned] check_host: local hostname(s) (from DNS): E3000
[saned] check_host: local hostname(s) (from DNS): E3000
[saned] check_host: remote host doesn't have same addr as local
[saned] check_host: opening config file: /etc/hosts.equiv
[saned] check_host: can't open config file: /etc/hosts.equiv (No such file or directory)
[saned] check_host: opening config file: saned.conf
[saned] check_host: config file line: `# saned.conf'
[saned] check_host: config file line: `# Configuration for the saned daemon'
[saned] check_host: config file line: `'
[saned] check_host: config file line: `## Daemon options'
[saned] check_host: config file line: `# Port range for the data connection. Choose a range inside [1024 - 65535].'
[saned] check_host: config file line: `# Avoid specifying too large a range, for performance reasons.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# ONLY use this if your saned server is sitting behind a firewall. If your'
[saned] check_host: config file line: `# firewall is a Linux machine, we strongly recommend using the'
[saned] check_host: config file line: `# Netfilter nf_conntrack_sane connection tracking module instead.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# data_portrange = 10000 - 10100'
[saned] check_host: config file line: `'
[saned] check_host: config file line: `'
[saned] check_host: config file line: `## Access list'
[saned] check_host: config file line: `# A list of host names, IP addresses or IP subnets (CIDR notation) that'
[saned] check_host: config file line: `# are permitted to use local SANE devices. IPv6 addresses must be enclosed'
[saned] check_host: config file line: `# in brackets, and should always be specified in their compressed form.'
[saned] check_host: config file line: `#'
[saned] check_host: config file line: `# The hostname matching is not case-sensitive.'
[saned] check_host: config file line: `'
[saned] check_host: config file line: `#scan-client.somedomain.firm'
[saned] check_host: config file line: `#192.168.0.1'
[saned] check_host: config file line: `#192.168.0.1/29'
[saned] check_host: config file line: `#[2001:7a8:185e::42:12]'
[saned] check_host: config file line: `#[2001:7a8:185e::42:12]/64'
[saned] check_host: config file line: `'
[saned] check_host: config file line: `# NOTE: /etc/inetd.conf (or /etc/xinetd.conf) and'
[saned] check_host: config file line: `# /etc/services must also be properly configured to start'
[saned] check_host: config file line: `# the saned daemon as documented in saned(8), services(4)'
[saned] check_host: config file line: `# and inetd.conf(4) (or xinetd.conf(5)).'
[saned] check_host: config file line: `192.168.1.0/24'
[saned] check_host: subnet with base IP = 192.168.1.0, CIDR netmask = 24
[saned] check_host: access granted from IP address 192.168.1.62 (in subnet 192.168.1.0/24)
[saned] init: access granted
[saned] init: access granted to Bob@::ffff:192.168.1.62
[saned] process_request: waiting for request
[saned] process_request: got request 1
[saned] process_request: waiting for request
[saned] process_request: got request 2
[saned] process_request: access to resource `pixma' granted
[saned] process_request: sane_open returned: Success
[saned] process_request: waiting for request
[saned] process_request: got request 4
[saned] process_request: waiting for request
[saned] process_request: got request 5
...
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
[saned] process_request: got request 7
[saned] start_scan: trying to bind data port 0
[saned] start_scan: using port 29841 for data
[saned] process_request: waiting for data connection
[saned] process_request: access to data port from ::ffff:192.168.1.62
[saned] do_scan: start
[saned] do_scan: processing RPC request on fd 4
[saned] process_request: waiting for request
[saned] process_request: got request 6
[saned] do_scan: trying to read 8188 bytes from scanner
[saned] do_scan: read 0 bytes from scanner
[saned] do_scan: status = `Error during device I/O'
[saned] do_scan: statuscode `Error during device I/O' was added to buffer
[saned] do_scan: select_fd was closed --> EOF
[saned] do_scan: trying to write 9 bytes to client
[saned] do_scan: wrote 9 bytes to client
[saned] do_scan: done, status=End of file reached
[saned] process_request: waiting for request
[saned] process_request: got request 8
[saned] process_request: waiting for request
[saned] process_request: got request 5
[saned] process_request: waiting for request
...
[saned] process_request: waiting for request
[saned] process_request: got request 6
[saned] process_request: waiting for request

I should also state that i am using a usb hub to connect my printer and usb pendrive to the same usb port on my router (linksys e4200)
http://i.imgur.com/4L4k3.png

and here is my dmesg log when error occurs:

Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
PCI: Setting latency timer of device 0000:00:04.1 to 64
ehci_hcd 0000:00:04.1: EHCI Host Controller
ehci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:04.1: irq 5, io mem 0x18004000
ehci_hcd 0000:00:04.1: USB 0.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
PCI: Setting latency timer of device 0000:00:04.0 to 64
ohci_hcd 0000:00:04.0: OHCI Host Controller
ohci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:04.0: irq 5, io mem 0x18009000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver usblp
usblp: USB Printer Device Class driver
usb 1-1: new high speed USB device using ehci_hcd and address 2
vlan1: add 33:33:00:00:00:01 mcast address to master interface
vlan1: add 01:00:5e:00:00:01 mcast address to master interface
vlan1: dev_set_allmulti(master, 1)
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
vlan1: dev_set_promiscuity(master, 1)
device eth0 entered promiscuous mode
device vlan1 entered promiscuous mode
usb 1-1.1: new high speed USB device using ehci_hcd and address 3
device eth1 entered promiscuous mode
usb 1-1.1: configuration #1 chosen from 1 choice
usblp0: USB Bidirectional printer dev 3 if 1 alt 0 proto 2 vid 0x04A9 pid 0x1728
usblp1: USB Bidirectional printer dev 3 if 2 alt 0 proto 2 vid 0x04A9 pid 0x1728
usb 1-1.2: new high speed USB device using ehci_hcd and address 4
Registered led device: 1-1.1
usb 1-1.2: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
Registered led device: 1-1.2
device eth2 entered promiscuous mode
br0: port 3(eth2) entering forwarding state
br0: port 2(eth1) entering forwarding state
br0: port 1(vlan1) entering forwarding state
vlan2: Setting MAC address to c0 c1 c0 1d d5 7c.
vlan2: add 33:33:00:00:00:01 mcast address to master interface
vlan2: add 01:00:5e:00:00:01 mcast address to master interface
scsi 0:0:0:0: Direct-Access SanDisk Cruzer Fit 1.26 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 15633408 512-byte hardware sectors (8004 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 43 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Assuming drive cache: write through
sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
TCP vegas registered
usb 1-1.1: usbfs: interface 1 claimed by usblp while 'saned' sets config #1
usb 1-1.1: usbfs: interface 1 claimed by usblp while 'saned' sets config #1
usb 1-1.1: usbfs: interface 1 claimed by usblp while 'saned' sets config #1

Zigster
31-08-2012, 10:41
I think I've got the same problem with the above Printer/Scanner.

I finally got my device (WL500GP V2) updated so this is what I get, when starting SANE standalone saned -d28 in the syslog:


Aug 31 11:36:05 kernel: usb 1-1.2: usbfs: interface 0 claimed by usblp while 'saned' sets config #1


seems, that the wl500gp sticks to see the brother dcp 7055 as a printer only and while sane is trying to use it as a scanner, the kernel rejects that ...!

It would be great to know, how to solve that (BTW: scanimage -L doesn't list the scanner!)

Regards

Zigster