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 08 Oct 2007 11:07 AM by  mikee@logicpd.com
error while burning image in nand
 3 Replies
Sort:
You are not authorized to post a reply.
Author Messages
kirang@oasistech.co.in
New Member
New Member
Posts:


--
06 Oct 2007 08:18 AM
    Hello

    I am trying to load image in NAND using Logic Loader. But when i execute burn command it gives me error

    error: burn: image does not fit in flash
    error: burn: image does not fit in flash

    Please help me if anybudy is having solution for.
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    06 Oct 2007 10:21 AM
    It appears that whatever you are trying to burn into NAND flash simply does not fit.

    Try using LoLo's info command to view the amount of memory on the board. Then take a look at the size of the file you are trying to put in there.

    Also, you ought to be using YAFFS (or some other file system) to burn something into NAND. In general, anytime you use NAND flash you want to go through an appropriate flash file system that can handle bad-block management, errors, etc.

    Check the LogicLoader's User Manual for information on using YAFFS. In general, you:
      *losh> add-yaffs

      *losh> mount yaffs

      *losh> cp whatever file you want into YAFFS (try TFTP for this)

      * access the file however you like using the normal LoLo file commands


    Regards,
    --mikee
    kirang@oasistech.co.in
    New Member
    New Member
    Posts:


    --
    08 Oct 2007 12:12 AM
    The NAND FLASH memory available is 64 Mbytes. Even the size of file is also very less near about 1K. I am using yaffs for burning the nand.
    As u suggested to use tftp but I want to use serial port only. Please help me out.
    mikee@logicpd.com
    New Member
    New Member
    Posts:


    --
    08 Oct 2007 11:07 AM
    You don't use the load/burn command combination to put something into YAFFS. load unpacks a file into a RAM buffer or its execution space. burn flashes the file put in the RAM buffer by the load command. Where it gets flashed depends on the options you give it or the format of the file (ELF, S-REC, MS-BIN, raw-binary). The LogicLoader User Manual has a section dedicated to explaining this behavior.

    You need to use the cp command. However, the cp command doesn't take data over the serial port. Mainly because the command can't guarantee the portion of the file's format that describes size, location, etc. will come at the beginning of the data stream.

    Therefore, if you want to cp something into NAND flash, you need to:
    1) create the YAFFS partition
    2) mount the YAFFS partition
    3) copy the file from another mounted file system (CF Card, YAFFS NOR partition, etc.) or from a TFTP server

    --mikee
    You are not authorized to post a reply.