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 14 Oct 2013 01:14 PM by  steven.eckhoff
Error to save x-loader in flash.
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages
jduran@gem-med.com
New Member
New Member
Posts:79


--
30 May 2013 04:13 AM
    Dear all,

    I use the following code to get X-Loader and save it to the flash:


    # X-loader
    mw.l ${loadaddr} 0xFFFFFFFF 0x400000
    if tftpboot ${loadaddr} MLO; then
    nandecc hw
    nand erase.part ${x-loader_partition}
    nand write ${loadaddr} ${x-loader_partition} 0x20000
    nand write ${loadaddr} 0x00020000 0x20000
    nand write ${loadaddr} 0x00040000 0x20000
    nand write ${loadaddr} 0x00060000 0x20000
    else
    echo "Error transfering MLO"
    fi


    However the execution of the command is:


    TFTP from server 192.168.1.108; our IP address is 192.168.1.189
    Filename 'MLO'.
    Load address: 0x82000000
    Loading: ####
    done
    Bytes transferred = 46240 (b4a0 hex)
    NAND: HW ECC selected
    nand - NAND sub-system

    Usage:
    nand info - show available NAND devices
    nand device [dev] - show or set current device
    nand read - addr off|partition size
    nand write - addr off|partition size
    read/write 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
    nand write.yaffs - addr off|partition size
    write 'size' bytes starting at offset 'off' with yaffs format
    from memory address 'addr', skipping bad blocks.
    nand erase[.spread] [clean] off size - erase 'size' bytes from offset 'off'
    With '.spread', erase enough for given file size, otherwise,
    'size' includes skipped bad blocks.
    nand erase.part [clean] partition - erase entire mtd partition'
    nand erase.chip [clean] - erase entire chip'
    nand bad - show bad blocks
    nand dump[.oob] off - dump page
    nand scrub off size | scrub.part partition | scrub.chip
    really clean NAND erasing bad blocks (UNSAFE)
    nand markbad off [...] - mark bad block(s) at offset (UNSAFE)
    nand biterr off - make a bit error at offset (UNSAFE)
    nand lock [tight] [status]
    bring nand to lock state or display locked pages
    nand unlock [offset] [size] - unlock section
    nand debug [level] - display or set the MTD debug level

    NAND write: device 0 offset 0x20000, size 0x1ffe0000


    And then u-boot gets locked.

    Could you tell me which commands should I use to save X-Loader to flash?

    Joaquim Duran
    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    14 Oct 2013 01:14 PM
    jduran,

    Your problem is the following command:

    nand erase.part ${x-loader_partition}

    Change it to:

    nand erase.part x-loader
    You are not authorized to post a reply.