This post is just to share how do i got my Hp PSC 1340 usb printer working.
First read this link: http://sites.google.com/site/wl520gu/ good guide
Since I have to mount all the printer stuff over /jiff , I had to change the usb mount point to /mnt and also made a custom config for the samba to get working (enough whith copy the sbm.conf and change the share name from plublic to something else).
1) do a jiff clean and reboot.
2) Tirck 1: My Usb printer was detected by doing dmesg | grep printer but I was not able to see the mount point /dev/usb/lp0 so I have to add the follwing to my startup script:
sleep 5 /bin/mknod -m 660 /dev/usb/lp0 c 180 0
3) logon to the router and create a dir. mkdir /jffs/test.
4) cd /jffs/test. and download the print server
wget http://downloads.openwrt.org/snapshots/trunk/brcm-2.4/packages/p910nd_0.93-1_brcm-2.4.ipk
5) Install the package ipkg install p910nd_0.93-1_brcm-2.4.ipk
6) update the packeages ipkg update
7) Download the watch script wget http://wl520gu.googlepages.com/watchprinter
8) Download the printer driver. http://oleg.wl500g.info/hplj/sihp1020.dl
9) Trick2: Modify the watchprinter script to add the driver
#!/bin/shif [ -z "`pidof p910nd`" ]; then [ -e /dev/usb/lp0 ] && /jffs/usr/sbin/p910nd -b -f /dev/usb/lp0 0 sleep 1 cat /jffs/sihp1020.dl > /dev/usb/lp0else [ -e /dev/usb/lp0 ] || killall p910ndfi
And that's all. Follow the guide, just add a RAW printer over the 9100 port and you are
ready to print.

RSS

