On Fri, Jan 23, 2026 at 05:50:20PM +0000, Jose Quaresma 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

Ok, it is imacted, what is to be done?

> 
> Signed-off-by: Shoudi Li <[email protected]>
> Signed-off-by: Jose Quaresma <[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
> @@ -2,6 +2,8 @@
>  
>  set -e
>  
> -sleep 3
> +sleep 10

Why?

>  
> -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
> 
> 

-- 
With best wishes
Dmitry
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#123823): 
https://lists.openembedded.org/g/openembedded-devel/message/123823
Mute This Topic: https://lists.openembedded.org/mt/117422470/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to