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.

816x EVM TFTP boot not working



Trying to boot over TFTP, but comes up with the  "Loading: WARN: emac_send_packet: No link   " when it should 
receive the file from the host pc. I have found other users with similar problems, but found no solution.
I can ping the EVM board from another host pc, and I can also use the TFTP server from a windows pc, and download 
the same file. So the connection should be good, and the file can be downloaded.
Have also tried to manually enter the commands on u-boot command line, like hdcp, ping and tftpboot.  
Have also tried with other binary files, same result. Fixed IP config does not help.
Any ideas ? 

Bootup log:

U-Boot 2010.06 (Dec 09 2011 - 12:31:16)                                         

DRAM: 2 GiB
Using default environment

MMC: OMAP SD/MMC: 0
Hit any key to stop autoboot: 0
raise: Signal # 8 caught
reading u-boot.bin

184792 bytes read
## Starting application at 0x80800000 ...


U-Boot 2010.06 (Dec 09 2011 - 12:10:47)

TI8168-GP rev 1.1

ARM clk: 987MHz
DDR clk: 796MHz

I2C: ready
DRAM: 2 GiB
NAND: HW ECC Hamming Code selected
256 MiB
:,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:
r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
:,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
:.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
:.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
: ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,

MMC: OMAP SD/MMC: 0
Net: Detected MACID:90:d7:eb:98:1e:a2
Ethernet PHY: GENERIC @ 0x01
DaVinci EMAC
Hit any key to stop autoboot: 0
BOOTP broadcast 1
DHCP client bound to address 192.168.1.38
Using DaVinci EMAC device
TFTP from server 192.168.1.41; our IP address is 192.168.1.38
Filename 'uImage-dm816x-evm.bin'.
Load address: 0x81000000
Loading: WARN: emac_send_packet: No link
T ##WARN: emac_send_packet: No link
T ###WARN: emac_send_packet: No link
T ###WARN: emac_send_packet: No link
T #WARN: emac_send_packet: No link
T #####WARN: emac_send_packet: No link

U-boot env:
TI8168_EVM#printenv                                                             
verify=yes
ramdisk_file=ramdisk.gz
loadaddr=0x81000000
script_addr=0x80900000
loadbootscript=fatload mmc 0 ${script_addr} boot.scr
bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${scri
pt_addr}
ethaddr=90:d7:eb:98:1e:a2
ethact=DaVinci EMAC
baudrate=115200
gatewayip=192.168.1.1
netmask=255.255.255.0
dnsip=89.150.129.22
dnsip2=89.150.129.10
ipaddr=0.0.0.0
bootargs=console=ttyO2,115200n8 rootwait rw mem=256M earlyprintk notifyk.vpssm3_
sva=0xBF900000 vram=50M ti816xfb.vram=0:16M,1:16M,2:6M root=/dev/nfs nfsroot=192
.168.1.41:/home/casper/targetfs ip=dhcp
bootcmd=dhcp;setenv serverip 192.168.1.41;tftpboot;bootm
autoload=no
serverip=192.168.1.41
bootdelay=2
bootfile=uImage-dm816x-evm.bin
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2010.06 (Dec 09 2011 - 12:10:47)

Environment size: 801/8188 bytes
TI8168_EVM#

  • Casper Broegger

    Which PSP release are you using?

    Can you provide the packet capture logs by connecting the EVM to PC via cross cable.

    with regards

    Mugunthan V N

  • Casper,

    Did you try pinging from the target board to some other machine? does that work?

    ..........
    Net: Detected MACID:90:d7:eb:98:1e:a2
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC
    .......................

    Looking from the uboot log the emac is detected and initialized.

    If ping works from your target board, there should be some issue with tftp server settings.

    Regards,

    --Prabhakar Lad


  • Hi Mugunthan

    I am trying to get the image with the PSP 04.00.01.13 release. 

    I have tried capturing the packets with wireshark, but not with a crossed cable, it goes through a switch.  

    I have captured two pcap files (attached), one with capture where i start the tftpboot with the "boot" command in u-boot. And one capture when i am downloading the file from another pc with success. It is clear from the packet capture, that the TFTP start commands does not work, it looks like the port number is not correct for the initialization of the tftp get sequence.  Also it looks like it slowly gets the file over (parts from the file looks good), but then halts for several seconds, and intitally stops trying, restart the ARP broadcasting. It will loop like that forever.

    I have removed most of the packets from the pcpap file tftp_good_pc to keep the file small.

    Casper.

    tftp_boot_pcap.zip
  • Yes, ping works fine from both sides. And the TFTP server works as intended, as i can download the same file from another machine with TFTP get. 

    Regards,

    Casper.

  • Hi Casper,

    Any updates? I encounted similar issues.

    My DM8168EVM can not tftp when using tftpd64 on windows PC, but tftp works well on Virtual machince(Ubuntu with tftpd-hpa)

    From tftpd64's log, i can see the request from board, but no transfer is established.

     

    Thanks,

    Eason