Go to previous topic
Go to next topic
Last Post 03 Feb 2011 01:02 PM by  richard.laborde@logicpd.com
How to burn standalone apps into flash using U-Boot?
 2 Replies
Author Messages
oliver.nottrodt
New Member
New Member
Posts:


--
24 Jan 2011 05:47 AM
    According to the topic "Getting started with BSL" the BSL applications can be written to flash and autostarted using U-boot. The application should start automatically instead off the linux kernel. I'm wondering which commands (mw, nand erase, nand write, ...) and values should be used the burn an application properly into flash. Are there any further/different steps when compiling compared to applications loaded into DDR via U-boot?

    How can I save the linux and u-boot image before overwriting the flash? (copy to sd-card?)

    Regards,
    Oli
    oliver.nottrodt
    New Member
    New Member
    Posts:


    --
    03 Feb 2011 06:19 AM
    For everyone who is interessted in this topic, my current solution to replace the linux kernel with my app is:

    1. stop autoboot
    2. load application into DDR:
    1. via UART:
    loadb -> perform kermit upload via terminal program
    2. via mmc (copy myapp.raw to mmc first):
    mmc init
    fatload mmc 0:1 0x82000000 myapp.raw
    3. write to nand:
    nandecc sw
    nand erase 280000 400000
    nand write.i 0x82000000 280000 400000
    4. modify u-boot environment variable:
    setenv nandboot 'echo Start my app ...; run nandargs; nand read ${loadaddr} 280000 400000; go ${loadaddr}'
    saveenv

    After reset the written app will be started instead of the kernel.
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    03 Feb 2011 01:02 PM
    Nice workaround Oli. I don't think the TI serial Flash tool works on the AM3517 yet, so I'm glad you made a way that works for you.

    Richard


    ---