Re: Serious BUG in MS Flash (FAL) ?? (part 2)



cwt skrev:
Hi Henrik Viklund,
Yes, it looks suspiciously like the "compactor thread bailout" bug that
was fixed in August 2006 QFE.
Help....
I try is fail, step as below
1.reinstall Windows XP professional OS, so OS is very clean
2.install WinCE 5.0 ARM/X86
3.install CE 5.0 QFE WinCEPB50-060430-2006M04-Armv4I/X86 ~
WinCEPB50-061031-2006M10-Armv4I/X86
4.New Platform => Emulator X86 + modify RAMFMD driver
5.build OS /Build and Sysgen is ok
6.Boot build System test FULL FORMAT TFAT mode as below message, is
FAIL :O
7.use same step 4~6, build ARM CE system is same FAIL :(
8.What's your suggest ???

First of all, *NEVER* use "build and sysgen". use "sysgen"!

Secondly, you do not have the same problem as the original poster. The
OP
The "Secondary table doesn't exist" message is a message the driver
prints out when it request a read for a logical sector that is not yet
mapped to a physical sector.

Your flash is probably unformatted so it's most likely a configuration
issue. But, since it looks like you've tossed in just about every
possible file-system there is it makes it incredibly difficult to make
any sense out of the debug output, and you've not provided the registry
settings you use. Remove as much of the "noise" as possible from your
image and post the essentials like the registry settings, debug output
and your findings as a new post (since it is unrelated to this issue).

Henrik Viklund
http://www.addlogic.se



cut message as below list, full fail message at here =>
http://cwthome.googlepages.com/wince

cwt/joe

PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: >>> Loading module filesys.exe at
address 0x04010000-0x0407C000
Loaded symbols for
'D:\WINCE500\PBWORKSPACES\00EX86\RELDIR\EMULATOR_X86_DEBUG\FILESYS.EXE'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: CertMod.dll not found, using old
OEM Trust Model
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FileSystem Starting - starting
with clean file system
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FS: initializing ROM/RAM file
system
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: SC_CreateAPIHandle: pvData ==
NULL
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FS: Registering file system ROM,
index 2, flags 0x00000031
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FS: Mount complete (ROM, index 2,
flags 0x00000031)
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: OEMIoControl: Unsupported Code
0x101008c - device 0x0101 func 35
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: Succeeded on CheckFile
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: RestoreFile(0x28f9f962) called
fDelete = TRUE
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: OEMIoControl: Unsupported Code
0x10100b0 - device 0x0101 func 44
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: >>> Loading module fsdmgr.dll at
address 0x03CC0000-0x03CE3000 (RW data at 0x01FD5000-0x01FD5810)
Loaded symbols for
'D:\WINCE500\PBWORKSPACES\00EX86\RELDIR\EMULATOR_X86_DEBUG\FSDMGR.DLL'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FS: Registering file system
StoreMgr, index 3, flags 0x00000001
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: >>> Loading module smflash.dll at
address 0x013A0000-0x013B1000
Loaded symbols for
'D:\WINCE500\PBWORKSPACES\00EX86\RELDIR\EMULATOR_X86_DEBUG\SMFLASH.DLL'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: RAMFMD: allocating heap buffer
(820204 bytes) for storage
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: RAMFMD: starting with clean RAM
storage region
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:BuildupMappingInfo()
- Enter.
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: >>> Loading module mspart.dll at
address 0x03CB0000-0x03CB9000 (RW data at 0x01FD3000-0x01FD34B4)
Loaded symbols for
'D:\WINCE500\PBWORKSPACES\00EX86\RELDIR\EMULATOR_X86_DEBUG\MSPART.DLL'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: Loading partition driver
mspart.dll hModule=88FCCF1C
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: Driver mspart.dll loaded
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x0!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000000
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: Opened the store hStore=000925D0
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x0!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000000
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: NumSec=16320 BytesPerSec=512
FreeSec=0 BiggestCreatable=0
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x0!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: PD_FormatPartition - type is 4
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: NumSec=16320 BytesPerSec=512
FreeSec=0 BiggestCreatable=0
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: Partition PART00
NumSectors=16318
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: MSPART!PD_OpenPartition:
dwStoreId=000925D0, PartName=PART00
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: OEMIoControl: Unsupported Code
0x1010118 - device 0x0101 func 70
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: >>> Loading module fatfsd.dll at
address 0x03EA0000-0x03EC7000 (RW data at 0x01FF2000-0x01FF265C)
Loaded symbols for
'D:\WINCE500\PBWORKSPACES\00EX86\RELDIR\EMULATOR_X86_DEBUG\FATFSD.DLL'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: >>> Loading module fatutil.dll at
address 0x03E70000-0x03E81000 (RW data at 0x01FED000-0x01FEE0E0)
Loaded symbols for
'D:\WINCE500\PBWORKSPACES\00EX86\RELDIR\EMULATOR_X86_DEBUG\FATUTIL.DLL'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FormatDisk!FormatVolume: New FAT
#0 successfully written
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x40!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FormatDisk!FormatVolume: New FAT
#1 successfully written
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FormatDisk!FormatVolume: New root
directory successfully written
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FormatDisk!FormatVolume: New BPB
successfully written
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FormatDisk!FormatVolume complete.
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: <<< Unloading module fatutil.dll
at address 0x03E70000-0x03E81000 (RW data at 0x01FED000-0x01FEE0E0)
Unloaded symbols for
'D:\WINCE500\PBWORKSPACES\00EX86\RELDIR\EMULATOR_X86_DEBUG\FATUTIL.DLL'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FSD_MountDisk: mounting volumes
for hDsk=00093DC0
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!OpenVolume: access time
updates disabled
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!OpenVolume: event logging
enabled
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!OpenVolume: automatic
scanning disabled
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!OpenVolume: write verify
disabled
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!OpenVolume: extra FAT on
format enabled
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!OpenVolume: force write
through disabled
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!OpenVolume: Codepage = 1
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!OpenVolume: Number of path
cache entries = 50
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: >>> Loading module diskcache.dll
at address 0x03E90000-0x03E96000 (RW data at 0x01FF0000-0x01FF04EC)
Loaded symbols for
'D:\WINCE500\PBWORKSPACES\00EX86\RELDIR\EMULATOR_X86_DEBUG\DISKCACHE.DLL'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: CreateCache: Successful. Cache
Size: 16 KB, Start: 33, End: 64.
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000063
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000064
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000065
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000066
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000067
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000068
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000069
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x0000006a
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x0000006b
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x0000006c
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x0000006d
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x0000006e
............
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3f2!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003f2
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3f3!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003f3
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3f4!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003f4
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3f5!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003f5
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3f6!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003f6
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3f7!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003f7
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3f8!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003f8
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3f9!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003f9
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3fa!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003fa
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3fb!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003fb
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3fc!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003fc
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3fd!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003fd
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3fe!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003fe
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x3ff!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x000003ff
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x400!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000400
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c:
FLASHDRV.DLL:L2P_GetPhysicalSectorAddr() - Secondary table doesn't
exist for logical sector 0x401!!!
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FLASHDRV.DLL:ReadFromMedia() -
Unable to determine physical sector address for logical sector
0x00000401
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: CreateCache: Successful. Cache
Size: 512 KB, Start: 65, End: 16317.
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!InitVolume: FAT version: 16
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!InitVolume: Cluster Size
(Sectors): 2
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FATFS!InitVolume: TFAT enabled:
TRUE
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: TFAT:WARNING - The first cluster
of a directory is being updated, this operation is not transaction safe
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FS: Registering file system IPSM,
index 4, flags 0x00000000
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FS: Mount complete (IPSM, index
4, flags 0x00000000)
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: InitSharedHeap: 4a000000 10000 c
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: InitSharedHeap: return 4a000060
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: >>> Loading module relfsd.dll at
address 0x03E60000-0x03E69000 (RW data at 0x01FEB000-0x01FEBADC)
Loaded symbols for
'D:\WINCE500\PBWORKSPACES\00EX86\RELDIR\EMULATOR_X86_DEBUG\RELFSD.DLL'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FS: Registering file system
Release, index 5, flags 0x00000000
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: Mounted ReleaseFSD volume
'\Release'
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: size of 'dbglist.txt' = 00000000
PID:a8fc7c1a TID:a8fc7bea 0x88fc7a3c: FS: Mount complete (Release,
index 5, flags 0x00000000)

.