• sales

    +86-0755-88291180

Raspberry Pi CM4 CM4-DUAL-ETH-MINI User Guide

Overview

CM4-DUAL-ETH-MINI, a baseboard that can be used with Raspberry Pi Compute Module 4, supports 5V DC Type-C interface power supply and features dual Gigabit Ethernet ports, single-channel USB2.0 with a fan interface and standard Raspberry Pi 40Pin interface, which is suitable for scenarios requiring multiple network ports such as soft routing.

Caution

1. Do not plug or unplug any device other than a USB while it is powered on.
2. Confirm the fan voltage before connecting, only 5V fans are supported.
3. The Type C interface can be used as a power supply or as a USB interface to program the image (need to use the DIP switch to switch).
4. To ensure the normal power supply for CM4, please do not connect other devices when using the Type C interface to program the image.
5. When CM4 is in normal use, it needs to provide 5V/2A power supply for CM4. Otherwise, there may be problems such as automatic shutdown, frequency reduction, and so on.
6. USB2.0 is closed by default, if you want to open it, you need to add "dtoverlay=dwc2, dr_mode=host" in config.txt.
7. For Opwenwrt, see the instructions for use.
8. This expansion board does not support the POE function.

Dimension

  • CM4-DUAL-ETH-MINI


What's on Board


LabelNameDescription
140PIN GPIO headerFor connecting various HAT modules
2CM4 ConnectorApplies to all versions of Compute Module 4
3RJ45 Gigabit Ethernet portDual RJ45 Gigabit Ethernet port, support 10/100/1000M network access
ETHERNET 0: CM4 network port
ETHERNET 1: PCIe expansion network port
4USB 2.0 Type-A portsupports various USB devices
5FAN interface5V four-wire SH1.0 interface, supports speed measurement and speed regulation
6Reset buttonReset
7BOOT switchON: CM4 boots to USB Type C port
OFF: CM4 boots to eMMC or Micro SD
8Type-C interface5V/2.5A power supply port, can also be used as an eMMC programming interface
9Micro SD Card InterfaceFor a Micro SD card with the system to start the Compute Module 4 Lite
10RTL8111HGigabit LAN chip
11IndicatorPWR: Indicates the power status of the Raspberry Pi
SYS: Indicates the working status of the Raspberry Pi
12SYSTEM switchEEPROM_WP: prevent EEPROM from being overwritten
WiFi_DIS: WiFi disabled, only for CM4 version with antenna
BT_DIS: Bluetooth disabled, only for CM4 version with antenna

User Guide

Note

Do not plug or unplug any device while it is powered on.

Image Programming

FAN

  • This simple demo can control the fan automatically, which also will read the CPU temperature and automatically adjust.
  • Install the library:
sudo apt-get update
sudo apt-get install python-pip
sudo pip install RPi.GPIO

or

sudo apt-get update
sudo apt-get install python3-pip
sudo pip3 install RPi.GPIO
  • Example program download:
wget https://files.waveshare.com/upload/e/ee/CM4-DUAL-ETH-MINI-Example.zip
unzip CM4-DUAL-ETH-MINI-Example.zip -d ./CM4-DUAL-ETH-MINI-Example
cd CM4-DUAL-ETH-MINI-Example/FAN/
  • Run
python main.py

or

python3 main.py
  • (Optional) Auto startup:
sudo nano /etc/rc.local

Add (../ please change to the path of your own file) before the last line 'exit 0':

python ../main.py

or

python3 ../main.py

Network Card

  • The new version of the Raspberry Pi system kernel integrates the driver of RTL8111H, if you can't find the network card, you can try to upgrade the software package:
sudo apt update
sudo apt upgrade
  • If using another version of the system, please install the driver:
wget https://files.waveshare.com/upload/e/ee/CM4-DUAL-ETH-MINI-Example.zip
unzip CM4-DUAL-ETH-MINI-Example.zip -d ./CM4-DUAL-ETH-MINI-Example
cd CM4-DUAL-ETH-MINI-Example/Driver/
tar vjxf r8168-8.050.03.tar.bz2
cd r8168-8.050.03
sudo ./autorun.sh
  • (Optional) If you compile the kernel yourself, you can choose the following options to load the driver:
Device Drivers
 > Network device support
   > Ethernet driver support
     > Realtek devices
       > Realtek 8169/8168/8101/8125 ethernet support

OpenWrt

Introduction

Openwrt has the ability for full customization and extensibility. Openwrt is becoming more and more popular at present. Compared with commonly used wireless routers, OpenWrt's modifiable firmware allows us to customize router functions according to our own needs, such as single-arm routing, automatic Define routing policies, QoS, etc., intranet penetration, etc.
Note: Openwrt system will not provide any technical support if there is any problem during use, only the following tutorials and images are provided, and no other technical support other than hardware is provided.

TAG: Raspberry Pi screen WiFi Wireless ESP32 DDSM Motor Driver HAT For Direct Drive Servo Hub Motors For Raspberry Pi Raspberry Pi 5 PCIe to 4-CH M.2 NVMe 4-Ports SSD Board HAT Pi5 Four-Times Core3566104000 MPS2280D Raspberry Pi 5 PCIe to M.2 NVMe Dual SSD Adapter Board HAT Pi5 Double 2280 Sipeed MaixCAM Pro AI Camera Kit SG2002 RISC-V YOLO OpenCV Audio WIFI6 Linux Board IMU MicroPhone Speaker ESP32 Thermal imaging Raspberry Pi UGV Rover ROS2 PT AI OpenCV Robot Car MediaPipe Rockchip LuckFox Pico UART ESP32 C3 UART To CAN RP2040 LoRa-HF SpotPear ESP32-S3N8R8 7inch LCD Display TouchScreen 800×480 WiFi Bluetooth CAN RS485 Sensor Raspberry Pi 5 PCIe to M.2 NVMe SSD Adapter Board HAT Pi5-PCIe-MPS2242-2230-Board RV1103 Raspberry Pi 5 User Guide Raspberry Pi Pico 2 RP2350 industrial 6-ch Relay RS485 isolation protection 0.49inch OLED Screen Display 64×32 SSD1315 Arduino Raspberry Pi ESP32 Pico STM32