Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 1583

USB - CDC ACM and Mass Storage

$
0
0

Hi,

I am using an R7S721033VCFP with Linux 4.9.98. I would like to use my target as a flash drive device to transfer files between the host(PC)-device(RZ/A1) and use the same port USB at the same time as a serial port.

I have enabled USB Gadget to use CDC Composite (ACM and Mass storage).

In my device tree I did the following modification:

/* USB Function ch0 */

&usbhs0 {

      status = "okay";

} ;

 

But neither of both functions (ACM or Mass Storage) are working. The driver (e.g:/dev/ttyGS0) is not create.

In my serial console log debug I have:

usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
renesas_usbhs e8010000.usbhs: host probed
renesas_usbhs e8010000.usbhs: no transceiver found
renesas_usbhs e8010000.usbhs: gadget probed
renesas_usbhs e8010000.usbhs: probed
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
no file given for LUN0
g_acm_ms e8010000.usbhs: failed to start g_acm_ms: -22
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver

 

For the mass storage I was thinking to do it to select the file for driver mass storage  to use:

$ echo /dev/mtd0 > /sys/devices/platform/e8010000.usbhs/gadget/lun0/file 


But the directory doesn't exist.

Does someone have any idea why it is not working?
Thanks.

 


Viewing all articles
Browse latest Browse all 1583

Trending Articles