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 May 2012 11:53 AM by  rcagley
Burn Uboot to NAND using LoLo
 7 Replies
Sort:
You are not authorized to post a reply.
Author Messages
jsarao
New Member
New Member
Posts:29


--
03 Feb 2012 05:43 PM
    BACKGROUND: LoLo version 2.5.0

    How can I burn my u-boot image to NAND?

    I currently do the following:

    losh> ifconfig sm0 dhcp
    losh> load elf /tftp/MY.IP.ADDRESS:/tftpboot/PATH/TO/FILE/u-boot


    LoLo reports

    ELF section 0: download address: 0x80808000 load address: 0x80400000
    Copying ELF section 0
    loaded 244320 @ 0x80400000 Ram
    ... done

    I then do:

    losh> ls


    and I see it there (load 244320)

    How can I commit it to FLASH?

    thanks!
    -J
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    06 Feb 2012 08:52 AM
    I would recommend reviewing the LoLo Users Manual - and when they are available the LoLo Labs. They cover part-add and mount which you will need to use to copy your image to flash.

    The info mem command will show you the locations of NoLo and LoLo and how many blocks you have on your device:

    losh> info mem

    Configuration of /dev/nand0:
    Total Blocks: 4096
    Bytes Per Block: 135168
    Has Chunks: yes
    Total Chunks: 262144
    Chunks Per Block: 64
    Bytes Per Chunk: 2112
    Bytes Per Spare: 64
    NoLo Partition: Block 0
    /lboot Partition: Blocks 1 -> 17

    Configuration of SDRAM:
    Base: 0x80000000
    Size: 268435456

    Configuration of SRAM_0:
    Base: 0x40200000
    Size: 65536

    LoLo RAM Usage:
    .text: 0x80000000 -> 0x8005bd1c
    .bss: 0x8005bd44 -> 0x8006407c
    Stack: 0x8006407c -> 0x8006707c
    Translation Table: 0x80068000 -> 0x80070000
    Heap: 0x80070000 -> 0x80400000
    Download buffer: 0x80800000

    Loaded Image: None

    Heap Usage:
    Available: 3735296
    Used: 92060
    Free: 3643236
    Maximum: 92340
    Errors: 0

    Boot Loader Files:
    LoLo: /lboot/lboot.elf

    losh>

    You can use the Ask A Question system for further assistance
    jsarao
    New Member
    New Member
    Posts:29


    --
    06 Feb 2012 10:01 AM
    Posted By richardl on 6 Feb 2012 8:52 AM
    I would recommend reviewing the LoLo Users Manual - and when they are available the LoLo Labs. They cover part-add and mount which you will need to use to copy your image to flash.





    Where/when are the LoLo Labs available?
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    06 Feb 2012 02:06 PM
    I don't see them posted yet for the DM37. We have them for the OMAP 35, but it is possible some of the block numbers may have changed. Would you like me to send you a copy of the 35x ones? It may be enough to get you going.

    Thanks
    jsarao
    New Member
    New Member
    Posts:29


    --
    06 Feb 2012 02:21 PM
    Posted By richardl on 6 Feb 2012 2:6 PM
    I don''t see them posted yet for the DM37. We have them for the OMAP 35, but it is possible some of the block numbers may have changed. Would you like me to send you a copy of the 35x ones? It may be enough to get you going.

    Thanks




    yes please.
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    06 Feb 2012 02:29 PM
    On its way.
    jsarao
    New Member
    New Member
    Posts:29


    --
    06 Feb 2012 03:12 PM
    Posted By richardl on 6 Feb 2012 2:29 PM
    On its way.




    Got it. I will review.
    rcagley
    New Member
    New Member
    Posts:6


    --
    01 May 2012 11:53 AM
    As an alternative, you can load/burn the bootloader/kernel/fs by booting from the SD card first.

    Section 3.2.8 page 19 of the Linux BSP shows you how to do this.
    You are not authorized to post a reply.