none
Windows CE 5.0 - OS ignores boot.ini resolution during OS load RRS feed

  • Question

  • Hello, I am trying to solve a problem on Windows CE 5.0. I am using the BIOSLoader method to load the OS, which is contained within the NK.BIN file. In the Boot.ini (included below) I have specified the Physical height/width as well as the Display height/width to 640x480 pixels. However, the OS continues to load at 800x600. Once the OS is fully loaded, the correct resolution of 640x480 is displayed. It is only during the OS loading portion, when my splash screen is displayed, that the system uses the 800x600 resolution.

    I am using a 640x480 VGA screen, which is configured in the motherboard BIOS to be a 640x480 panel. During BIOS boot, the correct 640x480 resolution is used and displays a custom BIOS splash screen. After this finishes, the OS load begins, and the resolution jumps to 800x600.

    Does anyone know why the OS load is still happening at 800x600, and how to set it to 640x480? I have tried removing all of the settings below, as the default for BIOSLoader is 640x480 - that did not work. I have tried commenting out either the physical or the display height/width statements, keeping the other, to see if that worked - but it did not work either.

    Perhaps I need to set something in the registry? I've tried looking, but could not find the expected HKLM\Drivers\Display registry key.

    Contents of Boot.ini:

    #
    # BIOS loader configuation file
    #

    #
    # Primary File to Load on startup:
    BinFile=NK.bin

    #
    # Device name root string:
    DeviceNameRoot=CEPC

    #
    # Video Setting:
    Video=on

    #
    # Physical screen width
    # Must be >= DisplayWidth
    PhysicalWidth=640

    #
    # Physical screen height
    # Must be >= DisplayHeight
    PhysicalHeight=480

    #
    # Display Depth
    # Possible values are 8, 15, 16, 24, 32
    DisplayDepth=16

    #
    # Display width
    DisplayWidth=640

    #
    # Display height
    DisplayHeight=480
    • Changed type Kevin Barton Wednesday, December 26, 2012 9:27 PM
    Friday, December 21, 2012 9:29 PM

Answers

  • We ended up changing the settings in the BIOS loader itself, in %_WINCEROOT%\PLATFORM\CEPC\SRC\BOOTLOADER\BIOSLOADER\LOADER, splash.h file there are a few defines there that we hard coded:

    #define SPLASH_SCREEN_WIDTH                 640

    #define SPLASH_SCREEN_HEIGHT                480

    • Proposed as answer by deepak_ Friday, January 4, 2013 5:27 AM
    • Marked as answer by Kevin Barton Friday, January 4, 2013 3:03 PM
    Thursday, January 3, 2013 8:43 PM

All replies

  • Hello, I tried using the setup.144 and bootdisk.144 images provided by MS in the WinCE 5 SDK. I installed the bootloader from those, and it still incorrectly shows my splash screen image, which is 640x480 pixels, at 800x600. 

    Display Width/height are stilll set to the default 640x480 however.

    Wednesday, December 26, 2012 9:29 PM
  • Hi Kevin,

    You can adjust these settings in the autoexec.bat file. Moreover, you can run vesatest application (which is one of the options during win CE boot) to know your video card supported resolutions.


    • Edited by deepak_ Friday, January 4, 2013 5:26 AM
    Friday, December 28, 2012 2:06 PM
  • Check the registry entries for the display driver.  There should be entries to configure display resolution and color depth. 

    Samuel Phung [eMVP] Blog: http://www.embedded101.com/samuelp101/ Twitter: @Samuelp101

    Thursday, January 3, 2013 8:35 PM
  • We ended up changing the settings in the BIOS loader itself, in %_WINCEROOT%\PLATFORM\CEPC\SRC\BOOTLOADER\BIOSLOADER\LOADER, splash.h file there are a few defines there that we hard coded:

    #define SPLASH_SCREEN_WIDTH                 640

    #define SPLASH_SCREEN_HEIGHT                480

    • Proposed as answer by deepak_ Friday, January 4, 2013 5:27 AM
    • Marked as answer by Kevin Barton Friday, January 4, 2013 3:03 PM
    Thursday, January 3, 2013 8:43 PM
  • Kevin, did it solve the issue?
    Friday, January 4, 2013 5:28 AM