Skip to content

Instantly share code, notes, and snippets.

@loxK
Created April 18, 2013 00:07
Show Gist options
  • Save loxK/5408823 to your computer and use it in GitHub Desktop.
Save loxK/5408823 to your computer and use it in GitHub Desktop.
$ sudo ./install
DRIVER COPY START
STA_PATH_FLAG=.
STA_PATH_FULL=/home/pi/driver/install
START_PATH_DRIVER=/home/pi/driver
CURRENT install from ./install
INSTALL_PATH is not set ,auto install
INSTALL_PATH=/usr/local/Mobile_Partner
INSTALL_PATH is another path
rm /usr/local/Mobile_Partner/driver
DRIVER COPY END
have usb_modeswitch rules to HUAWEI DataCard: COUNT=0
ls: cannot access /dev/ttyUSB?: No such file or directory
ttyUSB%n not exist,ok
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'cdc_ether': No such file or directory
Error: could not remove module cdc_ether: No such file or directory
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'usbnet': No such file or directory
Error: could not remove module usbnet: No such file or directory
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'hw_cdc_driver': No such file or directory
Error: could not remove module hw_cdc_driver: No such file or directory
make -C src/ clean
make[1]: Entering directory `/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/add_header.sh "clean" "/lib/modules/3.6.11+/build/include/linux/usb"
rmmod -f hw_cdc_driver
libkmod: ERROR ../libkmod/libkmod-module.c:753 kmod_module_remove_module: could not remove 'hw_cdc_driver': No such file or directory
Error: could not remove module hw_cdc_driver: No such file or directory
make[1]: *** [clean] Error 1
make[1]: Leaving directory `/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src'
make: *** [clean] Error 2
make -C src/ modules
make[1]: Entering directory `/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src'
#/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/add_header.sh "modules" "/lib/modules/3.6.11+/build/include/linux/usb"
make -C /lib/modules/3.6.11+/build SUBDIRS=/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src modules
make[2]: Entering directory `/usr/src/linux-rpi-3.6.y'
CC [M] /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o
In file included from /usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:135:0:
include/linux/unaligned/access_ok.h:7:19: error: redefinition of 'get_unaligned_le16'
include/linux/unaligned/le_byteshift.h:40:19: note: previous definition of 'get_unaligned_le16' was here
include/linux/unaligned/access_ok.h:12:19: error: redefinition of 'get_unaligned_le32'
include/linux/unaligned/le_byteshift.h:45:19: note: previous definition of 'get_unaligned_le32' was here
include/linux/unaligned/access_ok.h:17:19: error: redefinition of 'get_unaligned_le64'
include/linux/unaligned/le_byteshift.h:50:19: note: previous definition of 'get_unaligned_le64' was here
include/linux/unaligned/access_ok.h:22:19: error: redefinition of 'get_unaligned_be16'
include/linux/unaligned/be_byteshift.h:40:19: note: previous definition of 'get_unaligned_be16' was here
include/linux/unaligned/access_ok.h:27:19: error: redefinition of 'get_unaligned_be32'
include/linux/unaligned/be_byteshift.h:45:19: note: previous definition of 'get_unaligned_be32' was here
include/linux/unaligned/access_ok.h:32:19: error: redefinition of 'get_unaligned_be64'
include/linux/unaligned/be_byteshift.h:50:19: note: previous definition of 'get_unaligned_be64' was here
include/linux/unaligned/access_ok.h:37:20: error: redefinition of 'put_unaligned_le16'
include/linux/unaligned/le_byteshift.h:55:20: note: previous definition of 'put_unaligned_le16' was here
include/linux/unaligned/access_ok.h:42:20: error: redefinition of 'put_unaligned_le32'
include/linux/unaligned/le_byteshift.h:60:20: note: previous definition of 'put_unaligned_le32' was here
include/linux/unaligned/access_ok.h:47:20: error: redefinition of 'put_unaligned_le64'
include/linux/unaligned/le_byteshift.h:65:20: note: previous definition of 'put_unaligned_le64' was here
include/linux/unaligned/access_ok.h:52:20: error: redefinition of 'put_unaligned_be16'
include/linux/unaligned/be_byteshift.h:55:20: note: previous definition of 'put_unaligned_be16' was here
include/linux/unaligned/access_ok.h:57:20: error: redefinition of 'put_unaligned_be32'
include/linux/unaligned/be_byteshift.h:60:20: note: previous definition of 'put_unaligned_be32' was here
include/linux/unaligned/access_ok.h:62:20: error: redefinition of 'put_unaligned_be64'
include/linux/unaligned/be_byteshift.h:65:20: note: previous definition of 'put_unaligned_be64' was here
make[3]: *** [/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o] Error 1
make[2]: *** [_module_/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src] Error 2
make[2]: Leaving directory `/usr/src/linux-rpi-3.6.y'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src'
make: *** [modules] Error 2
make -C src/ install
make[1]: Entering directory `/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src'
#install -m 744 -c hw_cdc_driver.o /lib/modules/3.6.11+/kernel/drivers/usb/net
#depmod -a
#modprobe hw_cdc_driver
/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src/add_header.sh "install"
modprobe hw_cdc_driver
FATAL: Module hw_cdc_driver not found.
make[1]: *** [install] Error 1
make[1]: Leaving directory `/usr/local/Mobile_Partner/driver/ndis_driver/ndis_src/src'
make: *** [install] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment