# @_flash.bin | bootloader # @_image [_flash.bin] | image burn to nand, default is the same as bootloader # @_filesystem | filesystem to burn # @_kernel | kernel image # @_dtb | dtb image # This command will be run when ROM support stream mode # i.MX8QXP, i.MX8QM SDPS: boot -f _flash.bin FB: ucmd setenv fastboot_buffer ${loadaddr} FB: download -f _image # Burn image to nandfit partition if needed FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${filesize}; else true; fi; FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${filesize} FB[-t 10000]: ucmd ubi part nandrootfs FB[-t 10000]: ucmd ubi create root - FB: download -f _filesystem FB[-t 60000]: ucmd ubi write ${loadaddr} root ${filesize} FB: download -f _kernel FB[-t 10000]: ucmd nand write ${loadaddr} nandkernel ${filesize} FB: download -f _dtb FB[-t 8000]: ucmd nand write ${loadaddr} nanddtb ${filesize} FB: reboot FB: done