Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 20 Oct 2005 05:49 PM by  Anonymous
Running relocatable CE from Flash
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
ThomasHill
New Member
New Member
Posts:


--
04 Aug 2005 09:31 AM
    I'm having trouble running CE from Flash. A non-relocatable image runs just fine when I deploy it to RAM from Platform Builder (BOOTME), but when I rebuild it to be relocatable, it doesn't run the same.

    Here are the steps I followed (documenting as I went along):

    In Platform Builder:

    File | New Platform to activate New Platform Wizard

    Workspace Name and Location
    Name: 20050804_01
    Next
    Board Support Packages (BSPs)
    Check: LOCE ARMV4I BSP
    Next
    Design Template
    Custom Device
    Next
    Applications and Services Development
    Next
    Applications - End User
    Check: ActiveSync
    Next
    Core OS Services
    Next
    Communication Services and Networking
    Next
    Device Management
    Next
    File Systems and Data Store
    Next
    Fonts
    Next
    International
    Next
    Internet Client Services
    Next
    Graphics and Multimedia Technologies
    Next
    Security
    Next
    Shell and User Interface
    Check: Shell->Graphical Shell (Choose 1)->Standard Shell
    Check: Shell->Command Shell->Console Window
    Check: User Interface->Network User Interface
    Check: User Interface->Touch Screen (Stylus)
    Next
    Windows CE Error Reporting
    Next
    Voice over IP Phone Services
    Next
    Completing the New Platform Wizard
    Finish

    From the Catalog:

    Add to OS Design: Third Party->LoCE Platform Support->lpd_kernel_pxa270_50_2_1_4_0
    Add to OS Design: Third Party->Device Drivers->Display->lpd_pxa27x_lcdc_gpe_pxa270_50_0_1_0
    Add to OS Design: Third Party->Device Drivers->Touch->lpd_pxa270_touch_pxa270_50_0_1_0
    Add to OS Design: Third Party->Device Drivers->USB Function->USB Function Bus Drivers->lpd_pxa270_usbf_pxa270_50_0_1_0
    Add to OS Design: Device Drivers->USB Function->USB Function Clients->Serial

    Platform | Settings
    Environment
    New (Environment Variable)
    Variable Name: LOCE_RELOCATE_FROM_FLASH
    Variable Value: 1
    OK
    OK

    Build OS | Build and Sysgen
    Shared Source Code Security Warning : OK
    (This comes up twice during the build. I hit OK both times.)

    Once built:

    Copy WINCE500\PBWorkspaces\20050804_01\RelDir\LoCE_ARMV4I_Release\NK.BIN to CF card

    Insert card into Zoom kit.

    Power on kit.

    From Teraterm:

    Mount fatfs /cf
    cd /cf
    load bin NK.BIN
    burn
    burning 6605692 bytes from a00c0000 to /dev/flash0
    erasing flash: 100%
    burning flash: 100%
    burn good (6605692 bytes)

    exec rtc:rtc_pxa270:dbg_serial:PXA270_FFUART:disp_num:5

    Output as follows:

    kernel cmdline: 'rtc:rtc_pxa270:dbg_serial:PXA270_FFUART:disp_num:5' at a005455c
    Debug serial initialized. Using driver PXA270_FFUART
    Windows CE Kernel for ARM (Thumb Enabled) Built on Jun 24 2004 at 18:25:00
    ProcessorType=0411 Revision=7
    sp_abt=ffff5000 sp_irq=ffff2800 sp_undef=ffffc800 OEMAddressTable = a0101164


    ==============================================================

    WinCE firmware init (LoCE).
    Kernel Arguments: rtc:rtc_pxa270:dbg_serial:PXA270_FFUART:disp_num:5.

    image_size: 0xF00000
    ram_size: 0xC00000
    link_for_flash: 0
    relocate_from_flash: 1
    rom_offset: 0x80020000

    ==============================================================

    Cold-boot: erasing object store.
    Initializing interrupts.
    Interrupt initialization complete.
    Initializing system-tick.
    System-tick initialized.
    RTC initialized. Using driver rtc_pxa270.
    Multiple XIP regions not defined or fixup failed.
    Initializing KITL.
    Remote host not present. Debug support not available.
    Firmware initialization complete.

    driver globals at 0x80000000.
    Platform does not support or does not require extension DRAM.
    Reported RAM installed is 33554432 MB
    Sp=ffffc7cc




    Nothing shows up on the screen (Zoom 6.4 display kit).

    In Platform Builder:
    Platform | Settings
    Environment
    Remove the LOCE_RELOCATE_FROM_FLASH environment variable

    Rebuild, following same steps as above.

    Once built, instead of putting image on CF and loading, do:

    ifconfig sm0 dhcp
    ifconfig
    bootme &

    and Attach device from PB.

    exec with same parameters as before.

    Windows comes up just fine.



    Am I missing a step to build / deploy the relocatable image?

    Thanks.
    mikea@logicpd.com
    New Member
    New Member
    Posts:


    --
    04 Aug 2005 10:09 AM
    Tom,
    Just to be sure, you are building for PXA270-10, correct? This post is in the LH7A400-10 forum, but by the looks of your output, it seems like you are using PXA270-10 components.

    I'll look into this for you.

    Thanks,
    -Mike
    ThomasHill
    New Member
    New Member
    Posts:


    --
    04 Aug 2005 10:12 AM
    Oops. Yes. The PXA270-10.
    dhayes
    New Member
    New Member
    Posts:


    --
    19 Sep 2005 03:28 PM
    How do you move a thread to the proper platform?

    We are also using PXA270 but I saw this post under this category.


    I can build NK.BIN for RAM and it works just fine.
    If I build NK.BIN as a FLASH image (for XIP) and burn it, executing
    exec 0x00101000-rtc:rtc_pxa270:dbg_serial:PXA270_FFUART:disp_num:8
    causes 1 of 2 things:

    1.) If the target has not been reset after 'load' and 'burn', it echos the boot string and hangs up.

    2.) If I reset the target I get the error message:

    error: exec: no loaded image found


    For relocatable builds. I get results almost exactly like the previous posts to this thread if I try to boot after load/burn prior to reset.

    After reset I, once again, get the error "error: exec: no loaded image found"
    Anonymous
    Posts:


    --
    20 Oct 2005 05:49 PM
    With the release of the latest BSP and Kernel for the PXA270 card engine relocation images are now supported.

    Thanks,
    You are not authorized to post a reply.