neurobin / MT7630E

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

Could not insert 'mt7630e': Exec format error #86

Closed denis-galas closed 6 years ago

denis-galas commented 6 years ago

System info

Entry Details
OS Ubuntu 16.04
Kernel version 4.4.0-116-generic
New install no

Devince info

Device ID: 0489:e069 Foxconn / Hon Hai General info:

#block starts
03:00.0 Network controller: MEDIATEK Corp. MT7630e 802.11bgn Wireless Network Adapter
    Subsystem: Foxconn International, Inc. MT7630e 802.11bgn Wireless Network Adapter
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 255
    Region 0: Memory at f7a00000 (32-bit, non-prefetchable) [size=1M]
    Capabilities: <access denied>
    Kernel modules: mt7630e

04:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. Device 5287 (rev 01)
    Subsystem: ASUSTeK Computer Inc. Device 202f
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin B routed to IRQ 32
    Region 0: Memory at f7915000 (32-bit, non-prefetchable) [size=4K]
    Expansion ROM at f7900000 [disabled] [size=64K]
    Capabilities: <access denied>
    Kernel driver in use: rtsx_pci
    Kernel modules: rtsx_pci
#block ends

Bluetooth stats:

#block starts
0: asus-wlan: Wireless LAN
    Soft blocked: no
    Hard blocked: no
1: asus-bluetooth: Bluetooth
    Soft blocked: no
    Hard blocked: no

#block ends

What didn't work?

After updating ubuntu wifi driver wasn't work as usual. I did the usual commads: sudo ./uninstall make clean sudo ./install

And the last one ended with the error message. I use the latest release of "release" branch. Thanks in advance.

Error code:

#block starts
make -C /lib/modules/4.4.0-116-generic/build M=/home/denis/Documents/Drivers/MT7630E/rt2x00 modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-116-generic'
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00dev.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00mac.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00config.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00queue.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00link.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/mt_linux.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00crypto.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00firmware.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00leds.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00mmio.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2800pci.o
/home/denis/Documents/Drivers/MT7630E/rt2x00/rt2800pci.c:1591:23: warning: initialization from incompatible pointer type [-Wincompatible-pointer-types]
  .ampdu_action      = rt2800_ampdu_action,
                       ^
/home/denis/Documents/Drivers/MT7630E/rt2x00/rt2800pci.c:1591:23: note: (near initialization for ‘rt2800pci_mac80211_ops.ampdu_action’)
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2800lib.o
  CC [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/rt2x00pci.o
  LD [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/mt7630e.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/denis/Documents/Drivers/MT7630E/rt2x00/mt7630e.mod.o
  LD [M]  /home/denis/Documents/Drivers/MT7630E/rt2x00/mt7630e.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-116-generic'
make -C /lib/modules/4.4.0-116-generic/build M=/home/denis/Documents/Drivers/MT7630E/btloader modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-116-generic'
  CC [M]  /home/denis/Documents/Drivers/MT7630E/btloader/mt76xx.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/denis/Documents/Drivers/MT7630E/btloader/mt76xx.mod.o
  LD [M]  /home/denis/Documents/Drivers/MT7630E/btloader/mt76xx.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-116-generic'
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/4.4.0-116-generic/kernel/drivers/net/wireless/
cp btloader/mt76xx.ko /lib/modules/4.4.0-116-generic/kernel/drivers/net/wireless/
depmod 4.4.0-116-generic
modprobe: ERROR: could not insert 'mt7630e': Exec format error
#block ends
shuadoc commented 6 years ago

Hello @denis-galas ,

After receiving the same error, these instructions helped me:

https://github.com/neurobin/MT7630E/issues/68#issuecomment-312807028

denis-galas commented 6 years ago

Hello @shuadoc ,

Thank you for your response. I just did all described in the instructions, but unfortunately result still the same. I still see the same error message as before.

denis-galas commented 6 years ago

Hello,

Issue still there. Anybody have solution?

jeremyb31 commented 6 years ago

denis-glass, what is the result for modinfo mt7630e | egrep 'file|vermagic'

denis-galas commented 6 years ago

I just tried all process of uninstall/install again and now it works. Looks like it was self-fixed after Ubuntu updates

DOUNIA11 commented 3 years ago

Hi @denis-galas

I have the same problem: modprobe: ERROR: could not insert 'mt7630e': Invalid argument

I tried uninstall/install, also Ubuntu updates and upgrade but didn't work