README 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. How to update U-Boot on pico-imx7d board
  2. ----------------------------------------
  3. Required software on the host PC:
  4. - imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader
  5. Build U-Boot for pico:
  6. $ make mrproper
  7. $ make pico-imx7d_defconfig
  8. $ make
  9. This generates the U-Boot binary called u-boot.imx.
  10. Put pico board in USB download mode (refer to the PICO-iMX7D Quick Start Guide
  11. page 3)
  12. Connect a USB to serial adapter between the host PC and pico.
  13. Connect a USB cable between the OTG pico port and the host PC.
  14. Open a terminal program such as minicom.
  15. Copy u-boot.imx to the imx_usb_loader folder.
  16. Load u-boot.imx via USB:
  17. $ sudo ./imx_usb u-boot.imx
  18. Then U-Boot starts and its messages appear in the console program.
  19. Use the default environment variables:
  20. => env default -f -a
  21. => saveenv
  22. Run the UMS command:
  23. => ums 0 mmc 0
  24. Transfer u-boot.imx to be flashed into the eMMC:
  25. $ sudo dd if=u-boot.imx of=/dev/sdX bs=1K seek=1; sync
  26. Remove power from the pico board.
  27. Put pico board into normal boot mode.
  28. Power up the board and the new updated U-Boot should boot from eMMC.
  29. Building U-Boot to boot with NXP 4.1 kernel:
  30. The NXP 4.1 kernel boots only in secure boot mode on mx7.
  31. Follow the next steps to enable secure boot:
  32. $ make mrproper
  33. $ make pico-imx7d_defconfig
  34. $ make menuconfig
  35. -> ARM architecture
  36. -> [*] Enable support for booting in non-secure mode
  37. -> [*] Boot in secure mode by default
  38. -> Exit
  39. $ make
  40. Flash u-boot.imx using the imx_usb_loader tool.