README 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. How to use U-Boot on MYiR MYS-6ULX Single Board Computer
  2. --------------------------------------------------------
  3. - Configure and build U-Boot for MYS-6ULX iMX6ULL:
  4. $ make mrproper
  5. $ make myir_mys_6ulx_defconfig
  6. $ make
  7. This will generate SPL and u-boot-dtb.img images.
  8. Boot from MMC/SD:
  9. - The SPL and u-boot-dtb.img images need to be flashed into the micro SD card:
  10. $ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
  11. $ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync
  12. - Boot mode settings:
  13. Boot switch position: SW1 -> 0
  14. SW2 -> 1
  15. SW3 -> 0
  16. SW4 -> 1
  17. Boot from NAND:
  18. - Boot the board using SD/MMC or Serial download and load the SPL into memory
  19. either from SD/MMC or TFTP.
  20. Default MTD layout is 512k(spl),1m(uboot),1m(uboot-dup),-(ubi)
  21. Flash SPL to NAND from SD/MMC,
  22. $ ext4load mmc 0:2 $loadaddr SPL
  23. $ nand erase.part spl
  24. $ nandbcb init $loadaddr 0x0 $filesize
  25. Flash u-boot proper to NAND from SD/MMC,
  26. $ ext4load mmc 0:2 $loadaddr u-boot-dtb.img
  27. $ nand erase.part uboot
  28. $ nand write $loadaddr uboot $filesize
  29. - Boot mode settings:
  30. Boot switch position: SW1 -> 1
  31. SW2 -> 0
  32. SW3 -> 0
  33. SW4 -> 1
  34. - Connect the Serial cable to UART0 and the PC for the console.
  35. - Reset the board using and U-Boot should boot from NAND.