3.29.2010

celogflush.exe

有關 celog,好像有source code,在
C:\WINCE600\PUBLIC\COMMON\SDK\SAMPLES\CELOG\

有 celogflush.exe 的 source code。

但是沒有 celogflush_lib.lib 的 source。


要build celogflush.exe 可以到 celogflush 目錄下:
 sysgen -p common celogflush
relese directory 就會有新的 celogflush.exe

從 source code 可以看出來,celog 是可以停止的,停止的方法是 set event,event name 是:
"SYSTEM/CeLogFlush Quit"
宣告在同目錄的 transport.h

停止的 ap 也寫好了,一樣在 common sdk tool celog 目錄: celogstopflush.exe



結果在 啟動 celogflush.exe 時有 error message:
CeLogFlush: Failed to load CeLog DLL
但是 手動把 celog.dll 和 celogflush.exe copy 到 windows 目錄後,就可以手動啟動了。
這好像是因為 multi-xip 的原因,celog.dll, celogflush.exe 要在boot kernel 的 bin part (跟nk.exe 一起)。
所以要手動修改 %_FLATRELEASEDIR%\common.bib:
IF IMGCELOGENABLE
celog.dll $(_FLATRELEASEDIR)\celog.dll TINYNK SHK
IF IMGAUTOFLUSH
celogflush.exe $(_FLATRELEASEDIR)\celogflush.exe TINYNK SH
ENDIF IMGAUTOFLUSH
其中 TINYNK 就是multixip 的 part I - booting 的部份。


不然就要修改 makexip.js,把 celog.dll 和 celogflush.exe 加到filelist

這一篇 news groupe 文章有說,可以改..

KMOS

You could fix that by alter the launch sequence (LaunchXX) of CeLogFlush in
[HKEY_LOCAL_MACHINE\init]
Or alter the CeLogFlush (source can be found in
PUBLIC\COMMON\SDK\SAMPLES\CELOG\FLUSH\CELOGFLUSH\flush.c) to delay the file
openning

.

沒有留言: