VIM3 RNDIS Gadget is not working

I’m using VIM3 PRO to study USB otg mode but I have some issue.
I built kernel Image with mainline ubuntu kernel, following GitHub - khadas/fenix: One-stop script set to build Ubuntu/Debian images

But I have some problem in using RNDIS Gadget, with VIMs: RNDIS Gadget

I appended otg-device in /boot/env.txt to enable OTG device mode and reoot and tried commad “sudo systemctl start rndis-gadget.service”

● usb-gadget-khadas.service - USB Gadget
     Loaded: loaded (/lib/systemd/system/usb-gadget-khadas.service; disabled; vendor preset: enabled)
     Active: active (exited) since Mon 2022-09-19 22:55:35 KST; 5s ago
    Process: 1911 ExecStart=/usr/local/bin/usb-gadget (code=exited, status=0/SUCCESS)
   Main PID: 1911 (code=exited, status=0/SUCCESS)

Sep 19 22:55:34 Khadas usb-gadget[1936]: ln: failed to create symbolic link '/sys/kernel/config/usb_gadget/khadas/configs/c.1/rndis.0'>Sep 19 22:55:34 Khadas usb-gadget[1938]: cat: /sys/kernel/config/usb_gadget/khadas/functions/rndis.0/ifname: No such file or directory
Sep 19 22:55:34 Khadas usb-gadget[1911]: Done creating RNDIS USB Gadget...
Sep 19 22:55:34 Khadas usb-gadget[1911]: Configuring ADB USB gadget driver…
Sep 19 22:55:34 Khadas usb-gadget[1941]: mkdir: cannot create directory ‘/sys/kernel/config/usb_gadget/khadas/functions/ffs.adb’: No s>Sep 19 22:55:34 Khadas usb-gadget[1943]: mount: /dev/usb-ffs/adb: unknown filesystem type 'functionfs'.
Sep 19 22:55:34 Khadas usb-gadget[1945]: ln: failed to create symbolic link '/sys/kernel/config/usb_gadget/khadas/configs/c.1/ffs.adb'>Sep 19 22:55:34 Khadas usb-gadget[1946]: adbd: error while loading shared libraries: libcutils.so: cannot open shared object file: No >Sep 19 22:55:35 Khadas usb-gadget[1911]: /usr/local/bin/usb-gadget: 85: echo: echo: I/O error
Sep 19 22:55:35 Khadas systemd[1]: Finished USB Gadget.

Mainline kernel donesn’t support it, you can try 4.9 kernel.