Please refer to the following procedure to deploy images to SD card.
Please connect SD card to your host PC
1. Please create two partitions with Linux command "fdisk", one 1G FAT16 and 2G one ext2/ext3 or with remainder of the available disk size.
# mkfs.vfat /dev/sdb1
# mkfs.ext2 /dev/sdb2
2. Please deployed RCW + PBI + BL2(bl2_<boot_mode>.pbl)image to SD card as the following.
dd if=bl2_sd.pbl of=/dev/sdb bs=512 seek=8
note:/dev/sdb is SD device name.
Please deploy TF-A FIP image at 0x00800 in SD card.
dd if=fip_uboot.bin of=/dev/sdb bs=512 seek=204
3. Please deploy rootfs filesystem to SD card in the host PC as the following.
# mkdir /temp
# mount /dev/sdb2 /temp
# cd /temp
# cp fsl-image-networking-ls1028ardb.tar.gz .
# tar -xzvf fsl-image-networking-ls1028ardb.tar.gz
# rm fsl-image-networking-ls1028ardb.tar.gz
Please deploy Kernel Image and the dtb to the /boot folder.
# cp Image boot
# cp fsl-ls1028a-rdb-sdk.dtb boot
Configure the switch setting boot from SD card
Set the environment in uboot for SD boot.
=> setenv bootcmd 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=ttyS0,115200;mmcinfo;ext2load mmc 0:2 0xa0000000 /boot/Image;ext2load mmc 0:2 0xb0000000 /boot/fsl-ls1028a-rdb-sdk.dtb;booti 0xa0000000 - 0xb0000000'
=> saveenv
Boot up Linux
=> boot
You could program atf images to xspi under SD u-boot environment.