On Fri, Jan 23, 2026 at 5:46 PM Jose Quaresma via lists.openembedded.org <[email protected]> wrote: > > From: Shoudi Li <[email protected]> > > For the boards with multiple UDC ports, adb funtion will be impacted due > to below error. > > ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/adb/UDC > ls: write error: Device or resource busy > > Signed-off-by: Shoudi Li <[email protected]> > --- > .../android-tools-conf-configfs/android-gadget-start | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git > a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools-conf-configfs/android-gadget-start > > b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools-conf-configfs/android-gadget-start > index ca6c3df275..76b5e29624 100644 > --- > a/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools-conf-configfs/android-gadget-start > +++ > b/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools-conf-configfs/android-gadget-start
For some reason, there are two *android-tools-conf-configfs* recipes which seem identical except for this and a few other minor changes. I think this one in dynamic-layers/selinux should be removed instead of aligning it with the other recipe. > @@ -2,6 +2,8 @@ > > set -e > > -sleep 3 > +sleep 10 > > -ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/adb/UDC > +ls /sys/class/udc/ | head -n 1 | xargs echo -n > > /sys/kernel/config/usb_gadget/adb/UDC > + > +echo "Setting UDC $(ls /sys/class/udc/ | head -n 1) for USB ADB Gadget usage" > -- > 2.52.0 > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#123822): https://lists.openembedded.org/g/openembedded-devel/message/123822 Mute This Topic: https://lists.openembedded.org/mt/117415388/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
