2009年11月12日

傳說中的"nk.bin"

早晨頭腦正清醒,夢見了為啥linux的root filesystem為何沒有獨立出來?
於是想說知己知彼~百戰百勝,首先要摸清WinCE的底細,
於是乎,首先我們的敵人是,傳說中的"nk.bin"

1.
WinCE驅動程式學習雜記
http://jusweny.spaces.live.com/blog/cns!88C641BFCCD350D4!2202.entry?sa=901009079


(1.)影像檔建構程序:(1)Sysgen;(2)Build;(3)Buildrel;(4)makeimage

(2.)產生的影像檔為nk.bin,若要下載到BSP,需要板上已經有boot loader,否則需要先查BSP的boot loader燒錄方法,將boot loader燒入。

(3.)產生影像檔時makeimg.exe會呼叫:(1)cenlscmp.exe(2)fmerge.exe(3)regcomp.exe(4)txt2ucde.exe(5)romimage.exe,讀取ce.bib檔案以結合需要檔案成為nk.bin


nk.bin和nk.nb0文件格式分析
http://prothesworld.spaces.eepw.com.cn/articles/article/item/38667


Romimage.exe is a locator application that creates Windows CE binary image (.bin) files, usually limited to a single file called Nk.bin. This means that Romimage

             Reads Ce.bib to determine which %_FLATRELEASEDIR% binaries and files to include in the run-time image.

             Assigns physical memory addresses to these binaries and files.

             Creates the run-time image Nk.bin.


進階文章:解析NK.BIN
http://blog.csdn.net/shuiii/archive/2008/02/27/2125138.aspx

2.總而言之,pxa300上面已經平均地把兩區128MB各分配給linux和wince了(nand flash總大小,256MB),nk.bin就不深入研究啦~

沒有留言:

張貼留言

NO-CARRIER 網卡無法啟動

 工作時,由於想要啟動linux OS的網卡, 發現某張新設定的網卡一直無法啟動,就算下指令UP了,但是也沒有順利啟動 所以爬文後,想要確認該網卡的status, 發現某行為: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu...