FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 12-02-2008, 12:35 AM
xiangfu
 
Default problem compile the cdc-acm.ko

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there :
i do the follow step to compile the cdc-acm.ko.

1. cd /usr/src
2. git clone git://kernel.ubuntu.com/ubuntu/ubuntu-intrepid.git
ubuntu-intrepid
3. git checkout Ubuntu-2.6.27-10.20
modify the cdc-acm.c
static struct usb_device_id acm_ids[] = {
/* quirky and broken devices */
+ { USB_DEVICE(0x1234, 0x6119), /* NewPostCom TD-SCDMA Modem */
+ .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
+ },
{ USB_DEVICE(0x0870, 0x0001), /* Metricom GS Modem */
.driver_info = NO_UNION_NORMAL, /* has no union descriptor */
},

4. uname -r --->2.6.27-10-generic
cp /boot/config-`uname -r` ./.config

5. make oldconfig
6. make prepare
7. make SUBDIRS=scripts/mod/
8. make M=drivers/usb/class/

then i got the cdc-acm.ko
but when i
"insmod drivers/usb/class/cdc-acm.ko "
insmod: error inserting 'drivers/usb/class/cdc-acm.ko': -1 Invalid
module format

how to resolve this?
thanks.

- --xiangfu



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJJNJDhAAoJEBFuNemPXNFj12UIALNLFcRZjo H9EZ8yEr4QsiXa
N8ViNlgVID+aty4LoTKrosyUuVfvWQ4kky2IC0xktCn+Cpt5bX SJU2nyGtQYCVpY
1tYTsDMQCekK9dBiYUvomrhQzloeCqLruNMJbNAcLGO4tPfjtD SrN35I7QzXYcZF
Q0xq7BxJSqVIMTQRxlHYu+4cLtwAcmsKeuq93QWuuOfHWC8X61 oCZu2Ye+hTyQB/
Q3v71BKCR4hZqc+WO2p66B7pEG1teT+BbEUFcRmoh6xjIgAqYe mUMqV1tPRxP7pb
YTEuWD3wQWdYNZMpKPar8+Oaq3izzX/0KyYGDtOcQLjhqoUjkFhH7vcCH8cQTvU=
=97tM
-----END PGP SIGNATURE-----

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 12-02-2008, 12:15 PM
Stefan Bader
 
Default problem compile the cdc-acm.ko

xiangfu wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi there :
> i do the follow step to compile the cdc-acm.ko.
>
> 1. cd /usr/src
> 2. git clone git://kernel.ubuntu.com/ubuntu/ubuntu-intrepid.git
> ubuntu-intrepid
> 3. git checkout Ubuntu-2.6.27-10.20
> modify the cdc-acm.c
> static struct usb_device_id acm_ids[] = {
> /* quirky and broken devices */
> + { USB_DEVICE(0x1234, 0x6119), /* NewPostCom TD-SCDMA Modem */
> + .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
> + },
> { USB_DEVICE(0x0870, 0x0001), /* Metricom GS Modem */
> .driver_info = NO_UNION_NORMAL, /* has no union descriptor */
> },
>
> 4. uname -r --->2.6.27-10-generic
> cp /boot/config-`uname -r` ./.config
>

Xianfu,

better use the method described on https://wiki.ubuntu.com/KernelCustomBuild
This will ensure the right extraversion is used, which running make directly
does not ensure.

Stefan

> 5. make oldconfig
> 6. make prepare
> 7. make SUBDIRS=scripts/mod/
> 8. make M=drivers/usb/class/
>
> then i got the cdc-acm.ko
> but when i
> "insmod drivers/usb/class/cdc-acm.ko "
> insmod: error inserting 'drivers/usb/class/cdc-acm.ko': -1 Invalid
> module format
>
> how to resolve this?
> thanks.
>
> - --xiangfu
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iQEcBAEBAgAGBQJJNJDhAAoJEBFuNemPXNFj12UIALNLFcRZjo H9EZ8yEr4QsiXa
> N8ViNlgVID+aty4LoTKrosyUuVfvWQ4kky2IC0xktCn+Cpt5bX SJU2nyGtQYCVpY
> 1tYTsDMQCekK9dBiYUvomrhQzloeCqLruNMJbNAcLGO4tPfjtD SrN35I7QzXYcZF
> Q0xq7BxJSqVIMTQRxlHYu+4cLtwAcmsKeuq93QWuuOfHWC8X61 oCZu2Ye+hTyQB/
> Q3v71BKCR4hZqc+WO2p66B7pEG1teT+BbEUFcRmoh6xjIgAqYe mUMqV1tPRxP7pb
> YTEuWD3wQWdYNZMpKPar8+Oaq3izzX/0KyYGDtOcQLjhqoUjkFhH7vcCH8cQTvU=
> =97tM
> -----END PGP SIGNATURE-----
>


--

When all other means of communication fail, try words!



--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 12-02-2008, 12:25 PM
XIANGFU
 
Default problem compile the cdc-acm.ko

Stefan Bader wrote:
> Xiangfu,
>
> better use the method described on
> https://wiki.ubuntu.com/KernelCustomBuild
> This will ensure the right extraversion is used, which running make
> directly does not ensure.
>
> Stefan
Hi Stefan:
i finally compile cdc-acm.ko with: make -C /lib/modules/'uname -r'/build
M=drivers/usb/class/

but the modem still not work , later i will sent more error message.

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 
Old 12-04-2008, 12:20 PM
xiangfu
 
Default problem compile the cdc-acm.ko

Hi Stefan

i have compile the cdc-acm.ko module. but it's still not work.
the data_interface->cur_altsetting->desc.bInterfaceClass == 255
is that mean i can't get the modem work on my Ubuntu system.
i also try to get the driver code or hardware information from the company.
hope they can give me some information.

there is the lsusb -v -d 0x1234:0x6119:
Bus 002 Device 002: ID 1234:6119
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 16
idVendor 0x1234
idProduct 0x6119
bcdDevice 4.00
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 62
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 44mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 5 NEWPOSTCOM_DATA
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0020 1x 32 bytes
bInterval 2
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x06 EP 6 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 6 NEWPOSTCOM_AT
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Device Status: 0x0001
Self Powered



--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 09:49 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org