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

fatal error: linux/input-polldev.h: #106

Open
Mann-webspider opened this issue Dec 19, 2021 · 6 comments
Open

fatal error: linux/input-polldev.h: #106

Mann-webspider opened this issue Dec 19, 2021 · 6 comments

Comments

@Mann-webspider
Copy link

System info

Entry Details
OS Ubuntu 20.4
Kernel version 5.11.0-43-generic
New install yes
DKMS no
Compiler < include version e.g: gcc-5.4.0 >

Devince info

Device ID: <run lsusb |grep -i 'mediatek\|foxcon' to get it (e.g 0e8d:763f)>

General info:

#block starts
04:00.0 Network controller: MEDIATEK Corp. Device 7961
	Subsystem: Lite-On Communications Inc Device 3802
	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-
	Interrupt: pin A routed to IRQ 255
	Region 0: Memory at fcd2000000 (64-bit, prefetchable) [disabled] [size=1M]
	Region 2: Memory at fcd2100000 (64-bit, prefetchable) [disabled] [size=16K]
	Region 4: Memory at fcd2104000 (64-bit, prefetchable) [disabled] [size=4K]
	Capabilities: <access denied>

05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 164c (rev c2) (prog-if 00 [VGA controller])
	Subsystem: Acer Incorporated [ALI] Device 1524
	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 48
	Region 0: Memory at fce0000000 (64-bit, prefetchable) [size=256M]
	Region 2: Memory at fcf0000000 (64-bit, prefetchable) [size=2M]
	Region 4: I/O ports at 1000 [size=256]
	Region 5: Memory at d1400000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: <access denied>

#block ends

Bluetooth stats:

#block starts
0: hci0: Bluetooth
	Soft blocked: no
	Hard blocked: no
1: acer-wireless: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: acer-bluetooth: Bluetooth
	Soft blocked: no
	Hard blocked: no

#block ends

What didn't work?

fatal error: linux/input-polldev.h: No such file or directory

What did you try?

shelby@shelby-Aspire-A715-42G:~/MT7630E$ sudo ./test

Error code:

#block starts
make -C /lib/modules/5.11.0-43-generic/build M=/home/shelby/MT7630E/rt2x00 modules
make[1]: Entering directory '/usr/src/linux-headers-5.11.0-43-generic'
  CC [M]  /home/shelby/MT7630E/rt2x00/rt2x00dev.o
In file included from /home/shelby/MT7630E/rt2x00/rt2x00dev.c:32:
/home/shelby/MT7630E/rt2x00/rt2x00.h:39:10: fatal error: linux/input-polldev.h: No such file or directory
   39 | #include <linux/input-polldev.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.build:288: /home/shelby/MT7630E/rt2x00/rt2x00dev.o] Error 1
make[1]: *** [Makefile:1849: /home/shelby/MT7630E/rt2x00] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.11.0-43-generic'
make: *** [Makefile:9: all] Error 2
'firmware/BT/mt76x0.bin' -> '/lib/firmware/mt76x0.bin'
'firmware/Wi-FI/MT7650E234.bin' -> '/lib/firmware/MT7650E234.bin'
insmod: ERROR: could not load module ./rt2x00/mt7630e.ko: No such file or directory
insmod: ERROR: could not load module ./btloader/mt76xx.ko: No such file or directory

#block ends

Additional info

[Put any additional information here or leave it blank]

@tassoman
Copy link

tassoman commented Jun 15, 2022

Confirmed for 22.04, I found this: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1952554/comments/39

5.15.0-39-generic # 42-Ubuntu SMP Thu Jun 9 23:42:32 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

@tassoman
Copy link

So that, I ran ./uninstall then rebooted. Got Wi-Fi working with default Ubuntu Kernel. Hopefully this repository isn't needed anymore. (I bet, for > 5.11 kernels)

@w495
Copy link

w495 commented Jun 19, 2022

I've got this with 5.13.0-51-generic.

By the way, you can comment lines with errors. I know this is dirty hack (that's why I'm not sure about PR) but now it works for me.

So I've done this:

root@gt-n750jk:/opt/MT7630E/MT7630E# git diff
diff --git a/rt2x00/rt2800pci.c b/rt2x00/rt2800pci.c
index 2bad45c..f6d99ef 100644
--- a/rt2x00/rt2800pci.c
+++ b/rt2x00/rt2800pci.c
@@ -1711,7 +1711,7 @@ static const struct pci_device_id rt2800pci_device_table[] = {
 MODULE_AUTHOR(DRV_PROJECT);
 MODULE_VERSION(DRV_VERSION);
 MODULE_DESCRIPTION("Mediatek MT7630 PCI Wireless LAN driver.");
-MODULE_SUPPORTED_DEVICE("Mediatek PCI MT7630-based cards");
+//MODULE_SUPPORTED_DEVICE("Mediatek PCI MT7630-based cards");
 #ifdef CONFIG_PCI
 MODULE_FIRMWARE(FIRMWARE_MT7630);
 MODULE_DEVICE_TABLE(pci, rt2800pci_device_table);
diff --git a/rt2x00/rt2x00.h b/rt2x00/rt2x00.h
index 6f4026d..2a2a1af 100644
--- a/rt2x00/rt2x00.h
+++ b/rt2x00/rt2x00.h
@@ -36,7 +36,7 @@
 #include <linux/leds.h>
 #include <linux/mutex.h>
 #include <linux/etherdevice.h>
-#include <linux/input-polldev.h>
+// #include <linux/input-polldev.h>
 #include <linux/kfifo.h>
 #include <linux/hrtimer.h>
 #include <linux/version.h>
root@gt-n750jk:/opt/MT7630E/MT7630E#

So I've got

oot@gt-n750jk:/opt/MT7630E/MT7630E# ./install
make -C /lib/modules/5.13.0-51-generic/build M=/opt/MT7630E/MT7630E/rt2x00 modules
make[1]: вход в каталог «/usr/src/linux-headers-5.13.0-51-generic»
make[1]: выход из каталога «/usr/src/linux-headers-5.13.0-51-generic»
make -C /lib/modules/5.13.0-51-generic/build M=/opt/MT7630E/MT7630E/btloader modules
make[1]: вход в каталог «/usr/src/linux-headers-5.13.0-51-generic»
make[1]: выход из каталога «/usr/src/linux-headers-5.13.0-51-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/5.13.0-51-generic/kernel/drivers/net/wireless/
cp btloader/mt76xx.ko /lib/modules/5.13.0-51-generic/kernel/drivers/net/wireless/
depmod 5.13.0-51-generic

The driver has been successfully installed.
If you don't have wifi yet, try to reboot.
If bluetooth doesn't work, read the bluetooth
section in README.md file and follow through.

Operating System: KDE neon 5.25
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Kernel Version: 5.13.0-51-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i5-4200H CPU @ 2.80GHz
Memory: 5,3 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4600
Manufacturer: ASUSTeK COMPUTER INC.
Product Name: N750JK
System Version: 1.0

@toadjaune
Copy link

I can confirm a stock ubuntu 22.04 (kernel 6.2) has wifi working out-of-the-box. No bluetooth however, so, this driver might still be useful.

@e-labInnovations
Copy link

I can confirm a stock ubuntu 22.04 (kernel 6.2) has wifi working out-of-the-box. No bluetooth however, so, this driver might still be useful.

@Mann-webspider
@toadjaune
Any updates?

@toadjaune
Copy link

I currently have no plan to do any development on this driver at this time. I can, however, test it if someone is willing to do it !

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

5 participants