ROM only file system

Post Reply
nik100
Posts: 7
Joined: Mon Aug 03, 2009 1:19 pm

ROM only file system

Post by nik100 » Tue Oct 20, 2009 7:10 am

I try to use ROM only file system on mini2440 board with 7" display. After some researching, i found that page on Nicolas BESSON's weblog: http://nicolasbesson.blogspot.com/2007/ ... under.html
I chose "ROM only file system" and append folowing keys into registry, but
my WinCe image don't start :(

IF SYSGEN_FSROMONLY
"Start DevMgr"=dword:1

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

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\MSFlash]
"Profile"="FlashDisk"
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
"Order"=dword:0
"FriendlyName"="MSFLASH Driver"
"Dll"="smflash.dll"
"Prefix"="DSK"
"Flags"=dword:1000

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
"AutoMount"=dword:1
"AutoPart"=dword:1
"AutoFormat"=dword:1
"PartitionDriver"="mspart.dll"
"MountAsBootable"=dword:1
"Name"="NANDFLASH"
"Folder"="NandFlash"
"DefaultFileSystem"="FATFS"

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]
"MountAsRoot"=dword:1
"MountAsBootable"=dword:1
"MountPermanent"=dword:1

ENDIF

Thanks!

nicolas
Posts: 162
Joined: Sun Jun 07, 2009 4:32 pm

Re: ROM only file system

Post by nicolas » Tue Oct 20, 2009 7:41 am

Turn on KITL and via the serial port see if there is any error messaes, and see when it stops execution.

Did you remember to clean the whole project and re-sysgen ?

nik100
Posts: 7
Joined: Mon Aug 03, 2009 1:19 pm

Re: ROM only file system

Post by nik100 » Wed Oct 21, 2009 2:34 am

Thank you so much for your fast response!
I check option "Clean Before Building" and sysgen the project. Error messages from KITL is:
0 PID:0 TID:0 Sp=ffffc7cc
261 PID:3ddf002 TID:3ddf266 OEMIoControl: Unsupported Code 0x10100b4 - device 0x0101 func 45
295 PID:23dc3266 TID:23dc3242 OEMIoControl: Unsupported Code 0x101008c - device 0x0101 func 35
880 PID:23dc3266 TID:23dc3242 FMD_OEMIoControl: unrecognized IOCTL (0x71c24).
2497 PID:e3bcd332 TID:63d9c4aa FMD_OEMIoControl: unrecognized IOCTL (0x71c24).
2598 PID:23dc3266 TID:23dc3242 OEMIoControl: Unsupported Code 0x10100c4 - device 0x0101 func 49
2631 PID:23dc3266 TID:23dc3242 OEMIoControl: Unsupported Code 0x10100c4 - device 0x0101 func 49
2696 PID:e3bcd332 TID:63d9c4aa FMD(FMD_LB_ReadSector): ECC ERROR - Page #: 0x957
3488 PID:e3bcd332 TID:e3bcd30e INFO: CReg2440Uart::CReg2440Uart using processor frequency reported by the OAL (66666666).

Regards!

nik100
Posts: 7
Joined: Mon Aug 03, 2009 1:19 pm

Re: ROM only file system

Post by nik100 » Fri Oct 23, 2009 11:57 am

At last I managed to do image with "ROM only file system" and "Resident Flash" mount as root! I add only four line in platform.reg (see the underlined text) :

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH]
"DefaultFileSystem"="FATFS"
"PartitionDriver"="mspart.dll"
"AutoMount"=dword:1
"AutoPart"=dword:1
"AutoFormat"=dword:1
"Folder"="ResidentFlash"
"Name"="Microsoft Flash Disk"
"BootPhase"=dword:0
"Flags"=dword:1000

IF SYSGEN_FSROMONLY
"MountAsBootable"=dword:1
ENDIF


[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH\FATFS]
"FriendlyName"="FAT FileSystem"
"Dll"="fatfsd.dll"
"Flags"=dword:00280014
"Paging"=dword:1

"CacheSize"=dword:0
"EnableCacheWarm"=dword:0
"EnableCache"=dword:1
"MountFlags"=dword:2

IF SYSGEN_FSROMONLY
"MountAsRoot"=dword:1
"MountAsBootable"=dword:1
"MountPermanent"=dword:1
ENDIF


After making clean build and sysgen all start work perfectly!

crmann
Posts: 12
Joined: Sat Feb 06, 2010 9:37 pm

Re: ROM only file system

Post by crmann » Sun Mar 07, 2010 7:38 pm

nik100 wrote:At last I managed to do image with "ROM only file system" and "Resident Flash" mount as root! I add only four line in platform.reg (see the underlined text) :

[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH]
"DefaultFileSystem"="FATFS"
"PartitionDriver"="mspart.dll"
"AutoMount"=dword:1
"AutoPart"=dword:1
"AutoFormat"=dword:1
"Folder"="ResidentFlash"
"Name"="Microsoft Flash Disk"
"BootPhase"=dword:0
"Flags"=dword:1000

IF SYSGEN_FSROMONLY
"MountAsBootable"=dword:1
ENDIF


[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\SMFLASH\FATFS]
"FriendlyName"="FAT FileSystem"
"Dll"="fatfsd.dll"
"Flags"=dword:00280014
"Paging"=dword:1

"CacheSize"=dword:0
"EnableCacheWarm"=dword:0
"EnableCache"=dword:1
"MountFlags"=dword:2

IF SYSGEN_FSROMONLY
"MountAsRoot"=dword:1
"MountAsBootable"=dword:1
"MountPermanent"=dword:1
ENDIF


After making clean build and sysgen all start work perfectly!
I followed these instructions exactly and was able to use the ROM based file system. I can now add shortcuts to the desktop, etc and they won't disappear after boot! Note you must remove the "ROM and RAM File System" catalog item from the OS design and then add the "ROM-only File System".

nik100 is right - only the underlined portions of code need to be added; the other sections already exist in the file. I had tried loading the ROM only file system without the above underlined code additions and all it did was sync to my PC then freeze.

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests