-
Notifications
You must be signed in to change notification settings - Fork 12
Description
When I run the sudo bash fix_my_wifi.sh, it shows
🚀 Starting MT7902 Fix...
📦 Checking prerequisites...
Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://security.ubuntu.com/ubuntu noble-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu noble InRelease
Hit:4 http://archive.ubuntu.com/ubuntu noble-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu noble-backports InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.10ubuntu1).
linux-headers-6.17.0-19-generic is already the newest version (6.17.0-19.19~24.04.2).
bc is already the newest version (1.07.1-3ubuntu4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
🛠️ Compiling WiFi modules...
make -C /lib/modules/uname -r/build/ M=pwd clean
make[1]: Entering directory '/usr/src/linux-headers-6.17.0-19-generic'
make[2]: Entering directory '/home/jerrychen/mt7902_temp/latest'
make[2]: Leaving directory '/home/jerrychen/mt7902_temp/latest'
make[1]: Leaving directory '/usr/src/linux-headers-6.17.0-19-generic'
rm -f mt76.ko.zst mt76-connac-lib.ko.zst mt792x-lib.ko.zst
-- Module compilation
make -C /lib/modules/uname -r/build/ M=pwd modules
make[1]: Entering directory '/usr/src/linux-headers-6.17.0-19-generic'
make[2]: Entering directory '/home/jerrychen/mt7902_temp/latest'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu224.04.1) 13.3.024.04.1) 13.3.0
You are using: gcc-13 (Ubuntu 13.3.0-6ubuntu2
CC [M] mt7921/mac.o
In file included from mt7921/../mt76_connac.h:7,
from mt7921/../mt76_connac_mcu.h:7,
from mt7921/../mt792x.h:10,
from mt7921/mt7921.h:7,
from mt7921/mac.c:7:
mt7921/../mt76.h:16:10: fatal error: linux/soc/airoha/airoha_offload.h: No such file or directory
16 | #include <linux/soc/airoha/airoha_offload.h>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[5]: *** [/usr/src/linux-headers-6.17.0-19-generic/scripts/Makefile.build:287: mt7921/mac.o] Error 1
make[4]: *** [/usr/src/linux-headers-6.17.0-19-generic/scripts/Makefile.build:556: mt7921] Error 2
make[3]: *** [/usr/src/linux-headers-6.17.0-19-generic/Makefile:2016: .] Error 2
make[2]: *** [/usr/src/linux-headers-6.17.0-19-generic/Makefile:248: __sub-make] Error 2
make[2]: Leaving directory '/home/jerrychen/mt7902_temp/latest'
make[1]: *** [Makefile:248: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.17.0-19-generic'
make: *** [Makefile:33: module_compile] Error 2
I don't know how to solve it...