neurobin / MT7630E

Modified easy installation package
https://neurobin.org/projects/softwares/unix/MT7630E/
232 stars 70 forks source link

I can't install it with kernel 4.2 #9

Closed tux13 closed 8 years ago

tux13 commented 8 years ago

Hi, I have a problem with kernel 4.2.0 I can't install it ... What should be do to the driver installed on kernel 4.2.0?

inpu commented 8 years ago

Here is my output

make -C /lib/modules/`uname -r`/build M=/home/***/MT7630E/rt2x00 modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.0-16-generic'
  CC [M]  /home/***/MT7630E/rt2x00/rt2x00dev.o
  CC [M]  /home/***/MT7630E/rt2x00/rt2x00mac.o
/home/***/MT7630E/rt2x00/rt2x00mac.c: In function ‘rt2x00mac_configure_filter’:
/home/***/MT7630E/rt2x00/rt2x00mac.c:359:6: error: ‘FIF_PROMISC_IN_BSS’ undeclared (first use in this function)
      FIF_PROMISC_IN_BSS;
      ^
/home/***/MT7630E/rt2x00/rt2x00mac.c:359:6: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:258: recipe for target '/home/***/MT7630E/rt2x00/rt2x00mac.o' failed
make[2]: *** [/home/***/MT7630E/rt2x00/rt2x00mac.o] Error 1
Makefile:1398: recipe for target '_module_/home/***/MT7630E/rt2x00' failed
make[1]: *** [_module_/home/***/MT7630E/rt2x00] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-16-generic'
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 2
cp -v firmware/*/* /lib/firmware/
‘firmware/BT/mt76x0.bin’ -> ‘/lib/firmware/mt76x0.bin’
‘firmware/Wi-FI/MT7650E234.bin’ -> ‘/lib/firmware/MT7650E234.bin’
cp rt2x00/mt7630e.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
cp: cannot stat ‘rt2x00/mt7630e.ko’: No such file or directory
Makefile:15: recipe for target 'install' failed
make: *** [install] Error 1
modprobe: FATAL: Module mt7630e not found.
modprobe: FATAL: Module mt76xx not found.
neurobin commented 8 years ago

@inpu You can try applying this patch: In rt2x00/rt2x00mac.c: change (in line 358~359)

        FIF_OTHER_BSS |
        FIF_PROMISC_IN_BSS;

to

        FIF_OTHER_BSS ;

And in line 368~370

    if (*total_flags & FIF_OTHER_BSS ||
        *total_flags & FIF_PROMISC_IN_BSS)
        *total_flags |= FIF_PROMISC_IN_BSS | FIF_OTHER_BSS;

to

    if (*total_flags & FIF_OTHER_BSS )
        *total_flags |= FIF_OTHER_BSS;
picharras commented 8 years ago

Hi, have the same issue. Apply changes of @neurobin and now I have the following problem:

/home/picharras/Descargas/MT7630E/rt2x00/rt2800pci.c:1615:2: error: unknown field ‘get_tkip_seq’ specified in initializer .get_tkip_seq = rt2800_get_tkip_seq, ^ /home/picharras/Descargas/MT7630E/rt2x00/rt2800pci.c:1615:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types] .get_tkip_seq = rt2800_get_tkip_seq, ^ /home/picharras/Descargas/MT7630E/rt2x00/rt2800pci.c:1615:19: note: (near initialization for ‘rt2800pci_mac80211_ops.get_key_seq’) scripts/Makefile.build:258: recipe for target '/home/picharras/Descargas/MT7630E/rt2x00/rt2800pci.o' failed make[2]: * [/home/picharras/Descargas/MT7630E/rt2x00/rt2800pci.o] Error 1 Makefile:1398: recipe for target 'module/home/picharras/Descargas/MT7630E/rt2x00' failed make[1]: * [module/home/picharras/Descargas/MT7630E/rt2x00] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-16-generic' Makefile:7: recipe for target 'all' failed make: * [all] Error 2 cp -v firmware// /lib/firmware/ «firmware/BT/mt76x0.bin» -> «/lib/firmware/mt76x0.bin» «firmware/Wi-FI/MT7650E234.bin» -> «/lib/firmware/MT7650E234.bin» cp rt2x00/mt7630e.ko /lib/modules/uname -r/kernel/drivers/net/wireless/ cp: no se puede efectuar `stat' sobre «rt2x00/mt7630e.ko»: No existe el archivo o el directorio Makefile:15: recipe for target 'install' failed make: * [install] Error 1 modprobe: FATAL: Module mt7630e not found. modprobe: FATAL: Module mt76xx not found.

aljaazm commented 8 years ago

@neurobin Hey, i'm facing the same problem on new ubuntu 15.10 (kernel 4.2.0), i applied changes to rt2x00/rt2x00mac.c Here's the output of ./install

aljazm@aljazm-X555LB:~/Downloads/MT7630E-release$ sudo ./install
make -C /lib/modules/`uname -r`/build M=/home/aljazm/Downloads/MT7630E-release/rt2x00 modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.0-16-generic'
  CC [M]  /home/aljazm/Downloads/MT7630E-release/rt2x00/rt2800pci.o
/home/aljazm/Downloads/MT7630E-release/rt2x00/rt2800pci.c:1615:2: error: unknown field ‘get_tkip_seq’ specified in initializer
  .get_tkip_seq  = rt2800_get_tkip_seq,
  ^
/home/aljazm/Downloads/MT7630E-release/rt2x00/rt2800pci.c:1615:19: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  .get_tkip_seq  = rt2800_get_tkip_seq,
                   ^
/home/aljazm/Downloads/MT7630E-release/rt2x00/rt2800pci.c:1615:19: note: (near initialization for ‘rt2800pci_mac80211_ops.get_key_seq’)
scripts/Makefile.build:258: recipe for target '/home/aljazm/Downloads/MT7630E-release/rt2x00/rt2800pci.o' failed
make[2]: *** [/home/aljazm/Downloads/MT7630E-release/rt2x00/rt2800pci.o] Error 1
Makefile:1398: recipe for target '_module_/home/aljazm/Downloads/MT7630E-release/rt2x00' failed
make[1]: *** [_module_/home/aljazm/Downloads/MT7630E-release/rt2x00] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-16-generic'
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 2
cp -v firmware/*/* /lib/firmware/
‘firmware/BT/mt76x0.bin’ -> ‘/lib/firmware/mt76x0.bin’
‘firmware/Wi-FI/MT7650E234.bin’ -> ‘/lib/firmware/MT7650E234.bin’
cp rt2x00/mt7630e.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
cp: cannot stat ‘rt2x00/mt7630e.ko’: No such file or directory
Makefile:15: recipe for target 'install' failed
make: *** [install] Error 1
modprobe: FATAL: Module mt7630e not found.
modprobe: FATAL: Module mt76xx not found.

