avbohemen wrote:Welcome!
I have about the same config, WNDR3700 and HP printer though, and for me everything works fine with p910nd. /dev/lp0 is created automatically when I switch on my printer. dmesg gives:
Apr 4 11:29:09 router kern.info kernel: [944431.700000] usb 1-1: new high-speed USB device number 3 using ath79-ehci
Apr 4 11:29:09 router kern.info kernel: [944431.850000] usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x6D11
Apr 4 11:29:09 router kern.info kernel: [944431.870000] scsi1 : usb-storage 1-1:1.2
Apr 4 11:29:10 router kern.notice kernel: [944432.870000] scsi 1:0:0:0: Direct-Access HP Photosmart D5400 1.00 PQ: 0 ANSI: 5
Apr 4 11:29:10 router kern.notice kernel: [944432.870000] sd 1:0:0:0: Attached scsi generic sg0 type 0
Apr 4 11:29:10 router kern.notice kernel: [944432.890000] sd 1:0:0:0: [sda] Attached SCSI removable disk
The SCSI device is the cardreader that's built in my printer.
I have similar entries in my dmesg, and there is a /dev/lp0 but it does not seem to be pointing to anything. When I have p910nd pointed there I get (as I try to print):
Apr 5 17:56:42 OpenWrt lpr.notice p9100d[7832]: Connection from ::ffff:192.168.1.136 port 63058 accepted
Apr 5 17:56:42 OpenWrt lpr.err p9100d[7832]: /dev/lp0: No such device
Apr 5 17:56:42 OpenWrt lpr.err p9100d[7832]: /dev/lp0: No such device, will try opening later
avbohemen wrote:lsusb tells me:
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 03f0:6d11 Hewlett-Packard
and my installed packages are:
# opkg list-installed|grep usb
kmod-leds-wndr3700-usb - 3.2.12-1
kmod-ledtrig-usbdev - 3.2.12-1
kmod-usb-core - 3.2.12-1
kmod-usb-ohci - 3.2.12-1
kmod-usb-printer - 3.2.12-1
kmod-usb-storage - 3.2.12-1
kmod-usb-storage-extras - 3.2.12-1
kmod-usb2 - 3.2.12-1
libusb - 0.1.12-2
libusb-1.0 - 1.0.8-1
usbutils - 004-1[/quote]
I had all of these except libusb - 0.1.12-2, added it, no change.
[quote=avbohemen]# opkg list-installed|grep p9
luci-app-p910nd - trunk+svn8380-1
p910nd - 0.95-2
I get the same.
avbohemen wrote:Finally, the p910nd config is as follows:
# cat /etc/config/p910nd
config 'p910nd'
option 'device' '/dev/lp0'
option 'port' '0'
option 'bidirectional' '1'
option 'enabled' '1'
Same here as well.
I also tried creating a usblp0 with mknod in the /dev directory, that didn't help either. This is what I have in there right now, with the printer plugged in.
root@OpenWrt:/dev# ls
1-1 lp0 mtd3 mtdblock0 null sdb urandom
1-1.1 mem mtd3ro mtdblock1 port sdb1 usb1
1-1.2 mtd0 mtd4 mtdblock2 ppp sg0 usb2
1-1.4 mtd0ro mtd4ro mtdblock3 ptmx sg1 usblp0
console mtd1 mtd5 mtdblock4 pts shm watchdog
full mtd1ro mtd5ro mtdblock5 random tty zero
kmsg mtd2 mtd6 mtdblock6 sda ttyS0
log mtd2ro mtd6ro net sda1 tun
In case it helps, here is a list from lsmod with the usb related entries:
root@OpenWrt:/dev# lsmod | grep usb | sort
leds_wndr3700_usb 672 0
ledtrig_usbdev 2032 0
nls_base 4560 7 hfsplus,nls_utf8,nls_iso8859_15,nls_iso8859_1,nls_cp850,nls_cp437,usbcore
scsi_mod 69664 4 sg,ums_cypress,usb_storage,sd_mod
ums_usbat 7360 0
usb_common 480 1 usbcore
usb_storage 33024 12 ums_usbat,ums_sddr55,ums_sddr09,ums_karma,ums_jumpshot,ums_isd200,ums_freecom,ums_datafab,ums_cypress,ums_alauda
usbcore 98368 17 ums_usbat,ums_sddr55,ums_sddr09,ums_karma,ums_jumpshot,ums_isd200,ums_freecom,ums_datafab,ums_cypress,ums_alauda,usblp,ledtrig_usbdev,usb_storage,uhci_hcd,ohci_hcd,ehci_hcd
usblp 8224 0
Anyone else have any suggestions on where to hunt for whatever bug I'm getting? All my results from Google and forum searching are for older versions of OpenWRT from several years ago, nothing that seems relevant for this version.
(Last edited by SaskiFX on 5 Apr 2012, 22:44)