Hi,

I generated an image with icop SX cpu BSP for windows CE 5.0. I use FDos to
boot device. In first boot, the device works perfect, initialize the hive
registry and windows ce screen comes up. So far so good. But when I power
down and boot the device again, loadcepc nk.bin loads , after, the HDD
leds starts to run like crazy and device never boots. When I power off and
boot into dos, I saw lots of files like
file0001.chk file0002.chk .....file0083.chk.

If I switch to Ram based registry, then no problem at all.

Any clue what is going on. I try to load the debug version of my image but
it says
Error image section doesn't fit in allocated block.

Best regards,

RE: Yet another CE 5.0 Hive Registry Problem by Han

Han
Fri Aug 22 05:24:01 PDT 2008

Looks like my previous message vanished. I try to resend it again.
I eventually make the debug image loaded by loadcepc.

The result is below. Hope anybody has an idea.

0x87f8ebe0: Atapi!CDisk::Identify> Assuming direct-access device (hard disk
drive)
0x87f8ebe0: Atapi!CDisk::Identify::ConfigLBA48> Device supports 48-bit LBA
0x87f8ebe0: Atapi!CDisk::Identify::ConfigLBA48> Max LBA Address =
0x0000000004a853000x87f8ebe0: Atapi!CDisk::InitController> Device responded
to identify
0x87f8ebe0: Atapi!CDisk::Init> Enabled write cache
0x87f8ebe0: Atapi!CDisk::Init> Enabled read look-ahead
0x87f8ebe0: Atapi!DSK_Init> Initialized PRIMARY MASTER on
Drivers\BuiltIn\PCI\Instance\PDC202621\Device0
0x87fd0800: Loading partition driver mspart.dll hModule=87F2ADD0
0x87fd0800: Driver mspart.dll loaded
0x87fcea0c: FILESYS: Starting device and waiting for boot file system.
0x87fd0800: Opened the store hStore=000A4660
0x87fd0800: NumSec=78140160 BytesPerSec=512 FreeSec=73947195
BiggestCreatable=73947195
0x87fd0800: Partition Part00 NumSectors=4192902
0x87fd0800: MSPART!PD_OpenPartition: dwStoreId=000A4660, PartName=Part00
0x87fd0800: FSD_MountDisk: mounting volumes for hDsk=000A5AF0
0x87fd0800: FATFS!MountDisk: BPB_HiddenSectors(63) != 0
0x87fd0800: FATFS!OpenVolume: access time updates disabled
0x87fd0800: FATFS!OpenVolume: event logging enabled
0x87fd0800: FATFS!OpenVolume: automatic scanning enabled
0x87fd0800: FATFS!OpenVolume: write verify enabled on first 3 writes
0x87fd0800: FATFS!OpenVolume: extra FAT on format disabled
0x87fd0800: FATFS!OpenVolume: force write through disabled
0x87fd0800: FATFS!OpenVolume: Codepage = 1
0x87fd0800: FATFS!OpenVolume: Number of path cache entries = 50
0x87fd0800: FATFS!InitVolume: driver disagrees with BPB (BPB CHS=260:255:63)
0x87fd0800: CreateCache: Successful. Cache Size: 128 KB, Start: 1, End: 512.
0x87fd0800: CreateCache: Successful. Cache Size: 256 KB, Start: 513, End:
4192901.
0x87fd0800: FATFS!InitVolume: FAT version: 16
0x87fd0800: FATFS!InitVolume: Cluster Size (Sectors): 64
0x87fd0800: FATFS!ScanVolume: Beginning Scan0x87fd0800: FS: Registering file
system Hard Disk, index 6, flags 0x00000002
0x87fd0800: FS: Mount complete (Hard Disk, index 6, flags 0x00000002)
0x87fcea0c: FILESYS: Device started. Boot file system ready.
0x87fcea0c: FSREG: Unable to read value "SystemHiveInitialSize" under
HKEY_LOCAL_MACHINE\init\BootVars
0x87fcea0c: FSVOL: Opening existing volume
0x87fcea0c: FSVOL: Volume heap already initialized
0x87fcea0c: FSREG: Mounted ROM portion of system hive
0x87fcea0c: FILESYS: Loading system hive from Hard Disk\Documents and
Settings\system.hv.
0x87fcea0c: OEMIoControl: Unsupported Code 0x10100c4 - device 0x0101 func 49
0x87fcea0c: FATFS!FAT_CreateFileW(\Documents and Settings\system.hv)
returned 0x0 (3)
0x87fcea0c: FSREG: Mounting clean system hive
0x87fcea0c: BuildPath: Hard Disk
0x87fcea0c: FATFS!FAT_CreateDirectoryW(1 chars: \) returned FALSE (183)
0x87fcea0c: BuildPath: Hard Disk\Documents and Settings
0x87fcea0c: FATFS!FAT_CreateFileW(\Documents and Settings\system.hv)
returned 0x0 (2)
0x87fcea0c: FSVOL: Creating new volume (size=49152 bytes)
0x87fcea0c: FSVOL: Initializing volume heap
0x87fcea0c: FSREG: Taking down boot registry. Any open keys will be invalid.
0x87fcea0c: FILESYS: Registry in place.
0x87fcea0c: OEMIoControl: Unsupported Code 0x10100c4 - device 0x0101 func 49
0x87fcea0c: FSREG: Unable to read value "NoDefaultUser" under
HKEY_LOCAL_MACHINE\init\BootVars
0x87fcea0c: FSREG: Logging in default user.
0x87fcea0c: SetCurrentUser: Logging out (nobody), logging in default
0x87fcea0c: BuildPath: Hard Disk
0x87fcea0c: FATFS!FAT_CreateDirectoryW(1 chars: \) returned FALSE (183)
0x87fcea0c: BuildPath: Hard Disk\Documents and Settings
0x87fcea0c: FATFS!FAT_CreateDirectoryW(23 chars: \Documents and Settings)
returned FALSE (183)
0x87fcea0c: BuildPath: Hard Disk\Documents and Settings\default
0x87fcea0c: FSREG: Mounting ROM portion of user hive
0x87fcea0c: FSVOL: Opening existing volume
0x87fcea0c: FSVOL: Volume heap already initialized
0x87fcea0c: Mounting user hive from Hard Disk\Documents and
Settings\default\user.hv
0x87fcea0c: FATFS!FAT_CreateFileW(\Documents and Settings\default\user.hv)
returned 0x0 (2)
0x87fcea0c: FSREG: Mounting clean user hive
0x87fcea0c: FATFS!FAT_CreateFileW(\Documents and Settings\default\user.hv)
returned 0x0 (2)
0x87fcea0c: FSVOL: Creating new volume (size=49152 bytes)
0x87fcea0c: FSVOL: Initializing volume heap
0x87fcea0c: FATFS!FAT_CreateFileW(\Documents and Settings\default.mky)
returned 0x0 (2)
0x87fcea0c: OEMIoControl: Unsupported Code 0x10100d0 - device 0x0101 func 52
0x87fcea0c: OEMIoControl: Unsupported Code 0x10100f8 - device 0x0101 func 62
0x87fcea0c: FSREG: Unable to read value "DBFlags" under
HKEY_LOCAL_MACHINE\init\BootVars
0x87fcea0c:
Initializing Database
0x87fcea0c: DB:Validation: Name already exists DB_notify_events
0x87fcea0c: DB:CeCreateDatabase failed
0x87fcea0c: Filesystem initialized!
0x87fcea0c: FILESYS: Waiting for kernel to be ready to launch apps
0x87fd0ce0: InitMUI: DISABLED (-2145042848)
0x87fcea0c: FS: Creating signal event SYSTEM/DevMgrApiSetReady
0x87fcea0c: FS: Creating signal event SYSTEM/PowerManagerReady
0x87fcea0c: FS: Creating signal event SYSTEM/GweApiSetReady
0x87fcea0c: FS: Creating signal event system/events/notify/APIReady
0x87fcea0c: FS: Creating signal event SYSTEM/ShellAPIReady
0x87fcea0c: FS: Creating signal event SYSTEM/NLedAPIsReady
0x87fcea0c: FILESYS: Launching apps
0x87fcea0c: FILESYS: Boot phase 2
0x87f8ebe0: DEVICE!InitDevices: Root Key is Drivers\BuiltIn.
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\Prefix) returned 2
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\BusPrefix) returned 2
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\Serial4\BusPrefix) returned 2
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\Serial3\BusPrefix) returned 2
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\PCCARD\Prefix) returned 2
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\PCCARD\BusPrefix) returned 2
0x87f8ebe0: CardBus.DLL DLL_PROCESS_ATTACH
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\Serial\BusPrefix) returned 2
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\Serial2\BusPrefix) returned 2
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\Parallel\BusPrefix) returned 2
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\NLed\BusPrefix) returned 2
0x87f8ebe0: DEVICE!RegReadActivationValues
RegQueryValueEx(Drivers\BuiltIn\NDIS\BusPrefix) returned 2
0x87f8ebe0: NDIS: RebindAdaptersOnResume = 0
0x87f8ebe0: NDIS: PcmciaNeedsMapToScrap = 0

