README 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. How to Update U-Boot on pico-imx6q/dl boards
  2. --------------------------------------------
  3. Required software on the host PC:
  4. - UUU: https://github.com/NXPmicro/mfgtools
  5. Build U-Boot for pico:
  6. $ make mrproper
  7. $ make pico-imx6_defconfig
  8. $ make
  9. This generates the SPL and u-boot-dtb.img binaries.
  10. 1. Loading U-Boot via USB Serial Download Protocol
  11. Note: This method is convenient for development purposes.
  12. If the eMMC has already a U-Boot flashed then the user can
  13. go to step 2 below in order to update U-Boot.
  14. Put pico board in USB download mode (Refer to the following link for details:
  15. https://developer.technexion.com/docs/pico-evaluation-kit-boot-mode-settings )
  16. Connect a USB to serial adapter between the host PC and pico.
  17. Connect a USB cable between the OTG pico port and the host PC.
  18. Open a terminal program such as minicom.
  19. Copy SPL and u-boot-dtb.img to the uuu folder.
  20. Load the U-Boot via USB:
  21. $ sudo ./uuu -v uuu_script
  22. where uuu_script contains the following:
  23. SDP: boot -f SPL
  24. SDPU: write -f u-boot-dtb.img -addr 0x10000000
  25. SDPU: jump -addr 0x10000000
  26. Then U-Boot starts and its messages appear in the console program.
  27. Use the default environment variables:
  28. => env default -f -a
  29. => saveenv
  30. 2. Flashing U-Boot into the eMMC
  31. The default U-Boot environment expects the use of eMMC user
  32. partition. To ensure we are using the proper eMMC partition for boot,
  33. please run:
  34. => mmc partconf 0 0 0 0
  35. Next, run the DFU agent so we can flash the new images using dfu-util
  36. tool:
  37. => dfu 0 mmc 0
  38. Flash SPL and u-boot-dtb.img into the eMMC running the following commands on a PC:
  39. $ sudo dfu-util -D SPL -a spl
  40. $ sudo dfu-util -D u-boot-dtb.img -a u-boot
  41. Remove power from the pico board.
  42. Put pico board into normal boot mode.
  43. Power up the board and the new updated U-Boot should boot from eMMC.