Close

Setting Up the Compute Module 4

A project log for Raspberry Pi Computing Cluster

Raspberry Pi HPC for molecular dynamic & AI models in high school classrooms

michael-wangMichael Wang 01/07/2024 at 09:110 Comments

We set off building a compute cluster using the Raspberry Pi Compute Module 4 for its smaller form factor and higher customizability. 

CM4 with WaverShare's CM4-DUAL-ETH-MINI

Day 1 - 3

5 Jan 2024 - 7 Jan 2024


Set up and Flash the CM4 EMMC (Need to use Legacy Raspberry Pi OS Bullseye)

When connecting a WaveShare board with the CM4 don't fret to press hard to make sure it connects properly with an audible click.

Set up ethernet networking

manually configure network

the file

sudo nano /etc/network/interfaces.d/eth0

the content

auto eth0
iface eth0 inet dhcp


```
Replace the `dhcp` option with `static`, and add the IP address, 
netmask, gateway, and DNS server information. For example:


#auto eth0
#iface eth0 inet static
#    address 192.168.1.100
#    netmask 255.255.255.0
#    gateway 192.168.1.1
#    dns-nameservers 180.76.76.76

list of DNS servers used Baidu's

the file

sudo nano /etc/resolv.conf

the content 

nameserver 180.76.76.76 
netowrk error even after correct setup -> incompatible router problem

The CM4 didn't work on the Huawei router that came with 中国电信 (ISP) but worked on the newifi router.

router that worked
router that didn't work

After switching the connected router, we were able to successfully ping baidu.com with 45~ ms.

OpenMPI is not OpenMP. OpenMP is for a single device with shared memory while OpenMPI is for multiple devices.

Discussions