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 kernel boot problems

Hi All,

I have a 816x EVM and I am having a problem with TFTP.  I am using the EZSDK 5.02.  I have installed Ubuntu 10.04 LTS using VMWare Player as the EZSDK instructions dictate.

After installing the EZSDK, I ran the ./setup.sh script to set up Ubuntu and the board to work with each other.  I am using minicom with a USB to RS232 adapter (PL2303 chipset).

First of all, when I run the ./setup.sh script, it creates a setup_uimage-tftp_fs-nfs.minicom script which is supposed to set up the EVM board to boot the kernel via TFTP and boot the filesystem via NFS.

When the minicom script is actually run it is supposed to recognize the U-boot "stop autoboot:" text, then start entering setenv commands.  However, when the board boots, it blows right past this point in U-boot and never changes the U-boot settings.  I got around this by editing the generated minicom script and deleting all the lines before:

send "setenv oldbootargs $\{bootargs\}"

so that I can run the script from the U-boot prompt.  What I wind up with is the U-boot configuration captured below (I have added lots of other variable to try and get this to work, but the important ones were generated by the script).

When I try to boot with this U-boot configuration, I get the BOOT OUTPUT CAPTURE below.

The only way I can get the kernel to boot is to change the

bootcmd dhcp;setenv serverip 10.10.0.105;tftpboot;bootm

to

bootcmd 'dhcp;setenv serverip 10.10.0.105;tftpboot 81000000 uImage-dm816x-evm.bin;bootm'

Why isn't the script working the way the ./setup.sh script set it up?

Paul

UBOOT CONFIGURATION

TI8168_EVM#printenv
verify=yes
ramdisk_file=ramdisk.gz
script_addr=0x80900000
loadbootscript=fatload mmc 1 ${script_addr} boot.scr
bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${scri
pt_addr}
ethaddr=90:d7:eb:1b:55:22
ethact=DaVinci EMAC
nfspath=/home/user/targetnfs
hostname=KDS01
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${nfsserver}:${gatewayip}:${netma
sk}:${hostname}:eth0:off
filesize=250DD8
loadaddr=81000000
nfsserver=10.10.0.105
fileaddr=0x81000000
rootpath=/home/user/targetfs
gatewayip=10.10.0.1
netmask=255.0.0.0
ipaddr=10.10.0.106
dnsip=206.234.219.70
dnsip2=146.145.64.2
bootdelay=4
baudrate=115200
oldbootargs=console=ttyO2,115200n8 rootwait rw mem=256M earlyprintk notifyk.vpss
m3_sva=0xBF900000 vram=50M ti816xfb.vram=0:16M,1:16M,2:6M root=/dev/nfs nfsroot=
10.10.0.105:/home/user/targetfs ip=none
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=10.
10.0.105:/home/user/targetfs ip=dhcp
autoload=no
oldserverip=10.10.0.105
serverip=10.10.0.105
oldbootfile=uImage-dm816x-evm.bin
bootfile=uImage-dm816x-evm.bin
oldbootcmd=dhcp;setenv serverip 10.10.0.105;tftpboot 81000000 uImage-dm816x-evm.
bin;bootm
bootcmd=dhcp;setenv serverip 10.10.0.105;tftpboot;bootm
stdin=serial
stdout=serial
stderr=serial

BOOT OUTPUT CAPTURE

U-Boot 2010.06 (Jun 01 2011 - 15:00:16)

DRAM:  2 GiB
Using default environment

Hit any key to stop autoboot:  0
mmc1 is available
reading u-boot.bin

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


U-Boot 2010.06 (Jun 01 2011 - 12:30:57)

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,:;;;;:;:;;;;;::::,:::,:::,:,:,:
,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,
                                                                          
Net:   Detected MACID:90:d7:eb:1b:55:22                                   
Ethernet PHY: GENERIC @ 0x01                                              
DaVinci EMAC                                                              
Hit any key to stop autoboot:  0                                          
BOOTP broadcast 1                                                         
*** Unhandled DHCP Option in OFFER/ACK: 52                                
*** Unhandled DHCP Option in OFFER/ACK: 52                                
DHCP client bound to address 10.10.0.106
Using DaVinci EMAC device
TFTP from server 10.10.0.105; our IP address is 10.10.0.106
Filename '�'.
Load address: 0x81000000
Loading: *
TFTP error: 'File not found' (1)
Not retrying...
Wrong Image Format for bootm command
ERROR: can't get kernel image!
TI8168_EVM#

  • Hi Paul,

    bootcmd dhcp;setenv serverip 10.10.0.105;tftpboot;bootm

    In this case bootfile name is not passed along with tftpboot so it will pick the name as Filename '�'. In the tftp server (10.10.0.105) there is not file with the name '�' so it is giving the error by saying 'File not found'.

    bootcmd 'dhcp;setenv serverip 10.10.0.105;tftpboot 81000000 uImage-dm816x-evm.bin;bootm'

    In this case you passed the correct file name so tftp get file is working and the board is booting.

    Regards

    AnilKumar

    Please mark this Forum post as answered via the Verify Answer button below if it helps answer your question.  Thanks!

     

  • Hi Anil,

    What I was wondering is why the ./setup.sh script doesn't set up the minicom script correctly in the first place?  Should the EZSDK be corrected so that tftpboot works correctly right out of the box?  Otherwise, other people will have the same problem.

    In the U-boot configuration, I figured the

    bootfile=uImage-dm816x-evm.bin

    and the

    loadaddr=81000000

    would tell tftpboot what the filename and load address are.  But for some reason, this is not working with my setup.

    Best regards,

    Paul