Hi, I am running Linux 2.4.32 on Power-PC based SBC. Now, I am integrating Belkin's USB-Serial converter. I have selected belkin component while building the kernel image. When I insert it to the USB port, my system is detecting it as ttyUSB0 device (the actual output is pasted below the mail). As my system is not using devfs Iam creating a node for this by "mknod /dev/ttyUSB0 c 188 0".
And in the application Iam trying to open the port using ... "m_iDeviceFileDescriptor = open((const char*)"/dev/ttyUSB0", O_RDWR);" Here the problem comes.. As such it is going to the corresponding device function "static int belkin_sa_open (struct usb_serial_port *port, struct file *filp)" in file \usb\serial\belkin_sa.c.. I cross checked it by placing a debug message while entering that function. But after entering the function its crashing my Kernel even before it returns from that function. As such it shows the following message: //Message during kernal crash----Start-------------------------// Oops: kernel access of bad area, sig: 11 NIP: C00F3AD8 XER: 00000000 LR: C00F3AC8 SP: C0F15DE0 REGS: c0f15d30 TRAP: 0300 Not tainted MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11 DAR: 00000010, DSISR: C2000000 TASK = c0f14000[39] 'Z180BIOSEmulati' Last syscall: 5 last math 00000000 last altivec 00000000 GPR00: C023CA00 C0F15DE0 C0F14000 00000000 00001032 00000001 FFFFD783 C0199427 GPR08: 00000000 C0289000 C019155C 00000000 C01B0000 00000000 00000000 00000000 GPR16: 00000000 00000000 10320000 103F0000 00009032 00F15F40 00000000 C0003788 GPR24: C00034E0 C01A0000 C0F346D0 C028901C 00000000 C028900 //Message during kernal crash----End-------------------------// //OUT PUT when Belkin USB-Serial Driver is inseted.----Start-------------------------// $ USB HC dev alloc 1152 bytes May 10 02:34:44 crind30 user.warn kernel: USB HC dev alloc 1152 bytes hub.c: USB new device connect on bus1/1/2, assigned device number 6 May 10 02:34:44 crind30 user.info kernel: hub.c: USB new device connect on bus1/ 1/2, assigned device number 6 usbserial.c: Belkin / Peracom / GoHubs USB Serial Adapter converter detected belkin_sa.c: bcdDevice: 0102, bfc: 1 usbserial.c: Belkin / Peracom / GoHubs USB Serial Adapter converter now attached to ttyUSB0 (or usb/tts/0 for devfs) May 10 02:34:44 crind30 user.debug kernel: usbserial.c: descriptor matches May 10 02:34:44 crind30 user.debug kernel: usbserial.c: found interrupt in May 10 02:34:44 crind30 user.debug kernel: usbserial.c: found interrupt in May 10 02:34:44 crind30 user.debug kernel: usbserial.c: found bulk out May 10 02:34:44 crind30 user.info kernel: usbserial.c: Belkin / Peracom / GoHubs USB Serial Adapter converter detected May 10 02:34:44 crind30 user.debug kernel: usbserial.c: get_free_serial 1 May 10 02:34:44 crind30 user.debug kernel: usbserial.c: get_free_serial - minor base = 0 May 10 02:34:44 crind30 user.debug kernel: usbserial.c: usb_serial_probe - setti ng up 2 port structures for this device May 10 02:34:44 crind30 user.info kernel: belkin_sa.c: bcdDevice: 0102, bfc: 1 May 10 02:34:44 crind30 user.info kernel: usbserial.c: Belkin / Peracom / GoHubs USB Serial Adapter converter now attached to ttyUSB0 (or usb/tts/0 for devfs) //OUT PUT when Belkin USB-Serial Driver is inseted.----End-------------------------// Please suggest.. Thanks in advance. Prakash This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system. If you have any questions about this e-mail please notify the sender immediately. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users