Facing issue while test usb host and device role

Which system do you use? Android, Ubuntu, OOWOW or others?

i am using Ubuntu

Which version of system do you use? Please provide the version of the system here:

i am using Ubuntu 22.04 minimal image.

Please describe your issue below:

After boot up the board board is being able to detect two USB camera and if i mention this entry for enable the device role

vim /boot/dtb/amlogic/kvim3.dtb.overlay.env

fdt_overlays=otg-device

than board is stop being able to detect camera and and work as a device and detect in host PC.

Post a console log of your issue below:

Without added overlay entry i am able to get device like below
root@khadas:~# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0c46:636b WaveRider Communications, Inc. IR_USB
Bus 001 Device 003: ID 0c49:e912 USB Camera USB Camera
Bus 001 Device 002: ID 1a40:0801 Terminus Technology Inc. USB 2.0 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

and if i mention entry like below
root@khadas:~# cat /boot/dtb/amlogic/kvim3.dtb.overlay.env
fdt_overlays=otg-device

After that device being able to detect on host PC but
it will stop detecting camera which is able to detect before without this entry.

Please guide me to enable the functionality that can detect camera on board and board also able to detect on host PC same time.

Hello @jaydip.ramavat

Could you try update the kernel and check again?

$ wget https://dl.khadas.com/.test/.1/linux-dtb-amlogic-5.15_1.7.4_arm64.deb 
$ wget https://dl.khadas.com/.test/.1/linux-image-amlogic-5.15_1.7.4_arm64.deb
$ sudo dpkg -i linux-dtb-amlogic-5.15_1.7.4_arm64.deb linux-image-amlogic-5.15_1.7.4_arm64.deb
$ sync
$ sudo reboot

I tried your suggestion, and it works fine. But if I want to make changes in my repo and build the image again, what suggestions or changes do I need to make in my repo to avoid same problem?

will you please guide me and suggest me changes please

thanks
jaydip

Hello @jaydip.ramavat

Just update you code to latest one:

Check OTG support wiring drivers and role config.

i have done and tested it works, thanks

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.