CF卡启动WinCE

来源:互联网 发布:海洛因是有多爽 知乎 编辑:程序博客网 时间:2024/04/29 14:38
 1.找个带软驱的计算机,插入一张软盘。(如果没有软驱的朋友,给我邮箱留言,我会把后面用到的文件发给你! Borland_tc@yahoo.com.cn);
2.定位到CEPB的目录:%CEPBDir%/Cepb/Utilities,如我的是:D:/Program Files/Windows CE Platform Builder/4.20/cepb/utilities),运行websetup.exe,将安装到系统目录下一些必要文件,不管它。插入软盘后,运行同目录的cepcboot.144,将启动文件拷贝至软盘,结束后软盘有下列文件:(不用关心英文,我是从帮助直接抄下来的,懒得删掉)
Autoexec.bat
Batch file that Microsoft MS-DOS requires.
Command.com
Command file that MS-DOS requires.
Config.sys
System file that MS-DOS requires.
Drvspace.bin
Binary file that adjusts the settings in the Drvspace.ini file to mount a drive.
Eboot.bin
Binary file that constitutes the Ethernet boot loader.
Himem.sys(必须)
System file that MS-DOS requires.
Io.sys
System file that MS-DOS requires.
Loadcepc.exe(必须)
Executable file that loads the Eboot.bin boot loader image.
Msdos.sys
System file that MS-DOS requires.
Readme.txt
Text file that contains instructions.
Sboot.bin
Binary file that constitutes the serial boot loader.
Sys.com
MS-DOS application file.
Vesatest.exe(可选)
MS-DOS file that tests the VGA BIOS on the video card to ensure compatibility with the Windows CE–based default display driver. The Readme.txt file provides additional information about this file.
我们只需要上述标红的文件,因为我们不是从软盘启动CE,是从CF卡启动!所以我们要制作CF卡的DOS启动文件;
3.找个工具,USBoot.exe,(找不到给我发邮件吧!),就是制作U盘DOS启动盘的小软件;还得找个CF卡转换为USB的小硬件(电子市场有卖的,20块一个)。用USBoot.exe给你的CF卡做个DOS引导盘;完后可以看到CF卡上已经有了启动文件:Command.com,Drvspace.bin,Io.sys,Sys.com等,不管它们;
4.之后将上述标红的几个文件拷贝到CF卡上;
5.制作nk.bin的过程不说了吧,每个目标机不一样。用我们最熟悉的X86方式,生成一个CEPC的镜像。我用的是WinCE4.2,在第三步中选的是:Enterprise Web Pad,后面选的默认,生成之前不要忘记将该工程的Platform Setting—>Build Options下的复选框Enable Images Larger than 32MB选上;后面点击Build,耐心等待生成;最后把PB生成的nk.bin一同拷到CF卡上;
6.用CF卡启动目标机,进入DOS下的C:/下后,敲:Loadcepc /L:640x480x16 nk.bin进入CE。

其他:
上述的标红文件Config.sys用文本工具打开可以看到内容:

menuitem=CEPC_LOCAL, Boot CE/PC (local nk.bin)
menuitem=CEPC_1024, Boot CE/PC (ether via eboot.bin with /L:1024x768x8)
menuitem=CEPC_800, Boot CE/PC (ether via eboot.bin with /L:800x600x16)
menuitem=CEPC_640, Boot CE/PC (ether via eboot.bin with /L:640x480x32)
menuitem=CEPC_SERIAL, Boot CE/PC (serial via sboot.bin)
menuitem=VESATEST, Run VesaTest program and list valid display modes
menuitem=CLEAN, Clean Boot (no commands)
menudefault=CEPC_800,5
menucolor=7,1

[CEPC_LOCAL]

[CEPC_1024]

[CEPC_800]

[CEPC_640]

[CEPC_SERIAL]

[VESATEST]

[CLEAN]

[COMMON]
buffers=10,0
files=30
break=on
lastdrive=Z
dos=high,umb
device=himem.sys /testmem:OFF
中的[menu]部分是引导后的提示信息,不需要,可删掉,直接保留[COMMON]部分即可,不愿改动也没什么问题,熟悉DOS的朋友就不用多说了,自己慢慢摸索吧!
原创粉丝点击