A good approach to update the firmare components U-Boot,Linux kernel and devicetree in a running system it to load them from a tftp server.
This process requires a running TFTP server, please see the following page how to setup TFTP Server.
After setting up the TFTP server, the binaries to be updated must be copied into the TFTP directory.
1. Setup the Starterkit to boot from eMMC or SD
2. Connect the kit to the network with TFTP server supplying the binaries via ethernet on connectorETH_PRIME
3. Power up the system and interrupt the boot process in U-Boot
Hit any key to stop autoboot: 0
=>
3. Setup the ethernet interface:
Set network settings manually
Provide the correct network configuration in U-Boot:
=> setenv autoload no
=> setenv serverip <serverip> (IP address of your TFTP server e.g.: setenv serverip 192.168.100.110)
=> setenv ipaddr <ipaddr> (e.g.: setenv ipaddr 192.168.100.111)
=> setenv netmask <netmask> (e.g.: setenv netmask 255.255.255.0)
Set network settings using DHCP
If a DHCP server is available in the network, the interface can be configured by the server:
=> setenv autoload no
=> setenv serverip <serverip> (IP address of your TFTP server e.g.: setenv serverip 192.168.100.110)
=> dhcp (get IP from server)
4. Set U-Boot variable mmcdev according to the drive you want to write to.
=> setenv mmcdev <device_number>
5. Set U-Boot environment variables according to the image file name stored on the tftp server:
eMMc/SD Card
For the pre-Bootloader on eMMC/SD Card :
=> setenv pbl_mmc_file <filename> (e.g.: setenv pbl_mmc_file bl2_sd.pbl)
For U-Boot update on eMMC/SD Card :
=> setenv uboot_mmc_file <filename> (e.g.: setenv uboot_mmc_file fip_uboot.bin)
QSPI NOR
For the pre-Bootloader on QSPI NOR :
=> setenv pbl_spi_file <filename> (e.g.: setenv pbl_spi_file bl2_flexspi_nor.pbl)
For U-Boot update on QSPI NOR :
=> setenv uboot_spi_file <filename> (e.g.: setenv uboot_spi_file fip_uboot.bin)
Devicetree
MBLS1028A-IND: For Device Tree update on eMMC/SD Card and QSPI NOR :
=> setenv fdt_file <filename> (e.g.: setenv fdt_file fsl-ls1028a-mbls1028a-ind.dtb)
MBLS1028A: For Device Tree update on eMMC/SD Card and QSPI NOR :
=> setenv fdt_file <filename> (e.g.: setenv fdt_file fsl-ls1028a-mbls1028a.dtb)
Kernel
For Kernel update on eMMC/SD Card and QSPI NOR :
=> setenv kernel_file <filename> (e.g.: setenv kernel_file Image.gz)
6. Perform Update:
Pre-bootloader
eMMC/SD Card : => run update_pbl_mmc
QSPI NOR : => run update_pbl_spi
U-Boot
eMMC /SD Card : => run update_uboot_mmc
QSPI NOR : => run update_uboot_spi
Devicetree
eMMC /SD Card : => run update_fdt_mmc
QSPI NOR : => run update_fdt_spi
Kernel
eMMC /SD Card : => run update_kernel_mmc
QSPI NOR : => run update_kernel_spi
7. Please also note the MBLS1028A DIP switch settings regarding the boot source.