帮助:使用ubuntu服务器18.04无法在树莓派4上连接5G Wifi

Sam*_*amZ 2 networking raspberrypi

我使用了在网站上下载的arm64版本的相同镜像: https: //ubuntu.com/download/raspberry-pi

由于pi3和pi4的下载链接是一样的,所以我下载了其中一张,刷写到2张SD卡,分别插入树莓派pi3B+和树莓派pi4B(4Gb型号)

我使用默认的 netplan 包来配置我的 WLAN 连接,配置文件位于 /etc/netplan/50-cloud-init.yaml

# This file is generated from information provided by the datasource.  Changes
# to it will not persist across an instance reboot.  To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
    version: 2
    ethernets:
        eth0:
            dhcp4: true
            optional: true
    wifis:
        wlan0:
            dhcp4: true
            optional: true
            access-points:
                "XXXXX_5G":
                    password: "********"
Run Code Online (Sandbox Code Playgroud)

我在 pi3 和 pi4 上使用相同的配置,但 pi4 上的 WIFI 无法工作,ip addr 命令显示接口已关闭。

我把pi4上的“_5G”后缀(也就是2.4G wifi的ssid)去掉,“netplan apply”后就成功连接网络了。

我不知道这是一个已知的驱动程序问题还是类似 netplan 问题?

我尝试交换两张 SD 卡,pi4 只是无法连接到 5G wifi AP。

预先非常感谢!

小智 5

编辑这个文件:

sudo vim /etc/default/crda
Run Code Online (Sandbox Code Playgroud)

并添加您的国家/地区代码(US对我来说)