现在的位置: 首页 > 综合 > 正文

Win CE Builder Platform 注意事项

2014年10月15日 ⁄ 综合 ⁄ 共 6549字 ⁄ 字号 评论关闭

一.建工程时我一般选Set-Top Box(机顶盒)
二.修改注册表(Platform.reg)中关于串口的内容,将条件判断注释掉,并将3,4串口的中断号分别改为1B和1A.
三.Platform->Setting->build option中去掉所有选项,若映像较大(大于32M)则先中64M那一项.
四.添加用到的组件:
    1.加文件系统支持:
        Core OS->Windows CE devices->File Systems and Data Store->Storage Manager->Fat File System
        Device Drivers->Storage Devices->ATAPI PCI/IDE Storage Block Driver->ATAPI PCI/IDE Storage Block Driver
    2.添加网卡支持:
        Device Drivers->Networking->Local Area Networking(LAN)devices->RealTek RTL8139
    3.添加串口支持:
        Core OS->Windows CE devices->Core OS Services->Serial Port Support
        Device Drivers->Serial->Com16550
        Device Drivers->Serial->Com_Card
    4.添加U盘支持(目前我这边要将BIOS里USB2.0的支持禁用)
        Catalog->Device Drivers->USB Host->USB Host controllers->EHCI
        Catalog->Core OS->Windows CE devices->Core OS Services->USB Host Support->USB Storage Class Driver
       
       
    5.修改显示分辨率:
        相关文件:C:/WINCE500/PLATFORM/Geodelx/Src/Drivers/Lxvideo/lxvideo.reg

 

 

一).系统启动慢:
    取消Platform->Setting->option->KITL的选项.

(二).中文系统:
    Platform->Setting->locale页面, Locales:选中中文(中国), 在Default language中选择中文(中国)
    添加组件:international->Locale Specific Support->Chinese(simplified)->Agfa AC3 Font Compression,  
            international->Locale Specific Support->Chinese(simplified)->Font->SimSun & NSimSun->SimSun & NSimSun (Subset 2_50),
            international->Locale Specific Support->Chinese(simplified)->GB18030 Data Converter

(三).注册表支持:
    添加组件:File Systems and Data Store->Registry Storage->Hive-based Registry.
    第一次启动很慢,以后会好.
   
(四).驱动器改名字:
    修改Common.reg的内容:
    U盘:找到[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/USBHDProfile]
        将"Folder"=LOC_STORE_HD_FOLDER 改为 "Folder"="你想显示的名字"
    硬盘:找到[HKEY_LOCAL_MACHINE/System/StorageManager/Profiles/HDProfile]
        将"Folder"=LOC_STORE_HD_FOLDER 改为 "Folder"="你想显示的名字"
       
