Log in

Bekijk de volledige versie : HP LaserJet 1000/1005/1020 not working: sort of solution



pardonfiu
29-12-2005, 18:06
Hello

I have a problem with my WL-500g router. It can't recognize my HP LaserJet 1020, altough I saw this device as WORKING in the compatibility list.


Tested: WORKING
Model: WL-500g deluxe
Firmware: 1.9.2.7

Device:
Brandname: HP (Hewlett Packard)
Brandtype: HP Laser Jet 1020 (usb)
URL To manufacturer: http://www.hp.com

I've tried everything but still can't get it working, please help me.
I'm using Oleg's firmware 1.9.2.7-6b.

I have been searching the forum and the net for the solution but found nothing so far.

I quote the status log of the router here and the running processes (ps ax).



status:

Jan 1 01:00:05 syslogd started: BusyBox v1.00 (2005.05.11-18:29+0000)
Jan 1 01:00:05 kernel: 0x003e0000-0x003f0000 : "config"
Jan 1 01:00:05 kernel: sflash: chipcommon not found
Jan 1 01:00:05 kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Jan 1 01:00:05 kernel: IP Protocols: ICMP, UDP, TCP
Jan 1 01:00:05 kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
Jan 1 01:00:05 kernel: TCP: Hash tables configured (established 1024 bind 2048)
Jan 1 01:00:05 kernel: ip_conntrack version 2.1 (128 buckets, 1024 max) - 344 bytes per conntrack
Jan 1 01:00:05 kernel: ip_conntrack_pptp version 1.9 loaded
Jan 1 01:00:05 kernel: ip_nat_pptp version 1.5 loaded
Jan 1 01:00:05 kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jan 1 01:00:05 kernel: ipt_time loading
Jan 1 01:00:05 dnsmasq[53]: reading /tmp/resolv.conf
Jan 1 01:00:05 kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Jan 1 01:00:05 kernel: IPv6 v0.8 for NET4.0
Jan 1 01:00:05 kernel: IPv6 over IPv4 tunneling driver
Jan 1 01:00:05 kernel: NET4: Ethernet Bridge 008 for NET4.0
Jan 1 01:00:05 kernel: 802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
Jan 1 01:00:05 kernel: All bugs added by David S. Miller <davem@redhat.com>
Jan 1 01:00:05 kernel: FAT: bogus logical sector size 47872
Jan 1 01:00:05 kernel: FAT: bogus logical sector size 47872
Jan 1 01:00:05 kernel: NTFS: Unable to set blocksize 512.
Jan 1 01:00:05 kernel: VFS: Mounted root (squashfs filesystem) readonly.
Jan 1 01:00:05 kernel: Mounted devfs on /dev
Jan 1 01:00:05 kernel: Freeing unused kernel memory: 72k freed
Jan 1 01:00:05 kernel: Warning: unable to open an initial console.
Jan 1 01:00:05 kernel: Algorithmics/MIPS FPU Emulator v1.5
Jan 1 01:00:05 kernel: eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.7.0
Jan 1 01:00:05 kernel: eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.7.0
Jan 1 01:00:05 kernel: PCI: Enabling device 01:02.0 (0004 -> 0006)
Jan 1 01:00:05 kernel: eth2: Broadcom BCM4320 802.11 Wireless Controller 3.90.23.0
Jan 1 01:00:05 kernel: device eth0 entered promiscuous mode
Jan 1 01:00:05 kernel: device eth2 entered promiscuous mode
Jan 1 01:00:05 kernel: br0: port 2(eth2) entering listening state
Jan 1 01:00:05 kernel: br0: port 1(eth0) entering listening state
Jan 1 01:00:05 kernel: br0: port 2(eth2) entering learning state
Jan 1 01:00:05 kernel: br0: port 1(eth0) entering learning state
Jan 1 01:00:05 kernel: br0: port 2(eth2) entering forwarding state
Jan 1 01:00:05 kernel: g
Jan 1 01:00:05 kernel: br0: port 1(eth0) entering forwarding state
Jan 1 01:00:05 kernel: br0: topology change detected, propagating
Jan 1 01:00:06 kernel: usb.c: registered new driver usbdevfs
Jan 1 01:00:06 kernel: usb.c: registered new driver hub
Jan 1 01:00:06 kernel: usb-ohci.c: USB OHCI at membase 0xb8004000, IRQ 2
Jan 1 01:00:06 kernel: usb-ohci.c: usb-00:04.0, PCI device 14e4:4715
Jan 1 01:00:06 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 1 01:00:06 kernel: hub.c: USB hub found
Jan 1 01:00:06 kernel: hub.c: 2 ports detected
Jan 1 01:00:07 kernel: hub.c: new USB device 00:04.0-1, assigned address 2
Jan 1 01:00:07 kernel: usb.c: USB device not accepting new address=2 (error=-145)
Jan 1 01:00:07 kernel: hub.c: new USB device 00:04.0-1, assigned address 3
Jan 1 01:00:07 kernel: usb.c: USB device not accepting new address=3 (error=-145)
Jan 1 01:00:08 kernel: lp0: using parport0 (polling).
Jan 1 01:00:08 kernel: usb.c: registered new driver usblp
Jan 1 01:00:08 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 01:00:10 kernel: usb.c: registered new driver audio
Jan 1 01:00:10 kernel: audio.c: v1.0.0:USB Audio Class driver
Jan 1 01:00:10 kernel: Linux video capture interface: v1.00
Jan 1 01:00:11 kernel: SCSI subsystem driver Revision: 1.00
Jan 1 01:00:11 kernel: Initializing USB Mass Storage driver...
Jan 1 01:00:11 kernel: usb.c: registered new driver usb-storage
Jan 1 01:00:11 kernel: USB Mass Storage support registered.
Jan 1 01:00:12 pppd[83]: Plugin rp-pppoe.so loaded.
Jan 1 01:00:12 pppd[83]: RP-PPPoE plugin version 3.3 compiled against pppd 2.4.2
Jan 1 01:00:12 pppd[84]: pppd 2.4.2 started by admin, uid 0
Jan 1 01:00:13 kernel: lp driver: get device ID
Jan 1 01:00:13 kernel: neg fail
Jan 1 01:00:14 dropbear[97]: Running in background
Jan 1 01:00:14 FTP server: daemon is started
Jan 1 01:00:17 pppd[84]: PPP session is 44499
Jan 1 01:00:17 pppd[84]: Using interface ppp0
Jan 1 01:00:17 pppd[84]: Connect: ppp0 <--> eth1
Jan 1 01:00:19 kernel: lp driver: get device ID
Jan 1 01:00:19 kernel: neg fail
Jan 1 01:00:19 kernel: neg fail
Jan 1 01:00:20 pppd[84]: PAP authentication succeeded
Jan 1 01:00:20 pppd[84]: peer from calling number 00:13:19:BA:AE:1A authorized
Jan 1 01:00:20 pppd[84]: local IP address 87.97.40.161
Jan 1 01:00:20 pppd[84]: remote IP address 213.163.27.11
Jan 1 01:00:20 pppd[84]: primary DNS address 213.163.34.66
Jan 1 01:00:20 pppd[84]: secondary DNS address 62.77.203.10
Jan 1 01:00:20 dnsmasq[53]: read /etc/hosts - 4 addresses
Jan 1 01:00:20 dnsmasq[53]: reading /tmp/resolv.conf
Jan 1 01:00:20 dnsmasq[53]: using nameserver 62.77.203.10#53
Jan 1 01:00:20 dnsmasq[53]: using nameserver 213.163.34.66#53
Jan 1 01:00:21 PPPoE: connect to ISP
Dec 29 18:39:19 dnsmasq[53]: DHCPREQUEST(br0) 192.168.1.2 00:0e:35:d9:fa:33
Dec 29 18:39:19 dnsmasq[53]: DHCPACK(br0) 192.168.1.2 00:0e:35:d9:fa:33 pardonnote
Dec 29 18:39:21 dropbear[115]: Child connection from ::ffff:192.168.1.2:2489
Dec 29 18:39:21 dnsmasq[53]: DHCPREQUEST(br0) 192.168.1.2 00:0e:35:d9:fa:33
Dec 29 18:39:21 dnsmasq[53]: DHCPACK(br0) 192.168.1.2 00:0e:35:d9:fa:33 pardonnote
Dec 29 18:39:22 ntp client: Synchronizing time with time.nist.gov ...


and the running processes



PID Uid VmSize Stat Command
1 admin 668 S /sbin/init
2 admin SW [keventd]
3 admin SWN [ksoftirqd_CPU0]
4 admin SW [kswapd]
5 admin SW [bdflush]
6 admin SW [kupdated]
7 admin SW [mtdblockd]
41 admin 292 S telnetd
46 admin 468 S httpd eth1
49 admin 340 S klogd
53 nobody 484 S dnsmasq
54 admin 388 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
56 admin 532 S nas /tmp/nas.lan.conf /tmp/nas.lan.pid lan
59 admin SW [khubd]
68 admin 276 S lpd
70 admin 260 S p9100d -f /dev/usb/lp0 0
72 admin 260 S p9101d -f /dev/printers/0 1
75 admin 340 S waveservermain
77 admin 348 S rcamdmain
84 admin 640 S pppd file /tmp/ppp/options.wan0
86 admin 324 S infosvr br0
87 admin 440 S watchdog
88 admin 340 S ntp
97 admin 432 S dropbear
98 admin 528 S /usr/sbin/stupid-ftpd -f /usr/local/stupid-ftpd.conf
120 admin 560 S upnp -D -L br0 -W ppp0
173 admin 724 S dropbear


Thank you for your help!

