0011 MPW7(WiFi7 on Raspberry Pi 5):修订间差异
无编辑摘要 |
|||
第315行: | 第315行: | ||
--> | --> | ||
{{ | {{Contact_Us_icon}} |
2024年11月11日 (一) 10:22的最新版本
Keywords
Raspberry Pi 5, PCIe Expansion, WiFi7, Raspberry Pi5, Ubuntu, RPi OS
I. Introduction
The Raspberry Pi 5 features a 16-pin PCIe interface, through which various PCIe devices can be connected. This expansion board is specifically designed for the Raspberry Pi 5 to serve as a WiFi 7 adapter. This module requires driver installation to use WiFi 7 on the Raspberry Pi system, while it is plug-and-play under Ubuntu without needing additional drivers. The module also supports WiFi 6 and WiFi 5 via the M.2 E key interface.
II. Hardware Spec
1. PCIe expansion board designed specifically for the Raspberry Pi 5;
2. One M.2 E-Key PCIe interface, supporting the BE200 WiFi 7 module, with hardware also supporting WiFi 6(E) and WiFi 5, such as AX210, AX200, MT7922, and Intel 8265C;
3. One USB Bluetooth interface (built-in with the WiFi module), exposed via a 1.25mm 4-pin USB connector. To use the Bluetooth function, this USB must be connected to a USB 2.0 port on the Raspberry Pi 5, and it requires the appropriate drivers and profiles to be installed;
4. Reserved CSI/DSI cable routing slots, supporting 22-pin cables with 0.5mm pitch and 15-pin cables with 1mm pitch;
5. Board-mounted power indicator light ('PWR') and one WiFi activity indicator light ('ACT');
6. Uses an efficient DC-DC circuit;
7. Gold immersion PCB process, lead-free production, certified by UL, compliant with ROHS standards, and has a fire rating of 94V-0;
8. The board has four M2.5 mounting holes, with a recessed design on the top of the board to facilitate the use of the 40-Pin GPIO;
9. Optional PCB antenna or SMA antenna, with an IPEX4 interface;
10. Optional aluminum alloy enclosure.
III. Software Spec
3.1 Overview
This document uses Raspberry Pi OS and Ubuntu systems, tested with the BE200 (WiFi 7) module.
1)The version of the Raspberry Pi OS is: 2024-07-04-raspios-bookworm-arm64.img.xz
You can download the Raspberry Pi OS in:
https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit
2)The version of the Ubuntu system is: ubuntu-24.04-preinstalled-desktop-arm64+raspi.img.xz
You can download the Ubuntu system in:
https://ubuntu.com/download/raspberry-pi
3.2 System flashed onto the SD (TF) card
Click here to read the instructions for System flashing
IV. Work with Raspberry Pi OS
4.1 Installing WiFi 7 driver (BE200)
Note: Once the WiFi 7 driver (BE200) is successfully installed, the original WiFi module on the Raspberry Pi 5 will no longer be usable!
This installation procedure also applies to the AX210 (WiFi 6E) and AX200 (WiFi 6) modules.
4.1.1 Update the system and header files
Execute commands in the Raspberry Pi terminal:
sudo apt-get update
sudo apt install -y raspberrypi-kernel-headers firmware-iwlwifi flex yacc
4.1.2 Download and extract the source code
Execute commands in the Raspberry Pi terminal:
mkdir wifi && cd wifi
wget http://www.mcuzone.com/wiki/0011_MPW7/backport-iwlwifi-20231029.tar.bz2
sudo tar -xvf backport-iwlwifi-20231029.tar.bz2
4.1.3 Compilation Environment
Execute commands in the Raspberry Pi terminal:
sudo make defconfig-iwlwifi-public
sudo sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config
4.1.4 Compile source code
Execute commands in the Raspberry Pi terminal:
sudo make -j 4
sudo make install
At this point, the system will prompt you to restart. Please do not restart yet.
4.1.5 Install firmware (not necessary for AX200 or AX210)
Execute commands in the Raspberry Pi terminal:
cd ..
cd Downloads
wget http://www.mcuzone.com/wiki/0011_MPW7/firmware_wifi7.zip
unzip firmware_wifi7.zip
sudo cp iwlwifi-gl-c0-fm-c0-86.ucode /lib/firmware
sudo cp iwlwifi-gl-c0-fm-c0.pnvm /lib/firmware
Then reboot system:
sudo reboot
4.2 Test of WiFi 7 module: BE200
After restarting the system, we execute lspci
in the terminal:
You can see the WiFi 7 module.
Execute ifconfig -a
to view the information of the wireless network card (wlan0):
At this point, you can use the BE200 (WiFi 7) module to connect to a wireless AP through the network connections settings:
In the network connection information, you can also see the network connection using the iwlwifi
driver:
Connect to the internet (200M broadband) using the BE200 (WiFi 7) module and perform a speed test, results as follows:
Note: Network speed tests are influenced by the network environment and testing methods. The speeds shown are for reference only and may vary based on actual conditions!
Connect to the WiFi 7 router and perform a speed test:
Note: All tests here are conducted using SSH to connect to the development board.
The router used is the Xiaomi BE6500 Pro, a WiFi 7 + quad-port 2.5G router. The Raspberry Pi 5 with WiFi 7 is approximately 1 meter away from the router.
Using the BE200 + Raspberry Pi 5, connect to the WiFi 7 wireless network and perform an iperf3 speed test with a Windows system (2.5G USB network card, IP address: 192.168.8.197) connected to the same router:
Speed test with 30 threads, results as follows
iperf3 -c 192.168.8.197 -P 30
Speed test with 30 threads, results as follows
iperf3 -c 192.168.8.197
Approximately 500 Mbps.
For comparison, we replaced the WiFi 7 module with a WiFi 6 module (AX210) and performed the same tests.
Speed test with 30 threads, results as follows:
Approximately 847 Mbps.
Single-thread speed test, results as follows:
iperf3 -c 192.168.8.197
Approximately 456Mbps。
Note: Network speed tests are influenced by the network environment and testing methods. The speeds shown are for reference only and may vary based on actual conditions!
4.3 Bluetooth Testing
Connect the 1.25mm 4-pin USB Bluetooth interface to the USB 2.0 port on the Raspberry Pi 5:
On Raspberry Pi OS, the Bluetooth module of the Raspberry Pi 5 is recognized directly. Click on the device icon in the top-right corner of the desktop, then click Add Device...:
In the opened window, the Bluetooth module will automatically scan for nearby connectable Bluetooth devices, as shown in the figure:
Click on the phone to pair with it. The pairing process on Raspberry Pi OS and the phone is shown in the figures below:
After pairing successfully, click on the 'raspberrypi' device on your phone. Once connected, the Raspberry Pi is recognized as an audio device, as shown in the figure below:
In Raspberry Pi OS, you can also see that the connection was successful:
V. Work with Ubuntu System
The version of Ubuntu used for testing is as follows:
5.1 WiFi7(BE200)
The BE200 (WiFi 7) module is plug-and-play under Ubuntu and does not require additional drivers. After the system starts, execute lspci
in the terminal:
You can see the WiFi 7 module.
Execute ifconfig -a
to view the information of the WiFi 7 wireless network card (wlp1s0f0). wlan1
is the built-in wireless network card of the Raspberry Pi 5:
In the 'Wi-Fi' menu in the top-right corner of the screen, there is a 'PCI Wi-Fi' option, which is the WiFi 7 module:
After connecting to the wireless AP using the 'PCI Wi-Fi', you can see a wireless WiFi named 'Intel' in the 'All Networks' list. This is the WiFi 7 module. Once connected successfully, you can browse the internet using the WiFi 7 module
Connect to the internet (200M broadband) using the BE200 (WiFi 7) module and perform a speed test, results as follows:
Note: Network speed tests are influenced by the network environment and testing methods. The speeds shown are for reference only and may vary based on actual conditions!
If using the built-in Firefox browser in Ubuntu results in slow performance or frequent unresponsiveness, it is recommended to install the lightweight browser Falkon:
sudo apt install falkon
5.2 WiFi6(AX210/AX200)
The WiFi 6 modules (AX200 and AX210) are also plug-and-play under Ubuntu system and do not require additional drivers. Follow the same steps as above, and the execution results are as follows:
AX200:
AX210:
5.3 Bluetooth Testing
Under the Ubuntu system, the Bluetooth module of the Raspberry Pi 5 is recognized directly. Click on the device icon in the top-right corner of the desktop, and you will see that Bluetooth is already turned on:
Click on the arrow next to Bluetooth, then click Bluetooth Settings to open the Bluetooth settings:
The Bluetooth module will automatically scan for nearby connectable Bluetooth devices, as shown in the figure:
We can select the desired Bluetooth device to connect. The following is an example of pairing with a phone:
After the pairing is successful, the device will show "Connected". You can see this device (phone) in the Bluetooth menu in the top-right corner of the desktop:
Ubuntu system can recognized the phone, and the phone recognizes the Raspberry Pi 5 as a headset:
Contact Us
Email: mcuzone@vip.qq.com
Tel: +86(0)13957118045
If there are any omissions, errors, or infringements on this page, please contact us through the above methods. Thank you!
Copyright 2004-2024 Wildchip