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.
Printable View
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.
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.
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.
PHP Code: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.
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.:)
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.
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.
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
did you end every change before reboot with commands
?Code:flashfs save
flashfs commit
flashfs enable
create /usr/local/sbin/pre-boot file with the following minimum content:
save flashfs and rebootPHP Code:#! /bin/sh
echo "/usr/local/sbin/hotplug.sh" > /proc/sys/kernel/hotplug
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)
[edit]
I cleared my config files and flashed a new firmware. Now everything thing is up and running.
Thanks guys !!
[/edit]
Done, but If I restart the printer or I power off the router nothing is working, I have to telnet and run
I'm a total newcommer to linux...Code:cd /usr/local/sbin
./usb_printerid /dev/usb/lp0 | grep -q FWVER || cat sihp1020.dl > /dev/usb/lp0
I have WL500gpv2 firmware 1.9.2.7-10-USB-1.71
please help...
It's working now and if you telnet the router, ou can copy & paste the commands from here:
http://www.bogdangheorghe.ro/2008/12...0100510181020/
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?
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
Hi,
Sorry my English.
Add this to your post-boot.
Change path of sihp1020.dl to yours.
This code send hp fw to printer, if connected (and power on :)) after boot.Code:# 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
Dont't forget save files to flashfs (flashfs save+commit+enable).
Bye,
George
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?
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
Windows 7 solve problem :-)
Now i dont must load drivers on router.
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
the dot is superflous
/dev/usb/lp0.
: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!
Can these scripts be loaded to WL-520gu? Can't find WL-500gP anywhere and I have HP P1006...
Thanks
yes, but you will need external storage for the firmware. There isn't enough space inside.
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...
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...0100510181020/
But I get an error:
Here is my telnet session:
I did command ./usb_printerid /dev/usb/lp0 | grep -q FWVER || caCode: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]$
t sihp1020.dl > /dev/usb/lp0 twice but I get two errors.
I have tried to find to solution for this problem.Code: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/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
Form the log of the routerCode: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]$
Can somebody help me with this problem?Code: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)
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.
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
I have flashed my router to firmware: WL500gp-1.9.2.7-d-r740
systemlog of the router:
I have taken the same steps of the walktrough and I get the same error.Code: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 typed ps commando and get the following:
What does this mean to me? 78 admin 648 S p9100d -f /dev/usb/lp0 0Code:[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]$
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:
Code: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)
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)
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:
PHP Code:lsmod
from the system log of the router:Code: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]$
Code: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)
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!
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)Code: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;'
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. :)