3.11.2009

  1. What's the problem ?
  2. What's the ideal situation when there is no problem ?
  3. How do we go from here to there ? ( How do we go there from here ?)
  4. How do people respond to the policy change ?
  5. Can we really go from here to there ?
這裡 copy 的

3.10.2009

eVC++ over KITL

eVC 一般都是用 ActiveSync 和 Target連線,但是也可以用 KITL 喔.... (雖然不知道這樣有什麼好處..)。

但是需要 Platform Builder 幫忙建立起 KITL 連線。

platform builder 建立KITL 連線的方法就跟平常一樣。
所以重點在 eVC 的設定:

Tools -- Configuration Platform Manager : 選target 的 device, 按 properties:
Transport : KITL transport for Windows CE
Startup Server : CESH Server for Windows CE

這樣就OK了。 eVC就可以像 ActiveSync 一樣動作。只不過是"慢"動作..

跟 ActiveSync比起來,好處在哪?
(這樣的問題不要問我了..)

3.09.2009

JIT Debugger

這一篇:JIT debugger

Platform--Setting 不enable Kernel Debugger,但是要Enable KITL。

kd.dll, osaxst0.dll, osaxst1.dll 改放在FILES,不要放在MODULE (因為放在MODULE會被自動load進去啟動)。

需要 loaddbg.exe ,所以可以把這個 file放進 files。
hd.dll一樣放到 FILES。

要啟動 kitl debug。只要執行 loaddbg.exe 就可以了。 <=說錯。
kitl debug 還是要手動 enable 起來 (run activekitl).
然後在 platform builder 的 cesh 下command

Wincows CE <s loaddbg.exe
然後platform builder 會 load symbol 讓 platform builder 好像當機一樣,約 2 min 後,symbol load 進來。就可以操作了.,


這一篇msdn 有說明 JIT Debugger Setup.
這一篇討論好像有關。
這一篇也是講 JIT,但是要換 debug module. UsrExceptDmp.exe

msdn blog 說ktil , debug for ce 5.0 and 6.0. 這一篇這一篇也是。


JITDebugger 好像有兩種:on pc, on device。
大概是依照 exception 發生時,叫起 debugger的動作:
  • pc : 開啟 kitl,和 platform builder 連線。
  • device : 依照registry 的內容,開啟一個ap (例如 UsrExceptDmp.exe)

PASSIVE KITL cannot "Run Program"

如果是 passive KITL,Platform Builder 的 Target--Run Programs 就不會active 。
要是Active KITL 才可以。 <==其實是可以的,ref loaddbg.exe
這是 Release folder 有沒有mount 的原因嗎?


因為太短,所以多寫一些..


Active KITL,雖然 boot 時就啟動 kitl, wait for connection,但是還是run nandflash 中的 image,並沒有重新download kernel 進來 run。
download and run 是在 eboot 作的,但是如果是 XIP,也沒有辦法。binfs 部份還是 在nandflash中

3.04.2009

USB initiate..log

ref 這一篇,有 initiate packet data.
USB Request Pocket.
typedef struct DEVICE_REQUEST
{
UINT8 RequestType; //0
UINT8 Request; //1
UINT8 ValueL; //2
UINT8 ValueH; //3
UINT8 IndexL; //4
UINT8 IndexH; //5
UINT8 LengthL; //6
UINT8 LengthH; //7
} DEVICE_REQUEST;

Request Code:

GET_STATUS 0
CLEAR_FEATURE 1
RESERVED_1 2
SET_FEATURE 3
RESERVED_2 4
SET_ADDRESS 5
GET_DESCRIPTOR 6
SET_DESCRIPTOR 7
GET_CONFIGURATION 8
SET_CONFIGURATION 9
GET_INTERFACE 10
SET_INTERFACE 11
SYNCH_FRAME 12

3.02.2009

Install Samba Server in Windows

這一篇有prebuild version,還有,不用裝Cygwin.

為甚麼要這樣作呢? 因為Windows 有 15 人的連線限制...

還沒試..

這一篇是在 Cygwin 上安裝 Samba 的範例。

romimage ce.bib

makeimage 時,會由 config.bib, platform.bib 產生 ce.bib。
然後 romimage 會依照 ce.bib 的內容產生 *.bin

config.bib 和 platform.bib 內容常常有一些 define 和variable,所以很難看出 ce.bib 最後是怎樣。
可以等 makeimg 完再看 ce. bib。

如果只是要修改 bib (config.bib or platform.bib),可以只修改 %_FLATRELEASEDIT%\ce.bib。
然後 call romimage ce.bib 就可以。