Hi @wei_yan,
Thank you for your previous response.
I would like to provide an update and express my serious frustration with the ROCK 4D’s development experience under Debian.
I purchased this board for embedded AI and real-time audio development. With my previous Luckfox board, I could simply connect a USB cable and start using ADB. On the ROCK 4D, however, I have spent almost my entire weekend (two days) trying to get basic wired ADB debugging working.
This has consumed 40 dollar of my paid AI coding token quota and significantly delayed my actual development work.
What I have confirmed
I am running Debian on the ROCK 4D, with kernel 6.1.84-13-rk2410-nocsf.
-
Switching the USB controller to device mode alone did not make wired ADB work.
-
The USB Gadget, FunctionFS, and ADB service configuration required additional debugging.
-
We encountered USB reconnection and daemon lifecycle issues involving worker shutdown and FunctionFS endpoint handling.
-
After implementing local software fixes, wired ADB successfully completed shell access, file transfers, and three consecutive physical unplug/replug tests.
-
However, this working configuration is only valid for the current boot. Automatic recovery after reboot has NOT been implemented or verified.
The same USB-A cable and USB-C hub worked throughout the successful tests, so the hardware connection itself is functional.
Another major concern: ADB permissions
When I initially accessed the board through the original ADB service, the shell ran under a numeric UID (2000) without a corresponding username in the system’s account database, and I could not use sudo.
We later introduced a separate restricted UID (2001) for our own authenticated ADB implementation. That is our custom security configuration, not a claim about Radxa’s default UID.
However, I still do not understand the intended administrative workflow for developers using the official Debian image.
If ADB cannot perform necessary system administration tasks, developers are forced to return to an HDMI monitor and keyboard repeatedly, which defeats much of the convenience of wired debugging.
My questions to Radxa
-
Is there an officially supported, reboot-persistent USB ADB configuration for the ROCK 4D Debian image? I want to power on the board, connect USB, and run adb shell without manually configuring USB every time.
-
Does the official Debian image support reliable USB ADB reconnection after unplugging and reconnecting the cable?
-
What is the officially recommended way to perform authenticated administrative operations through ADB? Why does the original ADB shell use a numeric UID without a normal user account or an obvious privilege-escalation workflow?
-
Could Radxa provide a complete, tested Debian-specific USB ADB setup guide, including OTG configuration, service initialization, reboot persistence, and recovery?
The current ROCK 4D ADB documentation focuses on Android. I am specifically asking about Debian.
I am not asking for unrestricted root ADB access. I am asking for a secure, documented, and practical development workflow.
My expectation for a development board is simple: connect it to my MacBook, power it on, and start debugging without repeatedly connecting a monitor, typing administrator commands locally, or reconnecting the USB cable.
I am genuinely considering returning this board because of how much time and effort this basic feature has already cost me.
I would appreciate a concrete official solution or confirmation of whether this functionality is currently supported in the Debian image.
Thank you.