Radxa Rock 5C Lite and TeslaUSB #1021
k1asa
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Please note that this guide was written with my limited English proficiency and the assistance of Gemini, so there may be areas that could be improved. Feel free to point out any missing information or suggest corrections in the comments. I hope this note is helpful to you!
Preface
This guide explains how to enable USB OTG (Mass Storage Gadget) on the Radxa Rock 5C Lite, which features the RK3582 SoC. Since the RK3582 is essentially a binned version of the RK3588S, we can successfully reuse the RK3588's device tree overlays to enable the OTG port.
1. OS Image Preparation
First, you need to select and install the correct OS image.
Armbian_25.8.1_Rock-5c_trixie_vendor_6.1.115_minimal.img.xzNote: It is crucial to choose a Vendor (BSP) kernel image for the standard Rock 5C (non-Lite).
2. Verification Steps (Crucial)
After booting the OS, verify that the system contains the necessary components for OTG.
Check for UDC (USB Device Controller):
ls /sys/class/udc/Check for Kernel Modules:
Verify if the modules required for Mass Storage Gadget exist in your system.
Core OTG function
find /lib/modules/$(uname -r) -name "libcomposite.ko*"Mass Storage function
find /lib/modules/$(uname -r) -name "g_mass_storage.ko*"g_mass_storage.kois found.libcompositemight be built-in to the kernel, in which case it won't show up in thefindcommand.3. Enabling Hardware Overlay
You can enable OTG on the Rock 5C Lite (RK3582) by using the overlay intended for the RK3588.
Check Available Overlays:
Ensure that files like
rk3588-dwc3-peripheral.dtboorrock-5a-usb-otg.dtboexist in/boot/dtb/rockchip/overlay/.Edit Configuration:
Modify
/boot/armbianEnv.txtto assign the OTG function to the hardware.sudo nano /boot/armbianEnv.txtAdd the following line (or append to the existing
overlays=line):overlays=rk3588-dwc3-peripheralReboot and Verify:
Reboot the system and run
ls /sys/class/udc/again.If you see a name like
fc000000.usb, the hardware activation was successful.4. TeslaUSB Installation
Run the following command to start the installation:
For detailed configuration steps after installation, please follow the TeslaUSB Wiki.
My Hardware Setup
For those interested, here is the hardware I used for this setup:
Beta Was this translation helpful? Give feedback.
All reactions