I've recently tried to install the latest stable kernel which is 4.4.6 and when the kernel was compiled and I brought the kernel up and running, there was a problem and the wireless driver (MT7630e 802.11bgn) seemed not working. Then I tried to reinstall it using the source code and the output was like:
make -C /lib/modules/
uname -r/build M=/home/devin/Desktop/MT7630E-release linux wireless driver/rt2x00 modules make: Entering directory
/home/devin/linux-4.4.6' arch/x86/Makefile:148: CONFIG_X86_X32 enabled but no binutils support make: *** No rule to make targetlinux'. Stop. make: Leaving directory
/home/devin/linux-4.4.6' 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 btloader/mt76xx.ko /lib/modules/uname -r`/kernel/drivers/net/wireless/
modprobe: ERROR: could not insert 'mt7630e': Exec format error
modprobe: ERROR: could not insert 'mt76xx': Exec format error
I was trying to figure out what seems to be a problem, based on the output I guessed the final loadable modules that got compiled, they were not matched with the arch or something, or it could be because the proper options were not set while compiling the kernel.
Now what I need to know is to get to know the process of loading LKMs when modprobe is invoked or something's wrong with the kernel?!
the arch of the kernel: x86_64