The ttyUSB can not work in kernel 2.6.27 when i use a pl2303
hello ,guys.
i wan't to use the pl2303 to do something in my imx27 board.
The kernel version is 2.6.27. i had select the driver by "make menuconfig".
After download the new zImage into the board,and start it.
I can fide the pl2303 is found.The message is below:
usb 2-1: new full speed USB device using fsl-ehci and address 2
usb 2-1: device v067b p2303 is not supported
usb 2-1: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
usbserial: USB Serial support registered for pl2303
pl2303 2-1:1.0: pl2303 converter detected
usb 2-1: pl2303 converter now attached to ttyUSB0
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver
The pl2303 is attached to ttyUSB0,and i can find it in /dev/.
So ,i want to use it. When i input "cat /dev/ttyUSB0 “,it does not work ,the message is:
root@freescale ~$ cat /dev/ttyUSB0
Unable to handle kernel NULL pointer dereference at virtual address 00000014
pgd = c70e8000
[00000014] *pgd=a705b031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1] PREEMPT
Modules linked in:
CPU: 0 Not tainted (2.6.27-dirty #130)
PC is at pl2303_open+0x4c/0x218
LR is at 0xc047ee80
pc : [<c029ab28>] lr : [<c047ee80>] psr: 60000013
sp : c7b6bd88 ip : c047ee80 fp : c7b6bde4
r10: c7093380 r9 : c7b6a000 r8 : 00000000
r7 : c7a0ea00 r6 : 00000000 r5 : c7b9c4f8 r4 : c7093380
r3 : 00000000 r2 : 00000001 r1 : 00000001 r0 : 00000009
Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 0005317f Table: a70e8000 DAC: 00000015
Process cat (pid: 1850, stack limit = 0xc7b6a268)
Stack: (0xc7b6bd88 to 0xc7b6c000)
bd80: c7b6bda4 c7b6bd98 c01c8078 c7a0ea00 c798e4e0 00000001
bda0: c7b6bdd4 c7b6bdb0 c0281d10 c038f84c c7b6bdd4 c7a0ea00 c798e4e0 00000001
bdc0: c7b9c400 c7a0ea00 c798e4e0 00000000 c7b9c400 00000000 c7b6be0c c7b6bde8
bde0: c02975f0 c029aaec 00000000 c7093380 0bc00000 00000000 c7b6a000 00000000
be00: c7b6be3c c7b6be10 c01c34c8 c0297494 00000000 c7b9c400 c7b6a000 00000000
be20: c78a1cc4 c7bc56a0 00000000 c7093380 c7b6be6c c7b6be40 c00aca74 c01c3340
be40: 00000001 00000000 c7093380 c7bc56a0 ffffff9c c00ac888 c7b76d80 c7510080
be60: c7b6be94 c7b6be70 c00a7714 c00ac898 c7093380 c7b6bed8 ffffff9c 00000003
be80: 00020001 401ab000 c7b6beb4 c7b6be98 c00a7868 c00a7590 00000000 c7b6bed8
bea0: ffffff9c 00000000 c7b6bf64 c7b6beb8 c00b521c c00a7840 00020001 c006b3ac
bec0: 00000000 00020000 00000024 00000017 00000000 ffffffff c7b76d80 c7510080
bee0: c7b6bfb0 401ae03c 0000000c 00000101 00000001 00000000 c0036228 c003bf88
bf00: 08100871 00000000 c70ac480 0000001b c70e9000 00000514 c006a1bc 00020001
bf20: 00000000 c7093380 c7a37000 00000000 c7b6bf64 c7b6bf40 c00c073c 00020000
bf40: 00000000 ffffff9c 00000003 c7a37000 c7b6a000 401ab000 c7b6bf94 c7b6bf68
bf60: c00a7494 c00b4ee4 be95ee18 00000000 0000000c 00000000 be95eeed 0000ca80
bf80: 00000005 c0036e44 c7b6bfa4 c7b6bf98 c00a755c c00a7448 00000000 c7b6bfa8
bfa0: c0036cc0 c00a7548 00000000 be95eeed be95eeed 00020000 00000000 00000000
bfc0: 00000000 be95eeed 0000ca80 00000005 00000000 0000000c 401ab000 00000002
bfe0: 401457c0 be95ea98 0000e780 40145810 60000010 be95eeed 00000000 00000000
Backtrace:
[<c029aadc>] (pl2303_open+0x0/0x218) from [<c02975f0>] (serial_open+0x16c/0x204)
r8:00000000 r7:c7b9c400 r6:00000000 r5:c798e4e0 r4:c7a0ea00
[<c0297484>] (serial_open+0x0/0x204) from [<c01c34c8>] (tty_open+0x198/0x324)
[<c01c3330>] (tty_open+0x0/0x324) from [<c00aca74>] (chrdev_open+0x1ec/0x20c)
[<c00ac888>] (chrdev_open+0x0/0x20c) from [<c00a7714>] (__dentry_open+0x194/0x2b0)
[<c00a7580>] (__dentry_open+0x0/0x2b0) from [<c00a7868>] (nameidata_to_filp+0x38/0x50)
[<c00a7830>] (nameidata_to_filp+0x0/0x50) from [<c00b521c>] (do_filp_open+0x348/0x6cc)
r4:00000000
[<c00b4ed4>] (do_filp_open+0x0/0x6cc) from [<c00a7494>] (do_sys_open+0x5c/0xec)
[<c00a7438>] (do_sys_open+0x0/0xec) from [<c00a755c>] (sys_open+0x24/0x28)
r8:c0036e44 r7:00000005 r6:0000ca80 r5:be95eeed r4:00000000
[<c00a7538>] (sys_open+0x0/0x28) from [<c0036cc0>] (ret_fast_syscall+0x0/0x2c)
Code: e5d43048 ebf6dccc e59f01a0 ebf6dcca (e5963014)
---[ end trace 8a61201727876259 ]---
Segmentation fault
Whether i cross compile it as a module or compile in the kernel .It always don't work.
I have do this in the imx51 with the kernel version 2.6.35,it works good.But i have to do this in imx27 with
2.6.27.
I have try my best ,but my linux is so poor.
Who can help me ?
|