Oleg
29-12-2005, 18:43
HP LJ 1020 is not supported, as it requires firmware to be loaded on the power up.
The report seems to be invalid.

pardonfiu
29-12-2005, 20:29
HP LJ 1020 is not supported, as it requires firmware to be loaded on the power up.
The report seems to be invalid.

And what can I do then? Won't this change in the near future?
What does it actually mean 'requires firmware to be loaded on the power up'?
And what about nieman426's report??

I'm very sad about this....

Might sound stupid, is it the printer's firmware that causes the problem?
Anyway what's the difference between model 1010 and 1020, they're almost the same, and 1010 proved to work for a friend of mine on the same router.

:(

Technik
29-12-2005, 21:32
You can try to connect the printer to PC, print something and then to reconnect it to router. Perhaps it will work until you power off the printer or until some error condition occurs (paper out detected etc.).

Oleg
30-12-2005, 08:15
Anyway what's the difference between model 1010 and 1020, they're almost the same, and 1010 proved to work for a friend of mine on the same router.

1010 does not need a firmware, that's why it works...

Sorry, I do not have 1020, so I could not help you. Theoretically you could add firmware loader to the firmware to make it work.

FauDrei
30-12-2005, 16:26
Well, bad news for you my friend...

The LaserJet 1020 printing logic is in its printing driver, not in the printer. The so called "processor" on 1020 just dumps on the paper data prepared by the driver. This is what HP calls "Host-based printing", and also the reason why this laser is so cheap.

I had similar lousy experience with my old Lexmark which was flawlessly printing on Windows 98, but once I switched to Windows 2000 there was no appropriate driver for it because, as Lexmark nicely put it, it was an obsolete model with no plan for driver updates.

Bottom line: hp LJ 1020 will not print through 500g/gx.

To print through 500g/gx you need a printer which support a form of printer language (PCL, PS...), and preferably has more than 2 Mb of memory (complex pages with pictures or just large pictures will not be properly printed even if 1020 is connected to a computer with a proper driver). Needles to say, LaserJet 1010 has both.

Cheers,

pardonfiu
30-12-2005, 22:19
Thank you for your help! I'm a bit disappointed...

I bought this printer a few weeks ago and wanted to connect it to a router or a device which enables using it over the air.
Then even if I buy a stand alone print server (Linksys or any other) it wouldn't work, would it? Shame on HP... I don't want to plug the USB into my notebook every time I want to print, needless to say, I wanted to use it via wireless.:(

TheEagle
31-12-2005, 00:26
I googled a little just 4 teh fun of it ... look at the bottom of this page. The red written printer types ....

http://kbserver.netgear.com/kb_web_files/n101216.asp

I know it won't help you, but it at least confirms your theory.

Still you could check if HP themself offer printserver that support their 1020 ...

EDIT: this link from HP support forums tells it all
http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=953785

Get another printer, setup a windows box to act as printserver, or live with it as it is. Sorry....

Oleg
31-12-2005, 07:29
Thank you for your help!

Well, consider buying Samsung instead (ML series). Seems like it's the only vendor who is still producing real printers, not the WinPrinters.

GJAman
31-12-2005, 22:23
That is not nice :mad:

I also bought a HP LaserJet 1020 some time ago. And now that we have moved to a new address, so I wanted to connect the HP LaserJet 1020 to the Asus WL-500g.

And now see that it isn't going to work :mad:

So there is really no way it is going to work?

BTW: The following is working right now :)

You can try to connect the printer to PC, print something and then to reconnect it to router. Perhaps it will work until you power off the printer or until some error condition occurs (paper out detected etc.).
I hope tommorow it is stil working ;)

Oleg
01-01-2006, 11:05
Well, it's possible for HP LJ 1000/1005/1020.

1000/1005 seems to have firmware which fits to flashfs, 1020 needs external usb drive to store firmware, as it's large.

I've put some stuff here: http://oleg.wl500g.info/hplj/

You've to download right firmware sihp1000.dl/sihp1005.dl/sihp1020.dl to wl500g and upload to printer like this:



cd /tmp
wget http://oleg.wl500g.info/hplj/usb_printerid
wget http://oleg.wl500g.info/hplj/sihp1020.dl
chmod +x usb_printerid
./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0


This should load a firmware to the 1020 and it should work until power off or something. Check this.

In fact, someone should write a hotplug script to automate firmware loading...

Waiting for feedback. :)

GJAman
01-01-2006, 14:10
Well, it's possible for HP LJ 1000/1005/1020.

1000/1005 seems to have firmware which fits to flashfs, 1020 needs external usb drive to store firmware, as it's large.

I've put some stuff here: http://oleg.wl500g.info/hplj/

You've to download right firmware sihp1000.dl/sihp1005.dl/sihp1020.dl to wl500g and upload to printer like this:



cd /tmp
wget http://oleg.wl500g.info/hplj/usb_printerid
wget http://oleg.wl500g.info/hplj/sihp1020.dl
chmod +x usb_printerid
./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0


This should load a firmware to the 1020 and it should work until power off or something. Check this.

In fact, someone should write a hotplug script to automate firmware loading...

Waiting for feedback. :)

That works great over here :)
I will add the following it to my boot-script later on. :)


./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0

GJAman
01-01-2006, 14:14
Well, it's possible for HP LJ 1000/1005/1020.

1000/1005 seems to have firmware which fits to flashfs, 1020 needs external usb drive to store firmware, as it's large.

I've put some stuff here: http://oleg.wl500g.info/hplj/

You've to download right firmware sihp1000.dl/sihp1005.dl/sihp1020.dl to wl500g and upload to printer like this:



cd /tmp
wget http://oleg.wl500g.info/hplj/usb_printerid
wget http://oleg.wl500g.info/hplj/sihp1020.dl
chmod +x usb_printerid
./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0


This should load a firmware to the 1020 and it should work until power off or something. Check this.

In fact, someone should write a hotplug script to automate firmware loading...

Waiting for feedback. :)

That works great over here :)
I will add the following it to my boot-script later on. :)
Hope it works!

Oleg
01-01-2006, 14:17
Well, you've to store the firmware on the usb stick/drive connected to the wl500g and load it in the post-mount. The drawback, is that firmware should be reloaded if you've turn your printer off at some point.

GJAman
01-01-2006, 15:13
Well, you've to store the firmware on the usb stick/drive connected to the wl500g and load it in the post-mount. The drawback, is that firmware should be reloaded if you've turn your printer off at some point.
I now have the firmware on the usb stick (after connecting a usb hub to my router). And added the line "tmp/harddisk/etc/hp1020/start_hp1020" (wich contains the line "/tmp/harddisk/etc/hp1020/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /tmp/harddisk/etc/hp1020/sihp1020.dl > /dev/usb/lp0") to "/usr/local/sbin/post-mount"

But this doesn't work.

When i run "/usr/local/sbin/post-mount" after the router has booted the printer reacts (always tested after off/on switching of the printer)

Oleg
01-01-2006, 15:18
Your post-mount should start with #!/bin/sh and be a chmod +x

GJAman
01-01-2006, 15:27
Your post-mount should start with #!/bin/sh and be a chmod +x
Stupid me I forgot #!/bin/sh :o

Now it works great!

When I disconnect or power off/on the firmware is loaded in the printer right away!

Great work!

pardonfiu
01-01-2006, 22:24
./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0

I haven't got anything under /dev/usb, it's totally empty. The printer is connected to the usb, but when I run the command above, it says:

Error: No such file or directory: can't open '/dev/usb/lp0'

Of course it can't open it because it isn't there. WHY?

If I try with /dev/lp0 it says:
Error: Invalid argument: GET_DEVICE_ID on '/dev/lp0'

maybe because this lp0 stands for the LPT printer, doesn't it?

pardonfiu
02-01-2006, 02:00
...after 5 hours of strugling...

I've downloaded a modified version of the "foo2zjs" driver (tar.gz from linuxprinting.org). It contains the same firmware for the HP 1020 that Oleg mentioned (I think you actually copied it from there, didn't you.)

I booted up Suse 9.3 and compiled the foo2zjs package (specially made for HP1020), pushed the printer in the USB port of the machine (that is running Suse), Suse (I think via UDEV) recognized the device on the USB.Then I did a

cat hp1020.img > /dev/usb/lp0....
The printer started to init itself again as if it were switched on. Cool...
then

usb_printerid /dev/usb/lp0
and voila, the new firmware was on the printer, saying FWVER:200411xx

Then with the new firmware I could print a test page in SuSe 9.3 using Cups, then pulling the plug and inserting it into the Windows machine, tried to print....worked also flawlessly.

Than (WITHOUT switching the printer off) I put the USB plug into the router. The same symptom remained:



Jan 1 01:00:06 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 1 01:00:06 kernel: hub.c: USB hub found
Jan 1 01:00:06 kernel: hub.c: 2 ports detected
Jan 1 01:00:07 kernel: hub.c: new USB device 00:04.0-1, assigned address 2
Jan 1 01:00:07 kernel: usb.c: USB device not accepting new address=2 (error=-145)
Jan 1 01:00:07 kernel: hub.c: new USB device 00:04.0-1, assigned address 3
Jan 1 01:00:07 kernel: usb.c: USB device not accepting new address=3 (error=-145)
Jan 1 01:00:08 kernel: lp0: using parport0 (polling).
Jan 1 01:00:08 kernel: usb.c: registered new driver usblp
Jan 1 01:00:08 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 01:00:10 kernel: usb.c: registered new driver audio

the error messages are the same as before, even with the new firmware.

That can be the reason why the p910nd daemon can't create /dev/usb/lp0, because the router can't even access the printer on the USB port.

