BBB, USB client

Hello All.

I have a Beaglebone Black with debian 7.8 on it.
I have host with Ubuntu on it. Application on host reads and writes data to USB device.

In /sys/kernel/debug/usb/devices this USB device have configuration:

T: Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#= 3 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=XXXX ProdID=XXXX Rev= 0.00
S: Manufacturer=yyyy Ltd.
S: Product=zzzz
S: SerialNumber=00000000
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=150mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

I want to use my BBB instead that USB device, so it must have same configuration on host if I plug it.
(Of course, I need application on BBB to interact with USB-client driver to emulate original USB device, but it seems to be quite easy)
Default USB-client driver is g_multi.

So, what is the way to solve it:

  • Should I just change g_multi settings?
  • Should I build my own driver and install it?
  • Should I recompile BBB kernel?

Thanks in advance for your answers.