README 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. How to Update U-Boot on Warp7 board
  2. ----------------------------------
  3. Required software on the host PC:
  4. - imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader
  5. - dfu-util: http://dfu-util.sourceforge.net/releases/ (if you are in a
  6. Debian distribution then you can get it via libdfu-dev package)
  7. - libusb: http://libusb.org/ (if you are in a Debian distribution
  8. then you can get it via libusb-dev and libusb-1.0-0-dev)
  9. In U-Boot folder, build U-Boot for Warp7:
  10. $ make mrproper
  11. $ make warp7_config
  12. $ make
  13. This will generate the U-Boot binary called u-boot-dtb.imx.
  14. Put warp7 board in USB download mode:
  15. Remove the CPU board from the base board then put switch 2 in the upper
  16. position
  17. Connect a USB to serial adapter between the host PC and warp7
  18. Connect a USB cable between the OTG warp7 port and the host PC
  19. Copy u-boot-dtb.imx to the imx_usb_loader folder.
  20. Load u-boot-dtb.imx via USB:
  21. $ sudo ./imx_usb u-boot-dtb.imx
  22. Then U-Boot should start and its messages will appear in the console program.
  23. Open a terminal program such as minicom
  24. Use the default environment variables:
  25. => env default -f -a
  26. => saveenv
  27. Run the DFU command:
  28. => dfu 0 mmc 0
  29. Transfer u-boot-dtb.imx that will be flashed into the eMMC:
  30. $ sudo dfu-util -D u-boot-dtb.imx -a boot
  31. Then on the U-Boot prompt the following message should be seen after a
  32. successful upgrade:
  33. #DOWNLOAD ... OK
  34. Ctrl+C to exit ...
  35. Remove power from the warp7 board.
  36. Put warp7 board into normal boot mode (put the switch 2 in the lower position)
  37. Power up the board and the new updated U-Boot should boot from eMMC