Has anybody ever succeeded to make the nand flash as usb mass storage?
According to the document, we need to set following REG items:

[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
"Dll"="usbmsfn.dll"
"Vendor"=dword:17CC
"Product"=dword:2280
"InterfaceSubClass"=dword:06
"InterfaceProtocol"=dword:50
"DeviceName"="DSK1:"
"Removable"=dword:0

The key operation is to change the "DeviceName"="DSK1:"
I have tried to change the DeviceName, such as "DSK1" , "MSFLASH" etc, but
not succeed yet!

Is there anyone succeed? (CE5 , S3C2440 BSP)

Re: Have you succeed to make the nand flash as usb mass storage? by Ashutosh

Ashutosh
Thu Jun 07 10:43:49 CDT 2007

> Has anybody ever succeeded to make the nand flash as usb mass storage?
Yes

I am not sure which document you are referring to but you also need to
change the default client driver. Have you done that?
See this document for CE 5.00 -
ms-help://MS.WindowsCE.500/wceddk5/html/wce50grfusbmassstorageclassdriverregistrysettings.htm

[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=- ; erase previous default
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"="Mass_Storage_Class"


--
Ashutosh Zade
Applied Data Systems
www.applieddata.net
Microsoft WEP Gold-Level Member


"zhoumc" <zhoumc@hotmail.com> wrote in message
news:%23e5IGXRqHHA.5092@TK2MSFTNGP04.phx.gbl...
> Has anybody ever succeeded to make the nand flash as usb mass storage?
> According to the document, we need to set following REG items:
>
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
> "Dll"="usbmsfn.dll"
> "Vendor"=dword:17CC
> "Product"=dword:2280
> "InterfaceSubClass"=dword:06
> "InterfaceProtocol"=dword:50
> "DeviceName"="DSK1:"
> "Removable"=dword:0
>
> The key operation is to change the "DeviceName"="DSK1:"
> I have tried to change the DeviceName, such as "DSK1" , "MSFLASH" etc, but
> not succeed yet!
>
> Is there anyone succeed? (CE5 , S3C2440 BSP)
>



Re: Have you succeed to make the nand flash as usb mass storage? by zhoumc

zhoumc
Fri Jun 08 07:40:55 CDT 2007

yes , I have set "DefaultClientDriver"="Mass_Storage_Class". and when I
insert the usb line , I can see a little icon showed on the PC taskbar tray
just like other USB mass device, but never saw the disk name in the
explorer.


"Ashutosh Zade" <www.applieddata.net>
wrote:uhreoqRqHHA.1296@TK2MSFTNGP06.phx.gbl...
>> Has anybody ever succeeded to make the nand flash as usb mass storage?
> Yes
>
> I am not sure which document you are referring to but you also need to
> change the default client driver. Have you done that?
> See this document for CE 5.00 -
> ms-help://MS.WindowsCE.500/wceddk5/html/wce50grfusbmassstorageclassdriverregistrysettings.htm
>
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> "DefaultClientDriver"=- ; erase previous default
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> "DefaultClientDriver"="Mass_Storage_Class"
>
>
> --
> Ashutosh Zade
> Applied Data Systems
> www.applieddata.net
> Microsoft WEP Gold-Level Member
>
>
> "zhoumc" <zhoumc@hotmail.com> wrote in message
> news:%23e5IGXRqHHA.5092@TK2MSFTNGP04.phx.gbl...
>> Has anybody ever succeeded to make the nand flash as usb mass storage?
>> According to the document, we need to set following REG items:
>>
>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
>> "Dll"="usbmsfn.dll"
>> "Vendor"=dword:17CC
>> "Product"=dword:2280
>> "InterfaceSubClass"=dword:06
>> "InterfaceProtocol"=dword:50
>> "DeviceName"="DSK1:"
>> "Removable"=dword:0
>>
>> The key operation is to change the "DeviceName"="DSK1:"
>> I have tried to change the DeviceName, such as "DSK1" , "MSFLASH" etc,
>> but not succeed yet!
>>
>> Is there anyone succeed? (CE5 , S3C2440 BSP)
>>
>
>



Re: Have you succeed to make the nand flash as usb mass storage? by zhoumc

zhoumc
Sat Jun 09 21:54:38 CDT 2007

I only made one part On the Nand flash , and the part is a PART_DOS32 part,
and all application programs are on that part. Can I make this part for USB
MASS Storage?

"zhoumc" <zhoumc@hotmail.com> wrote:
> yes , I have set "DefaultClientDriver"="Mass_Storage_Class". and when I
> insert the usb line , I can see a little icon showed on the PC taskbar
> tray just like other USB mass device, but never saw the disk name in the
> explorer.
>
>
> "Ashutosh Zade" <www.applieddata.net>
> wrote:uhreoqRqHHA.1296@TK2MSFTNGP06.phx.gbl...
>>> Has anybody ever succeeded to make the nand flash as usb mass storage?
>> Yes
>>
>> I am not sure which document you are referring to but you also need to
>> change the default client driver. Have you done that?
>> See this document for CE 5.00 -
>> ms-help://MS.WindowsCE.500/wceddk5/html/wce50grfusbmassstorageclassdriverregistrysettings.htm
>>
>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
>> "DefaultClientDriver"=- ; erase previous default
>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
>> "DefaultClientDriver"="Mass_Storage_Class"
>>
>>
>> --
>> Ashutosh Zade
>> Applied Data Systems
>> www.applieddata.net
>> Microsoft WEP Gold-Level Member
>>
>>
>> "zhoumc" <zhoumc@hotmail.com> wrote in message
>> news:%23e5IGXRqHHA.5092@TK2MSFTNGP04.phx.gbl...
>>> Has anybody ever succeeded to make the nand flash as usb mass storage?
>>> According to the document, we need to set following REG items:
>>>
>>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
>>> "Dll"="usbmsfn.dll"
>>> "Vendor"=dword:17CC
>>> "Product"=dword:2280
>>> "InterfaceSubClass"=dword:06
>>> "InterfaceProtocol"=dword:50
>>> "DeviceName"="DSK1:"
>>> "Removable"=dword:0
>>>
>>> The key operation is to change the "DeviceName"="DSK1:"
>>> I have tried to change the DeviceName, such as "DSK1" , "MSFLASH" etc,
>>> but not succeed yet!
>>>
>>> Is there anyone succeed? (CE5 , S3C2440 BSP)
>>>
>>
>>
>
>



Re: Have you succeed to make the nand flash as usb mass storage? by zhoumc

zhoumc
Mon Jun 11 09:04:02 CDT 2007

It sames nobody could help me...


"zhoumc" <zhoumc@hotmail.com> wrote:
>I only made one part On the Nand flash , and the part is a PART_DOS32 part,
>and all application programs are on that part. Can I make this part for USB
>MASS Storage?
>
> "zhoumc" <zhoumc@hotmail.com> wrote:
>> yes , I have set "DefaultClientDriver"="Mass_Storage_Class". and when I
>> insert the usb line , I can see a little icon showed on the PC taskbar
>> tray just like other USB mass device, but never saw the disk name in the
>> explorer.
>>
>>
>> "Ashutosh Zade" <www.applieddata.net>
>> wrote:uhreoqRqHHA.1296@TK2MSFTNGP06.phx.gbl...
>>>> Has anybody ever succeeded to make the nand flash as usb mass storage?
>>> Yes
>>>
>>> I am not sure which document you are referring to but you also need to
>>> change the default client driver. Have you done that?
>>> See this document for CE 5.00 -
>>> ms-help://MS.WindowsCE.500/wceddk5/html/wce50grfusbmassstorageclassdriverregistrysettings.htm
>>>
>>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
>>> "DefaultClientDriver"=- ; erase previous default
>>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
>>> "DefaultClientDriver"="Mass_Storage_Class"
>>>
>>>
>>> --
>>> Ashutosh Zade
>>> Applied Data Systems
>>> www.applieddata.net
>>> Microsoft WEP Gold-Level Member
>>>
>>>
>>> "zhoumc" <zhoumc@hotmail.com> wrote in message
>>> news:%23e5IGXRqHHA.5092@TK2MSFTNGP04.phx.gbl...
>>>> Has anybody ever succeeded to make the nand flash as usb mass storage?
>>>> According to the document, we need to set following REG items:
>>>>
>>>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
>>>> "Dll"="usbmsfn.dll"
>>>> "Vendor"=dword:17CC
>>>> "Product"=dword:2280
>>>> "InterfaceSubClass"=dword:06
>>>> "InterfaceProtocol"=dword:50
>>>> "DeviceName"="DSK1:"
>>>> "Removable"=dword:0
>>>>
>>>> The key operation is to change the "DeviceName"="DSK1:"
>>>> I have tried to change the DeviceName, such as "DSK1" , "MSFLASH" etc,
>>>> but not succeed yet!
>>>>
>>>> Is there anyone succeed? (CE5 , S3C2440 BSP)
>>>>
>>>
>>>
>>
>>
>
>



Re: Have you succeed to make the nand flash as usb mass storage? by Henrik

Henrik
Mon Jun 11 12:52:20 CDT 2007

Show us the registry settings for the nand flash you want to exose as
MSD.

Henrik Viklund
http://www.addlogic.se

On Jun 11, 4:04 pm, "zhoumc" <zho...@hotmail.com> wrote:
> It sames nobody could help me...
>
>
>
> "zhoumc" <zho...@hotmail.com> wrote:
> >I only made one part On the Nand flash , and the part is a PART_DOS32 pa=
rt,
> >and all application programs are on that part. Can I make this part for =
USB
> >MASS Storage?
>
> > "zhoumc" <zho...@hotmail.com> wrote:
> >> yes , I have set "DefaultClientDriver"=3D"Mass_Storage_Class". and whe=
n I
> >> insert the usb line , I can see a little icon showed on the PC taskbar
> >> tray just like other USB mass device, but never saw the disk name in =
the
> >> explorer.
>
> >> "Ashutosh Zade" <www.applieddata.net>
> >> wrote:uhreoqRqHHA.1...@TK2MSFTNGP06.phx.gbl...
> >>>> Has anybody ever succeeded to make the nand flash as usb mass storag=
e?
> >>> Yes
>
> >>> I am not sure which document you are referring to but you also need to
> >>> change the default client driver. Have you done that?
> >>> See this document for CE 5.00 -
> >>> ms-help://MS.WindowsCE.500/wceddk5/html/wce50grfusbmassstorageclassdr=
iverre=ADgistrysettings.htm
>
> >>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> >>> "DefaultClientDriver"=3D- ; erase previous default
> >>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> >>> "DefaultClientDriver"=3D"Mass_Storage_Class"
>
> >>> --
> >>> Ashutosh Zade
> >>> Applied Data Systems
> >>>www.applieddata.net
> >>> Microsoft WEP Gold-Level Member
>
> >>> "zhoumc" <zho...@hotmail.com> wrote in message
> >>>news:%23e5IGXRqHHA.5092@TK2MSFTNGP04.phx.gbl...
> >>>> Has anybody ever succeeded to make the nand flash as usb mass storag=
e?
> >>>> According to the document, we need to set following REG items:
>
> >>>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
> >>>> "Dll"=3D"usbmsfn.dll"
> >>>> "Vendor"=3Ddword:17CC
> >>>> "Product"=3Ddword:2280
> >>>> "InterfaceSubClass"=3Ddword:06
> >>>> "InterfaceProtocol"=3Ddword:50
> >>>> "DeviceName"=3D"DSK1:"
> >>>> "Removable"=3Ddword:0
>
> >>>> The key operation is to change the "DeviceName"=3D"DSK1:"
> >>>> I have tried to change the DeviceName, such as "DSK1" , "MSFLASH" et=
c,
> >>>> but not succeed yet!
>
> >>>> Is there anyone succeed? (CE5 , S3C2440 BSP)- Hide quoted text -
>
> - Show quoted text -



Re: Have you succeed to make the nand flash as usb mass storage? by zhoumc

zhoumc
Tue Jun 12 08:50:21 CDT 2007

Thanks!

1 . Following is for nand flash:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSFlash]
"Profile"="MSFlash"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Order"=dword:0
"FriendlyName"="MSFLASH Driver"
"Dll"="smflash.dll"
"Prefix"="DSK"
"Index"=dword:4
; "Flags"=dword:1000


[HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
"DriverPath"="Drivers\\BuiltIn\\MSFlash"
; LoadFlags 0x01 == load synchronously
"LoadFlags"=dword:1
"Order"=dword:0
"BootPhase"=dword:0


[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
"DefaultFileSystem"="FATFS"
"PartitionDriver"="mspart.dll"
"Folder"="Flash Disk"
"Name"="FLASH Disk Block Device"

; "Ioctl"=dword:4
"AutoFormat"=dword:1
"AutoMount"=dword:1
"AutoPart"=dword:1
;"MountFlags"=dword:11
;"BootPhase"=dword:0


[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]

"FriendlyName"="FAT FileSystem"
"Dll"="fatfsd.dll"
; "Flags"=dword:00000006
"Flags"=dword:00000036
"Paging"=dword:0
"EnableCache"=dword:0
"CacheSize"=dword:0
"Util"="fatutil.dll"
;"CacheDll"="diskcache.dll"

2 . Following is for USB MASS FUNCTION
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"=- ; erase previous default
[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
"DefaultClientDriver"="Mass_Storage_Class"

[HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
"Dll"="usbmsfn.dll"
"InterfaceSubClass"=dword:06
"InterfaceProtocol"=dword:50
"DeviceName"="MsFlash"
; "Removable"=dword:0
"FriendlyName"="Mass Storage"
; idVendor must be changed. 045E belongs to Microsoft and is only to be used
for
; prototype devices in your labs. Visit http://www.usb.org to obtain a
vendor id.
"idVendor"=dword:0726
"Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change
idVendor)"
"idProduct"=dword:C3C8
"Product"="Generic Mass Storage (PROTOTYPE--Remember to change idVendor)"
"bcdDevice"=dword:0




"Henrik Viklund" <henrik.viklund@gmail.com>
wrote:1181584340.645861.257390@c77g2000hse.googlegroups.com...
Show us the registry settings for the nand flash you want to exose as
MSD.

Henrik Viklund
http://www.addlogic.se

On Jun 11, 4:04 pm, "zhoumc" <zho...@hotmail.com> wrote:
> It sames nobody could help me...
>
>
>
> "zhoumc" <zho...@hotmail.com> wrote:
> >I only made one part On the Nand flash , and the part is a PART_DOS32
> >part,
> >and all application programs are on that part. Can I make this part for
> >USB
> >MASS Storage?
>
> > "zhoumc" <zho...@hotmail.com> wrote:
> >> yes , I have set "DefaultClientDriver"="Mass_Storage_Class". and when I
> >> insert the usb line , I can see a little icon showed on the PC taskbar
> >> tray just like other USB mass device, but never saw the disk name in
> >> the
> >> explorer.
>
> >> "Ashutosh Zade" <www.applieddata.net>
> >> wrote:uhreoqRqHHA.1...@TK2MSFTNGP06.phx.gbl...
> >>>> Has anybody ever succeeded to make the nand flash as usb mass
> >>>> storage?
> >>> Yes
>
> >>> I am not sure which document you are referring to but you also need to
> >>> change the default client driver. Have you done that?
> >>> See this document for CE 5.00 -
> >>> ms-help://MS.WindowsCE.500/wceddk5/html/wce50grfusbmassstorageclassdriverre­gistrysettings.htm
>
> >>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> >>> "DefaultClientDriver"=- ; erase previous default
> >>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> >>> "DefaultClientDriver"="Mass_Storage_Class"
>
> >>> --
> >>> Ashutosh Zade
> >>> Applied Data Systems
> >>>www.applieddata.net
> >>> Microsoft WEP Gold-Level Member
>
> >>> "zhoumc" <zho...@hotmail.com> wrote in message
> >>>news:%23e5IGXRqHHA.5092@TK2MSFTNGP04.phx.gbl...
> >>>> Has anybody ever succeeded to make the nand flash as usb mass
> >>>> storage?
> >>>> According to the document, we need to set following REG items:
>
> >>>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
> >>>> "Dll"="usbmsfn.dll"
> >>>> "Vendor"=dword:17CC
> >>>> "Product"=dword:2280
> >>>> "InterfaceSubClass"=dword:06
> >>>> "InterfaceProtocol"=dword:50
> >>>> "DeviceName"="DSK1:"
> >>>> "Removable"=dword:0
>
> >>>> The key operation is to change the "DeviceName"="DSK1:"
> >>>> I have tried to change the DeviceName, such as "DSK1" , "MSFLASH"
> >>>> etc,
> >>>> but not succeed yet!
>
> >>>> Is there anyone succeed? (CE5 , S3C2440 BSP)- Hide quoted text -
>
> - Show quoted text -




Re: Have you succeed to make the nand flash as usb mass storage? by Henrik

Henrik
Tue Jun 12 14:23:02 CDT 2007

Remove all [HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
keys and under [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers
\Mass_Storage_Class], change "DeviceName"=3D"MsFlash" to
"DeviceName"=3D"DSK4:".

Henrik Viklund
http://www.addlogic.se

On Jun 12, 3:50 pm, "zhoumc" <zho...@hotmail.com> wrote:
> Thanks!
>
> 1 . Following is for nand flash:
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSFlash]
> "Profile"=3D"MSFlash"
> "IClass"=3Dmulti_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
> "Order"=3Ddword:0
> "FriendlyName"=3D"MSFLASH Driver"
> "Dll"=3D"smflash.dll"
> "Prefix"=3D"DSK"
> "Index"=3Ddword:4
> ; "Flags"=3Ddword:1000
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
> "DriverPath"=3D"Drivers\\BuiltIn\\MSFlash"
> ; LoadFlags 0x01 =3D=3D load synchronously
> "LoadFlags"=3Ddword:1
> "Order"=3Ddword:0
> "BootPhase"=3Ddword:0
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
> "DefaultFileSystem"=3D"FATFS"
> "PartitionDriver"=3D"mspart.dll"
> "Folder"=3D"Flash Disk"
> "Name"=3D"FLASH Disk Block Device"
>
> ; "Ioctl"=3Ddword:4
> "AutoFormat"=3Ddword:1
> "AutoMount"=3Ddword:1
> "AutoPart"=3Ddword:1
> ;"MountFlags"=3Ddword:11
> ;"BootPhase"=3Ddword:0
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
>
> "FriendlyName"=3D"FAT FileSystem"
> "Dll"=3D"fatfsd.dll"
> ; "Flags"=3Ddword:00000006
> "Flags"=3Ddword:00000036
> "Paging"=3Ddword:0
> "EnableCache"=3Ddword:0
> "CacheSize"=3Ddword:0
> "Util"=3D"fatutil.dll"
> ;"CacheDll"=3D"diskcache.dll"
>
> 2 . Following is for USB MASS FUNCTION
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> "DefaultClientDriver"=3D- ; erase previous default
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> "DefaultClientDriver"=3D"Mass_Storage_Class"
>
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
> "Dll"=3D"usbmsfn.dll"
> "InterfaceSubClass"=3Ddword:06
> "InterfaceProtocol"=3Ddword:50
> "DeviceName"=3D"MsFlash"
> ; "Removable"=3Ddword:0
> "FriendlyName"=3D"Mass Storage"
> ; idVendor must be changed. 045E belongs to Microsoft and is only to be u=
sed
> for
> ; prototype devices in your labs. Visithttp://www.usb.orgto obtain a
> vendor id.
> "idVendor"=3Ddword:0726
> "Manufacturer"=3D"Generic Manufacturer (PROTOTYPE--Remember to change
> idVendor)"
> "idProduct"=3Ddword:C3C8
> "Product"=3D"Generic Mass Storage (PROTOTYPE--Remember to change idVen=
dor)"
> "bcdDevice"=3Ddword:0
>
> "Henrik Viklund" <henrik.vikl...@gmail.com>
> wrote:1181584340.645861.257...@c77g2000hse.googlegroups.com...
> Show us the registry settings for the nand flash you want to exose as
> MSD.
>
> Henrik Viklundhttp://www.addlogic.se
>
> On Jun 11, 4:04 pm, "zhoumc" <zho...@hotmail.com> wrote:
>
>
>
> > It sames nobody could help me...
>
> > "zhoumc" <zho...@hotmail.com> wrote:
> > >I only made one part On the Nand flash , and the part is a PART_DOS32
> > >part,
> > >and all application programs are on that part. Can I make this part for
> > >USB
> > >MASS Storage?
>
> > > "zhoumc" <zho...@hotmail.com> wrote:
> > >> yes , I have set "DefaultClientDriver"=3D"Mass_Storage_Class". and w=
hen I
> > >> insert the usb line , I can see a little icon showed on the PC taskb=
ar
> > >> tray just like other USB mass device, but never saw the disk name in
> > >> the
> > >> explorer.
>
> > >> "Ashutosh Zade" <www.applieddata.net>
> > >> wrote:uhreoqRqHHA.1...@TK2MSFTNGP06.phx.gbl...
> > >>>> Has anybody ever succeeded to make the nand flash as usb mass
> > >>>> storage?
> > >>> Yes
>
> > >>> I am not sure which document you are referring to but you also need=
to
> > >>> change the default client driver. Have you done that?
> > >>> See this document for CE 5.00 -
> > >>> ms-help://MS.WindowsCE.500/wceddk5/html/wce50grfusbmassstorageclass=
driverre=AD=ADgistrysettings.htm
>
> > >>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> > >>> "DefaultClientDriver"=3D- ; erase previous default
> > >>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> > >>> "DefaultClientDriver"=3D"Mass_Storage_Class"
>
> > >>> --
> > >>> Ashutosh Zade
> > >>> Applied Data Systems
> > >>>www.applieddata.net
> > >>> Microsoft WEP Gold-Level Member
>
> > >>> "zhoumc" <zho...@hotmail.com> wrote in message
> > >>>news:%23e5IGXRqHHA.5092@TK2MSFTNGP04.phx.gbl...
> > >>>> Has anybody ever succeeded to make the nand flash as usb mass
> > >>>> storage?
> > >>>> According to the document, we need to set following REG items:
>
> > >>>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
> > >>>> "Dll"=3D"usbmsfn.dll"
> > >>>> "Vendor"=3Ddword:17CC
> > >>>> "Product"=3Ddword:2280
> > >>>> "InterfaceSubClass"=3Ddword:06
> > >>>> "InterfaceProtocol"=3Ddword:50
> > >>>> "DeviceName"=3D"DSK1:"
> > >>>> "Removable"=3Ddword:0
>
> > >>>> The key operation is to change the "DeviceName"=3D"DSK1:"
> > >>>> I have tried to change the DeviceName, such as "DSK1" , "MSFLASH"
> > >>>> etc,
> > >>>> but not succeed yet!
>
> > >>>> Is there anyone succeed? (CE5 , S3C2440 BSP)- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -



Re: Have you succeed to make the nand flash as usb mass storage? by zhoumc

zhoumc
Thu Jun 14 10:28:41 CDT 2007

Thanks Henrik.
I can explore the flash files on PC now, Thanks!
And I will try to understand why should I remove the "AutoLoad"

"Henrik Viklund" <henrik.viklund@gmail.com>
worte:1181676182.347784.160310@n15g2000prd.googlegroups.com...
Remove all [HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
keys and under [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers
\Mass_Storage_Class], change "DeviceName"="MsFlash" to
"DeviceName"="DSK4:".

Henrik Viklund
http://www.addlogic.se

On Jun 12, 3:50 pm, "zhoumc" <zho...@hotmail.com> wrote:
> Thanks!
>
> 1 . Following is for nand flash:
> [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSFlash]
> "Profile"="MSFlash"
> "IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
> "Order"=dword:0
> "FriendlyName"="MSFLASH Driver"
> "Dll"="smflash.dll"
> "Prefix"="DSK"
> "Index"=dword:4
> ; "Flags"=dword:1000
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
> "DriverPath"="Drivers\\BuiltIn\\MSFlash"
> ; LoadFlags 0x01 == load synchronously
> "LoadFlags"=dword:1
> "Order"=dword:0
> "BootPhase"=dword:0
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
> "DefaultFileSystem"="FATFS"
> "PartitionDriver"="mspart.dll"
> "Folder"="Flash Disk"
> "Name"="FLASH Disk Block Device"
>
> ; "Ioctl"=dword:4
> "AutoFormat"=dword:1
> "AutoMount"=dword:1
> "AutoPart"=dword:1
> ;"MountFlags"=dword:11
> ;"BootPhase"=dword:0
>
> [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
>
> "FriendlyName"="FAT FileSystem"
> "Dll"="fatfsd.dll"
> ; "Flags"=dword:00000006
> "Flags"=dword:00000036
> "Paging"=dword:0
> "EnableCache"=dword:0
> "CacheSize"=dword:0
> "Util"="fatutil.dll"
> ;"CacheDll"="diskcache.dll"
>
> 2 . Following is for USB MASS FUNCTION
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> "DefaultClientDriver"=- ; erase previous default
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> "DefaultClientDriver"="Mass_Storage_Class"
>
> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
> "Dll"="usbmsfn.dll"
> "InterfaceSubClass"=dword:06
> "InterfaceProtocol"=dword:50
> "DeviceName"="MsFlash"
> ; "Removable"=dword:0
> "FriendlyName"="Mass Storage"
> ; idVendor must be changed. 045E belongs to Microsoft and is only to be
> used
> for
> ; prototype devices in your labs. Visithttp://www.usb.orgto obtain a
> vendor id.
> "idVendor"=dword:0726
> "Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change
> idVendor)"
> "idProduct"=dword:C3C8
> "Product"="Generic Mass Storage (PROTOTYPE--Remember to change
> idVendor)"
> "bcdDevice"=dword:0
>
> "Henrik Viklund" <henrik.vikl...@gmail.com>
> wrote:1181584340.645861.257...@c77g2000hse.googlegroups.com...
> Show us the registry settings for the nand flash you want to exose as
> MSD.
>
> Henrik Viklundhttp://www.addlogic.se
>
> On Jun 11, 4:04 pm, "zhoumc" <zho...@hotmail.com> wrote:
>
>
>
> > It sames nobody could help me...
>
> > "zhoumc" <zho...@hotmail.com> wrote:
> > >I only made one part On the Nand flash , and the part is a PART_DOS32
> > >part,
> > >and all application programs are on that part. Can I make this part for
> > >USB
> > >MASS Storage?
>
> > > "zhoumc" <zho...@hotmail.com> wrote:
> > >> yes , I have set "DefaultClientDriver"="Mass_Storage_Class". and when
> > >> I
> > >> insert the usb line , I can see a little icon showed on the PC
> > >> taskbar
> > >> tray just like other USB mass device, but never saw the disk name in
> > >> the
> > >> explorer.
>
> > >> "Ashutosh Zade" <www.applieddata.net>
> > >> wrote:uhreoqRqHHA.1...@TK2MSFTNGP06.phx.gbl...
> > >>>> Has anybody ever succeeded to make the nand flash as usb mass
> > >>>> storage?
> > >>> Yes
>
> > >>> I am not sure which document you are referring to but you also need
> > >>> to
> > >>> change the default client driver. Have you done that?
> > >>> See this document for CE 5.00 -
> > >>> ms-help://MS.WindowsCE.500/wceddk5/html/wce50grfusbmassstorageclassdriverre­­gistrysettings.htm
>
> > >>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> > >>> "DefaultClientDriver"=- ; erase previous default
> > >>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
> > >>> "DefaultClientDriver"="Mass_Storage_Class"
>
> > >>> --
> > >>> Ashutosh Zade
> > >>> Applied Data Systems
> > >>>www.applieddata.net
> > >>> Microsoft WEP Gold-Level Member
>
> > >>> "zhoumc" <zho...@hotmail.com> wrote in message
> > >>>news:%23e5IGXRqHHA.5092@TK2MSFTNGP04.phx.gbl...
> > >>>> Has anybody ever succeeded to make the nand flash as usb mass
> > >>>> storage?
> > >>>> According to the document, we need to set following REG items:
>
> > >>>> [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Mass_Storage_Class]
> > >>>> "Dll"="usbmsfn.dll"
> > >>>> "Vendor"=dword:17CC
> > >>>> "Product"=dword:2280
> > >>>> "InterfaceSubClass"=dword:06
> > >>>> "InterfaceProtocol"=dword:50
> > >>>> "DeviceName"="DSK1:"
> > >>>> "Removable"=dword:0
>
> > >>>> The key operation is to change the "DeviceName"="DSK1:"
> > >>>> I have tried to change the DeviceName, such as "DSK1" , "MSFLASH"
> > >>>> etc,
> > >>>> but not succeed yet!
>
> > >>>> Is there anyone succeed? (CE5 , S3C2440 BSP)- Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -




Re: Have you succeed to make the nand flash as usb mass storage? by Henrik

Henrik
Thu Jun 14 14:24:28 CDT 2007

On Jun 14, 5:28 pm, "zhoumc" <zho...@hotmail.com> wrote:
> Thanks Henrik.
> I can explore the flash files on PC now, Thanks!
> And I will try to understand why should I remove the "AutoLoad"

The fundamental problem is that there are several ways of loading a
file system and they work a bit differently. Unfortionatley many of
the block drivers I've come across over the years have derived their
registry settings from examples that are flawed, or at least ambigous
because they specify multiple load mechanisms. Specifying multiple
load registry settings basically creates a "driver load race
condition" that can be hard to see through.

Basically, one way of loading a file system is to specify the
"AutoLoad" registry settings to let the storage manager load the file
system. Another way is to specify "BuiltIn" registry settings for the
block driver and let device manager load the block driver (and in turn
notify the storage manager to load the rest of the file system on top
of the block driver). Because of the ambigous registry settings the
storage manager may load and names the store rather than the device
manager (that MSD driver more or less rely on).

Now, "BuiltIn" is the prefered mechanism to automatically load a non-
monolithic file-system (such as your nand block driver and file system
drivers). By removing the AutoLoad settings you ensure the device
manager load the block driver and in turn name the store properly
("DSKx:") and thus make it available for the MSD driver to find and
use.

Henrik Viklund
http://www.addlogic.se

>
> "Henrik Viklund" <henrik.vikl...@gmail.com>
> worte:1181676182.347784.160...@n15g2000prd.googlegroups.com...
> Remove all [HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
> keys and under [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers
> \Mass_Storage_Class], change "DeviceName"=3D"MsFlash" to
> "DeviceName"=3D"DSK4:".
>
> Henrik Viklundhttp://www.addlogic.se
>
> On Jun 12, 3:50 pm, "zhoumc" <zho...@hotmail.com> wrote:
>
>
>
> > Thanks!
>
> > 1 . Following is for nand flash:
> > [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSFlash]
> > "Profile"=3D"MSFlash"
> > "IClass"=3Dmulti_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
> > "Order"=3Ddword:0
> > "FriendlyName"=3D"MSFLASH Driver"
> > "Dll"=3D"smflash.dll"
> > "Prefix"=3D"DSK"
> > "Index"=3Ddword:4
> > ; "Flags"=3Ddword:1000
>
> > [HKEY_LOCAL_MACHINE\System\StorageManager\AutoLoad\MSFlash]
> > "DriverPath"=3D"Drivers\\BuiltIn\\MSFlash"
> > ; LoadFlags 0x01 =3D=3D load synchronously
> > "LoadFlags"=3Ddword:1
> > "Order"=3Ddword:0
> > "BootPhase"=3Ddword:0
>
> > [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash]
> > "DefaultFileSystem"=3D"FATFS"
> > "PartitionDriver"=3D"mspart.dll"
> > "Folder"=3D"Flash Disk"
> > "Name"=3D"FLASH Disk Block Device"
>
> > ; "Ioctl"=3Ddword:4
> > "AutoFormat"=3Ddword:1
> > "AutoMount"=3Ddword:1
> > "AutoPart"=3Ddword:1
> > ;"MountFlags"=3Ddword:11
> > ;"BootPhase"=3Ddword:0
>
> > [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\MSFlash\FATFS]
>
> > "FriendlyName"=3D"FAT FileSystem"
> > "Dll"=3D"fatfsd.dll"
> > ; "Flags"=3Ddword:00000006
> > "Flags"=3Ddword:00000036
> > "Paging"=3Ddword:0
> > "EnableCache"=3Ddword:0
> > "CacheSize"=3Ddword:0
> > "Util"=3D"fatutil.dll&q