Joined: 29 Mar 2009 Posts: 157 Location: Peterborough, ON
Posted: Mon Dec 21, 2009 0:53 Post subject: [Success] ASUS RT-N16 + p910nd USB Printing
OK then ... here's the scoop.
I am trying to relocate my shared USB printer from a Linksys WRT600N v1.1 unit to an ASUS RT-N16 unit.
DD-WRT's in the scenario = ASUS RT-N16 13450 Eko Big / WRT600N v1.1 12058 BS Mini-USB
USB Printer in play is an Epson Stylus Photo R300
USB printing has always installed and ran fine on the WRT600N units, but I have ran into a hitch on the ASUS RT-N16 setup.
The setup flow on the ASUS RT-N16 has been ...
- enable/clear JFFS - worked fine - ~25MB of JFFS space automatically assigned
- reboot router
- enable all USB services except storage - again no problem
- reboot router
- ipkg update - check
- ipkg install p910nd - check
- all required /jffs folders present - check
- modified /jffs/etc/init.d/p910nd to reflect /jffs/etc... versus /etc... - check
But .. no luck on printing
So ... troubleshooting flow ...
- netstat -an
... LISTEN on port 9100 - check
- ps
... p9100d -b -f /dev/usb/lp0 0
... process running - check (tried removing -b option too)
- dmesg | grep usb
... usblp0: USB Bidirectional printer dev 2 if alt 0 proto 2 vid 0x04B8 pid 0x0803
... USB printer detected - check
Now - where I am stuck ...
- ls -la /dev/usb
... nadda ... nothing ... zip ... empty ... no lp0 or lp1, etc etc
The WRT600N p910nd config works great and shows a device mount at /dev/usb/lp0
The RT-N16 p910nd config seems very very close, but is missing a device mount at /dev/usb/
Me thinks that it's kind'a hard to print when one is missing an lp0/lp1 in the equation.
Other than obvious kernel differences, what am I missing ?
Any constructive feedback & suggestions would be appreciated.
*** EDIT: I have tried using both USB ports as well .. but not luck
Regards,
Mookatroid
Last edited by Mookatroid on Sun Dec 27, 2009 19:04; edited 1 time in total
You have to create the node, look at fraters optware the right way thread....toward the last pages I believe. But I thought Eko fixed this. _________________ Eko Builds
Thanks for the quick reply. As a quick hack to get printing working, I added the following two commands to Administration|Commands|Startup in the Web GUI:
Eko needs to implement udev which is the kernel 2.6 way of handling devices in userspace. _________________ Asus RT16N + OTRW
Kingston 4GB USB-disk 128 MB swap + 1.4GB ext3 on /opt + 2 GB ext3 on /mnt
Copperjet 1616 modem in ZipB-config
Asterisk, pixelserv & Pound running on router
Another Asus RT16N as WDS-bridge
Joined: 29 Mar 2009 Posts: 157 Location: Peterborough, ON
Posted: Sun Dec 27, 2009 18:27 Post subject:
SUCCESS !!!
Thanks for all the feedback and autobot's suggestion involving MKNOD.
In the K26 13450 BIG build, MKNOD is already present in /bin so compiling was not required.
Either way, the workaround works and all my printing is 100% operational on my RT-N16.
In a nutshell, to setup USB Printing on the ASUS RT-N16 running K26 firmware (13450 big minimum) ...
- add to Administration|Commands|Startup = /bin/mknod -m 660 /dev/usb/lp0 c 180 0
- enable/clean JFFS
- reboot router
- enable all USB services except storage
- reboot router
- ipkg update
- ipkg install p910nd
- modify contents of /jffs/etc/init.d/p910nd to reflect /jffs/etc... versus /etc...
- add to Administration|Commands|Startup = /jffs/etc/init.d/p910nd start
- reboot router
- setup your computer to print to the IP address of your router via TCP/IP port 9100
Success.
So until the missing /dev/usb/lp0 node appears in a newer K26 build, this is the USB printing soltuion.
Joined: 29 Mar 2009 Posts: 157 Location: Peterborough, ON
Posted: Mon Dec 28, 2009 17:39 Post subject:
Although I did not need to, I have also read that some users need to turn off "Enable advanced printing features" on the "Advanced" tab of the printer properties ... assuming you are using Windows.
You may also be able to install a completely different printer driver. i.e. an HP Laserjet 4050dtn will print fine when used with a driver for an HP Laserjet III.