This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

uImage-am335x-evm.bin not loading (beaglebone)

I am getting the following messages:

U-Boot# reset                                                                   
resetting ...                                                                   
                                                                                
U-Boot SPL 2011.09 (Nov 04 2011 - 21:43:12)                                     
Texas Instruments Revision detection unimplemented                              
No AC power, disabling frequency switch                                         
OMAP SD/MMC: 0                                                                  
reading u-boot.img                                                              
reading u-boot.img                                                              
                                                                                
                                                                                
U-Boot 2011.09 (Nov 04 2011 - 21:39:19)                                         
                                                                                
I2C:   ready                                                                    
DRAM:  256 MiB                                                                  
WARNING: Caches not enabled                                                     
No daughter card present                                                        
NAND:  HW ECC Hamming Code selected                                             
nand_get_flash_type: second ID read did not match 11,11 against 10,10           
No NAND device found!!!                                                         
0 MiB                                                                           
MMC:   OMAP SD/MMC: 0                                                           
*** Warning - readenv() failed, using default environment                       
                                                                                
Net:   cpsw                                                                     
Hit any key to stop autoboot:  0                                                
SD/MMC found on device 0                                                        
reading uEnv.txt                                                                
                                                                                
299 bytes read                                                                  
Loaded environment from uEnv.txt                                                
Importing environment from mmc ...                                              
Running uenvcmd ...                                                             
Booting from network...                                                         
link up on port 0, speed 100, full duplex                                       
BOOTP broadcast 1                                                               
DHCP client bound to address 192.168.7.2                                        
link up on port 0, speed 100, full duplex                                       
Using cpsw device                                                               
TFTP from server 192.168.7.1; our IP address is 192.168.7.2                     
Filename 'uImage-am335x-evm.bin'.                                               
Load address: 0x82000000                                                        
Loading: T T T T T T T T T T T T T T T T T T T T                                
Retry count exceeded; starting again                                            
link up on port 0, speed 100, full duplex     

------------------------------------------------------------------------------------------------------------------------------

This continues for ever

I am using   dhcp my config is below:

ddns-update-style none;
option domain-name "crupi.org";
option domain-name-servers beagle-host.crupi.org;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.7.0 netmask 255.255.255.0   {
  range dynamic-bootp 192.168.7.2 192.168.7.10;
  option broadcast-address 192.168.7.255;
  option routers 192.168.7.1;
    host beagleboard {
#    filename "/tftpboot/uImage-am335x-evm.bin";
    hardware ethernet 40:5f:c2:76:b2:a9;
    fixed-address 192.168.7.2;
  }
}
-----------------------------------------------------------------------------------------

BeagleBone Rev. A3.

