[ELDK] Problem for drivering USB laser printer on kilauea-linux
噜斯卡 孙
sxb203 at yahoo.com.cn
Tue Nov 17 03:31:53 CET 2009
Dear Madam/SIr:
Can someone please provide me some instructions or point me
someplace on the web to learn how to enable the USB laser printer
on a kilauea?
I use linux-2.6-denx work on kilauea yesterday. The kernel is
linux-2.6.25. I configed ARCH=powerpc, and then make
kilauea_defconfig. Then I add 'USB Printer support=y', and make
uImage, and then I got the uImage working on kilauea. The 'USB
Mass Storage' is OK. I mounted a USB disk on kilauea. I could read
or write the USB disk. But when I interfaced a USB laser printer
on kilauea. It did not work. Even I could not 'open' the printer
(When I tried to open it, I used majot=180, and minor=0 ). Then I
add some 'printk' information in 'linux-2.6-denx/drivers/usb/
class/usblp.c'. I found that my program had go into the 'usblp.c'.
But the function 'usblp_open' didn't execute right.
Can someone please help me?
The following is information the kernel printed when tried to
'open' the printer:
BUG: soft lockup - CPU#0 stuck for 61s! [printer:861]
NIP: c004643c LR: c00482b0 CTR: c00133b4
REGS: cccefa40 TRAP: 1001 Not tainted (2.6.25)
MSR: 00029030 <EE,ME,IR,DR> CR: 24000048 XER: 20000000
TASK = ccc963f0[861] 'printer' THREAD: cccee000
GPR00: 00029030 cccefaf0 ccc963f0 00000012 cf5fce40 c0012594 ccdd3900 01063600
GPR08: ffffffff 00000000 00000090 c0377c78 0cc965f0
NIP [c004643c] handle_IRQ_event+0x30/0xb0
LR [c00482b0] handle_level_irq+0x90/0x11c
Call Trace:
[cccefb10] [c00482b0] handle_level_irq+0x90/0x11c
[cccefb20] [c0016b6c] uic_irq_cascade+0x108/0x138
[cccefb40] [c0004d4c] do_IRQ+0xa0/0xc4
[cccefb50] [c000e3d4] ret_from_except+0x0/0x18
[cccefc10] [00029030] 0x29030
[cccefc40] [c0004228] do_softirq+0x58/0x5c
[cccefc50] [c0025334] irq_exit+0x48/0x58
[cccefc60] [c0004d50] do_IRQ+0xa4/0xc4
[cccefc70] [c000e3d4] ret_from_except+0x0/0x18
[cccefd30] [c00201b8] vprintk+0x1a0/0x350
[cccefdb0] [c00203b8] printk+0x50/0x60
[cccefe30] [c01c2a98] usblp_open+0x114/0x12c
[cccefe50] [c01ab2a0] usb_open+0xbc/0x154
[cccefe70] [c0073e08] chrdev_open+0xb8/0x19c
[cccefea0] [c006fef8] __dentry_open+0xcc/0x224
[cccefec0] [c00701bc] do_filp_open+0x58/0x6c
[ccceff20] [c007022c] do_sys_open+0x5c/0xfc
[ccceff40] [c000dd8c] ret_from_syscall+0x0/0x3c
Instruction dump:
7c0802a6 9421ffe0 bf810010 90010024 80040004 7c9f2378 70090020 7c7c1b78
40820010 7c0000a6 60008000 7c000124 <3bc00000> 3ba00000 48000010 83ff0014
BUG: soft lockup - CPU#0 stuck for 61s! [printer:861]
NIP: c01d72dc LR: c01d4718 CTR: c01d4704
REGS: cccefa00 TRAP: 1001 Not tainted (2.6.25)
MSR: 00029030 <EE,ME,IR,DR> CR: 44000044 XER: 00000000
TASK = ccc963f0[861] 'printer' THREAD: cccee000
GPR00: 06200021 cccefab0 ccc963f0 cf6002c0 cf600200 c0012594 ccdd3900 01063600
GPR08: ffffffff d1060014 00000001 d1060000 24000048
NIP [c01d72dc] dwc_otg_hcd_handle_intr+0x28/0x124
LR [c01d4718] dwc_otg_hcd_irq+0x14/0x30
Call Trace:
[cccefab0] [c02d0000] rpc_proc_fops+0x50100/0x85e08 (unreliable)
[cccefad0] [c01d4718] dwc_otg_hcd_irq+0x14/0x30
[cccefae0] [c01a538c] usb_hcd_irq+0x40/0x9c
[cccefaf0] [c0046468] handle_IRQ_event+0x5c/0xb0
[cccefb10] [c00482b0] handle_level_irq+0x90/0x11c
[cccefb20] [c0016b6c] uic_irq_cascade+0x108/0x138
[cccefb40] [c0004d4c] do_IRQ+0xa0/0xc4
[cccefb50] [c000e3d4] ret_from_except+0x0/0x18
[cccefc10] [00029030] 0x29030
[cccefc40] [c0004228] do_softirq+0x58/0x5c
[cccefc50] [c0025334] irq_exit+0x48/0x58
[cccefc60] [c0004d50] do_IRQ+0xa4/0xc4
[cccefc70] [c000e3d4] ret_from_except+0x0/0x18
[cccefd30] [c00201b8] vprintk+0x1a0/0x350
[cccefdb0] [c00203b8] printk+0x50/0x60
[cccefe30] [c01c2a98] usblp_open+0x114/0x12c
[cccefe50] [c01ab2a0] usb_open+0xbc/0x154
[cccefe70] [c0073e08] chrdev_open+0xb8/0x19c
[cccefea0] [c006fef8] __dentry_open+0xcc/0x224
[cccefec0] [c00701bc] do_filp_open+0x58/0x6c
[ccceff20] [c007022c] do_sys_open+0x5c/0xfc
[ccceff40] [c000dd8c] ret_from_syscall+0x0/0x3c
Instruction dump:
38210020 4e800020 7c0802a6 9421ffe0 bf810010 90010024 81230000 7c7d1b78
81690004 392b0014 7c0004ac 7c004c2c <0c000000> 4c00012c 700a0001 3b800000
BUG: soft lockup - CPU#0 stuck for 61s! [printer:861]
NIP: c01d3ec0 LR: c01d5658 CTR: c01d55d0
REGS: cccef950 TRAP: 1001 Not tainted (2.6.25)
MSR: 00029030 <EE,ME,IR,DR> CR: 44000048 XER: 00000000
TASK = ccc963f0[861] 'printer' THREAD: cccee000
GPR00: ccd9eeac cccefa00 ccc963f0 cf6002c0 ccd9ed80 00000001 00000003 01063600
GPR08: 00021030 00000000 ccd9e5ac c0365cf0 24000048
NIP [c01d3ec0] dwc_otg_hcd_select_transactions+0xc0/0x16c
LR [c01d5658] release_channel+0xd0/0x198
Call Trace:
[cccefa00] [c01d41a4] dwc_otg_hcd_queue_transactions+0x238/0x374 (unreliable)
[cccefa30] [c01d5658] release_channel+0xd0/0x198
[cccefa50] [c01d7040] dwc_otg_hcd_handle_hc_n_intr+0x518/0x6dc
[cccefa90] [c01d7284] dwc_otg_hcd_handle_hc_intr+0x80/0xb0
[cccefab0] [c01d73c0] dwc_otg_hcd_handle_intr+0x10c/0x124
[cccefad0] [c01d4718] dwc_otg_hcd_irq+0x14/0x30
[cccefae0] [c01a538c] usb_hcd_irq+0x40/0x9c
[cccefaf0] [c0046468] handle_IRQ_event+0x5c/0xb0
[cccefb10] [c00482b0] handle_level_irq+0x90/0x11c
[cccefb20] [c0016b6c] uic_irq_cascade+0x108/0x138
[cccefb40] [c0004d4c] do_IRQ+0xa0/0xc4
[cccefb50] [c000e3d4] ret_from_except+0x0/0x18
[cccefc10] [00029030] 0x29030
[cccefc40] [c0004228] do_softirq+0x58/0x5c
[cccefc50] [c0025334] irq_exit+0x48/0x58
[cccefc60] [c0004d50] do_IRQ+0xa4/0xc4
[cccefc70] [c000e3d4] ret_from_except+0x0/0x18
[cccefd30] [c00201b8] vprintk+0x1a0/0x350
[cccefdb0] [c00203b8] printk+0x50/0x60
[cccefe30] [c01c2a98] usblp_open+0x114/0x12c
[cccefe50] [c01ab2a0] usb_open+0xbc/0x154
[cccefe70] [c0073e08] chrdev_open+0xb8/0x19c
[cccefea0] [c006fef8] __dentry_open+0xcc/0x224
[cccefec0] [c00701bc] do_filp_open+0x58/0x6c
[ccceff20] [c007022c] do_sys_open+0x5c/0xfc
[ccceff40] [c000dd8c] ret_from_syscall+0x0/0x3c
Instruction dump:
813f0000 3b3f000c 7f9ec800 81690000 834b007c 419e00a8 801f004c 813f0050
7c00d050 7f890000 409c0094 801f0044 <3b9f0044> 7f9c0000 3b1f0014 419e0080
BUG: soft lockup - CPU#0 stuck for 61s! [printer:861]
NIP: c01d3b2c LR: c01d3ee0 CTR: c01d55d0
REGS: cccef930 TRAP: 1001 Not tainted (2.6.25)
MSR: 00029030 <EE,ME,IR,DR> CR: 44000044 XER: 00000000
TASK = ccc963f0[861] 'printer' THREAD: cccee000
GPR00: 00000001 cccef9e0 ccc963f0 00000000 02063600 ccc9d8c0 08020000 ca562780
GPR08: 02063600 00000003 cf600304 00000000 08020000
NIP [c01d3b2c] assign_and_init_hc+0x160/0x434
LR [c01d3ee0] dwc_otg_hcd_select_transactions+0xe0/0x16c
Call Trace:
[cccefa00] [c01d3ee0] dwc_otg_hcd_select_transactions+0xe0/0x16c
[cccefa30] [c01d5658] release_channel+0xd0/0x198
[cccefa50] [c01d7040] dwc_otg_hcd_handle_hc_n_intr+0x518/0x6dc
[cccefa90] [c01d7284] dwc_otg_hcd_handle_hc_intr+0x80/0xb0
[cccefab0] [c01d73c0] dwc_otg_hcd_handle_intr+0x10c/0x124
[cccefad0] [c01d4718] dwc_otg_hcd_irq+0x14/0x30
[cccefae0] [c01a538c] usb_hcd_irq+0x40/0x9c
[cccefaf0] [c0046468] handle_IRQ_event+0x5c/0xb0
[cccefb10] [c00482b0] handle_level_irq+0x90/0x11c
[cccefb20] [c0016b6c] uic_irq_cascade+0x108/0x138
[cccefb40] [c0004d4c] do_IRQ+0xa0/0xc4
[cccefb50] [c000e3d4] ret_from_except+0x0/0x18
[cccefc10] [00029030] 0x29030
[cccefc40] [c0004228] do_softirq+0x58/0x5c
[cccefc50] [c0025334] irq_exit+0x48/0x58
[cccefc60] [c0004d50] do_IRQ+0xa4/0xc4
[cccefc70] [c000e3d4] ret_from_except+0x0/0x18
[cccefd30] [c00201b8] vprintk+0x1a0/0x350
[cccefdb0] [c00203b8] printk+0x50/0x60
[cccefe30] [c01c2a98] usblp_open+0x114/0x12c
[cccefe50] [c01ab2a0] usb_open+0xbc/0x154
[cccefe70] [c0073e08] chrdev_open+0xb8/0x19c
[cccefea0] [c006fef8] __dentry_open+0xcc/0x224
[cccefec0] [c00701bc] do_filp_open+0x58/0x6c
[ccceff20] [c007022c] do_sys_open+0x5c/0xfc
[ccceff40] [c000dd8c] ret_from_syscall+0x0/0x3c
Instruction dump:
7c090050 901f000c 907f0010 987f0020 881e0018 2f800000 419e003c 38000001
981f0020 89250018 993f0024 88050008 <981f0021> 81270028 8169001c 814b0000
BUG: soft lockup - CPU#0 stuck for 61s! [printer:861]
NIP: c004643c LR: c00482b0 CTR: c00133b4
REGS: cccefa40 TRAP: 1001 Not tainted (2.6.25)
MSR: 00029030 <EE,ME,IR,DR> CR: 24000048 XER: 20000000
TASK = ccc963f0[861] 'printer' THREAD: cccee000
GPR00: 00029030 cccefaf0 ccc963f0 00000012 cf5fce40 c0012594 ccdd3900 01063600
GPR08: ffffffff 00000000 00000090 c0377c78 0cc965f0
NIP [c004643c] handle_IRQ_event+0x30/0xb0
LR [c00482b0] handle_level_irq+0x90/0x11c
Call Trace:
[cccefb10] [c00482b0] handle_level_irq+0x90/0x11c
[cccefb20] [c0016b6c] uic_irq_cascade+0x108/0x138
[cccefb40] [c0004d4c] do_IRQ+0xa0/0xc4
[cccefb50] [c000e3d4] ret_from_except+0x0/0x18
[cccefc10] [00029030] 0x29030
[cccefc40] [c0004228] do_softirq+0x58/0x5c
[cccefc50] [c0025334] irq_exit+0x48/0x58
[cccefc60] [c0004d50] do_IRQ+0xa4/0xc4
[cccefc70] [c000e3d4] ret_from_except+0x0/0x18
[cccefd30] [c00201b8] vprintk+0x1a0/0x350
[cccefdb0] [c00203b8] printk+0x50/0x60
[cccefe30] [c01c2a98] usblp_open+0x114/0x12c
[cccefe50] [c01ab2a0] usb_open+0xbc/0x154
[cccefe70] [c0073e08] chrdev_open+0xb8/0x19c
[cccefea0] [c006fef8] __dentry_open+0xcc/0x224
[cccefec0] [c00701bc] do_filp_open+0x58/0x6c
[ccceff20] [c007022c] do_sys_open+0x5c/0xfc
[ccceff40] [c000dd8c] ret_from_syscall+0x0/0x3c
Instruction dump:
7c0802a6 9421ffe0 bf810010 90010024 80040004 7c9f2378 70090020 7c7c1b78
40820010 7c0000a6 60008000 7c000124 <3bc00000> 3ba00000 48000010 83ff0014
BUG: soft lockup - CPU#0 stuck for 61s! [printer:861]
NIP: c004643c LR: c00482b0 CTR: c00133b4
REGS: cccefa40 TRAP: 1001 Not tainted (2.6.25)
MSR: 00029030 <EE,ME,IR,DR> CR: 24000048 XER: 20000000
TASK = ccc963f0[861] 'printer' THREAD: cccee000
GPR00: 00029030 cccefaf0 ccc963f0 00000012 cf5fce40 c0012594 ccdd3900 01063600
GPR08: ffffffff 00000000 00000090 c0377c78 0cc965f0
NIP [c004643c] handle_IRQ_event+0x30/0xb0
LR [c00482b0] handle_level_irq+0x90/0x11c
Call Trace:
[cccefb10] [c00482b0] handle_level_irq+0x90/0x11c
[cccefb20] [c0016b6c] uic_irq_cascade+0x108/0x138
[cccefb40] [c0004d4c] do_IRQ+0xa0/0xc4
[cccefb50] [c000e3d4] ret_from_except+0x0/0x18
[cccefc10] [00029030] 0x29030
[cccefc40] [c0004228] do_softirq+0x58/0x5c
[cccefc50] [c0025334] irq_exit+0x48/0x58
[cccefc60] [c0004d50] do_IRQ+0xa4/0xc4
[cccefc70] [c000e3d4] ret_from_except+0x0/0x18
[cccefd30] [c00201b8] vprintk+0x1a0/0x350
[cccefdb0] [c00203b8] printk+0x50/0x60
[cccefe30] [c01c2a98] usblp_open+0x114/0x12c
[cccefe50] [c01ab2a0] usb_open+0xbc/0x154
[cccefe70] [c0073e08] chrdev_open+0xb8/0x19c
[cccefea0] [c006fef8] __dentry_open+0xcc/0x224
[cccefec0] [c00701bc] do_filp_open+0x58/0x6c
[ccceff20] [c007022c] do_sys_open+0x5c/0xfc
[ccceff40] [c000dd8c] ret_from_syscall+0x0/0x3c
Instruction dump:
7c0802a6 9421ffe0 bf810010 90010024 80040004 7c9f2378 70090020 7c7c1b78
40820010 7c0000a6 60008000 7c000124 <3bc00000> 3ba00000 48000010 83ff0014
BUG: soft lockup - CPU#0 stuck for 61s! [printer:861]
NIP: c01cbf30 LR: c01d5ebc CTR: c01d4704
REGS: cccef970 TRAP: 1001 Not tainted (2.6.25)
MSR: 00029030 <EE,ME,IR,DR> CR: 44000042 XER: 20000000
TASK = ccc963f0[861] 'printer' THREAD: cccee000
GPR00: 1f080100 cccefa20 ccc963f0 ccdd3900 ccd9ed80 00000004 00000004 d1060400
GPR08: d1060000 c0d88840 d1060560 cf5fce20 24000048
NIP [c01cbf30] dwc_otg_hc_halt+0x140/0x168
LR [c01d5ebc] halt_channel+0x48/0x108
Call Trace:
[cccefa20] [ccd9e580] 0xccd9e580 (unreliable)
[cccefa30] [c01d6424] handle_hc_nak_intr+0x4c/0x16c
[cccefa50] [c01d6dfc] dwc_otg_hcd_handle_hc_n_intr+0x2d4/0x6dc
[cccefa90] [c01d7284] dwc_otg_hcd_handle_hc_intr+0x80/0xb0
[cccefab0] [c01d73c0] dwc_otg_hcd_handle_intr+0x10c/0x124
[cccefad0] [c01d4718] dwc_otg_hcd_irq+0x14/0x30
[cccefae0] [c01a538c] usb_hcd_irq+0x40/0x9c
[cccefaf0] [c0046468] handle_IRQ_event+0x5c/0xb0
[cccefb10] [c00482b0] handle_level_irq+0x90/0x11c
[cccefb20] [c0016b6c] uic_irq_cascade+0x108/0x138
[cccefb40] [c0004d4c] do_IRQ+0xa0/0xc4
[cccefb50] [c000e3d4] ret_from_except+0x0/0x18
[cccefc10] [00029030] 0x29030
[cccefc40] [c0004228] do_softirq+0x58/0x5c
[cccefc50] [c0025334] irq_exit+0x48/0x58
[cccefc60] [c0004d50] do_IRQ+0xa4/0xc4
[cccefc70] [c000e3d4] ret_from_except+0x0/0x18
[cccefd30] [c00201b8] vprintk+0x1a0/0x350
[cccefdb0] [c00203b8] printk+0x50/0x60
[cccefe30] [c01c2a98] usblp_open+0x114/0x12c
[cccefe50] [c01ab2a0] usb_open+0xbc/0x154
[cccefe70] [c0073e08] chrdev_open+0xb8/0x19c
[cccefea0] [c006fef8] __dentry_open+0xcc/0x224
[cccefec0] [c00701bc] do_filp_open+0x58/0x6c
[ccceff20] [c007022c] do_sys_open+0x5c/0xfc
[ccceff40] [c000dd8c] ret_from_syscall+0x0/0x3c
Instruction dump:
7d20542c 0c090000 4c00012c 2f890000 4c9c0020 8804001a 2f800000 419eff18
4e800020 3808002c 7c0004ac 7c00042c <0c000000> 4c00012c 5400863e 2f800000
___________________________________________________________
好玩贺卡等你发,邮箱贺卡全新上线!
http://card.mail.cn.yahoo.com/
More information about the eldk
mailing list