如何把开发板配置成usb device 的从设备模式

Is it necessary to change kbi portmode from PCIE to USB? and how to change it

no need it ! OTG must work in any case

PS : start krescue > KBI - device configure → … | or from uboot console → kbi help

still not work, PC cannot recognize the board as a USB device

I have changed dtb for otg mode as follow:

&dwc2_a {
status = “okay”;
/** 0: normal, 1: otg+dwc3 host only, 2: otg+dwc3 device only*/
controller-type = <2>;
};

  1. check you kernel config
  2. if something build as module u need use modprobe ??? before use it

PS: show lsmod and zcat /proc/config.gz | grep -e _G_ -e _USB_GA -e _USB_CO -e _USB_F output

There are other problems
I burned this image to the board

linux-image-amlogic-mainline_0.9.5_arm64.deb
linux-dtb-amlogic-mainline_0.9.5_arm64.deb

then reboot it ,PC recognized the device name as WorldCup Device.
but I cant operate it and the HDMI not working properly

QQ截图20201028113831

check how works HDMI with krescue if it will be ok

just add video=HDMI-A-1:1920x1080@60e to kernel boot args