[EMAIL PROTECTED]
usb hpoj hotplug problems with HP OJD125xi printer/scanner


Hi

I've been running into problems when trying to set up a Hewlett-Packard 
OfficeJet d125xi printer/scanner under linux.
I've checked machine and usb cabling under windows, and it works.
I've checked linux usb communication (usb-storage) with a digital camera 
and it works.

I've emerged hpoj cups, no probs. emerge hpoj prints:
 * Before starting hpoj you have to set it up with 'ptal-init setup'
so I run "ptal-init setup"
and it fails to detect my usb printer/scanner as follows:
--snip--
Probe for USB-connected devices ([y]/n)?  y

Probing "/dev/usb/lp0"...
    No device found.
--snip--



strange I thought and checked that modules were loaded ok:
--snip--
scanner                10588   0  (unused)
printer                 8832   1
usb-ohci               19784   0  (unused)
usbcore                70848   1  [usb-storage scanner printer usb-ohci]
--snip--



then I found a horror in dmesg,
--snip--
dmesg after "ptal-init setup"
Unable to handle kernel NULL pointer dereference at virtual address 
0000004c
 printing eip:
e0a6ba20
*pde = 00000000
Oops: 0000
CPU:    1
EIP:    0010:[<e0a6ba20>]    Tainted: P
EFLAGS: 00010202
eax: 00000001   ebx: c17e8600   ecx: 00000000   edx: c17e8620
esi: c0408280   edi: 00000000   ebp: c17e8620   esp: d5259f1c
ds: 0018   es: 0018   ss: 0018
Process ptal-mlcd (pid: 1597, stackpage=d5259000)
Stack: 00000145 d5258000 00000000 00000282 00000000 00000000 00000000 
d5c7d380
       00000004 d5258000 d5347600 00000009 db24a6c0 c0214978 00000009 
c17e8600
       c17e8608 00000000 db24a6c0 e0a593b2 c17e8620 e0a73f29 c17e8620 
deb56000
Call Trace:    [<c0214978>] [<e0a593b2>] [<e0a73f29>] [<c0152359>] 
[<c010aac8>]

Code: 8b 5c 87 48 e9 a3 fa ff ff 8d b4 26 00 00 00 00 83 ec 4c b8
--end--
which seems to point to a ptal-mlcd breakdown, which as far as I can see is 
a subprocess to ptal-init.



Hmm so I did a cold system start and checked dmesg before and after 
"ptal-init setup" and also that the /proc/bus/usb/devices seemed ok:

system cold start: dmesg from usb-ohci printer scanner usb-storage modules:
--snip--
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
usb-ohci.c: USB OHCI at membase 0xe0a71000, IRQ 19
usb-ohci.c: usb-02:00.0, Advanced Micro Devices [AMD] AMD-768 [Opus] USB
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 4 ports detected
usb.c: registered new driver usblp
printer.c: v0.11: USB Printer Device Class driver
usb.c: registered new driver usbscanner
scanner.c: 0.4.6:USB Scanner Driver
SCSI subsystem driver Revision: 1.00
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
--snip--

jiroburk root # cat /proc/bus/usb/devices
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 4
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=e0a71000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=03f0 ProdID=2311 Rev= 1.00
S:  Manufacturer=Hewlett-Packard
S:  Product=officejet d series
S:  SerialNumber=HU27HBM1YWOX
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=07(print) Sub=01 Prot=03 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=82(I) Atr=03(Int.) MxPS=   8 Ivl=10ms
I:  If#= 0 Alt= 1 #EPs= 2 Cls=07(print) Sub=01 Prot=02 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 0 Alt= 2 #EPs= 1 Cls=07(print) Sub=01 Prot=01 Driver=usblp
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

jiroburk root # cat /proc/bus/usb/drivers
         usbdevfs
         hub
  0- 15: usblp
 48- 63: usbscanner
         usb-storage



No problems there as far as I can see, until I run "ptal-init setup". At 
which point the whole "Unable to handle kernel NULL pointer dereference 
..." shows up i dmesg.

I've tried adding "hotplug" to default runlevel but that only leads to 
hanging some process and blocking a clean shutdown, and sometimes the 
"ptal-init setup" hangs everything as well.

hotplug hangs on:
runscript.sh
    usb.rc
        rmmod



I'm running:
openmosix-sources-2.4.20-r6
hpoj-0.90-r1
hotplug-20030501-r2
on a Gigabit GA-7DPXDW+ board with dual athlon MP 2200+, 512MB ram, 
Geforce4mx, sb 1024 live.


I've checked bugs.gentoo.org for hpoj and hotplug bugs, but I've found 
nothing I can see as related to this.



Has anyone seen anything like this before? I'd appreciate some advice as to 
a fix or circumvention technique. Have I missed something vital or might 
it be a valid bug?




Thanks
Jimmy



--
[EMAIL PROTECTED] mailing list

Reply via email to