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 02 Nov 2011 08:54 AM by  richard.laborde@logicpd.com
Problem with LogicLoader tftp load of elf
 2 Replies
Sort:
You are not authorized to post a reply.
Author Messages
jsarao
New Member
New Member
Posts:29


--
01 Nov 2011 04:04 PM
    PROBLEM:
    LogicLoader fails to load elf over TFPT

    BACKGROUND:
    LogicLoader
    LoLo Version: 2.5.0
    SOM Part Number: 1017878

    1. TFTP is enabled on server
    * I use this server to load linux images for other devices
    name@BESPIN:~/1020072_DM37x_Linux_BSP_1-0$ chkconfig tftp
    tftp xinetd
    name@BESPIN:~/1020072_DM37x_Linux_BSP_1-0$ sudo /etc/init.d/xinetd status
    * xinetd is running
    name@BESPIN:~/1020072_DM37x_Linux_BSP_1-0$ netstat -a | grep tftp
    udp 0 0 *:tftp *:*

    2. Following the directions in the BSP User Guide
    A) losh> ifconfig sm0 dhcp
    Waiting for link to come up... up
    Starting DHCP on sm0 ..
    B) losh> ifconfig
    sm0: up 100M full-duplex (25)
    sm0: mac: 00:08:ee:05:2e:69 ip: 192.168.1.142
    mask: 255.255.255.0 gw: 192.168.1.1
    C) losh> load elf /tftp/192.168.1.112:/tftpboot/image.elf
    loading from /tftp/192.168.1.112:/tftpboot/image.elf:
    ...done
    load failed
    error: load: failed to read (Network timeout(wrong IP address?) - /tftp/192.168.1.112:/tftpboot/image.elf)

    SOME OTHER INFO:
    losh> ping 192.168.1.112
    Pinging 192.168.1.112 1 times from 192.168.1.142
    Ping Reply from 192.168.1.112

    QUESTIONS:
    Are there other things to configure using the LogicLoader?
    Are there other things to check on the server?
    jsarao
    New Member
    New Member
    Posts:29


    --
    01 Nov 2011 05:02 PM
    I solved my problem by removing my TFTP server and reinstalling it.

    ..............................
    ELF section 0: download address: 0x80808000 load address: 0x80400000
    ELF section 1: download address: 0x80848000 load address: 0x81000000
    ELF section 2: download address: 0x80ae8000 load address: 0x82000000
    Copying ELF section 0
    Copying ELF section 2
    Copying ELF section 1
    loaded 15889880 @ 0x80400000 Ram
    ...done
    file loaded
    losh>


    next step is to EXEC
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    02 Nov 2011 08:54 AM
    jsararo -

    I'm glad you fixed it. I booted my kit up and was able to load a file from a folder in my tftp directory but I didn't use the leading / in the filename.


    *****************************************************************

    LogicLoader

    (c) Copyright 2002-2011, Logic PD, Inc. All Rights Reserved.

    LoLo Version: 2.5.0
    SOM Model Number: SOMDM3730-20-2780AGCR-2
    SOM Part Number: 1017878
    SOM Serial Number: 2111M00295

    *****************************************************************

    losh> ifconfig sm0 dhcp
    Waiting for link to come up... up
    Starting DHCP on sm0 .
    losh> help load
    usage:
    load <type> [source]
    <type> /tftp/<server:filename>
    raw <dest addr> <length> [source]
    <type> -dhcp

    <type> can be 'elf', 'bin'(wince img), 'raw' or 'srec'
    when no [source] is given, stdin is read
    -dhcp looks in the boot packet for a filename

    download a binary image

    example: load elf
    losh> load elf /tftp/10.0.5.148:test/lboot.elf
    loading from /tftp/10.0.5.148:test/lboot.elf:
    ........................................
    ELF section 0: download address: 0x80800060 load address: 0x80000000
    Copying ELF section 0
    ...done
    You are not authorized to post a reply.