====== Flash QSPI firmware using U-Boot ====== How to flash the uboot, kernel and RootFS on qspi using u-boot commands ===== - Requirements ===== * Running [[en:general_information:tftp|TFTP-Server]] with the following files: * QSPI NOR image without rootf (uboot-*-qspi.img) * ubi partition for QSPI NOR (root.ubi) ===== - Flash QSPI boot loader image ===== - boot from SD-Card or eMMC and interrupt the boot process in U-Boot - Configure the network in uboot: * => setenv autoload no * => setenv serverip (TFTP Server adress, e.g.: setenv serverip 192.168.100.110) * => setenv ipaddr (e.g.: setenv ipaddr 192.168.100.111) * => setenv netmask (e.g.: setenv netmask 255.255.255.0) - Download boot loader image from tftp server => tftp $loadaddr uboot-*-qspi.img - Initialize QSPI => sf probe - Write boot laoder image to QSPI => sf update $loadaddr 0 $filesize - 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 - Download RootFS image from tftp server => tftp $loadaddr root.ubi - erase the qspi flash completely => sf erase RootFS 3800000 - write downloaded image to qspi sf write ${loadaddr} RootFS ${filesize}