LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
LinkBack Search this Thread
Old 10-05-2012, 12:36 AM   #1
waqas_shafique
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Rep: Reputation: Disabled
TFTP retry count exceeds


My issue is retry count exceeds when I download kernel image to Econa processor board (Econa is ARM based processor) via TFTP as shown below

CNS3000 # tftp 0x4000000 bootpImage.cns3420.uclibc
MAC PORT 0 : Initialize bcm53115M
MAC PORT 2 : Initialize RTL8211
TFTP from server 192.168.0.219; our IP address is 192.168.0.112
Filename 'bootpImage.cns3420.uclibc'.
Load address: 0x4000000
Loading: T T T T T T T T T T
Retry count exceeded; starting again



Following are the points which may help you in finding the cause of this error.


1. Ping response is OK

CNS3000 # ping 192.168.0.219
MAC PORT 0 : Initialize bcm53115M
MAC PORT 2 : Initialize RTL8211
host 192.168.0.219 is alive

2. When I tried to verify TFTP is running , I tried as shown below. It seems TFTP server is working

I placed a small file in /tftpboot
# echo "Hello, embedded world" > /tftpboot/hello.txt"

Then I did localhost

# tftp localhost
tftp> get hello.txt
Received 23 bytes in 0.1 seconds
tftp> quit

3. Please note that there is no firewall or SELinux on my machine.

4. Please verify location of these files are OK.
I have placed kernel image file bootpImage.cns3420.uclibc in /tftpbootTFTP service file is located in /etc/xinetd.d/tftp




5. My TFTP service file is

service tftp
{
socket_type =dgram
protocol=udp
wait=yes
user=root
server=/usr/sbin/in.tftpd
server_args=-s /tftpboot -b 512
disable=no
per_source=11
cps=100 2
flags=ipv4
}

6. Printenv response in U-boot is

CNS3000 # printenv
bootargs=root=/dev/mtdblock0 mem=256M console=ttyS0
baudrate=38400
ethaddr=00:53:43:4F:54:54
netmask=255.255.0.0
tftp_bsize=512
udp_frag_size=512
mmc_init=mmcinit
loading=fatload mmc 0 0x4000000 bootpimage-82511
running=go 0x4000000
bootcmd=run mmc_init;run loading;run running
serverip=192.168.0.219
ipaddr=192.168.0.112
bootdelay=5
port=1
bootfile=/tftpboot/bootpImage.cns3420.uclibcl
stdin=serial
stdout=serial
stderr=serial
verify=n

Environment size: 437/4092 bytes







Regards
Waqas
 
Old 10-05-2012, 04:53 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,388
Blog Entries: 2

Rep: Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900Reputation: 900
Try running a commandline tftp client (tftp) against the tftp server. If possible, try it from the same host you're trying to boot, or at least on the same network cable. TFTP's error handling is primitive (trivial) compared to more advanced file transfers, so if the network is flakey, it may be simply giving up where other protocols would survive.

--- rod.
 
Old 10-13-2012, 04:36 AM   #3
waqas_shafique
LQ Newbie
 
Registered: Oct 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
The problem solved. There was an issue with my TFTP configuration file.

The file that worked is

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot mount hard disk: block count exceeds size of device --- bad partition table R00ts Linux - General 14 08-18-2012 07:41 AM
openhpi: reservation lost error [ appropriate retry count] amulpatel Linux - Newbie 0 05-07-2012 02:00 AM
[SOLVED] Retry count exceeded; starting again linwhwylb Linux - Embedded & Single-board computer 2 10-26-2011 01:39 AM
Telnet : Configure the login retry count thelink123 Linux - Server 3 10-24-2011 02:17 PM
Sending an e-mail if lsof count exceeds a certain value. threezerous Linux - Newbie 1 10-03-2011 09:23 AM


All times are GMT -5. The time now is 05:10 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration