Hello,

I bought an "Atmel AVR JTAGICE mk II" programmer device. This device uses a Phillips 
PDIUSBD12 chip to connect to the usb. 
I tried to modify the driver source code for the MCT U232 (I just added the new VID 
and PID), but if I try to connect the device, I get the 
kernel error "Unable to handle kernel NULL pointer dereference". I am using Suse Linux 
9.1 with kernel 2.6.5-7.95.
Is this problem related to the 2.6.5 kernel, to my modifications, or is it a problem 
with the Atmel device?

Thanks for any help - Regards,
Nils

Code changes and kernel messages:

mct_u232.h:
/* Atmel AVR JTAGICE mk II */
#define MCT_U232_ATMEL_JTAGICE_VID      0x03eb  /* Vendor Id */
#define MCT_U232_ATMEL_JTAGICE_PID      0x2103  /* Product Id */

mct_u232.c:
static struct usb_device_id id_table_combined [] = {
        { USB_DEVICE(MCT_U232_VID, MCT_U232_PID) },
        { USB_DEVICE(MCT_U232_VID, MCT_U232_SITECOM_PID) },
        { USB_DEVICE(MCT_U232_VID, MCT_U232_DU_H3SP_PID) },
        { USB_DEVICE(MCT_U232_BELKIN_F5U109_VID, MCT_U232_BELKIN_F5U109_PID) },
        { USB_DEVICE(MCT_U232_ATMEL_JTAGICE_VID, MCT_U232_ATMEL_JTAGICE_PID) },
        { }             /* Terminating entry */
};



