This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

dm368 usb slave问题



我想把dm368 作为usb从设备,插上PC后,在pc端显示成u盘

我的内核配置usb那块是这样的

1.<*>   Support for Host-side USB

2.[*]     USB device filesystem (DEPRECATED)

3.[*]     USB device class-devices (DEPRECATED)

4.<*>   Inventra Highspeed Dual Role Controller (TI, ADI, ...)

5. Driver Mode (USB Peripheral (gadget stack))  --->(X) USB Peripheral (gadget stack)

6. <*>   USB Mass Storage support

7.<*>   USB Gadget Support  --->

             USB Peripheral-->(X) Inventra HDRC USB Peripheral (TI, ADI, ...)

             <M>   USB Gadget Drivers

            <M>     File-backed Storage Gadget

但是我insmd g_file_storage后,PC上面没有反应,这是怎么回事呢????????????????????????????????????????????????????????

?????????????????????????????????????????????????????????

?????????????????????????????????????????????????????????

?????????????????????????????????????????????????????????

  • 在pc端显示成u盘,一般是指定的/dev下的nand分区或者sd卡分区吧,如果是在windows下,要把分区设置为fat32格式比较好,也可以试试其它的,比如作为网络设备

    insmod g_file_storage.ko file=/dev/<nand/sd> stall=0 removable=1