I'm creating a device tree for the Motorola Moto G50. The device uses DWC3 USB controller.
In AOSP recovery, ADB over USB works, and
adb
(device? gadget?) is mounted correctly:
# mount
adb on /dev/usb-ffs/adb type functionfs (rw,relatime)
This mount is done by the Android init system in the on fs
trigger:
on fs
mkdir /dev/usb-ffs 0775 shell shell
mkdir /dev/usb-ffs/adb 0770 shell shell
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=2000
However, similar init commands (taken from the device's stock init scripts) when booting into the system:
mkdir /dev/usb-ffs 0775 shell system
mkdir /dev/usb-ffs/adb 0770 shell system
mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=1000,rmode=0770,fmode=0660
results in this error:
[ 36.024282] init: Command 'mount functionfs adb /dev/usb-ffs/adb uid=2000,gid=1000,rmode=0770,fmode=0660' action=boot (/vendor/etc/init/hw/init.qcom.rc:34) took 0ms and failed: mount() failed: No such device
Asked by Nate
(31 rep)
Feb 24, 2025, 12:06 AM
Last activity: Apr 6, 2025, 06:54 PM
Last activity: Apr 6, 2025, 06:54 PM