So what now??

Oleg
02-01-2006, 06:32
Jan 1 01:00:07 kernel: hub.c: new USB device 00:04.0-1, assigned address 2
Jan 1 01:00:07 kernel: usb.c: USB device not accepting new address=2 (error=-145)
Jan 1 01:00:07 kernel: hub.c: new USB device 00:04.0-1, assigned address 3
Jan 1 01:00:07 kernel: usb.c: USB device not accepting new address=3 (error=-145)


These errors are hardware problem, so you should fix them first BEFORE playing with software. If you use a hub, replace it or connect directly. If you do not use a hub, try different port on the wl500g deluxe. If it still does not work, replace a cable.

Oleg
02-01-2006, 06:35
I've downloaded a modified version of the "foo2zjs" driver (tar.gz from linuxprinting.org). It contains the same firmware for the HP 1020 that Oleg mentioned (I think you actually copied it from there, didn't you.)
Yes, Processed with arm2hpdl, cross-compiled usb_printerid and put online.

pardonfiu
04-01-2006, 19:13
I bought a WL-500G Deluxe just a few hours ago. It recognizes the printer right after connecting...VERY GOOD. All the previous post are working now:
- can upload firmware and check version with usb_printerid, printing works well.


One slight problem is that GJAman's method for changing the firmware right when the printer is switched on, doesn't work for me. When I run /usr/local/sbin/post-mount manually it works like an angel.

It seems that the post-mount script doesn't run when switching on/off the printer (or connecting).

The router recognizes the printer every time I switch it on, it assigns address to it, so it is aware of the printer.

What should I do to automate firmware loading? How can I force the post-mount script to run when switching on the printer?

Oleg
04-01-2006, 20:59
It seems that the post-mount script doesn't run when switching on/off the printer (or connecting).

Right. Post-mount is executed after usb drive is get mounted.


What should I do to automate firmware loading? How can I force the post-mount script to run when switching on the printer?
No way with post mount. Instead you should replace hotplug handler using smg like this:

post-mount:


# ... load firmware ...
usb_printerid bla-bla-bal
# replace a hotplug handler
echo /usr/local/sbin/hotplug > /proc/sys/kernel/hotplug


create a /usr/local/sbin/hotplug


#!/bin/sh
# call firmware handler
/sbin/hotplug $*
... check for printer plug and load firmware ...
if bla-bla-bla; then
... load firmware ...
fi


P.S. this is just an idea, you've to read about hotplug in linux and finish this. Post it back then.

pardonfiu
07-01-2006, 19:55
it seems like the kernel doesn't start /sbin/hotplug (or whatever is in /proc/sys/kernel/hotplug).

I've read much about hotplug on http://linux-hotplug.sourceforge.net/ but couldn't get closer to the solution.

Somehow the system recognizes the printer when turning on, because it refreshes /proc/bus/usb/devices...

I'm stucked with this...

Oleg
07-01-2006, 20:18
Please post messages after power off/on. They should contain something like this:

usb.c: USB disconnect on device 01:02.0-2.1 address 3
printer.c: usblp0: removed
hub.c: new USB device 01:02.0-2.1, assigned address 5

This means, the /sbin/hotplug should be called for new device. Just checked with a small hotplug replacement and it's indeed called.



[root@wl500gx root]$ cat /tmp/hotplug
#!/bin/sh
echo --------------- >> /tmp/hotplug.log
date >> /tmp/hotplug.log
echo $* >> /tmp/hotplug.log
set >> /tmp/hotplug.log
[root@wl500gx root]$ echo /tmp/hotplug > /proc/sys/kernel/hotplug
[root@wl500gx root]$



---------------
Sat Jan 7 23:15:13 MSK 2006
usb
ACTION='remove'
DEVFS='/proc/bus/usb'
DEVICE='/proc/bus/usb/002/005'
HOME='/'
IFS='
'
INTERFACE='7/1/2'
PATH='/sbin:/bin:/usr/sbin:/usr/bin'
PPID='2'
PRODUCT='3f0/7104/100'
PS1='\w \$ '
PS2='> '
PS4='+ '
PWD='/'
TYPE='0/0/0'
---------------
Sat Jan 7 23:15:14 MSK 2006
usb
ACTION='add'
DEVFS='/proc/bus/usb'
DEVICE='/proc/bus/usb/002/006'
HOME='/'
IFS='
'
INTERFACE='7/1/2'
PATH='/sbin:/bin:/usr/sbin:/usr/bin'
PPID='2'
PRODUCT='3f0/7104/100'
PS1='\w \$ '
PS2='> '
PS4='+ '
PWD='/'
TYPE='0/0/0'

pardonfiu
07-01-2006, 22:34
Finally....

here is the hotplug script

/tmp/local/sbin/hotplug


#!/bin/sh
echo --------------- >> /tmp/hotplug.log
date >> /tmp/hotplug.log
echo $* >> /tmp/hotplug.log
set >> /tmp/hotplug.log
if [ "$ACTION" = "add" ] || [ "$1" = "usb" ] || [ "$DEVFS" = "/proc/bus/usb" ]; then
sleep 5
/tmp/harddisk/etc/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /tmp/harddisk/etc/sihp1020.dl > /dev/usb/lp0
echo "Firmware loaded succesfully!" >> /tmp/hotplug.log
else
echo "Device removed" >> /tmp/hotplug.log

fi
/sbin/hotplug $*


and I added the following to /tmp/local/sbin/post-boot


echo "/tmp/local/sbin/hotplug" >> /proc/sys/kernel/hotplug


It works like a charm!!!!!

I would like to thank all of you, especially you, Oleg!
This router is amazing with your firmware!

Oleg
08-01-2006, 07:58
Actually your script contains some bugs... :)

MTB75
14-02-2006, 07:40
Righ now I am choosing a new wireless router and thinking about WL500g deluxe. There should be HP LaserJet 1200 printer installed to it and I am wondering if is there any problem with this printer? Can anyone confirm that HP LJ 1200 works well?

lodge
20-03-2006, 13:56
Actually your script contains some bugs... :)

Yeah, there are some bugs.

1. echo "/tmp/local/sbin/hotplug" >> /proc/sys/kernel/hotplug should be in "/tmp/local/sbin/post-mount"

2. "#!/bin/sh" missing

3. The most important, while I power on/off/on the printer, it doesn't work anymore. Some errors as below:

Mar 20 21:41:18 kernel: usb_control/bulk_msg: timeout
Mar 20 21:41:29 kernel: usb_control/bulk_msg: timeout
Mar 20 21:41:29 kernel: printer.c: usblp0: error -145 reading printer status


I suspect there's something stuck in the router. The printer was not removed successfuly. Is there any solution?

Thanks!

runemol
23-04-2006, 14:43
Hi,

I've tried to make an ASUS WL-500g to work with a HP LaserJet 1020, but I'm not able to make work reliably.

I've tried to implement some of the ideas discussed here, but it simply doesn't work in a reliable way - the firmware is not loaded to the printer.

I have added 3 scripts:

/tmp/local/sbin/hotplug


#!/bin/sh
echo --------------- >> /var/log/hotplug.log
date >> /var/log/hotplug.log
echo $* >> /var/log/hotplug.log
set >> /var/log/hotplug.log

if [ "$ACTION" = "add" ] || [ "$1" = "usb" ] || [ "$DEVFS" = "/proc/bus/usb" ]; then
sleep 5s
/tmp/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /tmp/sihp1020.dl > /dev/usb/lp0
echo "Firmware loaded succesfully!" >> /var/log/hotplug.log
else
echo "Device removed" >> /var/log/hotplug.log

fi
/sbin/hotplug $*


/tmp/local/sbin/post-boot


#!/bin/sh

sleep 7s
cd /tmp
wget http://oleg.wl500g.info/hplj/usb_printerid
wget http://oleg.wl500g.info/hplj/sihp1020.dl
chmod +x usb_printerid


/tmp/local/sbin/post-mount


#!/bin/sh
echo "/tmp/local/sbin/hotplug" >> /proc/sys/kernel/hotplug


My perception is that post-boot will be executed after the booting is finished. The post-boot script only waits for some seconds in order to make the AP to be online.
The post-mount script should be executed after the printer is detected (turned on), but it doesn't execute.

Do some of you have any ideas to solve printing with ASUS WL-500g and HP LaserJet 1020? Can it be done in a different way, e.g. using CUPS (is CUPS able to upload the firmware to the printer since the driver is installed at the client?)?

Any suggestions to help me solve this issues will be appreciated :-)

Best regards,
Rune

Oleg
25-04-2006, 15:47
post-mount gets executed when usbstorage device is detected and the partitions are get mounted. It never gets executed for printers...

Marko12
17-06-2006, 21:42
did anyone get LJ 1000 to work? I am trying on asus WL500gP with no success.

I load FW on printer and I stil cant print (LPR and RAW):


cd /tmp
wget http://oleg.wl500g.info/hplj/usb_printerid
wget http://oleg.wl500g.info/hplj/sihp1000.dl
chmod +x usb_printerid
./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1000.dl > /dev/usb/lp0

this is added to log when I connect printer to router:


Jun 17 22:37:13 kernel: hub.c: new USB device 01:03.0-1, assigned address 3
Jun 17 22:37:13 kernel: printer.c: usblp1: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x03F0 pid 0x0517
Jun 17 22:37:13 kernel: printer.c: usblp1 Device ID string [99]='MFG:Hewlett-Packard;MDL:hp LaserJet 1000;CMD:ZJS;CLS:PRINTER;DES:hp LaserJet 1000;FWVER:20011207;'

lodp
04-10-2006, 14:21
To print through 500g/gx you need a printer which support a form of printer language (PCL, PS...)

