3.8 KiB
🛠️ EWS Installation Guide
A comprehensive guide for installing the Device Tree Overlay and kernel modules for the Universal Voron Power & CAN HAT (EWS).
📚 Table of Contents
🏔️ Radxa Rock OS
CAN support in Rock OS varies from version to version. Careful diagnosis is therefore required before installation.
🔍 Kernel Driver Diagnosis
Step 1: Check Available Modules
First, we check if the required kernel modules are present:
find /lib/modules/$(uname -r)/kernel/drivers/net/can -name "*.ko*"
If the list contains files with names that include rockchip_canfd or m_can, the modules are present and everything should work.
Step 2: Check Kernel Configuration
If no modules were found, we check the kernel configuration:
grep -E "CONFIG_CAN_ROCKCHIP|CONFIG_CAN_FD" /boot/config-$(uname -r)
🚦 Diagnosis Results
✅ Case A: CONFIG_CAN_ROCKCHIP=y
- Status: ✅ OK
- Meaning: The driver is built into the kernel
- Note: Does NOT appear under
lsmodand has no.kofile - Action: The overlay is sufficient for activation
⚠️ Case B: CONFIG_CAN_ROCKCHIP=m
- Status: ⚠️ Check required
- Meaning: The driver is a loadable module
- Check: Search for module file:
find /lib/modules/$(uname -r) -name "rockchip_canfd.ko*" - If file missing: Reinstall kernel packages:
sudo apt install --reinstall linux-image-rk3588*
❌ Case C: # CONFIG_CAN_ROCKCHIP is not set
- Status: ❌ CRITICAL ERROR
- Symptom: Output contains
# CONFIG_CAN_ROCKCHIP is not setand usually also# CONFIG_CAN_M_CAN is not set - Meaning: Kernel was compiled without CAN controller support
- Problem: The driver is completely missing
- DKMS Option: ⚠️ Practically impossible with SoC-internal drivers
- Solution: 🔄 Mandatory change of operating system/kernel (e.g. Armbian Vendor Kernel)
📄 Device Tree Setup (DTS)
After successful kernel diagnosis, the CAN overlay can be installed:
Installation via Radxa Setup Tool
-
📁 Change Directory
cd dts -
🛠️ Start Radxa Setup
sudo rsetup -
🧭 Navigation in Setup Menu
- Navigate to
Overlays➜Install 3rd party overlay
- Navigate to
-
📋 Select Overlay
- Choose
rk3588-can1-m1.dtsfrom the list
- Choose
-
🔄 Restart System
sudo reboot
✅ Verify Installation
After reboot, the CAN interface should be available:
ip link show can1
Expected Output:
3: can1: <NOARP> mtu 72 qdisc noop state DOWN mode DEFAULT group default qlen 10
link/can
⚠️ Important Notes
- 🔧 Jumper Settings: Ensure all jumpers on the EWS board are set correctly
- 🚨 Reboot Required: The system must be restarted after overlay installation
- 📋 Interface Name: The CAN interface will be available as
can1in the system - 🔌 Wiring: Check all connections before first operation
- 🏔️ OS Compatibility: This guide specifically refers to Radxa Rock OS
💡 Tip: For persistent problems, switching to Armbian with Vendor Kernel is recommended for better CAN support.
Note: The original documentation is in German (Installation.de.md). This English version is a translation for international users.