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 01 Apr 2008 12:41 AM by  lilja.magnus@gmail.com
Using lolo to write binary to nor flash
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
lilja.magnus@gmail.com
New Member
New Member
Posts:


--
29 Mar 2008 05:34 AM
    I'm trying to use lolo load and burn commands to burn a raw binary image to the NOR flash. However, no matter what flash adress I use in the load command the subsequent burn command warns me that the one or more of the first sectors will be erased (supposedly containing lolo + config).

    Anyone knows the trick to write something to the NOR flash on a i.MX31 Litekit?


    Version 2.4.0-IMX31_10 0001
    *****************************************************************

    losh> ifconfig sm0 /dev/config
    losh> load raw 0xa0060000 10000 /tftp/192.168.1.5.zero.bin
    error: load: failed to open (/tftp/192.168.1.5.zero.bin)
    losh> load raw 0xa0060000 10000 /tftp/192.168.1.5:zero.bin
    loading from /tftp/192.168.1.5:zero.bin:
    loading raw binary to 0xa0060000 (flash) len 00002710:
    .....done
    file loaded to ram buffer, destined for flash addr: 0xa0060000
    losh> burn
    region name /dev/flash0
    phys_address 0xa0000000
    virt_address 0xa0000000
    size 0x200000
    Nor flash erase: The area (or parts of it) 0x0 - 0x10000 is locked.
    The area you are trying to write to is locked

    ************************* WARNING!! *****************************

    You are about to erase locked areas.
    They might be needed to boot the card engine. If you erase this block the
    card engine may not boot. Are you sure you want to do this?


    ************************* WARNING!! *****************************

    Do you wish to continue? (y/n)
    bvmagaldi
    New Member
    New Member
    Posts:


    --
    30 Mar 2008 03:00 PM
    Hi

    Can you erase NOR Flash or the problem is just on programming ? I guess you'll need a JTAG programmer to do this, because if you corrupt your LoLo on the NOR Flash you will can't restore previous state.

    Best Regards

    Bruno V. Magaldi
    --
    LabDev
    lilja.magnus@gmail.com
    New Member
    New Member
    Posts:


    --
    31 Mar 2008 06:52 AM
    Hi

    I haven't tried erasing anything. I do have a JTAG programmer so it's possible to restore the board.


    I just tried loading an image and burning and although I specified 0xA0150000 as the load adress, the burn command erased the flash and burned the image to the first sector (overwriting lolo).

    /Magnus
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    31 Mar 2008 09:31 AM
    mlilja -

    Please review the Release notes associated with the LoLo 2.4.0 release. They made some changes in how NOR is used. You can now use block addressing. I've erased /dev/flash0 B5 B26 and been able to use a yaffs partition to store files in NOR. It didn't complain about the erase as long as you were above B4.

    Thanks

    Richard
    lilja.magnus@gmail.com
    New Member
    New Member
    Posts:


    --
    01 Apr 2008 12:41 AM
    Ok, thanks. Got it to work now.
    You are not authorized to post a reply.