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

Don't work on Ubuntu 22.04 #20

Open
Sunhill666 opened this issue Sep 13, 2024 · 2 comments
Open

Don't work on Ubuntu 22.04 #20

Sunhill666 opened this issue Sep 13, 2024 · 2 comments

Comments

@Sunhill666
Copy link

I followed README to install driver. but it isn't work on ubuntu 22.04, 6.8.0-40 kernel, here's log:

wqc@4090D-1:~/Downloads$ sudo dkms add --verbose -m mt7902 -v 0.0.1
Creating symlink /var/lib/dkms/mt7902/0.0.1/source -> /usr/src/mt7902-0.0.1
wqc@4090D-1:~/Downloads$ sudo dkms build --verbose -m mt7902 -v 0.0.1
'
Kernel preparation unnecessary for this kernel. Skipping...

Building module:
make -C mt76/mt7902 clean
make: Entering directory '/var/lib/dkms/mt7902/0.0.1/build/mt76/mt7902'
make -C /lib/modules/6.8.0-40-generic/build M=/var/lib/dkms/mt7902/0.0.1/build/mt76/mt7902 clean
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: Leaving directory '/var/lib/dkms/mt7902/0.0.1/build/mt76/mt7902'

{ bash build.sh --kver 6.8.0-40-generic; } >> /var/lib/dkms/mt7902/0.0.1/build/make.log 2>&1

Signing module:
 - /var/lib/dkms/mt7902/0.0.1/6.8.0-40-generic/x86_64/module/mt7902-common.ko
 - /var/lib/dkms/mt7902/0.0.1/6.8.0-40-generic/x86_64/module/mt7902.ko
Secure Boot not enabled on this system.
make -C mt76/mt7902 clean
make: Entering directory '/var/lib/dkms/mt7902/0.0.1/build/mt76/mt7902'
make -C /lib/modules/6.8.0-40-generic/build M=/var/lib/dkms/mt7902/0.0.1/build/mt76/mt7902 clean
make[1]: Entering directory '/usr/src/linux-headers-6.8.0-40-generic'
  CLEAN   /var/lib/dkms/mt7902/0.0.1/build/mt76/mt7902/Module.symvers
make[1]: Leaving directory '/usr/src/linux-headers-6.8.0-40-generic'
make: Leaving directory '/var/lib/dkms/mt7902/0.0.1/build/mt76/mt7902'

wqc@4090D-1:~/Downloads$ sudo dkms install --verbose -m mt7902 -v 0.0.1

mt7902-common.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-40-generic/updates/dkms/

mt7902.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.8.0-40-generic/updates/dkms/

do_depmod 6.8.0-40-generic

wqc@4090D-1:~/Downloads$ sudo dkms status --verbose -m mt7902 -v 0.0.1
mt7902/0.0.1, 6.8.0-40-generic, x86_64: installed
wqc@4090D-1:~/Downloads$ lspci -nnk | grep -iA3 net
08:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller [10ec:8125] (rev 05)
	DeviceName: Realtek RTL8125BG LAN
	Subsystem: ASUSTeK Computer Inc. RTL8125 2.5GbE Controller [1043:87d7]
	Kernel driver in use: r8125
--
09:00.0 Network controller [0280]: MEDIATEK Corp. Device [14c3:7902]
	Subsystem: AzureWave Device [1a3b:6040]
	Kernel modules: mt7902
0a:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:43f7] (rev 01)
@samveen
Copy link
Owner

samveen commented Sep 15, 2024

@Sunhill666 As of now, we only have firmware from the Acer website, which the driver is failing to load correctly, so we are stuck until someone smarter than me is able to where things are going wrong.

@cacona666
Copy link

cacona666 commented Dec 11, 2024

Hi there, having issues with Ubuntu 22.04 here too, with an Asus. I took the WIFI_*7902 blobs from here:
https://github.com/Nevergiveup11837/mt7902driverforlinux.git

The driver is crashing:

