geerlingguy / raspberry-pi-pcie-devices

Raspberry Pi PCI Express device compatibility database
http://pipci.jeffgeerling.com
GNU General Public License v3.0
1.6k stars 145 forks source link

Test Waveshare Dual Gigabit Ethernet 5G/4G Base Board #380

Closed geerlingguy closed 2 years ago

geerlingguy commented 2 years ago

Waveshare site link: https://www.waveshare.com/cm4-dual-eth-4g-5g-base.htm — and it's already on the site: https://pipci.jeffgeerling.com/boards_cm/waveshare-dual-gb-ethernet-5g-4g-base-board.html

I just got mine today:

DSC06286

DSC06287

DSC06284

DSC06285

I plan on testing it with a couple different 4G LTE modems, and I love the compact form factor plus the case and fan that's included... this will be fun to compare to DFRobot's board, Seeed's board, and the most recent one I tested, 52Pi's routerboard.

geerlingguy commented 2 years ago

Waveshare's Wiki shows how to enable the PWM fan control using cm4io-fan (here's my article on it: Controlling PWM fans with the Raspberry Pi CM4 IO Board's EMC2301.

But the wiki was missing a few parts (especially necessary when running on the Lite install). Before cloning https://github.com/neg2led/cm4io-fan you need to:

$ sudo apt-get install -y raspberrypi-kernel-headers dkms git

And it seems it's not actually required to comment out #dtparam=audio=on, as stated in their wiki. I left that enabled, rebooted, and the fan control seemed to continue working fine:

pi@pi-router:/sys/class/hwmon $ cd hwmon2
pi@pi-router:/sys/class/hwmon/hwmon2 $ ls
device  fan1_fault  fan1_input  fan1_target  name  of_node  power  subsystem  uevent
pi@pi-router:/sys/class/hwmon/hwmon2 $ cat name
emc2301
pi@pi-router:/sys/class/hwmon/hwmon2 $ ls power
autosuspend_delay_ms  control  runtime_active_time  runtime_status  runtime_suspended_time
pi@pi-router:/sys/class/hwmon/hwmon2 $ cat fan1_target 
2250
pi@pi-router:/sys/class/hwmon/hwmon2 $ cat fan1_input 
2270

and:

$ dmesg
[   10.174134] emc2301: loading out-of-tree module taints kernel.
[   10.176458] emc2301 10-002f: EMC2301 detected
[   10.176498] emc2301 10-002f: Have 1 fans configured in DT
[   10.176522] emc2301 10-002f: Fan 0 Cooling step is 250 RPM, minimum 500, max 2500 RPM
[   10.186115] emc2301 10-002f: registering a cooling device
geerlingguy commented 2 years ago

Trying to get the 4G modem up...

pi@pi-router:~ $ echo "6" > /sys/class/gpio/export
pi@pi-router:~ $ echo "out" > /sys/class/gpio/gpio6/direction
pi@pi-router:~ $ echo "1" > /sys/class/gpio/gpio6/value
pi@pi-router:~ $ echo "0" > /sys/class/gpio/gpio6/value
pi@pi-router:~ $ echo "6" > /sys/class/gpio/unexport

This got the STA LED to turn off, then on.

The Wiki has instructions to install minicom and connect via USB (/dev/ttyUSB2), but that device is not listed. I'm guessing the Sierra Wireless EM7565 isn't set to work in USB mode by default.

geerlingguy commented 2 years ago

More exploration on the LTE modem will continue in https://github.com/geerlingguy/raspberry-pi-pcie-devices/issues/366

geerlingguy commented 2 years ago

Initial testing is complete, I'm happy with this hardware... and will be considering whether it could run as my primary router—I'll be testing that more later, though. For now, I know all the main bits work, and that's good enough for me.

geerlingguy commented 2 years ago

Also linking #367