• sales

    +86-0755-88291180

Raspberry Pi PCIe-Packet-Switch-4P User Guide

Overview

Extended 4-Ch PCIe Gen 2 × 1 Expander, Stable Performance, Driver-Free

Features

  • Extending 1-ch PCIe to 4-ch PCIe Gen 2 × 1 sockets, PCIe Gen 1 × 1 compatible.
  • Flexible power supply options: powered from either PCIe 12V, OR from 12V DC header.
  • Adopts ASM1184 controller, driver-free, plug and play.
  • Not allow direct plugging onto the PC motherboard.

Note

  • When connecting to Compute Module 4 PoE 4G Board or the Compute Module 4 IO Board, no external power adapter is required.
  • This adapter does not require a driver when using it except the PCIe devices.
  • The module is powered by 12V. When 12V cannot be provided, it can also be powered by 5V.
  • Use 5V power supply, the power will flow back to the PCIe 12V, you need to ensure that it will not affect the normal operation of the motherboard and then use 5V power supply.
  • The maximum output current of each PCIe interface 3.3V power supply must be less than 1.5A.

Supported Device

Support list:click here
For other devices, you need to rebuild the kernel


Build Kernel

You can directly refer to:Click it

Ubuntu PC is required to build the kernel
Hereby environment:Ubuntu-20.04.2.0-desktop-amd64 :

Set in Ubuntu PC

Install dependencies

 sudo apt install git bc bison flex libssl-dev make libc6-dev libncurses5-dev

Install cross-compilation tools

 sudo apt install neovim
 wget https://releases.linaro.org/components/toolchain/binaries/7.5-2019.12/aarch64-linux-gnu/gcc-linaro-7.5.0-2019.12-x86_64_aarch64-linux-gnu.tar.xz

Add the line export PATH=$PATH:~/gcc-linaro/bin to .bashrc

nvim ~/.bashrc

Update the environment parameters

 source ~/.bashrc 

Clock the linux repo

 git clone --depth=1 https://github.com/raspberrypi/linux

Generate the .config file

 cd linux
 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bcm2711_defconfig

Configure the file and add the driver

 make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- menuconfig

Build the kernel

 make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image modules dtbs


Configure Raspberry Pi
Set the password
 sudo su
 passwd

Modify sshd_config file:

 sudo nano /etc/ssh/sshd_config

PermitRootLogin prohibit-password to #PermitRootLogin yes restart Raspberry Pi

 sudo reboot
Set in Ubuntu PC:
 sudo sshfs root@192.168.x.x:/ /mnt/pi-ext4
 sudo sshfs root@192.168.x.x:/boot /mnt/pi-fat32
 #192.168.x.x should be the IP of Raspberry Pi
 sudo env PATH=$PATH make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=/mnt/pi-ext4 modules_install
 sudo cp arch/arm64/boot/Image /mnt/pi-fat32/kernel8.img
 sudo cp arch/arm64/boot/dts/broadcom/*.dtb /mnt/pi-fat32/
 sudo cp arch/arm64/boot/dts/overlays/*.dtb* /mnt/pi-fat32/overlays/
 sudo cp arch/arm64/boot/dts/overlays/README /mnt/pi-fat32/overlays/
 sudo apt install make

If you get the read: Connection reset by peer error, please detect the ssh public key and test it again

 ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.x.x
  #192.168.x.x should be the IP of the Raspberry Pi
TAG: Raspberry Pi CSI-to-HDMI DeepSeek AI Voice Chat ESP32 S3 Development Board 1.8 inch AMOLED Display 368×448 1.8inch TouchScreen Programmable Watch QMI8658 /MIC /Audio /Battery Milk-V Duo User Guide Python HTTP Request Communication PI5 ABS Case Sipeed Lichee Tang Nano 20K FPGA RISCV Open-Source Retro-Game Linux MINI Development Board GW2AR-18 Luckfox Pico Max Raspberry Pi DSI Scr Luckfox Pico Camera User Guide XIAO RA4M1 Tiny SuperMini Board For Arduino Uno IDE For SeeedStudio R7FA4M1 Raspberry Pi 4 Sound Card Industrial USB TO 4CH RS232/485/422/TTL Serial UART Converter FT4232HL Desktop Ornament ESP32-P4-NANO Development Board RISC-V WiFi6 MIPI CSI Camera / 10.1 inch DSI Display / USB / RJ45 Ethernet / POE / Audio Buzzer E-Paper Luckfox Pico i7-1165G7 USB IR Infrared Thermal Imaging Camera C 45°/88° 160x120 For Phone/PC High Temp Warning/Take Photo /Recording video Sipeed Lichee Tang Nano1K FPGA MINI Development Board GW1NZ-1 Raspberry Pi 3.5 inch LCD G Display Resistive TouchScreen 60fps ST7796 320x480 Also For Arduino/Pico2/ESP32/RP2040/RP2350