I'm using a Atmel SAMA5D3, I have created two phram devices /dev/mtd0 and /dev/mtd1 I am trying to attach them to a gadget mass storage module.    insmod g_acm_ms.ko file=/dev/mtd0,/dev/mtd1The error I get is   g_acm_ms 500000.gadget: failed to start g_acm_ms: -22   insmod: can't insert 'g_acm_ms.ko': Invalid argumentand from dmesg|tail   atmel_usba_udc 500000.gadget: MMIO registers at 0xf8030000 mapped at c48d0000   atmel_usba_udc 500000.gadget: FIFO at 0x00500000 mapped at c4e00000   lun0: invalid file type: /dev/mtd0   g_acm_ms 500000.gadget: failed to start g_acm_ms: -22   lun0: invalid file type: /dev/mtd0   g_acm_ms 500000.gadget: failed to start g_acm_ms: -22If I create a backing file   dd if=/dev/zero of=backing.file bs=1M count=4   insmod g_acm_ms.ko file=backing.fileIt work fineHow do I attach the mtd devices instead?
Attaching a phram mtd0 device to gadget serial mass storage
linux;usb;kernel modules;ram;ramdisk