0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready
0x87f8ebe0: Read/Write Sector failed (30) on Sector 116057
0x87f8ebe0: FATFS!FAT_ReadFileWithSeek(0x1315c0) returned 0x0 (30,
0xc7f8ed8f bytes, size 0x20000)
0x87f8ebe0: Atapi!CDisk::ReadWriteDiskDMA> Failed to wait for interrupt;
device(0)
0x87f8ebe0: Atapi!CDisk::ResetController> Device is busy; 3 seconds remaining
0x87f8ebe0: Atapi!CDisk::ResetController> Device is ready


RE: Yet another CE 5.0 Hive Registry Problem by Han

Han
Sat Aug 23 02:58:01 PDT 2008

Looks like problem solved. The device seems incompatible with some of the
HDD. When I changed the HDD to another brand name, it is working fine. This
is a little bit interesting because, the same unit was working with Wince 6.0
with the driver causes problem. I have to use Windows Ce 5.0, since the
performance is somehow better than 6.0



"Han" wrote:

> Hi,
>
> I generated an image with icop SX cpu BSP for windows CE 5.0. I use FDos to
> boot device. In first boot, the device works perfect, initialize the hive
> registry and windows ce screen comes up. So far so good. But when I power
> down and boot the device again, loadcepc nk.bin loads , after, the HDD
> leds starts to run like crazy and device never boots. When I power off and
> boot into dos, I saw lots of files like
> file0001.chk file0002.chk .....file0083.chk.
>
> If I switch to Ram based registry, then no problem at all.
>
> Any clue what is going on. I try to load the debug version of my image but
> it says
> Error image section doesn't fit in allocated block.
>
> Best regards,