Description: How to install Network Card Driver on MECHREVO-15X.
Description
I started installing Arch linux as soon as I got my new computer, and during the installation I could only connect to WIFI but not to a wired network.
$ ip addr # The results are as follows
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host noprefixroute
valid_lft forever preferred_lft forever
2: wlp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000
link/ether ae:20:f8:a3:0b:61 brd ff:ff:ff:ff:ff:ff permaddr a8:e2:91:0a:79:9e
Solution
Check if the corresponding module is loaded.
$ lspci -v | grep -A 15 -E "(net)" # The results are as follows
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
01:00.0 Ethernet controller: Motorcomm Microelectronics. YT6801 Gigabit Ethernet Controller (rev 01)
Subsystem: AIstone Global Limited Device 137d
Flags: bus master, fast devsel, latency 0, IRQ 73, IOMMU group 13
Memory at dcc00000 (64-bit, non-prefetchable) [size=16K]
I/O ports at f000 [size=256]
Capabilities: <access denied>
02:00.0 Network controller: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter
Subsystem: AzureWave Device 5911
Flags: bus master, fast devsel, latency 0, IRQ 102, IOMMU group 14
Memory at 7c10a00000 (64-bit, prefetchable) [size=1M]
Memory at dcb00000 (64-bit, non-prefetchable) [size=32K]
Capabilities: <access denied>
Kernel driver in use: mt7921e
Kernel modules: mt7921e
Kernel driver and kernel modules do not appear on Ethernet controller, as there is no module installed.
$ paru -S yt6801-dkms # dispatch
$ paru -S tuxedo-yt6801-dkms-git
$ sudo pacman -S linux-headers
$ rebote