[ 3.323223] mt7902_common: loading out-of-tree module taints kernel.
[ 3.341628] mt7902 0000:02:00.0: enabling device (0000 -> 0002)
[ 3.344719] mt7902 0000:02:00.0: ASIC revision: 79020000
[ 3.421706] mt7902 0000:02:00.0: Entering mt7902_mt76_mcu_send_and_get_msg cmd: 16
[ 3.421713] mt7902 0000:02:00.0: mt7902_mt76_mcu_msg_alloc 0000000036d2533b
[ 3.421716] mt7902 0000:02:00.0: mt7902_mt76_mcu_skb_send_and_get_msg acquiring mutex
[ 3.421722] mt7902 0000:02:00.0: mt7902_mt76_mcu_skb_send_and_get_msg cmd: 16, ret: 0, wait_resp: 1
[ 3.421723] mt7902 0000:02:00.0: mt7902_mt76_mcu_skb_send_and_get_msg expires: 4294673632
[ 3.421725] mt7902 0000:02:00.0: mt7902_mt76_mcu_get_response expires: 4294673632
[ 3.421726] mt7902 0000:02:00.0: mt7902_mt76_mcu_get_response timeout: 3000
[ 3.421853] mt7902 0000:02:00.0: mt7902_mt76_mcu_get_response ret: 000000000c5e147b
[ 3.421857] CPU: 4 PID: 213 Comm: kworker/4:2 Tainted: G O 6.8.0-49-generic #49~22.04.1-Ubuntu
[ 3.421860] Hardware name: ASUSTeK COMPUTER INC. Vivobook_ASUSLaptop X1605VA_X1605VA/X1605VA, BIOS X1605VA.308 09/13/2024
[ 3.421862] Workqueue: events mt7902_init_work [mt7902_common]
[ 3.421895] Call Trace:
[ 3.421898]
[ 3.421902] dump_stack_lvl+0x76/0xa0
[ 3.421910] dump_stack+0x10/0x20
[ 3.421911] mt7902_mt76_mcu_get_response+0xb6/0x1a0 [mt7902_common]
[ 3.421929] ? __pfx_autoremove_wake_function+0x10/0x10
[ 3.421935] mt7902_mt76_mcu_skb_send_and_get_msg+0xf7/0x1d0 [mt7902_common]
[ 3.421953] mt7902_mt76_mcu_send_and_get_msg+0xcf/0x100 [mt7902_common]
[ 3.421971] mt7902_mt76_connac2_load_patch+0x74/0x350 [mt7902_common]
[ 3.421992] mt7902_mt792x_load_firmware+0x51/0x1b0 [mt7902_common]
[ 3.422012] mt7902_run_firmware+0x2d/0x4e0 [mt7902_common]
[ 3.422030] ? ____mt7902_mt76_poll_msec+0x76/0xd0 [mt7902_common]
[ 3.422051] mt7902e_mcu_init+0x6d/0xb0 [mt7902]
[ 3.422057] ? drain_stock+0x71/0xb0
[ 3.422062] mt7902_init_work+0x36/0x220 [mt7902_common]
[ 3.422080] process_one_work+0x175/0x350
[ 3.422085] worker_thread+0x306/0x440
[ 3.422088] ? _raw_spin_lock_irqsave+0xe/0x20
[ 3.422093] ? __pfx_worker_thread+0x10/0x10
[ 3.422095] kthread+0xef/0x120
[ 3.422098] ? __pfx_kthread+0x10/0x10
[ 3.422099] ret_from_fork+0x44/0x70
[ 3.422102] ? __pfx_kthread+0x10/0x10
[ 3.422104] ret_from_fork_asm+0x1b/0x30
[ 3.422109]
[ 3.422110] mt7902 0000:02:00.0: SKB info: 000000000c5e147b
[ 3.422112] mt7902 0000:02:00.0: mt7902_mt76_mcu_skb_send_and_get_msg > mcu_parse_response cmd: 16, ret: -11
[ 3.422115] mt7902 0000:02:00.0: mt7902_mt76_mcu_skb_send_and_get_msg expires: 4294673632
[ 3.422116] mt7902 0000:02:00.0: mt7902_mt76_mcu_get_response expires: 4294673632
[ 3.422116] mt7902 0000:02:00.0: mt7902_mt76_mcu_get_response timeout: 3000
[

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

3 participants