Search

Technical Discussion Group Forum

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

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

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

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02 Jan 2006 08:35 PM by  mikea@logicpd.com
problems - Building flash and/or relocatable images.
 7 Replies
Sort:
You are not authorized to post a reply.
Author Messages
dhayes
New Member
New Member
Posts:


--
19 Sep 2005 03:30 PM
    I saw a similiar post on another forum (which was missp-posted). I have repeated my reply to this forum as well.



    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"
    mikea@logicpd.com
    New Member
    New Member
    Posts:


    --
    20 Sep 2005 10:48 AM
    The lpd_kernel_pxa270_50_2_1_4_0 kernel does not support Flash or Relocation images. The next kernel release that will support these image types.

    Thank You,
    -Mike Aanenson
    dhayes
    New Member
    New Member
    Posts:


    --
    20 Sep 2005 10:54 AM
    You indicated that The lpd_kernel_pxa270_50_2_1_4_0 kernel does not support Flash or Relocation images. The next kernel release that will support these image types.

    We are currently using lpd_kernel_pxa270_50_2_1_5_0.

    This is a REALLY big deal for us. When can we expect a release which addresses this problem.



    Thank You,
    -Mike Aanenson[/quote]
    mikea@logicpd.com
    New Member
    New Member
    Posts:


    --
    20 Sep 2005 11:05 AM
    Yes, I apologize, I meant to say lpd_kernel_pxa270_50_2_1_5_0. As you'll see in the 'readme' file for the kernel, these images types are not supported.

    We hope to have a release by the end of this week that supports these image types.

    -Mike
    Guy Sanchez
    New Member
    New Member
    Posts:


    --
    13 Oct 2005 07:51 AM
    Hi,

    When is the release that supports flash images expected? This functionality is also needed for my design.


    Thank you.

    Guy
    Anonymous
    Posts:


    --
    17 Oct 2005 04:07 PM
    Hi Guy,

    The updated BSP and Kernel have been posted to the webite.

    Regards,
    Guy Sanchez
    New Member
    New Member
    Posts:


    --
    02 Jan 2006 08:24 PM
    Hi,

    I just wanted to let you know that I was able to burn an image into flash and execute it. The changes I made were:

    Set the environment variable (LOCE_RELOCATE_FROM_FLASH 1) as noted in one of the previous posts to this thread, and

    Modify the "Platform Settings" to select the "Write Run-time image to flash" from the build options tab.

    I did have a problem figuring out how to run the program. When I entered "exec 0x00101000" the result was an error message from Lolo "error: exec: no loaded image found." The trick is to use the command ""exec 0x00101000 -" Note" There is a space between the last digit of the address and the "-"!
    mikea@logicpd.com
    New Member
    New Member
    Posts:


    --
    02 Jan 2006 08:35 PM
    Quote:
    Modify the "Platform Settings" to select the "Write Run-time image to flash" from the build options tab.


    This is actually incorrect. You may be building an XIP image that runs out of Flash as it probably takes preference over LOCE_RELOCATE_FROM_FLASH. You see, when you select 'Write Run-Time image to flash', you are setting the envrionment variable IMGFLASH to 1. IMGFLASH and LOCE_RELOCATE_FROM_FLASH are mutually exclusive. One builds an image that is burned into Flash, but is XIP (runs in Flash), the other (which is specific to Logic's BSP) builds an image that is burned into Flash, but copies itself to RAM at boot time.

    Hope this clears things up. Please check out our BSP User Guide:
    http://www.logicpd.com/do...4/70000143_Rev_D.pdf
    (Section 4.1 discusses the image types)
    (Section 5.3 discusses how to launch the different image types)

    Thanks,
    -Mike
    You are not authorized to post a reply.