README 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. How to use U-BOOT on SeeedStudio NPI-IMX6ULL Single Board Computer
  2. ------------------------------------------------------------------
  3. - Configure and build U-Boot for NPI-IMX6ULL:
  4. $ export ARCH=arm
  5. $ export CROSS_COMPILE=arm-none-linux-gnueabihf-
  6. $ make seeed_npi_imx6ull_defconfig
  7. $ make
  8. This will generate SPL and u-boot-dtb.img images.
  9. Boot from MMC/SD:
  10. - The SPL and u-boot-dtb.img images need to be flashed into the micro SD card:
  11. $ sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
  12. $ sudo dd if=u-boot-dtb.img of=/dev/mmcblk0 bs=1k seek=69; sync
  13. - Boot mode settings:
  14. Boot switch position: SW1 -> 0
  15. SW2 -> 1
  16. SW3 -> 0
  17. SW4 -> 0
  18. SW5 -> 1
  19. SW6 -> 0
  20. SW7 -> 0
  21. SW8 -> 1
  22. Boot from NAND:
  23. - Boot the board using SD/MMC or Serial download and load the SPL into memory
  24. either from SD/MMC or TFTP.
  25. Default MTD layout is 512k(spl),1m(uboot),1m(uboot-dup),-(ubi)
  26. Flash SPL to NAND from SD/MMC,
  27. $ ext4load mmc 0:2 $loadaddr SPL
  28. $ nand erase.part spl
  29. $ nandbcb init $loadaddr 0x0 $filesize
  30. Flash u-boot image to NAND from SD/MMC,
  31. $ ext4load mmc 0:2 $loadaddr u-boot-dtb.img
  32. $ nand erase.part uboot
  33. $ nand write $loadaddr uboot $filesize
  34. - Boot mode settings:
  35. Boot switch position: SW1 -> 0
  36. SW2 -> 1
  37. SW3 -> 1
  38. SW4 -> 0
  39. SW5 -> 0
  40. SW6 -> 1
  41. SW7 -> 0
  42. SW8 -> 0
  43. - Connect the Serial cable to UART0 and the PC for the console.
  44. - Reset the board using reset button and U-Boot should boot from NAND.