Table of Contents

Flash QSPI firmware using U-Boot

How to flash the uboot, kernel and RootFS on qspi using u-boot commands

- Requirements

- Flash QSPI boot loader image

  1. boot from SD-Card or eMMC and interrupt the boot process in U-Boot
  2. Configure the network in uboot:
    • ⇒ setenv autoload no
    • ⇒ setenv serverip <serverip> (TFTP Server adress, 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)
  1. Download boot loader image from tftp server
    => tftp $loadaddr uboot-*-qspi.img 
  2. Initialize QSPI
    => sf probe 
  3. Write boot laoder image to QSPI
    => sf update $loadaddr 0 $filesize
  4. change the dip switch to boot from qspi

- Flash QSPI RootFS image

use these following commands only if the qspi has not yet been written and initialized to prevent the write counter from being overwritten

  1. Download RootFS image from tftp server
    => tftp $loadaddr root.ubi
  2. erase the qspi flash completely
    => sf erase RootFS 3800000
  3. write downloaded image to qspi
    sf write ${loadaddr} RootFS ${filesize}