AnsweredAssumed Answered

How To Use Norflash Simulation U disk

Question asked by xuhui li on Oct 29, 2016
Latest reply on Oct 30, 2016 by igorpadykov

In MCIMX6Q-SDB,SD and emmc  I can use usb gadget to realization it :

/ # insmod /lib/modules/4.1.15-1.1.0+ga4d2a08/kernel/fs/configfs/configfs.ko
/ # insmod /lib/modules/4.1.15-1.1.0+ga4d2a08/kernel/drivers/usb/gadget/libcomposite.ko
/ # insmod /lib/modules/4.1.15-1.1.0+ga4d2a08/kernel/drivers/usb/gadget/function/usb_f_mass_storage.ko
/ # insmod /lib/modules/4.1.15-1.1.0+ga4d2a08/kernel/drivers/usb/gadget/legacy/g_mass_storage.ko file=/dev/mmcb1k1

root@imx6qdlsolo:/lib/modules/4.1.15-1.1.0+ga4d2a08/kernel/drivers/usb/gadget/legacy# insmod g_mass_storage.ko file=/dev/mmcblk1
Mass Storage Function, version: 2009/09/11
LUN: removable file: (no medium)
LUN: file: /dev/mmcblk1
Number of LUNs
Number of LUNs=1
g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
g_mass_storage gadget: userspace failed to provide iSerialNumber
g_mass_storage gadget: g_mass_storage ready
connect to  pc:
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
max8903-charger max8903@0: USB Charger Disconnected.
max8903-charger max8903@0: USB Charger Connected.
g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage


in pc I can find the u disk .

but when I use norflash ,connect to pc it can not find the u disk ,

and how can I use Norflash to Simulation U disk in pc