[...]

Needles to say, LaserJet 1010 has both.


i'm a little confused -- the official documents say that the LaserJet 1010 only supports host-based printing (and that only the LJ 1015 speaks PCL 5).

now, does the lj 1010 work with the wl-500g or doesn't it? (i plan on getting one, so i would appreciate any informed comments..)

BaidareW
17-11-2006, 13:25
Hi,
I have HP LaserJet 1018 so I am in trouble (lesson not to buy cheap things). By reading this thread I found that it is possible to make printer work with 500gP, but now I haven't any USB stick or hard disk.. Maybe there is a way to "include" laserjet 1018 support directly to 500gP firmware ?
Had problems with this printer in Ubuntu but they are already solved, now it would be nice to have it working without host computer.

lodp
05-01-2007, 16:19
i just got a new WL500g.Premium, and it seems the LaserJet 1100 is working, with a Parallel to USB adapter. With the Wl500g, it didn't work both directly attached to the Parallel port, as well as to the USB port with the adapter.

Anyone got any reports on the WL500g Deluxe?

ldn85
14-01-2007, 14:22
Can anybody make ipkg package for foo2zjs? I'm not sure, but I think it could be helpful. Or guide me simply how to install it on WL-500gP. This driver simply solved my problem in SUSE and I wanted to try on my router, but I'm not so good in linux so i didn't manage to compile it.

nickie2007
14-07-2007, 16:39
Hi everyone,

I'm running dd-wrt firmware on my wl500g but I'm considering using Oleg's firmaware since the dd-wrt seems not to support my HP LJ1022. As far as I can see there seems to be a workaround to make the printer usable using Oleg's firmware. My question is the following (I'm not very proficient in programming or anything like that):

- Does the latest Oleg's firmware support the 1022 out ot the box, ie, just install the firmware plug the printer and were good to go? By reading this thread it seems that I should use a USB stick to load the firmware (how to do it is something a can't understand), and I can't understand how this is done.

- for those that have tried DD-WRT, do you think Oleg's firmware is better?

All the best,

nickie

kzendra
27-09-2007, 09:41
Is there any "Plug and Play" way to solve the problem with WL500g and LJ1020?
I'm defoult windows user and all those solutions writen here are to complicated for me to implement them... Is there a way for a solution to be implemented in some firmware any time soon?

Rushke
07-01-2008, 14:11
Setup: Pc with Win XP, WL500gP, HP LJ 1020 plugged in Asus.

Router flashed with latest Oleg's firmware. 1020 installed in Win as local printer (following Oleg's tutorial) using HP non-PnP driver (I think it's second on the DL list). Printed test page - everything working. No hotplug scripts, Dl firmware, nothing.

Tomorrow will try LJ 1000 on work, refused to work untill now.

A.

Oleg
07-01-2008, 15:31
Setup: Pc with Win XP, WL500gP, HP LJ 1020 plugged in Asus.

Router flashed with latest Oleg's firmware. 1020 installed in Win as local printer (following Oleg's tutorial) using HP non-PnP driver (I think it's second on the DL list). Printed test page - everything working. No hotplug scripts, Dl firmware, nothing.

Tomorrow will try LJ 1000 on work, refused to work untill now.

A.
Cycle your printer power now and try again.

Rushke
08-01-2008, 09:46
Cycle your printer power now and try again.

Tried this too - still working. Any ideas why?

I have installed only basic driver for HP, via Add hardware/Have disk/ .inf, no additional software. Maybe software somehow blocks pn9100?

A.

Rushke
23-01-2008, 17:42
Time to corect myself: If I powercycle printer, it stops working... It seems I flipped power switch too fast & didn' reset printer. So - hotplug it is.

Fortunately, I can read Russian, because in Russian thread hotplugging is explained in detail. Mounted USB HDD ext3 partition on /opt, placed hotplug.sh, sihp1020.dl and usb_printerid on disc, modified post-mount & post-boot scripts, and MAGIC - printer is working! :)

... Untill first time I rebooted router without attached HDD...
Plugged in HDD - and no printing... My partition with hotplug, firmware & the rest is not mounted.... :confused:

... Few hours later, after playing with post-mount, hotplug.sh etc. and a lot of reading later - solution: FSTAB ! Everything is working :D

... Few hours of reading later - flashfs on WL500g Premium is big enough to store firmware. Ouch!

Epilogue: Everything is working now :) & I had a lot of fun getting to it long way round :)

Thanks, Oleg & everybody else.

A.

Rushke
25-01-2008, 17:20
Just tried, and it's working fine :) Firmware needs to be downloaded to printer via hotplug.sh, and bidirectional support shoud be unchecked in windows printer properties.
LJ 1000 is connected by some kind of usb-to-serial cable, probably this is confusing router and windows driver. If you leave bidirectional printing checked, result is blocked printer port on win and stuck printer on router. Only restarting helps.

A.

al37919
25-01-2008, 17:29
According to http://etherboot.sourceforge.net/p910nd/p910nd.txt you might attempt to enable bidirectional support by adding -b parameter to the p910nd instance running.

Kill existing p910nd and start it again with -b parameter.

kill `pidof p910nd`
p9100d -b -f /dev/usb/lp0 0

Rushke
28-01-2008, 21:03
According to http://etherboot.sourceforge.net/p910nd/p910nd.txt you might attempt to enable bidirectional support by adding -b parameter to the p910nd instance running.

Kill existing p910nd and start it again with -b parameter.

kill `pidof p910nd`
p9100d -b -f /dev/usb/lp0 0

p910nd -b -f /dev/usb/lp0 0

did the trick. 1020 returns notthing, it seems driver is not using this (working) capability. 1000 blocks widows port & printer regardless of -b option if bidirectional printing is checked in port settings. Finally I left it unchecked, for me it works fine that way.
If printer runs out of paper, simply unplug/plug it from router. 1020 resumes printing, 1000 is resetted.

A.

Bagoly
04-02-2008, 22:11
Time to corect myself: If I powercycle printer, it stops working... It seems I flipped power switch too fast & didn' reset printer. So - hotplug it is.

Fortunately, I can read Russian, because in Russian thread hotplugging is explained in detail. Mounted USB HDD ext3 partition on /opt, placed hotplug.sh, sihp1020.dl and usb_printerid on disc, modified post-mount & post-boot scripts, and MAGIC - printer is working! :)

... Untill first time I rebooted router without attached HDD...
Plugged in HDD - and no printing... My partition with hotplug, firmware & the rest is not mounted.... :confused:

... Few hours later, after playing with post-mount, hotplug.sh etc. and a lot of reading later - solution: FSTAB ! Everything is working :D

... Few hours of reading later - flashfs on WL500g Premium is big enough to store firmware. Ouch!

Epilogue: Everything is working now :) & I had a lot of fun getting to it long way round :)

Thanks, Oleg & everybody else.

A.

I am not familiar with Linux, hotplug and fstab does not tell me too much. Can you help me how could I send the firmware to a HP1020. I have a 500gPremium with the original firmware and with an USB HDD. I have downloaded usb_printerid and sihp1020.dl to the HDD but I do not know where to put (which folder) these files and where to include the following command. chmod +x usb_printerid
./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0
I used only the web setup page of the router.
Do I need to update the firmware to Oleg's one first?

If you could support a such a "user" like me, I would appreciate your help.
Tx in advance.:)

Bagoly
05-02-2008, 21:51
My Status & Log - System Log is the following:

Jan 1 01:00:09 dhcp client: deconfig: lease is lost
Jan 1 01:00:10 dhcp client: bound IP : 89.134.173.66 from 89.134.175.254
Jan 1 01:00:20 USB storage: vfat fs mounted to /tmp/harddisk/part0
Feb 5 21:11:11 USB storage: 32760k swap file is added
Feb 5 21:11:11 FTP server: daemon is started
Feb 5 21:11:13 Samba server: daemon is started
Feb 5 21:11:15 Media Server: daemon is started
Feb 5 21:11:16 Download Master: daemon is started
Feb 5 21:11:25 ntp client: time is synchronized to time.nist.gov

I have the sihp1020.dl and usb_printerid files in the /tmp folder of the mounted HDD (/tmp/harddisk/part0/tmp)

I have the following script in the root of the HDD ((/tmp/harddisk/part0) It is a text file without extension, I used post-mount, post-boot, hotplug, hotplug.sh as file names but nothing happened, no hotplug.log, printer...

#!/bin/sh
echo --------------- >> /tmp/harddisk/part0/hotplug.log
date >> /tmp/harddisk/part0/hotplug.log
echo $* >> /tmp/harddisk/part0/hotplug.log
set >> /tmp/harddisk/part0/hotplug.log
if [ "$ACTION" = "add" ] || [ "$1" = "usb" ] || [ "$DEVFS" = "/proc/bus/usb" ]; then
sleep 5
chmod +x usb_printerid

/tmp/harddisk/part0/tmp/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /tmp/harddisk/part0/tmp/sihp1020.dl > /dev/usb/lp0
echo "Firmware loaded succesfully!" >> /tmp/hotplug.log
else
echo "Device removed" >> /tmp/harddisk/part0/hotplug.log

Please advice what to do now or send me a correct hotplug.sh/post-mount files.

Thanx for your help.

Rushke
23-02-2008, 23:28
First, you'll need to flash your router with Oleg's firmware. Then you can get dirty and start tinkering with asus box. It will be good idea to get somewhat familliar with Linux, it is more fun when you know what you are doing :)

I will asume you have PC with Windows connected to router. Telnet and log to Asus, then make folder for firmware, hotplug etc.

mkdir /usr/local/sbin

