Hi,
https://e2e.ti.com/support/embedded/linux/f/354/t/434327
In the above post I have mentioned that I successfully u-boot.bin from CCS.
Now I need to flash the u-boot to SPI NOR Flash.
I followed the instructions told by Shankari
#tftpboot 0x88000000 u-boot-spi.gph
#sf probe
#sf erase 0 0x100000 (Offset is depends on u-boot image size )
#sf write 0x88000000 0 0x100000
But when I did tftpboot 0x88000000 u-boot-spi.gph, it didnt load the u-boot from tftpserver
instead it throw retry error.
K2E EVM # tftpboot 0x88000000 u-boot-spi-k2e-evm.gph
Using K2E_EMAC0 device
TFTP from server 192.168.2.198; our IP address is 10.105.1.12
Filename 'u-boot-spi-k2e-evm.gph'.
Load address: 0x8
Loading: T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T
Retry count exceeded; starting again
*** ERROR: `eth2addr' not set
*** ERROR: `eth3addr' not set
*** ERROR: `eth4addr' not set
*** ERROR: `eth5addr' not set
*** ERROR: `eth6addr' not set
*** ERROR: `eth7addr' not set
**********************************
1. TFTPSERVER is running in my Host PC. Its IP is 192.168.2.198
2. I set the below env variables before doing the steps mentioned by shankari
K2E EVM # setenv serverip 192.168.2.198
K2E EVM # setenv tftp_root /tftpboot (where /tftpboot is the tftp root folder in Host PC)
3. Alternatively I tried these steps also which is mentioned in UG Explore link of MCSDK
K2E EVM # setenv serverip 192.168.2.198
K2E EVM # setenv tftp_root /tftpboot
K2E EVM # run get_uboot_net
This also gave the same Error.
Please help me with this. Tell me what went wrong. Is there any problem with my tftpserver
I connected the Ethernet cable to Lower RJ45 jack of J9(port 0). And my board is connected to DHCP server.
Please help me with this.
K2E EVM # print
addr_fdt=0x87000000
addr_fs=0x82000000
addr_kern=0x88000000
addr_mon=0x0c140000
addr_secdb_key=0xc000000
addr_ubi=0x82000000
addr_uboot=0x87000000
args_all=setenv bootargs console=ttyS0,115200n8 rootwait
args_net=setenv bootargs ${bootargs} rootfstype=nfs root=/dev/nfs rw nfsroot=${serverip}:${nfs_root},${nfs_options} ip=dhcp
args_ramfs=setenv bootargs ${bootargs} rdinit=/sbin/init rw root=/dev/ram0 initrd=0x802000000,9M
args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=2,2048
args_uinitrd=setenv bootargs ${bootargs} rdinit=/sbin/init rw root=/dev/ram0
args_usb=setenv bootargs ${bootargs} rootfstype=ext4 root=/dev/sda2 rw
baudrate=115200
boot=usb
bootargs=console=ttyS0,115200n8 rootwait=1 earlyprintk rdinit=/sbin/init rw root=/dev/ram0 initrd=0x802000000,9M
bootcmd=run init_${boot} get_fdt_${boot} get_mon_${boot} get_kern_${boot} run_mon run_kern
bootdelay=3
bootfile=/tftpboot/u-boot-spi-k2e-evm.gph
burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
burn_uboot=sf probe; sf erase 0 0x100000; sf write ${addr_uboot} 0 ${filesize}
ethact=K2E_EMAC0
ethaddr=08:00:28:32:a8:4b
fdt_high=0xffffffff
fileaddr=82000000
filesize=F9A0000
get_fdt_net=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}
get_fdt_ramfs=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}
get_fdt_ubi=ubifsload ${addr_fdt} ${name_fdt}
get_fdt_uinitrd=dhcp ${addr_fdt} ${tftp_root}/${name_fdt}
get_fdt_usb=fatload usb 0:1 ${addr_fdt} ${name_fdt}
get_fs_ramfs=dhcp ${addr_fs} ${tftp_root}/${name_fs}
get_fs_uinitrd=dhcp ${addr_fs} ${tftp_root}/${name_uinitrd}
get_kern_net=dhcp ${addr_kern} ${tftp_root}/${name_kern}
get_kern_ramfs=dhcp ${addr_kern} ${tftp_root}/${name_kern}
get_kern_ubi=ubifsload ${addr_kern} ${name_kern}
get_kern_uinitrd=dhcp ${addr_kern} ${tftp_root}/${name_kern}
get_kern_usb=fatload usb 0:1 ${addr_kern} ${name_kern}
get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_mon_ubi=ubifsload ${addr_mon} ${name_mon}
get_mon_uinitrd=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_mon_usb=fatload usb 0:1 ${addr_mon} ${name_mon}
get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}
get_uboot_net=dhcp ${addr_uboot} ${tftp_root}/${name_uboot}
has_mdio=1
init_net=run set_fs_none args_all args_net
init_ramfs=run set_fs_none args_all args_ramfs get_fs_ramfs
init_ubi=run set_fs_none args_all args_ubi; ubi part ubifs; ubifsmount boot;ubifsload ${addr_secdb_key} securedb.key.bin;
init_uinitrd=run set_fs_uinitrd args_all args_uinitrd get_fs_uinitrd
init_usb=usb start; run set_fs_none args_all args_usb
initrd_high=0xffffffff
ipaddr=10.105.1.12
mem_lpae=1
mem_reserve=512M
mtddevname=bootloader
mtddevnum=0
mtdids=nand0=davinci_nand.0
mtdparts=mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,-(ubifs)
name_fdt=uImage-k2e-evm.dtb
name_fs=arago-console-image-k2e-evm.cpio.gz
name_kern=uImage-keystone-evm.bin
name_mon=skern-k2e-evm.bin
name_ubi=k2e-evm-ubifs.ubi
name_uboot=u-boot-spi-k2e-evm.gph
name_uinitrd=uinitrd.bin
nfs_options=v3,tcp,rsize=4096,wsize=4096
nfs_root=/export
no_post=1
partition=nand0,0
run_kern=bootm ${addr_kern} ${addr_uinitrd} ${addr_fdt}
run_mon=mon_install ${addr_mon}
serverip=192.168.2.198
set_fs_none=setenv addr_uinitrd -
set_fs_uinitrd=setenv addr_uinitrd ${addr_fs}
stderr=serial
stdin=serial
stdout=serial
tftp_root=/tftpboot
ver=U-Boot 2013.01 (Mar 27 2015 - 01:35:48)
These are my environmental variables. seems Ethaddress and all have been set. Still why its giving error
Regards,
Sarjoon.