Thank you for your time

aljaazm commented 8 years ago

I tried with 2.0.2, it doesn't work unfortunately. Here's the output

aljazm@aljazm-X555LB:~/Downloads/MT7630E-2.0.2$ sudo ./install
make -C /lib/modules/`uname -r`/build M=/home/aljazm/Downloads/MT7630E-2.0.2/rt2x00 modules
make[1]: Entering directory '/usr/src/linux-headers-4.2.0-16-generic'
  CC [M]  /home/aljazm/Downloads/MT7630E-2.0.2/rt2x00/rt2800lib.o
/home/aljazm/Downloads/MT7630E-2.0.2/rt2x00/rt2800lib.c: In function ‘rt2800_probe_hw_mode’:
/home/aljazm/Downloads/MT7630E-2.0.2/rt2x00/rt2800lib.c:8536:23: error: assignment to expression with array type
  rt2x00dev->hw->flags =
                       ^
/home/aljazm/Downloads/MT7630E-2.0.2/rt2x00/rt2800lib.c:8551:24: error: assignment to expression with array type
   rt2x00dev->hw->flags |=
                        ^
scripts/Makefile.build:258: recipe for target '/home/aljazm/Downloads/MT7630E-2.0.2/rt2x00/rt2800lib.o' failed
make[2]: *** [/home/aljazm/Downloads/MT7630E-2.0.2/rt2x00/rt2800lib.o] Error 1
Makefile:1398: recipe for target '_module_/home/aljazm/Downloads/MT7630E-2.0.2/rt2x00' failed
make[1]: *** [_module_/home/aljazm/Downloads/MT7630E-2.0.2/rt2x00] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.2.0-16-generic'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
cp -v firmware/*/* /lib/firmware/
‘firmware/BT/mt76x0.bin’ -> ‘/lib/firmware/mt76x0.bin’
‘firmware/Wi-FI/MT7650E234.bin’ -> ‘/lib/firmware/MT7650E234.bin’
cp rt2x00/mt7630e.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/
cp: cannot stat ‘rt2x00/mt7630e.ko’: No such file or directory
Makefile:16: recipe for target 'install' failed
make: *** [install] Error 1
modprobe: FATAL: Module mt7630e not found.
modprobe: FATAL: Module mt76xx not found.
neurobin commented 8 years ago

I installed kernel 4.2.3 and and tried to install it and found some problem in rt2800lib.c. I have pushed another update. You can download it from the release or master or 2.0.2 branch or clone it. I would appreciate any feedback.

I have tested this update in kernel 4.2.3

aljaazm commented 8 years ago

I tried release version, and it worked. Thank you so much, I really appreciate it. I also posted my issue to ubuntu forums yesterday and i'd like to post your solution there, since i wasn't the only one with the issue, if i have your permission ofc. I can also provide the output of 'install' if necessary. Thank you.

neurobin commented 8 years ago

sure... you can post this solution wherever you like. Thanks for your co-operation.