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.

AM335x Starter Kit network boot



Hello
I do have a AM335x starter kit, latest ti-processor-sdk-linux-am335x-evm-03.01.00.06, and Ubuntu 16.04 LTS(VM).
I am interested in booting the kernel and file system from the network(TFTP, NFS).
The booting is fine with a SD card but it is not from the network. I used the script (setup.sh) with the proper options(TFTP, NFS) to create bin/setupBoard.minicom. Here is the error message I am having:

=> boot
reading uEnv.txt
** Unable to read file uEnv.txt **
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 192.168.1.84 (1054 ms)
link up on port 0, speed 100, full duplex
Using ethernet@4a100000 device
TFTP from server 192.168.216.128; our IP address is 192.168.1.84; sending throug
h gateway 192.168.1.254
Filename 'zImage-am335x-evm.bin'.
Load address: 0x82000000
Loading: 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
link up on port 0, speed 100, full duplex
Using ethernet@4a100000 device
TFTP from server 192.168.216.128; our IP address is 192.168.1.84; sending throug
h gateway 192.168.1.254
Filename 'am335x-evmsk.dtb'.
Load address: 0x88000000
Loading: 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
Bad Linux ARM zImage magic!

Here are the variables in u-boot:

bootcmd=run findfdt; run getuenv; setenv autoload no;dhcp; setenv serverip 192.1
68.216.128;tftp ${loadaddr} zImage-am335x-evm.bin; tftp ${fdtaddr} ${fdtfile}; r
un netargs; bootz ${loadaddr} - ${fdtaddr}

loadaddr=0x82000000

fdtaddr=0x88000000

fdtfile=am335x-evmsk.dtb

netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${se
rverip}:${rootpath},${nfsopts} rw ip=dhcp

serverip=192.168.216.128

rootpath=/home/bb/AM335x/targetNFS

nfsopts=nolock,v3,tcp,rsize=4096,wsize=4096

netboot=echo Booting from network ...; setenv autoload no; dhcp; run netloadimag
e; run netloadfdt; run netargs; bootz ${loadaddr} - ${fdtaddr}

netloadimage=tftp ${loadaddr} ${bootfile}

netloadfdt=tftp ${fdtaddr} ${fdtfile}


I tried to
1)set the serverip manually in 'bootcmd' to prevent DHCP from overwriting it.
2) run netboot

But still having an issue.

Would you please let me what I am missing?

Thank you,

BB