readme.txt 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. MfgTools Howto
  2. ==============
  3. 1. Build your mfgtool image
  4. Make sure to enable the following Buildroot options:
  5. BR2_PACKAGE_FREESCALE_IMX=y
  6. BR2_PACKAGE_IMX_UUC=y
  7. BR2_TARGET_ROOTFS_CPIO=y
  8. BR2_TARGET_ROOTFS_CPIO_GZIP=y
  9. BR2_TARGET_ROOTFS_CPIO_UIMAGE=y
  10. Also modify your kernel configuration to have:
  11. CONFIG_USB_GADGET=y
  12. CONFIG_USB_MASS_STORAGE=y
  13. CONFIG_FSL_UTP=y
  14. CONFIG_MMC_BLOCK_MINORS=16
  15. 2. Go into the output and create the necessary folders
  16. $ cd output
  17. $ mkdir -p "Profiles/Linux/OS Firmware/firmware"
  18. 3. Create your XML update script named ucl2.xml
  19. You can find a sample XML at:
  20. $ wget https://storage.googleapis.com/boundarydevices.com/ucl2.xml \
  21. -O Profiles/Linux/OS\ Firmware/ucl2.xml
  22. 4. Copy the U-Boot, Kernel and initramfs images to the appropriate
  23. folder
  24. $ cp images/u-boot.imx images/zImage images/imx6q-sabrelite.dtb \
  25. images/rootfs.cpio.uboot Profiles/Linux/OS\ Firmware/firmware/
  26. 5. Copy the prebuilt binaries to be flashed
  27. Depending on your ucl2.xml file, the sample doesn't flash anything.
  28. 6. Run the MfgTools client:
  29. $ ./host/bin/mfgtoolcli -l mmc -s uboot_defconfig=imx \
  30. -s dtbname=imx6q-sabrelite.dtb -s initramfs=rootfs.cpio.uboot \
  31. -s mmc=1 -p 1
  32. For more information about the tools options, please read the
  33. "Manufacturing Tool V2 Quick Start Guide.docx" documentation contained
  34. in every mfgtools package from NXP website[1].
  35. Note: All the above commands require your Linux host user to have
  36. permissions to access the USB devices. Please make sure to have udev
  37. rules that allow the user to communicate with the BootROM IDs
  38. (Freescale USB recovery) as well as the one used for the UTP Linux
  39. image (0x066F:0x37FF). Using 'sudo' in front of the mfgtoolcli
  40. command would also grant you the necessary permission but it is *not*
  41. recommended.
  42. Also, if your U-Boot environment doesn't include mfgtools bootargs,
  43. make sure to set the following:
  44. setenv bootargs "console=${console},${baudrate} g_mass_storage.stall=0 \
  45. g_mass_storage.removable=1 g_mass_storage.idVendor=0x066F \
  46. g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber=\"\" \
  47. g_mass_storage.file=/fat"
  48. [1] http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6-series-software-and-development-tool-resources:IMX6_SW