LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 10-05-2012, 12:36 AM   #1
waqas_shafique
LQ Newbie
 
Registered: Oct 2012
Posts: 6

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,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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: 6

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



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



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 15 06-01-2014 03:58 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration