Unable to install Linux version of Huawei Mobile partner

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
BRAC
Level 1
Level 1
Posts: 2
Joined: Thu Jul 05, 2018 9:09 am

Unable to install Linux version of Huawei Mobile partner

Post by BRAC » Wed Jul 11, 2018 9:58 am

Hello,

A complete Linux newbie here. :mrgreen:

Although I could install Linux Mint 18.3 along side Windows 10 a couple of weeks back, I'm still having trouble getting Mobile Partner installed despite following their installation instructions. Since this (3G Dongle) is my only option to access internet -- no Wifi or Ethernet --, I can't even get the post-installation network related activities (Drivers, Updates, installing codecs etc) going.

Having spent quite a few days searching your forums and Google in general I can't seem to make progress.

As you can see in images below, I tried to follow instructions that came bundled with the dongle. Since you can’t issue commands directly as “su” in the terminal, I tried doing the installation with the following two commands sudo do and sudo -i.

Image

Image

Installation with sudo do :

Code: Select all

subin@subin-Inspiron-N5010 ~ $ sudo su
[sudo] password for subin:                                 
subin-Inspiron-N5010 subin # cd Desktop/
subin-Inspiron-N5010 Desktop # cd driver
subin-Inspiron-N5010 driver # is
is: command not found
subin-Inspiron-N5010 driver # ls
10-Huawei-Datacard-old.rules  HuaweiAutoStart.desktop  sleepsettings
10-Huawei-Datacard.rules      install                  sleep-settings.sh
32bit                         Mandriva2011_Patch       startMobilePartner
49huawei                      ndis_driver              Uninstall
60-cdrom_id.rules             patch                    usbmod
64bit                         ReadMe
copying                       skeleton
subin-Inspiron-N5010 driver # pwd
/home/subin/Desktop/driver
subin-Inspiron-N5010 driver # ./install /home/subin/Desktop
old path =/home/subin/Desktop/Mob/driver
DRIVER COPY START
STA_PATH_FLAG=.
STA_PATH_FULL=/home/subin/Desktop/driver/install
START_PATH_DRIVER=/home/subin/Desktop/driver
CURRENT install from ./install
INSTALL_PATH=/home/subin/Desktop
DRIVER COPY END
modinfo: ERROR: missing module or filename.
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'cdc_ether': No such file or directory
rmmod: ERROR: could not remove module cdc_ether: No such file or directory
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'usbnet': No such file or directory
rmmod: ERROR: could not remove module usbnet: No such file or directory
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'hw_cdc_driver': No such file or directory
rmmod: ERROR: could not remove module hw_cdc_driver: No such file or directory
make -C src/ clean
make[1]: Entering directory '/home/subin/Desktop/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
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh  "clean" "/lib/modules/4.10.0-38-generic/build/include/linux/usb"
rmmod -f hw_cdc_driver
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'hw_cdc_driver': No such file or directory
rmmod: ERROR: could not remove module hw_cdc_driver: No such file or directory
Makefile:37: recipe for target 'clean' failed
make[1]: *** [clean] Error 1
make[1]: Leaving directory '/home/subin/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:30: recipe for target 'clean' failed
make: *** [clean] Error 2
make -C src/ modules
make[1]: Entering directory '/home/subin/Desktop/driver/ndis_driver/ndis_src/src'
#/home/subin/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh  "modules" "/lib/modules/4.10.0-38-generic/build/include/linux/usb"
make -C /lib/modules/4.10.0-38-generic/build SUBDIRS=/home/subin/Desktop/driver/ndis_driver/ndis_src/src modules
make[2]: Entering directory '/usr/src/linux-headers-4.10.0-38-generic'
  CC [M]  /home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o
In file included from ./include/linux/module.h:18:0,
                 from /home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘__check_ncm_prefer_32’:
