跳到主要內容

Automatic Building Process: 建置 Windows CE 6.0 Images

對於常常需要改變各種 Windows CE Image設定並且需要重新編譯Image的人來說,透過Visual Studio的GUI操作介面來說變成是一種負擔,互動式介面造成必須等候每一步驟的完成後才能繼續進行下一步
因此自動化編譯的需求便是這種情形下最適當不過的一種操作方式

自動化編譯是透過命令模式(command Prompt)來完成,但是命令模式並非一般的Command Prompt,必須要
事先將所有的Windows CE Environment Variables 設定完成後才能進行編譯,因此可以透過下列方式將編譯所需的環境變數轉換成一個批次檔後便可以進行自動化編譯的任務

1.使用 PBXMLUtils.exe 將Windows CE環境變數提取轉存 批次設定檔

首先,先在Visual Studio 2005工具內開啟Windows CE外掛的build選單下的Open Build Release Windows

在此命令模式下執行:
c:>"c:\program files\Microsoft Platform Builder\6.00\cepb\IdeVS\Pbxmlutils.exe" /getbuildenv > SetupCEEvn.bat

便可將 Windows CE Building Command Prompt內的環境變數轉存到 SetupCEEnv.bat 批次檔內

2. 測試自動化編譯程序

首先,開啟一般的Windows Command Prompt命令模式,並執行 SetupCEEnv.bat批次檔後,再使用 set命令檢視Win CE Building Environment Variables是否設定成功

接下來便可以使用blddemo -q 測試編譯 Windows CE 6.0 Image了

留言

這個網誌中的熱門文章

WES 7 Image 維護與更新--基本概念介紹

在佈署完成的WES-7設備上,日常運作主要的工作就是維持設備的正常運作以及WES-7 Image的更新作業 更新WES-7 Image通常有兩種方式 : 1. Online Image Maintenance 2. Offline Image Maintenance 如下圖所示 圖片來源: Microsoft 對於更新維護作業來說,採用方法1當然是最輕鬆的作法,但是可能面臨到device 使否是在connected的狀態之下而有所關聯,在不具備connected的device狀態下就只能採用第二種作法 office maintenance了 因此也較為複雜 在採用office image maintenance的時候首先就必須要知道目前的 image包含了那些套件 因此會牽涉到 Image的掛載與Image內的Package list的議題,通常我們會使用ImageX工具與Package Scanner工具去獲取Image的package info. ImageX : 用於掛載與擷取WES-7 Device的Image pkgscn : 用於取得Image的套件資訊以及搜尋更新套件(含移除過舊元件功能) 當然另外一個重點就是我們如何取得微軟最新的 WES-7 Packages ? 現在已經可以透過微軟最新的 WEDU ( Windows Embedded Developer Update )來主動更新 Developer的Package資訊了,可參考另一篇 WEDU介紹

NLB Operation Mode / Modes of Bonding

mode=1 (active-backup) Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The bond's MAC address is externally visible on only one port (network adapter) to avoid confusing the switch. This mode provides fault tolerance. The primary option affects the behavior of this mode. mode=2 (balance-xor) XOR policy: Transmit based on [(source MAC address XOR'd with destination MAC address) modulo slave count]. This selects the same slave for each destination MAC address. This mode provides load balancing and fault tolerance. mode=3 (broadcast) Broadcast policy: transmits everything on all slave interfaces. This mode provides fault tolerance. mode=4 (802.3ad) IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that share the same speed and duplex settings. Utilizes all slaves in the active aggregator according to the 802.3ad specification. Prerequisites: Ethtool support in the base drivers fo...

Window CE BootLoader for x86 ( MS-DOS )

CEPC X86採用了幾種開機方式,其中一種運用MS-DOS當成Booting OS 利用 Windows CE Platform builder所提供的 Image disk 製作一片 1.44M的開機片,內有提供 LoadCepc.exe命令作為 CE Boot Loader 不過首先得先將磁片的開機檔案移植到嵌入式設備的CF / FLASH / DISK 上 以下提供傳統的MS-DOS開機系統製作方式供學員參考 : 使用MS-DOS開機片開機後, 透過 Fdisk.exe與 Format.com 工具製作 Windows CE Boot Loader 過程如下 圖一: MS-DOS開機 圖2: 開機後,載入 Fdisk執行 Partition切割工作 圖3: 選擇第一項,建立 Partition 圖4: 選擇第一項,建立 DOS Partition 圖5: 詢問是否全部切割成單一PARTITION,若CF過大可回答 N 自行切割大小 圖6: 輸入欲切割的Partition大小 圖7:切割後,按一下鍵盤的 esc鍵回到檢視畫面,就可看到所切割的Partition大小 圖8: esc回到主選單後,在選擇 [2] 設定啟動磁區 圖9: 選擇欲啟動作業系統的Partition 圖10: 選擇後應該會看到 Partition清單上的 Status欄位出現 A 字元 圖11: 切割後 重新啟動系統 圖12: 格式化所切割的新磁區 圖13: 格式化完成後 便可將 Platform Builder所製作的 Windows CE Bootloader磁片內容複製到C:內 重新開機後,進入c:> 輸入 C:>Loadcepc /L:800x600x16 nk.bin 便可載入nk.bin到記憶體 並且以800x600的解析度執行 windows ce 作業系統