problem compile the cdc-acm.ko
xiangfu
xiangfu at openmoko.org
Tue Dec 2 01:35:31 UTC 2008
-----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
iQEcBAEBAgAGBQJJNJDhAAoJEBFuNemPXNFj12UIALNLFcRZjoH9EZ8yEr4QsiXa
N8ViNlgVID+aty4LoTKrosyUuVfvWQ4kky2IC0xktCn+Cpt5bXSJU2nyGtQYCVpY
1tYTsDMQCekK9dBiYUvomrhQzloeCqLruNMJbNAcLGO4tPfjtDSrN35I7QzXYcZF
Q0xq7BxJSqVIMTQRxlHYu+4cLtwAcmsKeuq93QWuuOfHWC8X61oCZu2Ye+hTyQB/
Q3v71BKCR4hZqc+WO2p66B7pEG1teT+BbEUFcRmoh6xjIgAqYemUMqV1tPRxP7pb
YTEuWD3wQWdYNZMpKPar8+Oaq3izzX/0KyYGDtOcQLjhqoUjkFhH7vcCH8cQTvU=
=97tM
-----END PGP SIGNATURE-----
More information about the kernel-team
mailing list