Looking for solution to enable USB peripheral device thru USB-C

Hi there,
I am looking for a way to enable USB peripheral device mode ( USB gadget ) to ethernet or general serial bulk in/out.
Just tried adjust kernel menuconfig to enable USB gadget menus, but not works.
USB-C port just detects “rockchip-dwc3 usb0: USB peripheral connected” then nothing when I connect to USB-C cable PC to Rock960B.
Anyone can help me make it works for USB gadgets ?
Regards, Raph.

Android or Linux?

For Linux, on rock960

modprobe g_ether
ifconfig usb0 up

On PC, check dmesg, if new usb device is plugged in

Dear, in Linux.
My case it doesn’t work correctly.
Halts with modprobe occurs an error by 'lib/modules/kernel version/modules.dep.bin not found".
Am I need more different menuconfig on USB gadgets ?
dmesg occurs USB peripheral device connected and just done for it. no more log.
Regards, Raph. K.

ps
here root tty ( ttyFIQ )

>  modprobe g_ether
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.179/modules.dep.bin'
modprobe: FATAL: Module g_ether not found in directory /lib/modules/4.4.179

Did you update the kernel?

https://apt.96rocks.com/

You need to install the linux-image-4.4.154-83-rockchip package.

Dear, hipboi.
Ok, I will try !