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.

SPI booting issue.

Hi,

           I am working on processor SDK 06.03.00.103 for K2HK platform ,  we need to boot the board using SPI Nor flash but If we flash the SPI from TFTP server with these three images zImageskern-k2hk.bin and keystone-k2hk-evm.dtb but  it is stucking at Monitor image installation as you  can  see in below logs and Environment variables please let us know If you see anything wrong in Environment Variables.

Thanks and regards

Phaneesh A Kashyap

=> setenv boot spi
=> saveenv
Saving Environment to NAND... Erasing NAND...
Erasing at 0x100000 -- 100% complete.
Writing to NAND... OK
OK
=> boot
SF: Detected n25q256ax1 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
device 0 offset 0x700000, size 0x100000
SF: 1048576 bytes @ 0x700000 Read: OK
## Please update monitor image
device 0 offset 0x100000, size 0x500000
SF: 5242880 bytes @ 0x100000 Read: OK
device 0 offset 0x800000, size 0x100000
SF: 1048576 bytes @ 0x800000 Read: OK
device 0 offset 0x600000, size 0x100000
SF: 1048576 bytes @ 0x600000 Read: OK
=> 

addr_load_sec_bm=0x0c09c000
addr_mon=0x87000000
addr_non_sec_mon=0x0c097fc0
addr_secdb_key=0xc000000
addr_ubi=0x82000000
arch=arm
args_all=setenv bootargs console=ttyS0,115200n8 rootwait=1 mtdparts=spi0.0:1m(u-boot-spl)ro,-(misc);
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=0x808080000,80M
args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,4096
argsall=setenv bootargs console=ttyS0,115200n8 rootwait=1 uio_pdrv_genirq.of_id=generic-uio
baudrate=115200
board=ks2_evm
board_name=ks2_evm
boot=spi
boot_fdt=try
bootargs=console=ttyS0,115200n8 rootwait=1 mtdparts=spi0.0:1m(u-boot-spl)ro,-(misc) rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd
=ubifs,4096
bootcmd=run init_${boot}; run get_mon_${boot} run_mon; run get_kern_${boot}; run init_fw_rd_${boot}; run get_fdt_${boot}; run run_kern
bootdelay=2
bootdir=/boot
bootfile=Vyapilatpdkserver/keystone-k2hk-evm.dtb
bootm_size=0x10000000
burn_ubi=nand erase.part ubifs; nand write ${addr_ubi} ubifs ${filesize}
burn_uboot_nand=nand erase 0 0x100000; nand write ${loadaddr} 0 ${filesize}
burn_uboot_spi=sf probe; sf erase 0 0x100000; sf write ${loadaddr} 0 ${filesize}
cpu=armv7
debug_option=1
debug_options=1
dfu_alt_info_mmc=MLO fat 0 1;u-boot.img fat 0 1;uEnv.txt fat 0 1
dfu_bufsiz=0x10000
dnsip=192.168.10.1
dnsip2=208.67.222.123
envSettings=setenv boot spi;setenv tftp_root VyapiLatPdkServer;setenv nfs_root /opt/VyapiLatPdkServer;setenv serverip 192.168.11.244;saveenv;bo
ot
ethact=netcp@2000000
ethaddr=78:db:2f:7a:72:db
fdt_addr_r=0x88000000
fdtaddr=0x88000000
fdtcontroladdr=fdefb058
fileaddr=87000000
filesize=8040
flashDtb=echo (****Flashing DTB****);setenv bootfile /tftpboot/VyapiLatPdk_new//keystone-k2hk-evm.dtb;dhcp;sf write 0x88000000 0x600000 0x10000
0
flashKern=echo (****Flashing Kernel****);sf probe;sf erase 0x100000 0xF00000;setenv serverip 192.168.11.244;setenv bootfile /tftpboot/VyapiLatP
dk_new/zImage;dhcp;sf write 0x88000000 0x100000 0x500000
flashSKern=echo (****Flashing SKernel****);setenv bootfile /tftpboot/VyapiLatPdk_new/skern-k2hk.bin;dhcp;sf write 0x88000000 0x700000 0x100000
flashUbi=echo (****Flashing UBIFS****);setenv serverip 192.168.11.244;setenv bootfile /tftpboot/AnemoneV2/AnemoneUD5.ubi;dhcp;nand erase.part u
bifs
gatewayip=192.168.10.1
get_fdt_net=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
get_fdt_nfs=nfs ${fdtaddr} ${nfs_root}/boot/${name_fdt}
get_fdt_ramfs=dhcp ${fdtaddr} ${tftp_root}/${name_fdt}
get_fdt_spi=sf read ${fdtaddr} 0x600000 0x100000
get_fdt_ubi=ubifsload ${fdtaddr} ${bootdir}/${name_fdt}
get_fit_mmc=load mmc ${bootpart} ${fit_loadaddr} ${bootdir}/${fit_bootfile}
get_fit_net=dhcp ${fit_loadaddr} ${tftp_root}/${fit_bootfile}
get_fit_nfs=nfs ${fit_loadaddr} ${nfs_root}/boot/${fit_bootfile}
get_fit_ramfs=dhcp ${fit_loadaddr} ${tftp_root}/${fit_bootfile}
get_fit_ubi=ubifsload ${fit_loadaddr} ${bootdir}/${fit_bootfile}
get_fs_ramfs=dhcp ${rdaddr} ${tftp_root}/${name_fs}
get_kern_net=dhcp ${loadaddr} ${tftp_root}/${name_kern}
get_kern_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_kern}
get_kern_ramfs=dhcp ${loadaddr} ${tftp_root}/${name_kern}
get_kern_spi=sf read ${loadaddr} 0x100000 0x500000 
get_kern_ubi=ubifsload ${loadaddr} ${bootdir}/${name_kern}
get_mon_net=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_mon_nfs=nfs ${addr_mon} ${nfs_root}/boot/${name_mon}
get_mon_ramfs=dhcp ${addr_mon} ${tftp_root}/${name_mon}
get_mon_spi=sf read ${addr_mon} 0x700000 0x100000 
get_mon_ubi=ubifsload ${addr_mon} ${bootdir}/${name_mon}
get_ubi_net=dhcp ${addr_ubi} ${tftp_root}/${name_ubi}
get_ubi_nfs=nfs ${addr_ubi} ${nfs_root}/boot/${name_ubi}
get_uboot_net=dhcp ${loadaddr} ${tftp_root}/${name_uboot}
get_uboot_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_uboot}
hostname=VyapiBoard_B5
init_fw_rd_net=dhcp ${rdaddr} ${tftp_root}/${name_fw_rd}; run set_rd_spec
init_fw_rd_nfs=nfs ${rdaddr} ${nfs_root}/boot/${name_fw_rd}; run set_rd_spec
init_fw_rd_ramfs=setenv rd_spec -
init_fw_rd_spi=sf read ${rdaddr} 0x800000 0x100000; run set_rd_spec
init_fw_rd_ubi=ubifsload ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
init_net=run args_all args_net
init_nfs=setenv autoload no; dhcp; run args_all args_net
init_ramfs=run args_all args_ramfs get_fs_ramfs
init_spi=run args_all args_ubi; sf probe
init_ubi=run args_all args_ubi; ubi part ubifs; ubifsmount ubi:rootfs;
ipaddr=192.168.8.104
kernel_addr_r=0x82000000
loadaddr=0x82000000
mem_lpae=1
mem_reserve=1536M
mtddevname=bootloader
mtddevnum=0
mtdids=nand0=davinci_nand.0
mtdparts=mtdparts=davinci_nand.0:1024k(bootloader)ro,512k(params)ro,-(ubifs)
name_fdt=keystone-k2hk-evm.dtb
name_fs=arago-console-image-k2hk-evm.cpio.gz
name_fw_rd=k2-fw-initrd.cpio.gz
name_kern=zImage
name_mon=skern-k2hk.bin
name_ubi=k2hk-evm-ubifs.ubi
name_uboot=u-boot-spi-k2hk-evm.gph
nandwrite=echo (****nand write****);nand write 0x88000000 ubifs 12a80000
netmask=255.255.252.0
nfs_options=v3,tcp,rsize=4096,wsize=4096
nfs_root=/opt/VyapiLatPdkServer
no_post=1
partition=nand0,0
pxefile_addr_r=0x80100000
ramdisk_addr_r=0x88080000
rd_spec=0x88080000:8040
rdaddr=0x88080000
run_kern=bootz ${loadaddr} ${rd_spec} ${fdtaddr}
run_mon=mon_install ${addr_mon}
run_mon_hs=mon_install ${addr_non_sec_mon} ${addr_load_sec_bm}
scriptaddr=0x80000000
serverip=192.168.11.244
set_rd_spec=setenv rd_spec ${rdaddr}:${filesize}
soc=keystone
stderr=serial@02530c00
stdin=serial@02530c00
stdout=serial@02530c00
tftp_root=VyapiLatPdkServer
vendor=ti
ver=Vyapi U-Boot Version 1.0.0-2020 (May 18 2022 - 12:46:21 +0000)