How To Use Norflash Simulation U disk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How To Use Norflash Simulation U disk

724 Views
lixuhui112
Contributor I

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

log:
**********************************************************************************************
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
root@imx6qdlsolo:/lib/modules/4.1.15-1.1.0+ga4d2a08/kernel/drivers/usb/gadget/legacy#
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

Labels (3)
0 Kudos
1 Reply

512 Views
igorpadykov
NXP Employee
NXP Employee

Hi xuhui

seems it could be used in similar way only use /dev/mtdX

instead /dev/mmcblk, please check description of linux nor usage in

http://datasheets.bluetechnix.at/goto/dev-i.mx31/dev-i.mx31_softwareusermanual_v2.pdf 

also please check sect.4.6 Flash memory maps attached Linux Guide

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos