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 30 Mar 2009 06:05 AM by  sandeep.akkanapragada@lntemsys.com
Loading image from NAND
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages
sandeep.akkanapragada@lntemsys.com
New Member
New Member
Posts:


--
16 Mar 2009 01:30 AM
    I copied the NK.bin from a tftp server to NAND partion created by me, with YAFFS mounted, how can I copy image from NAND on every power cycle to RAM and execute it..??
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    16 Mar 2009 09:49 AM
    sandeep,

    You can save a script in the config block that initializes, mounts, loads and execs the NK.BIN from YAFFS.
    The script can be saved using the echo command or the config S <size of the script in bytes> command.

    We generally save the script as a .txt file and then use config S to send it over the serial port. This tends to work better for longer scripts - and makes editing them easier. You can use the LoLo Labs for an example of how to set up the script.
    Thanks
    sandeep.akkanapragada@lntemsys.com
    New Member
    New Member
    Posts:


    --
    17 Mar 2009 08:04 AM
    Just for curiosity, which ones faster, booting from NAND or SD card..??

    I finally used the following format in a txt file and its taking more time to load than from SD card.

    echo "VOLOpart-add /dev/nand0 b 242 1060
    mount yaffs /dev/nand0b /b -rw
    video-init 15 16
    bitmap /b/LOADING.BMP
    load bin /b/NK.bin
    exec;\n" /dev/config

    and more over if I want use "dd" (to copy NK.bin from tftp to NAND) to skip bad blocks in NAND, how can that be done..?
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    17 Mar 2009 09:07 AM
    The processor checks SD to boot first, and wouldn't need to load from NAND if it finds the MLO on SD, so SD will be faster.
    sandeep.akkanapragada@lntemsys.com
    New Member
    New Member
    Posts:


    --
    17 Mar 2009 11:28 PM
    But I think it only waits for 1sec if there is a valid device, and initialized. so max there should be a delay of 4 secs for 4 devices in list if the default boot setting is "USB, UART, MMC1, NAND". Apart from that, what else can be done to fasten up the booting process.
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    20 Mar 2009 07:30 AM
    sandeep -

    Speeding up the boot process is an applications engineering question. Hopefully one of your fellow TDG developers can help you out with it.
    Thanks
    sandeep.akkanapragada@lntemsys.com
    New Member
    New Member
    Posts:


    --
    30 Mar 2009 06:05 AM
    does the EBOOT load the corresponding driver, when booting from NAND or ONENAND..?
    cause when reset controller gets the sys boot table and recognize NAND or ONENAND, but once the command is passed to loagic loader, I suppose both architectures are different (OneNAND and NAND), so how does loagic loader recognize it has to deal with NAND or OneNAND..?
    You are not authorized to post a reply.