Re: USB MSC, SD/ATA/NAND/RAM Disk

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Michel Verhagen Thank You for the Reply.

So, If I want to have ATA/NAND then just I have to change the

"DeviceName"="DSK2:" -> for ATA
"DeviceName"="DSK3:" -> for NAND

in USB CLient Driver Registry Setting ?

Is this correct ?

In our platform at present ATA is used as MSD.

Now, I want to change the MSD device to SD Card for that I have modified

"DeviceName"="DSK1:" -> for SD

With this modification when I plug-in USB Cable to Host PC it POPS a window,
which is saying that Unknown Device.

Is any where else do I need to Modify ?

Thank You & Regards,
Sudheer



"Michel Verhagen (eMVP)" wrote:

1. Yes
2. Are you talking about the internal RAM file system (object store fs)?

If so, as far as I know you can't set the internal RAM fs as store for
MSC. You can reserve another block of RAM creating a disk using the RAM
disk driver (see \WINCEX00\PUBLIC\COMMON\OAK\DRIVERS\BLOCK\RAMDISK).


Good luck,

Michel Verhagen, eMVP
Check out my blog: http://GuruCE.com/blog

GuruCE Ltd.
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.

GSR wrote:
Hi,

From MS Help I observed that following registry need to be set for USB Mass
Storage Class Driver to be loaded, in addition to USB Function Controller
Registry Settings.

[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"="DSK1:"
"FriendlyName"="Mass Storage"
"idVendor"=dword:045E
"Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change
idVendor)"
"idProduct"=dword:FFFF
"Product"="Generic Mass Storage (PROTOTYPE--Remember to change idVendor)"
"bcdDevice"=dword:0

Consider a case for example My System is having SD Card, Harddisk on ATA,
NAND Device and also RAM.

In registry the disks names are DSK1,DSK2,DSK3, for SD,HDD and NAND
respectively.

I have two questions here:

1) Is SD Card will be shown as MSC when USB Device is connected to Host in
the above case ? If not please correct me.

2) What are the settings that I have to do for having RAM Device as MSC
instead of a Flash Device ?

Thank You & Regards,
Sudheer



.



Relevant Pages

  • Re: USB MSC, SD/ATA/NAND/RAM Disk
    ... Run a debug kernel, enable all zones for SD and the upper block driver and enable the debug zones for USB function as well, and post the debug output. ... With this modification when I plug-in USB Cable to Host PC it POPS a window, which is saying that Unknown Device. ... as far as I know you can't set the internal RAM fs as store for MSC. ...
    (microsoft.public.windowsce.embedded)
  • Booting XP(E) from USB with no Bios support
    ... Then I put an USB to PCI slotcard in on a compi that never heard ... I use my boot.com driver in MSDOS, ... without destroying the content of the ramdisk. ... booting XPin Ram. ...
    (microsoft.public.windowsxp.embedded)
  • Re: How to speedup up a legacy Toshiba 4010 Win98 laptop
    ... If it makes the USB more generic (ie not only with driver) I would consider ... some Linux install, exp one with emacs. ... the more RAM the better ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Small System Paging Problem - OOM-killer goes nuts
    ... more memory by writing back dirty pages, but  there is not enough ram ... for usb disk  related driver to finish the writeback operation. ...
    (Linux-Kernel)
  • Re: [PATCH 0/7] [RFC] Sizing zones and holes in an architecture independent manner V2
    ... RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize ... SCSI device sda: drive cache: write back w/ FUA ... usbcore: registered new driver hub ... hub 1-0:1.0: USB hub found ...
    (Linux-Kernel)