在新笔记本电脑上安装 Debian:打开网络设备?

在新笔记本电脑上安装 Debian:打开网络设备?

我有一台全新的笔记本电脑。稳定的 Debian 不会启动 GNOME,也不会找到网络设备的驱动程序。最新的不稳定版本做到了。现在,没有以太网插座,没有显示 Wifi,并且在网络菜单中我没有设置它的选项。我不知道如何打开网络设备或启用 Wifi。

我已经能够通过终端收集以下信息。

我正在看什么情况?接下来的步骤应该是什么?

注意:该网络设备似乎是最新的,并且其系列在Linux中的支持很差。 install ( rtw88_8822ce) 中归属的内核模块是否适合该设备? (或者我在哪里可以找到这些信息?)

~$ nmcli general status
STATE            CONNECTIVITY  WIFI-HW    WIFI       WWAN-HW    WWAN      
not connected    unknown       activated  activated  activated  activated 

~$ sudo lshw -numeric -C network
  *-network UNCLAIMED       
       description: Network controller
       product: RTL8822CE 802.11ac PCIe Wireless Network Adapter [10EC:C822]
       vendor: Realtek Semiconductor Co., Ltd. [10EC]
       physical id: 0
       bus info: pci@0000:01:00.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress cap_list
       configuration: latency=0
       resources: ioport:2000(size=256) memory:d0800000-d080ffff

~$ networkctl
WARNING: systemd-networkd is not running, output will be incomplete.

IDX LINK TYPE     OPERATIONAL SETUP    
  1 lo   loopback n/a         unmanaged

1 links listed.

~$ nmcli device show
GENERAL.DEVICE:                         lo
GENERAL.TYPE:                           loopback
GENERAL.HWADDR:                         00:00:00:00:00:00
GENERAL.MTU:                            65536
GENERAL.STATE:                          10 (nicht verwaltet)
GENERAL.CONNECTION:                     --
GENERAL.CON-PATH:                       --
IP4.ADDRESS[1]:                         127.0.0.1/8
IP4.GATEWAY:                            --
IP6.ADDRESS[1]:                         ::1/128
IP6.GATEWAY:                            --
IP6.ROUTE[1]:                           dst = ::1/128, nh = ::, mt = 256

~$ lspci -vv -s 01:00.0
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
    DeviceName: WLAN
    Subsystem: Hewlett-Packard Company RTL8822CE 802.11ac PCIe Wireless Network Adapter
    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 24
    IOMMU group: 8
    Region 0: I/O ports at 2000 [size=256]
    Region 2: Memory at d0800000 (64-bit, non-prefetchable) [size=64K]
    Capabilities: [40] Power Management version 3
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
        Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Address: 0000000000000000  Data: 0000
    Capabilities: [70] Express (v2) Endpoint, MSI 00
        DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 <64us
            ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 0.000W
        DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
            RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
            MaxPayload 128 bytes, MaxReadReq 512 bytes
        DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr+ TransPend-
        LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <4us, L1 <64us
            ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
        LnkCtl: ASPM L1 Enabled; RCB 64 bytes, Disabled- CommClk+
            ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
        LnkSta: Speed 2.5GT/s (ok), Width x1 (ok)
            TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        DevCap2: Completion Timeout: Not Supported, TimeoutDis+ NROPrPrP- LTR+
             10BitTagComp- 10BitTagReq- OBFF Via message/WAKE#, ExtFmt- EETLPPrefix-
             EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
             FRS- TPHComp- ExtTPHComp-
             AtomicOpsCap: 32bit- 64bit- 128bitCAS-
        DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR+ OBFF Disabled,
             AtomicOpsCtl: ReqEn-
        LnkCap2: Supported Link Speeds: 2.5GT/s, Crosslink- Retimer- 2Retimers- DRS-
        LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
             Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
             Compliance De-emphasis: -6dB
        LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete- EqualizationPhase1-
             EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
             Retimer- 2Retimers- CrosslinkRes: unsupported
    Capabilities: [100 v2] Advanced Error Reporting
        UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
        UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
        UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
        CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr-
        CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
        AERCap: First Error Pointer: 00, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
            MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
        HeaderLog: 00000000 00000000 00000000 00000000
    Capabilities: [148 v1] Device Serial Number 00-e0-4c-ff-fe-c8-22-01
    Capabilities: [158 v1] Latency Tolerance Reporting
        Max snoop latency: 1048576ns
        Max no snoop latency: 1048576ns
    Capabilities: [160 v1] L1 PM Substates
        L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
              PortCommonModeRestoreTime=30us PortTPowerOnTime=60us
        L1SubCtl1: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2- ASPM_L1.1+
               T_CommonMode=0us LTR1.2_Threshold=32768ns
        L1SubCtl2: T_PwrOn=150us
    Kernel modules: rtw88_8822ce

答案1

Realtek RTL8822CE 似乎受支持内核5.2:

5.2 的无线驱动程序下一个补丁

很可能是 5.2 新功能的最后一个补丁集,这次我们有相当多的新功能。最明显的是 Realtek 的 rtw88,它支持 RTL8822BE 和RTL8822CE802.11ac 设备。

选项CONFIG_RTW88_8822CE选项及其模块rtw88_8822ce.ko 存在在当前的 Debian bullseye/unstable 中。

阅读这个随机发现的线程:Realteck RTL8822CE 驱动程序:

发现由于错误,根据 https://ubuntuforums.org/showthread.php?t=2448425,rtw88 文件夹中没有 rtw8822c_wow_fw.bin 意味着我需要将固件更新到 1.187.2...

并再次使用检查Debian bullseye上固件文件的可用性(这将是当前不稳定的结果)搜索包内容https://packages.debian.org/:

File Packages
/lib/firmware/rtw88/rtw8822c_wow_fw.bin firmware-realtek

让我认为你必须:

  • 如果尚未完成,请启用 contrib 和非自由存储库。您可以更换靶心不稳定如果那是你所拥有的,但最好不要。将其放入/etc/apt/sources.list或中的某个位置/etc/apt/sources.list.d/

    deb http://deb.debian.org/debian bullseye main contrib non-free
    
  • 并安装固件-realtek:

    # apt-get update
    # apt-get install firmware-realtek
    

但实际上,如果没有可用的网络连接,就会出现先有鸡还是先有蛋的问题。您仍然可以从其他地方下载此软件包,使用 USB 密钥复制它并使用dpkg -i firmware-realtek_20200918-1_all.deb.这是(今天的)相关信息:

$ apt-get --print-uris download firmware-realtek/bullseye
'http://deb.debian.org/debian/pool/non-free/f/firmware-nonfree/firmware-realtek_20200918-1_all.deb' firmware-realtek_20200918-1_all.deb 716200 SHA256:24d487082fd805f9c37236df0d17a7ec157849837490113c8fc9407229acb58f

因此,即使通过“不安全”通道下载,您也可以检查校验和是否匹配。

相关内容