Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
denis-galas opened this issue Feb 26, 2018 · 6 comments
Closed

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

denis-galas opened this issue Feb 26, 2018 · 6 comments

Comments

@denis-galas
Copy link

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
Copy link

shuadoc commented Mar 4, 2018

Hello @denis-galas ,

After receiving the same error, these instructions helped me:

#68 (comment)

@denis-galas
Copy link
Author

denis-galas commented Mar 5, 2018

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
Copy link
Author

Hello,

Issue still there. Anybody have solution?

@jeremyb31
Copy link

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

@denis-galas
Copy link
Author

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

@DOUNIA11
Copy link

DOUNIA11 commented Jun 6, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants