星期四, 10月 19, 2006

捉迷藏 : nk.exe nk.lib kern.exe..

build and sysgen BSP .. 將log copy 下來用ultra editor 打開 -- 目的是要find "nk.exe",發現..
makeimg 時有:
Copying C:\WINCE500\PBWorkspaces\CoreOS2440\RelDir\smdk2440a_ARMV4I_Release\kern.exe to
C:\WINCE500\PBWorkspaces\CoreOS2440\RelDir\smdk2440a_ARMV4I_Release\nk.exe for debugger
所以實際上nk.exe就是kern.exe (?)。
難怪找不到kern.exe..因為被rename掉。

nk.exe 的build sources file 在 platform\<your platform>\Src\Kernel\Kern\sources

但是指定要link oal.lib 和 nk.lib

oal.lib 就在同目錄的oal folder。

newsgroupe ( http://groups.google.com.tw/group/microsoft.public.windowsce.platbuilder/
browse_thread/thread/4eb1eee943701dc1/68f759ac9fc8049d?lnk=st&amp;amp;amp;amp;q=
nk.lib+nkmain.lib&rnum=1&hl=zh-TW#68f759ac9fc8049d )說:
nk.lib= nkmain.lib + nkcomp.lib+nomapfile.lib 
有些private folder的source code到最近才release,所以要install QFE ( http://www.microsoft.com/downloads/results.aspx?productId=&amp;amp;amp;amp;CategoryID=
&freetext=ce+update&DisplayLang=en&DisplayEnglishAlso=&sortCriteria=date&startDate=
&amp;amp;amp;amp;period=0&type=&nr=20 )

網路上只有這一篇成功build出nk.lib,其他都是說明由於MS release source 不全,所以沒辦法build nk.lib。

一陣惡搞之後,的確已經build出modified kernel image ( 從debug message 可以看到.. ),但是已經忘了是怎麼弄出來的 (因為build 一次最少要40 min,最多要 2 hours )。

大概紀錄一下:
  • private 內的source 大部分是 *.lib,最後會放在 PUBLIC\COMMON\OAK\LIB中,讓其他project link.
  • nk.exe from kern.exe, kern.exe 的 sources (makefile 描述檔)在platform\smdk2440\src\kern

從頭開始:
  1. restore WINCE500
  2. disable multixip, active configuration = release, build and sysgen current BSP
    Error : don't know how to make fal.lib.
  3. 改 Build and sysgen .
成功!也就是..
  1. 先到 private\src\ ... nk 下 作" build -c"
  2. 到public\common\oask\...\lib 去看 nkmain.lib 的time tag對不對
  3. build and sysgen ....then wait.
但是在log中還是看不到哪裡build 出nk.lib...所以沒辦法只build nk.lib.

但是我是要build device.exe ... @_@.

沒有留言:

網誌存檔