./include/linux/moduleparam.h:344:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                                   ^
./include/linux/moduleparam.h:396:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
./include/linux/moduleparam.h:146:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
./include/linux/moduleparam.h:126:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:113:1: note: in expansion of macro ‘module_param’
 module_param(ncm_prefer_32, bool, S_IRUGO);
 ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘__check_ncm_prefer_crc’:
./include/linux/moduleparam.h:344:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                                   ^
./include/linux/moduleparam.h:396:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
./include/linux/moduleparam.h:146:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
./include/linux/moduleparam.h:126:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:116:1: note: in expansion of macro ‘module_param’
 module_param(ncm_prefer_crc, bool, S_IRUGO);
 ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘__check_rt_debug’:
./include/linux/moduleparam.h:344:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                                   ^
./include/linux/moduleparam.h:396:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
./include/linux/moduleparam.h:146:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
./include/linux/moduleparam.h:126:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:128:1: note: in expansion of macro ‘module_param’
 module_param(rt_debug, bool, S_IRUGO|S_IWUSR);
 ^
In file included from ./include/linux/printk.h:6:0,
                 from ./include/linux/kernel.h:13,
                 from ./include/linux/list.h:8,
                 from ./include/linux/module.h:9,
                 from /home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘hw_change_mtu’:
./include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:655:29: note: in expansion of macro ‘KERN_ERR’
  ((void)(rt_debug && printk(KERN_ERR "Hw_cdc_driver######: " fmt "\n" , ## arg)))
                             ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:899:2: note: in expansion of macro ‘devdbg’
  devdbg(dev,"change mtu :%d, urb_size:%d",new_mtu,dev->rx_urb_size);
  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘rx_tlp_parse’:
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:1085:7: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       unsigned char *ptr = (unsigned char *)kmalloc(dev->hw_tlp_tmp_buf.bytesneeded 
       ^
In file included from ./include/linux/printk.h:6:0,
                 from ./include/linux/kernel.h:13,
                 from ./include/linux/list.h:8,
                 from ./include/linux/module.h:9,
                 from /home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘tx_complete’:
./include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:655:29: note: in expansion of macro ‘KERN_ERR’
  ((void)(rt_debug && printk(KERN_ERR "Hw_cdc_driver######: " fmt "\n" , ## arg)))
                             ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:1663:5: note: in expansion of macro ‘devdbg’
     devdbg(dev,"tx_complete,status:%d,len:%d, *********time:%ld-%ld",urb->status,ent
     ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘hw_start_xmit’:
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:1782:6: error: ‘struct net_device’ has no member named ‘trans_start’
   net->trans_start = jiffies;
      ^
In file included from ./include/linux/list.h:8:0,
                 from ./include/linux/module.h:9,
                 from /home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘cdc_ncm_config’:
./include/linux/kernel.h:763:16: warning: comparison of distinct pointer types lacks a cast
  (void) (&max1 == &max2);   \
                ^
./include/linux/kernel.h:766:2: note: in expansion of macro ‘__max’
  __max(typeof(x), typeof(y),   \
  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:488:41: note: in expansion of macro ‘max’
 #define NCM_NTB_HARD_MAX_IN_SIZE ((u32)(max(16,ncm_read_size_in1k) * 1024))
                                         ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2037:24: note: in expansion of macro ‘NCM_NTB_HARD_MAX_IN_SIZE’
  if (ctx->rx_max_ntb > NCM_NTB_HARD_MAX_IN_SIZE) {
                        ^
./include/linux/kernel.h:763:16: warning: comparison of distinct pointer types lacks a cast
  (void) (&max1 == &max2);   \
                ^
./include/linux/kernel.h:766:2: note: in expansion of macro ‘__max’
  __max(typeof(x), typeof(y),   \
  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:488:41: note: in expansion of macro ‘max’
 #define NCM_NTB_HARD_MAX_IN_SIZE ((u32)(max(16,ncm_read_size_in1k) * 1024))
                                         ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:655:76: note: in expansion of macro ‘NCM_NTB_HARD_MAX_IN_SIZE’
  ((void)(rt_debug && printk(KERN_ERR "Hw_cdc_driver######: " fmt "\n" , ## arg)))
                                                                            ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2038:3: note: in expansion of macro ‘devdbg’
   devdbg(ctx->ndev, "dwNtbInMaxSize (%u) must be at most %u "
   ^
./include/linux/kernel.h:763:16: warning: comparison of distinct pointer types lacks a cast
  (void) (&max1 == &max2);   \
                ^
./include/linux/kernel.h:766:2: note: in expansion of macro ‘__max’
  __max(typeof(x), typeof(y),   \
  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:488:41: note: in expansion of macro ‘max’
 #define NCM_NTB_HARD_MAX_IN_SIZE ((u32)(max(16,ncm_read_size_in1k) * 1024))
                                         ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:655:76: note: in expansion of macro ‘NCM_NTB_HARD_MAX_IN_SIZE’
  ((void)(rt_debug && printk(KERN_ERR "Hw_cdc_driver######: " fmt "\n" , ## arg)))
                                                                            ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2038:3: note: in expansion of macro ‘devdbg’
   devdbg(ctx->ndev, "dwNtbInMaxSize (%u) must be at most %u "
   ^
./include/linux/kernel.h:763:16: warning: comparison of distinct pointer types lacks a cast
  (void) (&max1 == &max2);   \
                ^
./include/linux/kernel.h:766:2: note: in expansion of macro ‘__max’
  __max(typeof(x), typeof(y),   \
  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:488:41: note: in expansion of macro ‘max’
 #define NCM_NTB_HARD_MAX_IN_SIZE ((u32)(max(16,ncm_read_size_in1k) * 1024))
                                         ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2042:21: note: in expansion of macro ‘NCM_NTB_HARD_MAX_IN_SIZE’
   ctx->rx_max_ntb = NCM_NTB_HARD_MAX_IN_SIZE;
                     ^
In file included from ./include/linux/printk.h:6:0,
                 from ./include/linux/kernel.h:13,
                 from ./include/linux/list.h:8,
                 from ./include/linux/module.h:9,
                 from /home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
./include/linux/kern_levels.h:4:18: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:659:9: note: in expansion of macro ‘KERN_ERR’
  printk(KERN_ERR "%s: " fmt "\n" , (hw_cdc_net)->net->name , ## arg)
         ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2058:3: note: in expansion of macro ‘deverr’
   deverr(ctx->ndev, "dwNtbOutMaxSize (%u) must be at least "
   ^
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘hw_cdc_probe’:
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2590:3: error: implicit declaration of function ‘dbg’ [-Werror=implicit-function-declaration]
   dbg ("can't kmalloc dev");
   ^
cc1: some warnings being treated as errors
scripts/Makefile.build:301: recipe for target '/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o' failed
make[3]: *** [/home/subin/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o] Error 1
Makefile:1524: recipe for target '_module_/home/subin/Desktop/driver/ndis_driver/ndis_src/src' failed
make[2]: *** [_module_/home/subin/Desktop/driver/ndis_driver/ndis_src/src] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.10.0-38-generic'
Makefile:32: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/home/subin/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:27: recipe for target 'modules' failed
make: *** [modules] Error 2
make -C src/ install
make[1]: Entering directory '/home/subin/Desktop/driver/ndis_driver/ndis_src/src'
#install -m 744 -c hw_cdc_driver.o /lib/modules/4.10.0-38-generic/kernel/drivers/usb/net
#depmod -a
#modprobe hw_cdc_driver
/home/subin/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh  "install"
modprobe hw_cdc_driver
modprobe: FATAL: Module hw_cdc_driver not found in directory /lib/modules/4.10.0-38-generic
Makefile:43: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/home/subin/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:33: recipe for target 'install' failed
make: *** [install] Error 2

Install NDIS driver failed.
The compiling environment is not all ready.
Please check gcc, make and kernel buid(/lib/modules/4.10.0-38-generic/build) to be all installed?
Now please enter any key to finish other installations.

NDIS is disabled, and only Modem can be used.
USBSERIAL_TARGET_PATH = 
ACM_TARGET_PATH = 
have usb_modeswitch rules to HUAWEI DataCard: COUNT=0
ls: cannot access '/dev/ttyUSB?': No such file or directory
ttyUSB%n not exist,ok
ADDRUNLEVEL=/etc/rc3.d
'/etc/rc3.d/S99runhwactivator' -> '/etc/init.d/runhwactivator'
'/etc/rc3.d/K10runhwactivator' -> '/etc/init.d/runhwactivator'
ADDRUNLEVEL=/etc/rc5.d
'/etc/rc5.d/S99runhwactivator' -> '/etc/init.d/runhwactivator'
'/etc/rc5.d/K10runhwactivator' -> '/etc/init.d/runhwactivator'
ADDRUNLEVEL=/etc/rc4.d
'/etc/rc4.d/S99runhwactivator' -> '/etc/init.d/runhwactivator'
'/etc/rc4.d/K10runhwactivator' -> '/etc/init.d/runhwactivator'
ADDRUNLEVEL=/etc/rc2.d
'/etc/rc2.d/S99runhwactivator' -> '/etc/init.d/runhwactivator'
'/etc/rc2.d/K10runhwactivator' -> '/etc/init.d/runhwactivator'
subin-Inspiron-N5010 driver # 


subin@subin-Inspiron-N5010 ~ $ sudo -i
[sudo] password for subin:                                 
subin-Inspiron-N5010 ~ # cd Desktop/
subin-Inspiron-N5010 Desktop # cd driver
-bash: cd: driver: No such file or directory
subin-Inspiron-N5010 Desktop # cd driver
-bash: cd: driver: No such file or directory
Installation with sudo -i :

Code: Select all

subin@subin-Inspiron-N5010 ~ $ sudo -i
subin-Inspiron-N5010 ~ # cd Desktop
subin-Inspiron-N5010 Desktop # cd driver
subin-Inspiron-N5010 driver # ls
10-Huawei-Datacard-old.rules  HuaweiAutoStart.desktop  runhwactivator
10-Huawei-Datacard.rules      HWActivator              skeleton
32bit                         install                  sleepsettings
49huawei                      Mandriva2011_Patch       sleep-settings.sh
60-cdrom_id.rules             ndis_driver              startMobilePartner
64bit                         patch                    Uninstall
copying                       ReadMe                   usbmod
subin-Inspiron-N5010 driver # pwd
/root/Desktop/driver
subin-Inspiron-N5010 driver # ./install /root/Desktop
DRIVER COPY START
STA_PATH_FLAG=.
STA_PATH_FULL=/root/Desktop/driver/install
START_PATH_DRIVER=/root/Desktop/driver
CURRENT install from ./install
INSTALL_PATH=/root/Desktop
DRIVER COPY END
modinfo: ERROR: missing module or filename.
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'cdc_ether': No such file or directory
rmmod: ERROR: could not remove module cdc_ether: No such file or directory
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'usbnet': Resource temporarily unavailable
rmmod: ERROR: could not remove module usbnet: Resource temporarily unavailable
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'hw_cdc_driver': No such file or directory
rmmod: ERROR: could not remove module hw_cdc_driver: No such file or directory
make -C src/ clean
make[1]: Entering directory '/root/Desktop/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
/root/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh  "clean" "/lib/modules/4.10.0-38-generic/build/include/linux/usb"
rmmod -f hw_cdc_driver
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'hw_cdc_driver': No such file or directory
rmmod: ERROR: could not remove module hw_cdc_driver: No such file or directory
Makefile:37: recipe for target 'clean' failed
make[1]: *** [clean] Error 1
make[1]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:30: recipe for target 'clean' failed
make: *** [clean] Error 2
make -C src/ modules
make[1]: Entering directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
#/root/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh  "modules" "/lib/modules/4.10.0-38-generic/build/include/linux/usb"
make -C /lib/modules/4.10.0-38-generic/build SUBDIRS=/root/Desktop/driver/ndis_driver/ndis_src/src modules
make[2]: Entering directory '/usr/src/linux-headers-4.10.0-38-generic'
  CC [M]  /root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o
In file included from ./include/linux/module.h:18:0,
                 from /root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘__check_ncm_prefer_32’:
./include/linux/moduleparam.h:344:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                                   ^
./include/linux/moduleparam.h:396:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
./include/linux/moduleparam.h:146:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
./include/linux/moduleparam.h:126:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:113:1: note: in expansion of macro ‘module_param’
 module_param(ncm_prefer_32, bool, S_IRUGO);
 ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘__check_ncm_prefer_crc’:
./include/linux/moduleparam.h:344:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                                   ^
./include/linux/moduleparam.h:396:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
./include/linux/moduleparam.h:146:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
./include/linux/moduleparam.h:126:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:116:1: note: in expansion of macro ‘module_param’
 module_param(ncm_prefer_crc, bool, S_IRUGO);
 ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘__check_rt_debug’:
./include/linux/moduleparam.h:344:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
  static inline type __always_unused *__check_##name(void) { return(p); }
                                                                   ^
./include/linux/moduleparam.h:396:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
./include/linux/moduleparam.h:146:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
./include/linux/moduleparam.h:126:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:128:1: note: in expansion of macro ‘module_param’
 module_param(rt_debug, bool, S_IRUGO|S_IWUSR);
 ^
In file included from ./include/linux/printk.h:6:0,
                 from ./include/linux/kernel.h:13,
                 from ./include/linux/list.h:8,
                 from ./include/linux/module.h:9,
                 from /root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘hw_change_mtu’:
./include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:655:29: note: in expansion of macro ‘KERN_ERR’
  ((void)(rt_debug && printk(KERN_ERR "Hw_cdc_driver######: " fmt "\n" , ## arg)))
                             ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:899:2: note: in expansion of macro ‘devdbg’
  devdbg(dev,"change mtu :%d, urb_size:%d",new_mtu,dev->rx_urb_size);
  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘rx_tlp_parse’:
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:1085:7: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
       unsigned char *ptr = (unsigned char *)kmalloc(dev->hw_tlp_tmp_buf.bytesneeded 
       ^
In file included from ./include/linux/printk.h:6:0,
                 from ./include/linux/kernel.h:13,
                 from ./include/linux/list.h:8,
                 from ./include/linux/module.h:9,
                 from /root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘tx_complete’:
./include/linux/kern_levels.h:4:18: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t {aka long unsigned int}’ [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:655:29: note: in expansion of macro ‘KERN_ERR’
  ((void)(rt_debug && printk(KERN_ERR "Hw_cdc_driver######: " fmt "\n" , ## arg)))
                             ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:1663:5: note: in expansion of macro ‘devdbg’
     devdbg(dev,"tx_complete,status:%d,len:%d, *********time:%ld-%ld",urb->status,ent
     ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘hw_start_xmit’:
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:1782:6: error: ‘struct net_device’ has no member named ‘trans_start’
   net->trans_start = jiffies;
      ^
In file included from ./include/linux/list.h:8:0,
                 from ./include/linux/module.h:9,
                 from /root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘cdc_ncm_config’:
./include/linux/kernel.h:763:16: warning: comparison of distinct pointer types lacks a cast
  (void) (&max1 == &max2);   \
                ^
./include/linux/kernel.h:766:2: note: in expansion of macro ‘__max’
  __max(typeof(x), typeof(y),   \
  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:488:41: note: in expansion of macro ‘max’
 #define NCM_NTB_HARD_MAX_IN_SIZE ((u32)(max(16,ncm_read_size_in1k) * 1024))
                                         ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2037:24: note: in expansion of macro ‘NCM_NTB_HARD_MAX_IN_SIZE’
  if (ctx->rx_max_ntb > NCM_NTB_HARD_MAX_IN_SIZE) {
                        ^
./include/linux/kernel.h:763:16: warning: comparison of distinct pointer types lacks a cast
  (void) (&max1 == &max2);   \
                ^
./include/linux/kernel.h:766:2: note: in expansion of macro ‘__max’
  __max(typeof(x), typeof(y),   \
  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:488:41: note: in expansion of macro ‘max’
 #define NCM_NTB_HARD_MAX_IN_SIZE ((u32)(max(16,ncm_read_size_in1k) * 1024))
                                         ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:655:76: note: in expansion of macro ‘NCM_NTB_HARD_MAX_IN_SIZE’
  ((void)(rt_debug && printk(KERN_ERR "Hw_cdc_driver######: " fmt "\n" , ## arg)))
                                                                            ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2038:3: note: in expansion of macro ‘devdbg’
   devdbg(ctx->ndev, "dwNtbInMaxSize (%u) must be at most %u "
   ^
./include/linux/kernel.h:763:16: warning: comparison of distinct pointer types lacks a cast
  (void) (&max1 == &max2);   \
                ^
./include/linux/kernel.h:766:2: note: in expansion of macro ‘__max’
  __max(typeof(x), typeof(y),   \
  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:488:41: note: in expansion of macro ‘max’
 #define NCM_NTB_HARD_MAX_IN_SIZE ((u32)(max(16,ncm_read_size_in1k) * 1024))
                                         ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:655:76: note: in expansion of macro ‘NCM_NTB_HARD_MAX_IN_SIZE’
  ((void)(rt_debug && printk(KERN_ERR "Hw_cdc_driver######: " fmt "\n" , ## arg)))
                                                                            ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2038:3: note: in expansion of macro ‘devdbg’
   devdbg(ctx->ndev, "dwNtbInMaxSize (%u) must be at most %u "
   ^
./include/linux/kernel.h:763:16: warning: comparison of distinct pointer types lacks a cast
  (void) (&max1 == &max2);   \
                ^
./include/linux/kernel.h:766:2: note: in expansion of macro ‘__max’
  __max(typeof(x), typeof(y),   \
  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:488:41: note: in expansion of macro ‘max’
 #define NCM_NTB_HARD_MAX_IN_SIZE ((u32)(max(16,ncm_read_size_in1k) * 1024))
                                         ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2042:21: note: in expansion of macro ‘NCM_NTB_HARD_MAX_IN_SIZE’
   ctx->rx_max_ntb = NCM_NTB_HARD_MAX_IN_SIZE;
                     ^
In file included from ./include/linux/printk.h:6:0,
                 from ./include/linux/kernel.h:13,
                 from ./include/linux/list.h:8,
                 from ./include/linux/module.h:9,
                 from /root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:23:
./include/linux/kern_levels.h:4:18: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
 #define KERN_SOH "\001"  /* ASCII Start Of Header */
                  ^
./include/linux/kern_levels.h:10:18: note: in expansion of macro ‘KERN_SOH’
 #define KERN_ERR KERN_SOH "3" /* error conditions */
                  ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:659:9: note: in expansion of macro ‘KERN_ERR’
  printk(KERN_ERR "%s: " fmt "\n" , (hw_cdc_net)->net->name , ## arg)
         ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2058:3: note: in expansion of macro ‘deverr’
   deverr(ctx->ndev, "dwNtbOutMaxSize (%u) must be at least "
   ^
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c: In function ‘hw_cdc_probe’:
/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.c:2590:3: error: implicit declaration of function ‘dbg’ [-Werror=implicit-function-declaration]
   dbg ("can't kmalloc dev");
   ^
cc1: some warnings being treated as errors
scripts/Makefile.build:301: recipe for target '/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o' failed
make[3]: *** [/root/Desktop/driver/ndis_driver/ndis_src/src/hw_cdc_driver.o] Error 1
Makefile:1524: recipe for target '_module_/root/Desktop/driver/ndis_driver/ndis_src/src' failed
make[2]: *** [_module_/root/Desktop/driver/ndis_driver/ndis_src/src] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.10.0-38-generic'
Makefile:32: recipe for target 'modules' failed
make[1]: *** [modules] Error 2
make[1]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:27: recipe for target 'modules' failed
make: *** [modules] Error 2
make -C src/ install
make[1]: Entering directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
#install -m 744 -c hw_cdc_driver.o /lib/modules/4.10.0-38-generic/kernel/drivers/usb/net
#depmod -a
#modprobe hw_cdc_driver
/root/Desktop/driver/ndis_driver/ndis_src/src/add_header.sh  "install"
modprobe hw_cdc_driver
modprobe: FATAL: Module hw_cdc_driver not found in directory /lib/modules/4.10.0-38-generic
Makefile:43: recipe for target 'install' failed
make[1]: *** [install] Error 1
make[1]: Leaving directory '/root/Desktop/driver/ndis_driver/ndis_src/src'
Makefile:33: recipe for target 'install' failed
make: *** [install] Error 2

Install NDIS driver failed.
The compiling environment is not all ready.
Please check gcc, make and kernel buid(/lib/modules/4.10.0-38-generic/build) to be all installed?
Now please enter any key to finish other installations.

NDIS is disabled, and only Modem can be used.
USBSERIAL_TARGET_PATH = 
ACM_TARGET_PATH = 
have usb_modeswitch rules to HUAWEI DataCard: COUNT=0
ls: cannot access '/dev/ttyUSB?': No such file or directory
ttyUSB%n not exist,ok
ADDRUNLEVEL=/etc/rc3.d
'/etc/rc3.d/S99runhwactivator' -> '/etc/init.d/runhwactivator'
'/etc/rc3.d/K10runhwactivator' -> '/etc/init.d/runhwactivator'
ADDRUNLEVEL=/etc/rc5.d
'/etc/rc5.d/S99runhwactivator' -> '/etc/init.d/runhwactivator'
'/etc/rc5.d/K10runhwactivator' -> '/etc/init.d/runhwactivator'
ADDRUNLEVEL=/etc/rc4.d
'/etc/rc4.d/S99runhwactivator' -> '/etc/init.d/runhwactivator'
'/etc/rc4.d/K10runhwactivator' -> '/etc/init.d/runhwactivator'
ADDRUNLEVEL=/etc/rc2.d
'/etc/rc2.d/S99runhwactivator' -> '/etc/init.d/runhwactivator'
'/etc/rc2.d/K10runhwactivator' -> '/etc/init.d/runhwactivator'

I for one can’t seem to figure out if the installation was successful or not from the above info nor from the dpkg command. Link to the logs: https://www.dropbox.com/s/f4rwuo004d67f ... log.1?dl=0

At this point I’m unsure how to go about getting this to work. I would appreciate any advice on this.

Note: Although the system detects the network operator when the dongle’s connected (with or without installation) there’s no option to establish connection. The Mobile broadband option in the network settings always stays off. Manually turning it ON seems to have no effect either and the settings (gear) icon stays grayed out.


Thanks in advance.

BRAC
Level 1
Level 1
Posts: 2
Joined: Thu Jul 05, 2018 9:09 am

Re: Unable to install Linux version of Huawei Mobile partner

Post by BRAC » Sat Jul 14, 2018 9:22 am

I would appreciate a confirmation from someone in the know if the installation was successful from the logs above. Although I see quite a few errors, can't seem to definitively conclude either way.

Any other workaround/suggestion to get the internet working would be nice too. Without internet it's completely pointless leaving the distro installed.

Thanks

Post Reply

Return to “Other networking topics”