nand-full.lst 1008 B

1234567891011121314151617181920212223242526272829
  1. # @_flash.bin | bootloader
  2. # @_image [_flash.bin] | image burn to nand, default is the same as bootloader
  3. # @_filesystem | filesystem to burn
  4. # @_kernel | kernel image
  5. # @_dtb | dtb image
  6. # This command will be run when ROM support stream mode
  7. # i.MX8QXP, i.MX8QM
  8. SDPS: boot -f _flash.bin
  9. FB: ucmd setenv fastboot_buffer ${loadaddr}
  10. FB: download -f _image
  11. # Burn image to nandfit partition if needed
  12. FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${filesize}; else true; fi;
  13. FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${filesize}
  14. FB[-t 10000]: ucmd ubi part nandrootfs
  15. FB[-t 10000]: ucmd ubi create root -
  16. FB: download -f _filesystem
  17. FB[-t 60000]: ucmd ubi write ${loadaddr} root ${filesize}
  18. FB: download -f _kernel
  19. FB[-t 10000]: ucmd nand write ${loadaddr} nandkernel ${filesize}
  20. FB: download -f _dtb
  21. FB[-t 8000]: ucmd nand write ${loadaddr} nanddtb ${filesize}
  22. FB: reboot
  23. FB: done