- Install ROS 2 Jazzy
- Create a ROS 2 workspace
- cd [YOUR_WORKSPACE]
source install/local_setup.bash
cd [YOUR WORKSPACE]/src
git clone https://github.com/WIT-IEEE-MATE-ROV/WU25.git --recurse-submodules
- Run
sudo ./build
in wiringOP directory
cd libgpiod
sudo ./autogen.sh --enable-tools=yes
make && make install
- I forgot.
- Profit!
cd [YOUR WORKSPACE]
(Don't build inside the package)colcon build
- Copy device tree blob file from firmware files
dtc -I dtb -O dts -o opi5.dts /usr/lib/firmware/6.1.0-1025-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb
- Edit
opi5.dts
to enable the spi4 peripheral
Find node spi@fecb0000
in opi5.dts and change the status
property to "okay"
- Turn
opi5.dts
into a.dtb
dtc -I dts -o ./rk3588s-orangepi-5.dtb opi5.dts
- Replace the device tree blob file with the modified version
sudo cp rk3588s-orangepi-5.dtb /usr/lib/firmware/6.1.0-1025-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb
- Reboot the Orange Pi 5
Now hopefully /dev/spidev4.1
shows up. If it doesn't you might need to run sudo modprobe spidev
to load the module.