(五).添加服务器功能:
    根据不同的服务器功能,在Platform.reg分别添加如下代码:
    FTP SERVER:
        [HKEY_LOCAL_MACHINE/COMM/FTPD]
            "AllowAnonymous"=dword:1                ;Determines whether the server will allow anonymous access.
            "AllowAnonymousUpload"=dword:1          ;Determines whether authorization is required to upload files to the server, delete files from the server, and rename files.
            "AllowAnonymousVroots"=dword:0          ;Specifies whether access to virtual roots is granted or denied to anonymous users.
            "DefaultDir"="//hard disk//FtpRoot"     ;Default root directory. Directory and subdirectories of this key are accessible remotely. If this value is not set in the registry, the default is /Temp.
            "IsEnabled"=dword:1                     ;Determines whether or not the server will accept incoming connections. This value is typically used to keep the server disabled at boot time.
            "UseAuthentication"=dword:0             ;Determines whether authorization is required to connect to the server. Determines whether the client needs to send a USER and PASS pair before being allowed to issue other commands.
   
    TELNET SERVER:
        [HKEY_LOCAL_MACHINE/COMM/TELNETD]
            "IsEnabled"=dword:1
            "UseAuthentication"=dword:0
       
    WEB SERVER:
        [HKEY_LOCAL_MACHINE/COMM/HTTPD]
            "IsEnabled"=dword:1
            "UseAuthentication"=dword:0
            "DirBrowse"=dword:1
        [HKEY_LOCAL_MACHINE/Comm/HTTPD/VROOTS//]
            @="//hard disk//WebRoot"
   
(六).向映像中添加程序:
    修改Project.bib文件:
    "MyApp.exe"          "C:/MyApp.exe"                               NK SH     ;S:系统文件, H:隐藏文件
    这样就将MyApp.exe文件加到了WinCE系统 /Windows下.
   
(七).建立快捷方式:
    首先用UE编写LNK文件:
    18#/windows/MyApp.exe   ;18是#后的字符数. 将编写的文件存为.lnk文件,如:MyApp.lnk.
    然后用前面的方法将MyApp.lnk加到映像中.
    最后修改Project.dat, 添加如下代码:
    Directory("/Windows/Startup"):-File("MyApp.lnk","/Windows/MyApp.lnk")
   
(八).编译SDK出错
    After you successfully build a Microsoft Windows CE 5.0 run-time image in Microsoft Platform Builder 5.0, you try to build the software development kit (SDK) by using the SDK Wizard. When you try to build the SDK, you may receive the following error message:
    It is recommended that you build a run-time image before building an SDK. Otherwise, the build process for your SDK might not succeed. Do you want to continue?

    If you click Yes to continue, you may receive the following error message that is generated by the SDK build:
    Rolling sysgen'ed headers and libs
    …
    Error: This build configuration has not been sysgen'ed
    Error adding sysgen'ed headers and libs
    Error rolling toolkit-specific files
    MSI file construction completed. 3 error(s), 0 warning(s).
   
    解决方法:
    To work around this problem, first verify that you have successfully built the operating system at least one time and that you have not modified the operating system design since the last successful build. Then, follow these steps:
    1. In Platform Builder 5.0, select the operating system configuration that you successfully built.
    2. To open a build window, click Open Release Directory on the Build OS menu.
    3. In the build window, type the following command:
    dir %_PROJECTROOT%/SysgenSettings.out
    This file confirms that you tried to build the operating system at least one time.
    4. In the same build window, type the following command:
    set sysgen>anchored.txt
    This file contains the set of anchored Catalog items in the operating system design. This file is located in the release directory.
    5. Compare the SysgenSettings.out file to the Anchored.txt file.
    6. Determine the set of Sysgen variables that are found in the Anchored.txt file that are not found in the SysgenSettings.out file. This set of Sysgen variables will be the set of Catalog items that you have to explicitly unanchor.
    7. On the View menu in Platform Builder 5.0, click Workspace.
    8. In the Workspace window, click the OSDesignView tab.
    9. For each Sysgen variable that you found in step 6, explicitly unanchor the Catalog item. To do this, follow these steps:
   
    a.  On the OSDesignView tab, find the Catalog item.
        Note If you need help finding the Catalog item on the OSDesignView tab, follow these steps:
        1. On the View menu in Platform Builder 5.0, click Catalog.
        2. Right-click in the Catalog, and then click Find.
        3. In the Find what box, type the Sysgen variable name. For example, in the Find what box, type SYSGEN_LOCUSA.
        4. Click Find Next. The folder in which you find the Catalog item is the same folder that is used on the OSDesignView tab.
 
    b.  Right-click the Catalog item, and then click Remove Item from User-specified Catalog Item(s).

    Note The Catalog item displays an unanchored symbol when the Catalog item is unanchored. An unanchored symbol is a green cylinder.
 
    10. On the Platform menu in Platform Builder 5.0, click SDK, and then click Configure SDK. The SDK Wizard starts.
    11. Click the CPU tab, and then click to select the check boxes for the CPU families that the SDK will support. Verify that you selected the operating system configuration that you already successfully built.
    12. On the Platform menu in Platform Builder 5.0, click SDK, and then click Build SDK.
    If the problem still occurs, verify that you successfully built all the operating system configurations that the SDK Wizard identified in the build log.
   
        将[HKEY_LOCAL_MACHINE/Software/Geode]下的"Resolution"的值改为文件下方列出的被支持的模式即可.
       

抱歉!评论已关闭.