crupib@beagle-host:/$ uname -a
Linux beagle-host 2.6.32-37-generic #81-Ubuntu SMP Fri Dec 2 20:35:14 UTC 2011 i686 GNU/Linux
crupib@beagle-host:/$ cat /etc/*rele*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.3 LTS"

NFS setup:

crupib@beagle-host:/etc$ cat exports
# /etc/exports: the access control list for filesystems which may be exported
#        to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
/home/crupib/ti-sdk-am335x-evm-05.03.00.00/targetNFS *(rw,nohide,insecure,no_subtree_check,async,no_root_squash)
crupib@beagle-host:/etc$

crupib@beagle-host:/etc/xinetd.d$ cat tftp

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nobody
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
disable = no
}
====================================================================================

tftp:

crupib@beagle-host:/$ ls /tftpboot/
uImage-am335x-evm.bin
crupib@beagle-host:/$

iptables:

crupib@beagle-host:/$ sudo ufw status
Status: inactive
crupib@beagle-host:/$

xinetd                    0:off  1:off  2:on   3:on   4:on   5:on   6:off
xinetd based services:
        chargen:            off
        daytime:            off
        discard:            off
        echo:               off
        tftp:               on
        time:               off

nfs-kernel-server         0:off  1:off  2:on   3:on   4:on   5:on   6:off


dhcp3-server              0:off  1:off  2:on   3:on   4:on   5:on   6:off

All of the packages are install.

I think this is all that I configured.

Please help me with this.

Thanks.

Forgot to add a few things:

U-Boot# printenv                                                                
autoload=no                                                                     
baudrate=115200                                                                 
bootargs=console=ttyO0,115200n8 root=/dev/mtdblock7 rw noinitrd rootfstype=jffsp
bootargs_defaults=setenv bootargs console=${console} ${optargs}                 
bootcmd=if mmc rescan; then echo SD/MMC found on device ${mmc_dev};if run loadb;
bootdelay=3                                                                     
bootenv=uEnv.txt                                                                
bootfile=uImage-am335x-evm.bin                                                  
console=ttyO0,115200n8                                                          
ethact=cpsw                                                                     
ethaddr=40:5f:c2:76:b2:a9                                                       
filesize=12B                                                                    
gatewayip=192.168.7.1                                                           
importbootenv=echo Importing environment from mmc ...; env import -t $loadaddr e
ip_method=dhcp                                                                  
ipaddr=192.168.7.2                                                              
loadaddr=0x82000000                                                             
loadbootenv=fatload mmc ${mmc_dev} ${loadaddr} ${bootenv}                       
mmc_args=run bootargs_defaults;setenv bootargs ${bootargs} root=${mmc_root} roo}
mmc_boot=run mmc_args; run mmc_load_uimage; bootm ${loadaddr}                   
mmc_dev=0                                                                       
mmc_load_uimage=fatload mmc ${mmc_dev} ${loadaddr} ${bootfile}                  
mmc_root=/dev/mmcblk0p2 rw                                                      
mmc_root_fs_type=ext3 rootwait                                                  
nand_args=run bootargs_defaults;setenv bootargs ${bootargs} root=${nand_root} n}
nand_boot=echo Booting from nand ...; run nand_args; nand read.i ${loadaddr} ${}
nand_img_siz=0x500000                                                           
nand_root=/dev/mtdblock7 rw                                                     
nand_root_fs_type=jffs2                                                         
nand_src_addr=0x280000                                                          
net_args=run bootargs_defaults;setenv bootargs ${bootargs} root=/dev/nfs nfsroo}
net_boot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${loadad}
netmask=255.255.255.0                                                           
nfsopts=nolock                                                                  
nor_args=run bootargs_defaults;setenv bootargs ${bootargs} root={nor_root} root}
nor_boot=echo Booting from NOR ...; run nor_args; cp.b ${0x08080000} ${loadaddr}
nor_img_siz=0x280000                                                            
nor_root=/dev/mtdblock3 rw                                                      
nor_root_fs_type=jffs2                                                          
nor_src_addr=0x08080000                                                         
rootpath=/home/crupib/ti-sdk-am335x-evm-05.03.00.00/targetNFS                   
script_addr=0x81900000                                                          
serverip=192.168.7.1                                                            
spi_args=run bootargs_defaults;setenv bootargs ${bootargs} root=${spi_root} roo}
spi_boot=echo Booting from spi ...; run spi_args; sf probe ${spi_bus_no}:0; sf }
spi_bus_no=0                                                                    
spi_img_siz=0x280000                                                            
spi_root=/dev/mtdblock4 rw                                                      
spi_root_fs_type=jffs2                                                          
spi_src_addr=0x62000                                                            
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off        
stderr=serial                                                                   
stdin=serial                                                                    
stdout=serial                                                                   
tftp_nfs_boot=echo Booting from network...; setenv autoload no; dhcp ${bootfile}
uenvcmd=run tftp_nfs_boot                                                       
                                                                                
Environment size: 3024/8188 bytes                                               
U-Boot#

.ipaddr

192.168.7.2

uEnv.txt :

serverip=192.168.7.1
rootpath=/home/crupib/ti-sdk-am335x-evm-05.03.00.00/targetNFS
bootfile=uImage-am335x-evm.bin
ip_method=dhcp
tftp_nfs_boot=echo Booting from network...; setenv autoload no; dhcp ${bootfile}; tftp ${loadaddr} ${bootfile}; run net_args; bootm ${loadaddr}
uenvcmd=run tftp_nfs_boot














                                                                       
                           


  • Looks very complete. The board appears to get an address from the DHCP server. So we assume that the network is good. TFTP is the first problem. NFS is not in the picture yet. As a test, try TFTP'ing the uImage file from another machine on the network.

    Maybe try each command in the tftp_nfs_boot line one at a time interactively. I think the command "dhcp ${bootfile}" should be just "dhcp" but it shouldn't matter.

  • I can tftp from another host with no problem.

    I will try the tftp_nfs_boot line next

  • OK ran tftp_nfs_boot line by line.

    Still not getting past the tftp problem.

  • By all appearances, you've got everything lined up. Usually the 'T' timeouts are due to either network is down, or TFTP server is own or TFTP server is blocked by firewall. Tests would indicated none of those are occurring. Unless the DHCP is a false positive and the network is not really up. Double check that DHCP is setting up ipaddr, netmask, etc.

    setenv autoload no
    setenv ipaddr
    setenv filesize
    dhcp
    printenv ipaddr
    printenv serverip
    ping 192.168.7.1
    tftp 0x82000000 uImage-am335x-evm.bin
    printenv filesize

    Any possibility that there is somebody else with the address 192.168.7.2? Maybe reconfigure your DHCP to serve a different address or setenv it in U-Boot instead of using dhcp.

    Real puzzle you got there. That's all I got.

  • I did everything in the above post.

    U-Boot# setenv autoload no                                                      
    U-Boot# setenv ipaddr                                                           
    U-Boot# setenv filesize                                                         
    U-Boot# dhcp                                                                    
    link up on port 0, speed 100, full duplex                                       
    BOOTP broadcast 1                                                               
    DHCP client bound to address 192.168.7.2                                        
    U-Boot# printenv ipaddr                                                         
    ipaddr=192.168.7.2                                                              
    U-Boot# printenv serverip                                                       
    serverip=192.168.7.1                                                            
    U-Boot# ping 192.168.7.1                                                        
    link up on port 0, speed 100, full duplex                                       
    Using cpsw device                                                               
    host 192.168.7.1 is alive                                                       
    U-Boot# tftp 0x82000000 uImage-am335x-evm.bin                                   
    link up on port 0, speed 100, full duplex                                       
    Using cpsw device                                                               
    TFTP from server 192.168.7.1; our IP address is 192.168.7.2                     
    Filename 'uImage-am335x-evm.bin'.                                               
    Load address: 0x82000000                                                        
    Loading: T T T T T T T T T T T T T T T T T T T T                                
    Retry count exceeded; starting again                                            
    link up on port 0, speed 100, full duplex                                       
    Using cpsw device                                                               
    TFTP from server 192.168.7.1; our IP address is 192.168.7.2                     
    Filename 'uImage-am335x-evm.bin'.                                               
    Load address: 0x82000000                                                        
    Loading: T T T


    No one else is on this network. It is my Virtual network.

    I turned off the firewall.

    crupib@beagle-host:/tftpboot$ sudo ufw status
    Status: inactive


    Crazy huh?

    What is printenv filesize?

  • bridging turned on in your virtual session?

  • Norman,

    Thanks for all your help.

    It is working.

    2 things:

    1. xinetd.d/tftp was wrong. I had a typo on the server_args line.

       I had a -s in front of the /tftpboot. It does not work on ubuntu.

      I also had to shutdown my wireless network. TFTP was going back the wrong way.

    Again thanks for all your help.

    Consider the matter closed.

    bc