Aug 18 10:16:53 rincewind kernel: mct_u232: unsupported module, tainting kernel.
Aug 18 10:16:53 rincewind kernel: drivers/usb/serial/usb-serial.c: USB Serial support 
registered for Magic Control Technology USB-RS232
Aug 18 10:16:53 rincewind kernel: usbcore: registered new driver mct_u232
Aug 18 10:16:53 rincewind kernel: drivers/usb/serial/mct_u232.c: Magic Control 
Technology USB-RS232 converter driver v1.2
Aug 18 10:17:10 rincewind kernel: usb 1-1: new full speed USB device using address 2
Aug 18 10:17:10 rincewind kernel: usb 1-1: Product: JTAGICE mkII
Aug 18 10:17:10 rincewind kernel: usb 1-1: Manufacturer: ATMEL
Aug 18 10:17:10 rincewind kernel: usb 1-1: SerialNumber: 00A0000002FC
Aug 18 10:17:10 rincewind kernel: usbserial 1-1:1.0: Magic Control Technology 
USB-RS232 converter detected
Aug 18 10:17:10 rincewind kernel: Unable to handle kernel NULL pointer dereference at 
virtual address 00000014
Aug 18 10:17:10 rincewind kernel:  printing eip:
Aug 18 10:17:10 rincewind kernel: faa30c91
Aug 18 10:17:10 rincewind kernel: *pde = 00000000
Aug 18 10:17:10 rincewind kernel: Oops: 0000 [#1]
Aug 18 10:17:10 rincewind kernel: CPU:    0
Aug 18 10:17:10 rincewind kernel: EIP:    0060:[__crc_lookup_mnt+2045620/2689539]    
Tainted: PF U
Aug 18 10:17:10 rincewind kernel: EIP:    0060:[<faa30c91>]    Tainted: PF U
Aug 18 10:17:10 rincewind kernel: EFLAGS: 00010282   (2.6.5-7.95-default)
Aug 18 10:17:10 rincewind kernel: EIP is at mct_u232_startup+0x51/0x80 [mct_u232]
Aug 18 10:17:10 rincewind kernel: eax: 0000002c   ebx: f19f7e00   ecx: f7ffa000   edx: 
0000002b
Aug 18 10:17:11 rincewind kernel: esi: 00000000   edi: faa30c40   ebp: 00000000   esp: 
c199de10
Aug 18 10:17:11 rincewind kernel: ds: 007b   es: 007b   ss: 0068
Aug 18 10:17:11 rincewind /etc/hotplug/usb.agent[3898]: need a device for this command
Aug 18 10:17:11 rincewind kernel: Process khubd (pid: 1447, threadinfo=c199c000 
task=f7480190)
Aug 18 10:17:11 rincewind kernel: Stack: fae432dc 00000246 f19f7e00 00000246 f19f7e00 
f3ca1b40 fae41498 f6ae0780
Aug 18 10:17:11 rincewind kernel:        c012c42f 00000001 f3ddaae8 f6ae0780 00000001 
00000001 00000001 00000000
Aug 18 10:17:11 rincewind kernel:        00000040 faa31e80 f5b59000 f3ddaa80 00000000 
f3ca1c14 00000286 00000000
Aug 18 10:17:11 rincewind kernel: Call Trace:
Aug 18 10:17:11 rincewind kernel:  [__crc_audit_register+263892/496240] 
usb_serial_probe+0x618/0xe60 [usbserial]
Aug 18 10:17:11 rincewind kernel:  [<fae41498>] usb_serial_probe+0x618/0xe60 
[usbserial]
Aug 18 10:17:11 rincewind kernel:  [call_usermodehelper+175/192] 
call_usermodehelper+0xaf/0xc0
Aug 18 10:17:11 rincewind kernel:  [<c012c42f>] call_usermodehelper+0xaf/0xc0
Aug 18 10:17:11 rincewind kernel:  [d_alloc+27/432] d_alloc+0x1b/0x1b0
Aug 18 10:17:11 rincewind kernel:  [<c016f0fb>] d_alloc+0x1b/0x1b0
Aug 18 10:17:11 rincewind kernel:  [alloc_inode+335/400] alloc_inode+0x14f/0x190
Aug 18 10:17:11 rincewind kernel:  [<c016ff4f>] alloc_inode+0x14f/0x190
Aug 18 10:17:11 rincewind kernel:  [sysfs_new_inode+76/144] sysfs_new_inode+0x4c/0x90
Aug 18 10:17:11 rincewind kernel:  [<c018f57c>] sysfs_new_inode+0x4c/0x90
Aug 18 10:17:11 rincewind kernel:  [sysfs_create+72/128] sysfs_create+0x48/0x80
Aug 18 10:17:11 rincewind kernel:  [<c018f608>] sysfs_create+0x48/0x80
Aug 18 10:17:11 rincewind kernel:  [__crc_sysctl_wmem_max+408647/664799] 
usb_probe_interface+0x36/0x40 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [<facec2a6>] usb_probe_interface+0x36/0x40 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [bus_match+39/80] bus_match+0x27/0x50
Aug 18 10:17:11 rincewind kernel:  [<c021b7b7>] bus_match+0x27/0x50
Aug 18 10:17:11 rincewind kernel:  [device_attach+58/144] device_attach+0x3a/0x90
Aug 18 10:17:11 rincewind kernel:  [<c021b81a>] device_attach+0x3a/0x90
Aug 18 10:17:11 rincewind kernel:  [bus_add_device+73/128] bus_add_device+0x49/0x80
Aug 18 10:17:11 rincewind kernel:  [<c021b8e9>] bus_add_device+0x49/0x80
Aug 18 10:17:11 rincewind kernel:  [device_add+117/240] device_add+0x75/0xf0
Aug 18 10:17:11 rincewind kernel:  [<c021acb5>] device_add+0x75/0xf0
Aug 18 10:17:11 rincewind kernel:  [__crc_sysctl_wmem_max+431651/664799] 
usb_set_configuration+0x232/0x2c0 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [<facf1c82>] usb_set_configuration+0x232/0x2c0 
[usbcore]
Aug 18 10:17:11 rincewind kernel:  [__crc_sysctl_wmem_max+411199/664799] 
usb_new_device+0x2ce/0x5d0 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [<facecc9e>] usb_new_device+0x2ce/0x5d0 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [__crc_sysctl_wmem_max+419750/664799] 
hub_port_connect_change+0x2f5/0x3f0 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [<faceee05>] hub_port_connect_change+0x2f5/0x3f0 
[usbcore]
Aug 18 10:17:11 rincewind kernel:  [__crc_sysctl_wmem_max+420743/664799] 
hub_thread+0x2e6/0x550 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [<facef1e6>] hub_thread+0x2e6/0x550 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [default_wake_function+0/16] 
default_wake_function+0x0/0x10
Aug 18 10:17:11 rincewind kernel:  [<c011c2c0>] default_wake_function+0x0/0x10
Aug 18 10:17:11 rincewind kernel:  [__crc_sysctl_wmem_max+420001/664799] 
hub_thread+0x0/0x550 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [<faceef00>] hub_thread+0x0/0x550 [usbcore]
Aug 18 10:17:11 rincewind kernel:  [kernel_thread_helper+5/16] 
kernel_thread_helper+0x5/0x10
Aug 18 10:17:11 rincewind kernel:  [<c0106005>] kernel_thread_helper+0x5/0x10
Aug 18 10:17:11 rincewind kernel:
Aug 18 10:17:11 rincewind kernel: Code: 8b 46 14 c7 46 14 00 00 00 00 89 43 20 89 58 
50 31 c0 83 c4

-- 
Nils Springob


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to