#change to that dir

cd /usr/local/sbin

#copy files from HDD to flash

cp /tmp/harddisk/part0/tmp/sihp1020.dl sihp1020.dl
cp /tmp/harddisk/part0/tmp/usb_printerid usb_printerid

#make hotplug.sh file

echo "#!/bin/sh" > hotplug.sh
echo "/usr/local/sbin/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /usr/local/sbin/sihp1020.dl > /dev/usb/lp0" >> hotplug.sh

#this will load firmware every time printer is plugged in, and firmware is not present
# make post-boot script

echo "#!/bin/sh" > post-boot
echo "if [ -w /dev/usb/lp0 ]" >> post-boot
echo "cat /usr/local/sbin/sihp1020.dl>/dev/usb/lp0" >> post-boot
echo "fi" >> post-boot
echo "/usr/local/sbin/hotplug.sh">>/proc/sys/kernel/hotplug

#this will take care of situation when printer was plugged in before powering router, and activate hotplug
# now make everything eXecutable

chmod +x /usr/local/sbin/*

#save everything to flash and restart router

flashfs save
flashfs commit
flashfs enable
reboot

I prefer to keep everything in flash, Premium has enough of it to hold firmware.

Now to the windows part. Install printer:
http://oleg.wl500g.info/printing/

and... working :)

If printer runs out of paper during printing, it'll stop. unplug&plug usb cable to resume printing, or power off/on for cancel.

A.

software
22-04-2008, 16:27
I have a problem with the manual above me.
When i reboot the router, the router forgets the hotplug file.

When I reboot I see in the file /proc/sys/kernel/hotplug :
/sbin/hotplug

This is not correct, it must be
/usr/local/sbin/hotplug.sh

When i manual do :
echo "/usr/local/sbin/hotplug.sh">>/proc/sys/kernel/hotplug

Everything works fine. But I want that the router do this by himself. Someone have a idea ?

I have a laserjet 1005

jimmy_cr
22-04-2008, 16:36
did you end every change before reboot with commands



flashfs save
flashfs commit
flashfs enable


?

software
22-04-2008, 16:44
did you end every change before reboot with commands



flashfs save
flashfs commit
flashfs enable


?
Yes, I did

al37919
22-04-2008, 17:30
create /usr/local/sbin/pre-boot file with the following minimum content:


#! /bin/sh

echo "/usr/local/sbin/hotplug.sh" > /proc/sys/kernel/hotplug

save flashfs and reboot

software
22-04-2008, 18:04
create /usr/local/sbin/pre-boot file with the following minimum content:


#! /bin/sh

echo "/usr/local/sbin/hotplug.sh" > /proc/sys/kernel/hotplug

save flashfs and reboot

No, it's not working.
I put this line also in post-boot, but its also not working.

The /proc/sys/kernel/hotplug-file still contains :
/sbin/hotplug

I have firmware version 1.9.2.7-10 (the version -9, doesn't work) (WL500g.Deluxe)


I cleared my config files and flashed a new firmware. Now everything thing is up and running.
Thanks guys !!

ENDer2000
04-12-2008, 23:08
Done, but If I restart the printer or I power off the router nothing is working, I have to telnet and run



cd /usr/local/sbin
./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0


I'm a total newcommer to linux...

I have WL500gpv2 firmware 1.9.2.7-10-USB-1.71

please help...

ENDer2000
13-01-2009, 13:14
It's working now and if you telnet the router, ou can copy & paste the commands from here:
http://www.bogdangheorghe.ro/2008/12/05/asus-wl-500g-si-imprimantele-hp-1000100510181020/

mecanico
08-03-2009, 06:40
Hi guys,

First of all thanks to all of you for very simple and clear steps that make it work. It's great you presented it in a way a newcomer can understand!

Yesterday I've been struggling to make it work using the early instructions. It didn't work until I created the pre-boot file. I have HP 1020 and WL-500gP v2.

Now it works if I power off and power on the printer. Apparently it works if I power cycle the router with the printer on (firmware is still in the printer). Although it didn't work after I turned off everything for the night and then turned it back on in the morning (printer and router). And it looked differently, it wasn't just ignoring my printing requests silently but giving me messages like "local downlevel document failed to print".

After I turned off the printer and turned it on again, it works. Can it be the the hotplug works but post-boot or pre-boot do not?

the /proc/sys/kernel/hotplug file has the necessary line in it.
my /usr/local/sbin has pre-boot, post-boot, hotplug.sh, usb_printerid and sihp1020.dl files.

It is still unclear to me how the post-boot file is used. Is this /usr/local/sbin a special directory and post-boot and pre-boot some special file names that are executed automatically?

liucw99
26-06-2009, 02:18
Old but difficult problem.

I have the same problem.

ASUS WL-520gU. firmware 1.9.2.10. HP 1020 printer.

All can work perfectly except the pre-boot.

The file /proc/sys/kernel/hotplug changed to
/sbin/hotplug
after I powered off or reboot.

Who can help me/us ? :o

KGy
26-06-2009, 04:50
Hi,

Sorry my English.

Add this to your post-boot.
Change path of sihp1020.dl to yours.



# Printer
if [ -w /dev/usb/lp0 ]; then
/opt/bin/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /opt/bin/sihp1020.dl > /dev/usb/lp0
fi
echo "/usr/local/sbin/hotplug.sh" >> /proc/sys/kernel/hotplug


This code send hp fw to printer, if connected (and power on :)) after boot.
Dont't forget save files to flashfs (flashfs save+commit+enable).

Bye,
George

liucw99
27-06-2009, 10:06
Greate!

It works now!

thank you verrrrrrrrrrrrrrrrrrrrry much. :)


Hi,

Sorry my English.

Add this to your post-boot.
Change path of sihp1020.dl to yours.



# Printer
if [ -w /dev/usb/lp0 ]; then
/opt/bin/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /opt/bin/sihp1020.dl > /dev/usb/lp0
fi
echo "/usr/local/sbin/hotplug.sh" >> /proc/sys/kernel/hotplug


This code send hp fw to printer, if connected (and power on :)) after boot.
Dont't forget save files to flashfs (flashfs save+commit+enable).

Bye,
George

Unkn0wn404
17-09-2009, 21:14
Sorry for my English.
The problem is this: The printer 1005, all of the instructions executed.
Switch on the printer, perform
/tmp/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /tmp/sihpP1005.dl > /dev/usb/lp0
(this printer pogudel and subsided). Also try the file sihp1005.dl - with the printer does not even boos.
Then when you send a print job windows gives an error that the press has failed in the task list, the page is assigned the status of "error".
'll Show what could be wrong?

Unkn0wn404
17-09-2009, 21:15
Sorry, forgot about logs:

Sep 17 22:44:09 kernel: printer.c: usblp0: removed
Sep 17 22:44:12 kernel: hub.c: new USB device 00:03.1-1.2, assigned address 6
Sep 17 22:44:12 kernel: printer.c: usblp0: USB Bidirectional printer dev 6 if 0 alt 0 proto 2 vid 0x03F0 pid 0x3D17
Sep 17 22:44:12 kernel: printer.c: usblp0 Device ID string [86]='MFG:Hewlett-Packard;MDL:HP LaserJet P1005;CMD:ACL;CLS:PRINTER;DES:HP LaserJet P1005;'
Sep 17 22:45:51 udhcpc[129]: Lease of 109.86.153.206 obtained, lease time 3600

Unkn0wn404
20-09-2009, 12:15
Windows 7 solve problem :-)
Now i dont must load drivers on router.

tt0909
02-10-2009, 18:53
It's working now and if you telnet the router, ou can copy & paste the commands from here:
http://www.bogdangheorghe.ro/2008/12/05/asus-wl-500g-si-imprimantele-hp-1000100510181020/

Hi guys!

Please help. If I follow this tutorial and run

[admin@WL-001E8CE634DF sbin]$ echo ./usr/local/sbin/usb_printerid /dev/usb/lp0 | grep -q FWVER || cat /usr/local/sbin/sihp1005.dl > /dev/usb/lp0. >> hotplug.sh
-sh: cannot create /dev/usb/lp0.: Permission denied

What could this be?????

Thanks

al37919
02-10-2009, 23:05
the dot is superflous
/dev/usb/lp0.

tt0909
03-10-2009, 11:01
:eek:

Thank youuuuuu! A simple solution for my "big" problem...

It works now, but in windows 7 ( I haven't tried in xp/vista) the printer looses bidirectional support. Therefore I have to activate it before every print. Does it happen to somebody else? Is there a simple solution, as well?

Thanks.

P.S. Thanks Oleg for the great firmware!

BelThaZoR
03-11-2009, 13:25
Can these scripts be loaded to WL-520gu? Can't find WL-500gP anywhere and I have HP P1006...

Thanks

al37919
03-11-2009, 15:24
yes, but you will need external storage for the firmware. There isn't enough space inside.

BelThaZoR
05-11-2009, 22:17
Hmm, well I have successfully uploaded files to router (WL-520ug) (flashed with oleg's of course) but now I have another problem...
It seems that hotplug still doesnot work, every time I turn-off and turn-on the printer, I have to type cat "/usr/local/sbin/sihpP1006.dl" > /dev/usb/lp0
I cannot access /proc/sys/kernel/hotplug to add the nesecary line... I've added pre-boot, post-boot and done the chmod +x and all the flashfs and reboot command...

Please help...

willy1986
18-11-2009, 07:38
I want to connect my HP LJ 1020 on my Asus WL-500g Premium. I use the following walktrough: http://www.bogdangheorghe.ro/2008/12/05/asus-wl-500g-si-imprimantele-hp-1000100510181020/
But I get an error:

Here is my telnet session:


WL-001731B42998 login: admin
Password:
[admin@WL-001731B42998 root]$ mkdir /usr/local/sbin
[admin@WL-001731B42998 root]$ cd /usr/local/sbin
[admin@WL-001731B42998 sbin]$ wget http://oleg.wl500g.info/hplj/usb_printerid
Connecting to oleg.wl500g.info[158.250.11.254]:80
usb_printerid 100% |*****************************| 5800 00:00 ETA
[admin@WL-001731B42998 sbin]$ wget http://oleg.wl500g.info/hplj/sihp1020.dl
Connecting to oleg.wl500g.info[212.192.248.17]:80
sihp1020.dl 100% |*****************************| 123 KB 00:00 ETA
[admin@WL-001731B42998 sbin]$ chmod +x usb_printerid
[admin@WL-001731B42998 sbin]$ ./usb_printerid /dev/usb/lp0 | grep -q FWVER || ca
t sihp1020.dl > /dev/usb/lp0
Error: No such file or directory: can't open '/dev/usb/lp0'
-sh: cannot create /dev/usb/lp0: Permission denied
[admin@WL-001731B42998 sbin]$ ./usb_printerid /dev/usb/lp0 | grep -q FWVER || ca
t sihp1020.dl > /dev/usb/lp0
Error: No such file or directory: can't open '/dev/usb/lp0'
-sh: cannot create /dev/usb/lp0: Permission denied
[admin@WL-001731B42998 sbin]$


I did command ./usb_printerid /dev/usb/lp0 | grep -q FWVER || ca
t sihp1020.dl > /dev/usb/lp0 twice but I get two errors.



Error: No such file or directory: can't open '/dev/usb/lp0'
-sh: cannot create /dev/usb/lp0: Permission denied

I have tried to find to solution for this problem.

[admin@WL-001731B42998 sbin]$ ls -la /dev/usb
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..

I have no lp0. And that's why , I think, I get the error: -sh: cannot create /dev/usb/lp0: Permission denied



wilfred@wilfred-laptop:~$ telnet
telnet> open 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
WL-001731B42998 login: admin
Password:
[admin@WL-001731B42998 root]$ la /dev/usb
-sh: la: not found
[admin@WL-001731B42998 root]$ ls -la /dev/usb
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
[admin@WL-001731B42998 root]$ ls -la /dev/usb
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
[admin@WL-001731B42998 root]$ cd /usr/local/sbin
-sh: cd: can't cd to /usr/local/sbin
[admin@WL-001731B42998 root]$ cd /usr/local/sbin
-sh: cd: can't cd to /usr/local/sbin
[admin@WL-001731B42998 root]$ mkdir /usr/local/sbin
[admin@WL-001731B42998 root]$ cd /usr/local/sbin
[admin@WL-001731B42998 sbin]$ wget http://oleg.wl500g.info/hplj/usb_printerid
Connecting to oleg.wl500g.info[212.192.248.17]:80
usb_printerid 100% |*****************************| 5800 00:00 ETA
[admin@WL-001731B42998 sbin]$ wget http://oleg.wl500g.info/hplj/sihp1020.dl
Connecting to oleg.wl500g.info[158.250.11.254]:80
sihp1020.dl 100% |*****************************| 123 KB 00:00 ETA
[admin@WL-001731B42998 sbin]$ chmod +x usb_printerid
[admin@WL-001731B42998 sbin]$ ./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0
Error: No such file or directory: can't open '/dev/usb/lp0'
-sh: cannot create /dev/usb/lp0: Permission denied
[admin@WL-001731B42998 sbin]$ ls -la /dev
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 118 Mar 14 2008 ..
crw------- 1 admin root 8, 0 Jan 1 1970 .devfsd
crw------- 1 admin root 5, 1 Jan 1 1970 console
drwxr-xr-x 1 admin root 0 Jan 1 1970 cua
crw-rw-rw- 1 admin root 1, 7 Jan 1 1970 full
drwxr-xr-x 1 admin root 0 Jan 1 1970 gpio
crw-r----- 1 admin root 1, 2 Jan 1 1970 kmem
srw-rw-rw- 1 admin root 0 Jan 1 1970 log
drwxr-xr-x 1 admin root 0 Jan 1 1970 loop
crw-r----- 1 admin root 1, 1 Jan 1 1970 mem
drwxr-xr-x 1 admin root 0 Jan 1 1970 mtd
drwxr-xr-x 1 admin root 0 Jan 1 1970 mtdblock
crw-rw-rw- 1 admin root 1, 3 Jan 1 1970 null
crw-r----- 1 admin root 253, 0 Jan 1 1970 nvram
crw-r----- 1 admin root 1, 4 Jan 1 1970 port
crw------- 1 admin root 108, 0 Jan 1 1970 ppp
crw-rw-rw- 1 admin root 5, 2 Nov 17 16:10 ptmx
drwxr-xr-x 1 admin root 0 Jan 1 1970 pts
drwxr-xr-x 1 admin root 0 Jan 1 1970 pty
crw-r--r-- 1 admin root 1, 8 Jan 1 1970 random
lr-xr-xr-x 1 admin root 10 Jan 1 2000 root -> mtdblock/2
drwxr-xr-x 1 admin root 0 Jan 1 1970 scsi
drwxr-xr-x 1 admin root 0 Jan 1 1970 sound
drwxr-xr-x 1 admin root 0 Jan 1 1970 tts
crw-rw-rw- 1 admin root 5, 0 Jan 1 1970 tty
crw-r--r-- 1 admin root 1, 9 Jan 1 1970 urandom
drwxr-xr-x 1 admin root 0 Jan 1 1970 usb
lr-xr-xr-x 1 admin root 15 Jan 1 1970 video -> /dev/v4l/video0
crw-rw-rw- 1 admin root 1, 5 Jan 1 1970 zero
[admin@WL-001731B42998 sbin]$ ls -la /dev/usb
drwxr-xr-x 1 admin root 0 Jan 1 1970 .
drwxr-xr-x 1 admin root 0 Jan 1 1970 ..
[admin@WL-001731B42998 sbin]$


Form the log of the router

ov 17 16:06:09 login[409]: root login on `pts/0'
Nov 17 16:06:50 kernel: hub.c: new USB device 01:03.2-1, assigned address 2
Nov 17 16:06:50 kernel: usb.c: invalid descriptor length of 1
Nov 17 16:06:50 kernel: usb.c: unable to get device 2 configuration (error=-22)
Nov 17 16:06:50 kernel: hub.c: new USB device 01:03.2-1, assigned address 3
Nov 17 16:06:50 kernel: usb.c: not enough configurations
Nov 17 16:06:50 kernel: usb.c: unable to get device 3 configuration (error=-22)

Can somebody help me with this problem?

al37919
18-11-2009, 08:26
your problem is that printer isn't recognized by router. I guess you have wl500gPv2. Try the firmware from http://code.google.com/p/wl500g/ It is known to be more compatible with usb devices.

willy1986
18-11-2009, 10:02
I have ASUS WL-500g Premium (firmware: Oleg firmware WL500gp-1.9.2.7-9 )
I will test the new firmware tonight. I'll keep you updated

willy1986
18-11-2009, 16:54
I have flashed my router to firmware: WL500gp-1.9.2.7-d-r740
systemlog of the router:



Jan 1 00:01:23 kernel: hub.c: new USB device 01:03.2-2, assigned address 2
Jan 1 00:01:23 kernel: usb.c: invalid descriptor length of 1
Jan 1 00:01:23 kernel: usb.c: unable to get device 2 configuration (error=-22)
Jan 1 00:01:24 kernel: hub.c: new USB device 01:03.2-2, assigned address 3
Jan 1 00:01:24 kernel: usb.c: not enough configurations
Jan 1 00:01:24 kernel: usb.c: unable to get device 3 configuration (error=-22)
I have taken the same steps of the walktrough and I get the same error.

I have typed ps commando and get the following:


[admin@WL-001731B42998 root]$ ps commando
ps: invalid option -- c
BusyBox v1.15.2 (2009-10-30 20:19:08 MSK) multi-call binary

Usage: ps

Report process status

Options:
w Wide output

[admin@WL-001731B42998 root]$ w
-sh: w: not found
[admin@WL-001731B42998 root]$ pc
-sh: pc: not found
[admin@WL-001731B42998 root]$ ps
PID USER VSZ STAT COMMAND
1 admin 1312 S /sbin/init
2 admin 0 SW [keventd]
3 admin 0 SWN [ksoftirqd_CPU0]
4 admin 0 SW [kswapd]
5 admin 0 SW [bdflush]
6 admin 0 SW [kupdated]
7 admin 0 SW [mtdblockd]
52 admin 1516 S telnetd
57 admin 1120 S httpd vlan1
59 admin 1516 S syslogd -m 0 -O /tmp/syslog.log -S -l 7 -b 2
60 admin 1516 S klogd
67 nobody 832 S dnsmasq
68 admin 0 SW [khubd]
76 admin 756 S lpd
78 admin 648 S p9100d -f /dev/usb/lp0 0
81 admin 1308 S waveservermain
83 admin 1308 S rcamdmain
93 admin 888 S infosvr br0
94 admin 1312 S watchdog
111 admin 1036 S upnp -D -L br0 -W vlan1
112 admin 1524 S udhcpc -i vlan1 -p /var/run/udhcpc0.pid -s /tmp/udhcp
145 admin 1520 S -sh
151 admin 1516 R ps
[admin@WL-001731B42998 root]$


What does this mean to me? 78 admin 648 S p9100d -f /dev/usb/lp0 0

al37919
18-11-2009, 17:46
ps output is ok, while syslog looks not very promising.

Well, first check once again that the printer itself and usb cable are in order by connecting the printer directly to PC. If it works, I really don't know what else you can do.

The printer is reported to work with Premium v.1, so I believe you should have some hardware problem.

You connect printer directly (not through usb hub)?
What if it is connected to another usb port?
Are another usb devices recognized?

willy1986
18-11-2009, 20:14
ps output is ok, while syslog looks not very promising.

Well, first check once again that the printer itself and usb cable are in order by connecting the printer directly to PC. If it works, I really don't know what else you can do.

The printer is reported to work with Premium v.1, so I believe you should have some hardware problem.

You connect printer directly (not through usb hub)?
What if it is connected to another usb port?
Are another usb devices recognized?
I can use the printer directly connected to my pc perfectly. I get no errors in Windows XP home and Linux Ubuntu 9.10. The printer works very well.
The printer is not connected with an usb hub.

I have tested 3 diverend USB cables: and with every cable I used the two usb ports of the router for the turn.

USB cable 1:
Nov 18 18:36:00 kernel: hub.c: new USB device 01:03.2-2, assigned address 32
Nov 18 18:36:00 kernel: usb.c: not enough configurations
Nov 18 18:36:00 kernel: usb.c: unable to get device 32 configuration (error=-22)
Nov 18 18:36:00 kernel: hub.c: new USB device 01:03.2-2, assigned address 33
Nov 18 18:36:00 kernel: usb.c: not enough configurations
Nov 18 18:36:00 kernel: usb.c: unable to get device 33 configuration (error=-22)

Nov 18 18:44:08 kernel: hub.c: new USB device 01:03.2-1, assigned address 34
Nov 18 18:44:08 kernel: usb.c: not enough configurations
Nov 18 18:44:08 kernel: usb.c: unable to get device 34 configuration (error=-22)
Nov 18 18:44:09 kernel: hub.c: new USB device 01:03.2-1, assigned address 35
Nov 18 18:44:09 kernel: usb.c: invalid descriptor length of 0
Nov 18 18:44:09 kernel: usb.c: unable to get device 35 configuration (error=-22)

USB cable 2:

Nov 18 18:46:49 kernel: hub.c: new USB device 01:03.2-2, assigned address 38
Nov 18 18:46:49 kernel: usb.c: invalid descriptor length of 0
Nov 18 18:46:49 kernel: usb.c: unable to get device 38 configuration (error=-22)
Nov 18 18:46:49 kernel: hub.c: new USB device 01:03.2-2, assigned address 39
Nov 18 18:46:49 kernel: usb.c: invalid descriptor length of 0
Nov 18 18:46:49 kernel: usb.c: unable to get device 39 configuration (error=-22)

Nov 18 18:46:57 kernel: hub.c: new USB device 01:03.2-1, assigned address 40
Nov 18 18:46:57 kernel: usb.c: not enough configurations
Nov 18 18:46:57 kernel: usb.c: unable to get device 40 configuration (error=-22)
Nov 18 18:46:58 kernel: hub.c: new USB device 01:03.2-1, assigned address 41
Nov 18 18:46:58 kernel: usb.c: invalid descriptor length of 0
Nov 18 18:46:58 kernel: usb.c: unable to get device 41 configuration (error=-22)

USB cable 3:
Nov 18 18:48:04 kernel: hub.c: new USB device 01:03.2-2, assigned address 44
Nov 18 18:48:04 kernel: usb.c: not enough configurations
Nov 18 18:48:04 kernel: usb.c: unable to get device 44 configuration (error=-22)
Nov 18 18:48:05 kernel: hub.c: new USB device 01:03.2-2, assigned address 45
Nov 18 18:48:05 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 18:48:05 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 18:48:05 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 18:48:05 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 18:48:05 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 18:48:05 kernel: usb.c: unable to get device descriptor (error=-22)

Nov 18 18:48:34 kernel: hub.c: new USB device 01:03.2-1, assigned address 46
Nov 18 18:48:34 kernel: usb.c: not enough configurations
Nov 18 18:48:34 kernel: usb.c: unable to get device 46 configuration (error=-22)
Nov 18 18:48:35 kernel: hub.c: new USB device 01:03.2-1, assigned address 47
Nov 18 18:48:35 kernel: usb.c: not enough configurations
Nov 18 18:48:35 kernel: usb.c: unable to get device 47 configuration (error=-22)


Nov 18 18:49:18 kernel: hub.c: new USB device 01:03.2-2, assigned address 48
Nov 18 18:49:18 kernel: usb.c: too many interfaces
Nov 18 18:49:18 kernel: usb.c: unable to get device 48 configuration (error=-22)
Nov 18 18:49:18 kernel: hub.c: new USB device 01:03.2-2, assigned address 49
Nov 18 18:49:18 kernel: usb.c: not enough configurations
Nov 18 18:49:18 kernel: usb.c: unable to get device 49 configuration (error=-22)

I have restarted my HP printer and my Asus router:


Jan 1 00:00:03 syslogd started: BusyBox v1.15.2
Jan 1 00:00:03 kernel: klogd started: BusyBox v1.15.2 (2009-10-30 20:19:08 MSK)
Jan 1 00:00:03 kernel: CPU revision is: 00029006
Jan 1 00:00:03 kernel: Primary instruction cache 16kB, physically tagged, 2-way, linesize 16 bytes.
Jan 1 00:00:03 kernel: Primary data cache 16kB, 2-way, linesize 16 bytes.
Jan 1 00:00:03 kernel: Linux version 2.4.37.6 (root@localhost) (gcc version 3.4.6) #9 2009-10-30 20:22:17 MSK
Jan 1 00:00:03 kernel: Setting the PFC to its default value
Jan 1 00:00:03 kernel: Determined physical RAM map:
Jan 1 00:00:03 kernel: memory: 02000000 @ 00000000 (usable)
Jan 1 00:00:03 kernel: On node 0 totalpages: 8192
Jan 1 00:00:03 kernel: zone(0): 8192 pages.
Jan 1 00:00:03 kernel: zone(1): 0 pages.
Jan 1 00:00:03 kernel: device eth0 entered promiscuous mode
Jan 1 00:00:03 kernel: device vlan0 entered promiscuous mode
Jan 1 00:00:03 kernel: device eth1 entered promiscuous mode
Jan 1 00:00:03 kernel: eth1: attempt to add interface with same source address.
Jan 1 00:00:03 kernel: br0: port 2(eth1) entering learning state
Jan 1 00:00:03 kernel: br0: port 1(vlan0) entering learning state
Jan 1 00:00:03 kernel: br0: port 2(eth1) entering forwarding state
Jan 1 00:00:03 kernel: br0: topology change detected, propagating
Jan 1 00:00:03 kernel: br0: port 1(vlan0) entering forwarding state
Jan 1 00:00:03 kernel: br0: topology change detected, propagating
Jan 1 00:00:03 dnsmasq[67]: started, version 2.51 cachesize 512
Jan 1 00:00:03 dnsmasq[67]: compile time options: no-IPv6 GNU-getopt no-RTC no-DBus no-I18N DHCP no-scripts no-TFTP
Jan 1 00:00:03 dnsmasq-dhcp[67]: DHCP, IP range 192.168.1.2 -- 192.168.1.254, lease time 1d
Jan 1 00:00:03 dnsmasq[67]: read /etc/hosts - 2 addresses
Jan 1 00:00:03 kernel: usb.c: registered new driver usbdevfs
Jan 1 00:00:03 kernel: usb.c: registered new driver hub
Jan 1 00:00:03 kernel: usb-uhci.c: $Revision: 1.275 $ time 20:19:57 Oct 27 2009
Jan 1 00:00:03 kernel: usb-uhci.c: High bandwidth mode enabled
Jan 1 00:00:03 kernel: PCI: Enabling device 01:03.0 (0000 -> 0001)
Jan 1 00:00:03 kernel: UHCI: Enabling VIA 6212 workarounds
Jan 1 00:00:03 kernel: usb-uhci.c: USB UHCI at I/O 0x100, IRQ 12
Jan 1 00:00:03 kernel: usb-uhci.c: Detected 2 ports
Jan 1 00:00:03 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan 1 00:00:03 kernel: hub.c: USB hub found
Jan 1 00:00:03 kernel: hub.c: 2 ports detected
Jan 1 00:00:03 kernel: PCI: Enabling device 01:03.1 (0000 -> 0001)
Jan 1 00:00:03 kernel: UHCI: Enabling VIA 6212 workarounds
Jan 1 00:00:03 kernel: usb-uhci.c: USB UHCI at I/O 0x120, IRQ 12
Jan 1 00:00:03 kernel: usb-uhci.c: Detected 2 ports
Jan 1 00:00:03 kernel: usb.c: new USB bus registered, assigned bus number 2
Jan 1 00:00:03 kernel: hub.c: USB hub found
Jan 1 00:00:03 kernel: hub.c: 2 ports detected
Jan 1 00:00:03 kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Jan 1 00:00:04 kernel: PCI: Enabling device 01:03.2 (0000 -> 0002)
Jan 1 00:00:04 kernel: ehci_hcd 01:03.2: PCI device 1106:3104
Jan 1 00:00:04 kernel: ehci_hcd 01:03.2: irq 12, pci mem c019d000
Jan 1 00:00:04 kernel: usb.c: new USB bus registered, assigned bus number 3
Jan 1 00:00:04 kernel: EHCI: Enabling VIA 6212 workarounds
Jan 1 00:00:04 kernel: ehci_hcd 01:03.2: USB 2.0 enabled, EHCI 1.00, driver 10 Dec 2004/2.4
Jan 1 00:00:04 kernel: hub.c: USB hub found
Jan 1 00:00:04 kernel: hub.c: 4 ports detected
Jan 1 00:00:04 kernel: usb.c: registered new driver usblp
Jan 1 00:00:04 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan 1 00:00:04 dnsmasq-dhcp[67]: DHCPREQUEST(br0) 192.168.1.205 00:03:0d:38:a0:5f
Jan 1 00:00:04 dnsmasq-dhcp[67]: DHCPACK(br0) 192.168.1.205 00:03:0d:38:a0:5f wilfred-laptop
Jan 1 00:00:05 kernel: usb.c: registered new driver audio
Jan 1 00:00:05 kernel: audio.c: v1.0.1:USB Audio Class driver
Jan 1 00:00:05 kernel: Linux video capture interface: v1.00
Jan 1 00:00:05 kernel: SCSI subsystem driver Revision: 1.00
Jan 1 00:00:05 kernel: Initializing USB Mass Storage driver...
Jan 1 00:00:05 kernel: usb.c: registered new driver usb-storage
Jan 1 00:00:05 kernel: USB Mass Storage support registered.
Jan 1 00:00:05 kernel: vlan1: Setting MAC address to 00 17 31 b4 29 98.
Jan 1 00:00:05 kernel: VLAN (vlan1): Underlying device (eth0) has same MAC, not checking promiscious mode.
Jan 1 00:00:06 dhcp client: deconfig: lease is lost
Jan 1 00:00:06 dhcp client: bound IP : XXX.XXX.XXX.XXX from XXX.XXX.XXX.XXX
Jan 1 00:00:09 dnsmasq-dhcp[67]: DHCPDISCOVER(br0) 00:06:dc:44:1c:7a
Jan 1 00:00:09 dnsmasq-dhcp[67]: DHCPOFFER(br0) 192.168.1.208 00:06:dc:44:1c:7a
Jan 1 00:00:09 dnsmasq[67]: read /etc/hosts - 2 addresses
Jan 1 00:00:09 dnsmasq[67]: using nameserver 145.97.192.174#53
Jan 1 00:00:09 dnsmasq[67]: read /etc/hosts - 2 addresses
Jan 1 00:00:09 dnsmasq[67]: using nameserver 145.97.192.174#53
Jan 1 00:00:09 dnsmasq-dhcp[67]: DHCPREQUEST(br0) 192.168.1.208 00:06:dc:44:1c:7a
Jan 1 00:00:09 dnsmasq-dhcp[67]: DHCPACK(br0) 192.168.1.208 00:06:dc:44:1c:7a
Jan 1 00:00:49 kernel: hub.c: new USB device 01:03.2-2, assigned address 2
Jan 1 00:00:49 kernel: usb.c: invalid descriptor length of 0
Jan 1 00:00:49 kernel: usb.c: unable to get device 2 configuration (error=-22)
Jan 1 00:00:49 kernel: hub.c: new USB device 01:03.2-2, assigned address 3
Jan 1 00:00:49 kernel: usb.c: too many interfaces
Jan 1 00:00:49 kernel: usb.c: unable to get device 3 configuration (error=-22)

willy1986
18-11-2009, 20:20
When I connect an USB drive I get this:

Nov 18 19:41:10 kernel: hub.c: new USB device 01:03.2-1, assigned address 12
Nov 18 19:41:10 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 19:41:10 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 19:41:10 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 19:41:10 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 19:41:10 kernel: hcd.c: bogus endpoint (bad maxpacket)
Nov 18 19:41:10 kernel: usb.c: unable to get device descriptor (error=-22)
Nov 18 19:41:11 kernel: hub.c: new USB device 01:03.2-1, assigned address 13
Nov 18 19:41:11 kernel: usb.c: invalid descriptor length of 1
Nov 18 19:41:11 kernel: usb.c: unable to get device 13 configuration (error=-22)

al37919
18-11-2009, 21:05
you get no one positive detection on usb bus. The problem with usb flash drive supports my suggestion that you have hardware related problem. It looks like usb on the router isn't working at all.

Just in case, show output of:

lsmod

willy1986
19-11-2009, 05:59
you get no one positive detection on usb bus. The problem with usb flash drive supports my suggestion that you have hardware related problem. It looks like usb on the router isn't working at all.

Just in case, show output of:

lsmod


telnet> open 192.168.1.1
Trying 192.168.1.1...
Connected to 192.168.1.1.
Escape character is '^]'.
WL-001731B42998 login: admin
Password:
[admin@WL-001731B42998 root]$ lsmod
Tainted: P
usb-storage 63080 0 (unused)
sd_mod 12660 0 (unused)
scsi_mod 72624 1 [usb-storage sd_mod]
videodev 8752 0 (unused)
audio 45160 0 (unused)
soundcore 4920 0 [audio]
printer 13060 0 (unused)
ehci-hcd 28212 0 (unused)
usb-uhci 27412 0 (unused)
usbcore 78840 1 [usb-storage audio printer ehci-hcd usb-uhci]
ip_nat_ftp 3136 0 (unused)
ip_conntrack_ftp 4584 1
wl 897336 0 (unused)
et 29088 0 (unused)
[admin@WL-001731B42998 root]$


from the system log of the router:


Nov 19 04:51:49 login[135]: root login on 'pts/0'
Nov 19 04:52:39 kernel: hub.c: new USB device 01:03.2-2, assigned address 16
Nov 19 04:52:40 kernel: usb.c: invalid descriptor length of 1
Nov 19 04:52:40 kernel: usb.c: unable to get device 16 configuration (error=-22)
Nov 19 04:52:40 kernel: hub.c: new USB device 01:03.2-2, assigned address 17
Nov 19 04:52:40 kernel: usb.c: too many interfaces
Nov 19 04:52:40 kernel: usb.c: unable to get device 17 configuration (error=-22)

al37919
19-11-2009, 06:27
all the needed usb modules are loaded...

Well, I don't have better guesses at the moment besides faulty usb hardware on the side of the router. Sorry.

willy1986
29-11-2009, 11:14
all the needed usb modules are loaded...

Well, I don't have better guesses at the moment besides faulty usb hardware on the side of the router. Sorry.

I have tested the router with an HP Laserjet 1010. I have connected de HP 1010 with an USB cable to the router. De router recognized the HP laserjet 1010 immediately without any commands with Telnet! Then I have maked an new networkprinter under Windows XP and Ubuntu 9.10. There where on both operation systems no errors. Printing was no problem!


Nov 28 16:45:30 kernel: hub.c: new USB device 01:03.0-1, assigned address 2
Nov 28 16:45:30 kernel: printer.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 1 proto 2 vid 0x03F0 pid 0x0C17
Nov 28 16:45:30 kernel: printer.c: usblp0 Device ID string [143]='MFG:Hewlett-Packard;CMD:PJL,MLC,BIDI-ECP,DW-PCL;MDL:hp LaserJet 1010;CLS:PRINTER;DES:Hewlett-Packard LaserJet 1010;MEM:5MB;COMMENT:RES=600x1;'


I have tested the internal chip from the 1010 in de 1020. The printer didn't work. Also tested the internal chip from the 1020 in the 1010 but then I get also problem's (printers doesn't work at al)

So the only solution was to exchange the printers to "solve" this problem.
Now I have exchanged the HP Laserjet 1020 with a HP Laserjet 1010. The 1020 and 1010 are using the same toner so that maked it easy. :)

kurru
20-01-2013, 13:29
Well, it's possible for HP LJ 1000/1005/1020.

1000/1005 seems to have firmware which fits to flashfs, 1020 needs external usb drive to store firmware, as it's large.

I've put some stuff here: http://oleg.wl500g.info/hplj/

You've to download right firmware sihp1000.dl/sihp1005.dl/sihp1020.dl to wl500g and upload to printer like this:



cd /tmp
wget http://oleg.wl500g.info/hplj/usb_printerid
wget http://oleg.wl500g.info/hplj/sihp1020.dl
chmod +x usb_printerid
./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0


This should load a firmware to the 1020 and it should work until power off or something. Check this.

In fact, someone should write a hotplug script to automate firmware loading...

Waiting for feedback. :)


Does anyone has HP 1020 printer + wl500 router + Linux computer successfully installed?

kurru
16-02-2013, 13:21
Does anyone has HP 1020 printer + wl500 router + Linux computer successfully installed?

I successfully setup Kubuntu 12.10, and Windows 7 to use HP 1020 via Oleg WL500gp V2:

Kubuntu 12.10:
Driver: HP LaserJet 1020 Foomatic/foo2zjs-z1 (recommended)
Connection: lpd://192.168.1.1/LPRServer

Windows 7:
Like Windows XP, BUT don't forget to uncheck two way communication in the printer properties unless it will continuously repeat the printing job.

catrinahoney
06-12-2014, 11:20
Hello
I am new to this site, but I want share my experience on this site. Actually, I got the problem with HP Laserjet 1020 in that The problem I am unable to print properly I asked the one technique he suggested me once re-install the driver. I did what he said. Now my printer is working very good. If you have any problem with your printer better re-install and check your printer it may work better...

HP Laserjet 1020 Printer Driver Downloading and Installation Guide

HP Laserjet 1020 printer driver (http://driverbasket.com/hp-laserjet-1020-printer-driver/) download and install you must click on Free Download.
After it is downloaded on your system open the file and continue the installation process accordingly.
You can read the manual that comes with the driver software on how to use, operate and use the features of driver software.
Once it is all set up accordingly, you will be able to use your printer efficiently without any problems, as the driver will recognize all inputs and drivers to work properly in all circumstances.

Catrina Honey