service tftp
{
disable = no
socket_type = dgram
protocol = udp
wait = yes
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
#per_source = 11
#cps = 100 2
#flags = IPv4
}
The environment variables are:
$ printenv
bootargs=root=/dev/mtdblock2 devfs=mount console=ttyS0,115200
bootcmd=bootm 40000
bootdelay=3
baudrate=115200
ethaddr=00:08:33:33:00:01
stdin=serial
stdout=serial
stderr=serial
filesize=4a6
netmask=255.255.0.0
ipaddr=172.16.16.220
serverip=172.16.16.70
Output with minicom:
$ tftp a1000000 little
TFTP from server 172.16.16.70; our IP address is 172.16.16.220
Filename 'little'.
Load address: 0xa1000000
Loading: T T #T #
done
Bytes transferred = 1190 (4a6 hex)
$ tftp a1000000 hello.img
TFTP from server 172.16.16.70; our IP address is 172.16.16.220
Filename 'hello.img'.
Load address: 0xa1000000
Loading: T T invalid RARP header
invalid RARP header
#T T #T T T #T T T
Retry count exceeded; starting again
TFTP from server 172.16.16.70; our IP address is 172.16.16.220
Filename 'hello.img'.
Load address: 0xa1000000
Loading: #T T T T T T #T T T #T
Retry count exceeded; starting again