| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| 0001-lnx_def.h-fix-conflicting-declaration-of-__time64_t.patch | H A D | 05-Jun-2025 | 788 | 28 | 24 | |
| Config.in.host | H A D | 05-Jun-2025 | 508 | 16 | 13 | |
| mfgtools.hash | H A D | 05-Jun-2025 | 281 | 5 | 4 | |
| mfgtools.mk | H A D | 05-Jun-2025 | 1.1 KiB | 35 | 23 | |
| readme.txt | H A D | 05-Jun-2025 | 2.2 KiB | 70 | 48 |
readme.txt
1MfgTools Howto 2============== 3 41. Build your mfgtool image 5 6Make sure to enable the following Buildroot options: 7 8BR2_PACKAGE_FREESCALE_IMX=y 9BR2_PACKAGE_IMX_UUC=y 10BR2_TARGET_ROOTFS_CPIO=y 11BR2_TARGET_ROOTFS_CPIO_GZIP=y 12BR2_TARGET_ROOTFS_CPIO_UIMAGE=y 13 14Also modify your kernel configuration to have: 15 16CONFIG_USB_GADGET=y 17CONFIG_USB_MASS_STORAGE=y 18CONFIG_FSL_UTP=y 19CONFIG_MMC_BLOCK_MINORS=16 20 212. Go into the output and create the necessary folders 22 23$ cd output 24$ mkdir -p "Profiles/Linux/OS Firmware/firmware" 25 263. Create your XML update script named ucl2.xml 27 28You can find a sample XML at: 29 30$ wget https://storage.googleapis.com/boundarydevices.com/ucl2.xml \ 31 -O Profiles/Linux/OS\ Firmware/ucl2.xml 32 334. Copy the U-Boot, Kernel and initramfs images to the appropriate 34folder 35 36$ cp images/u-boot.imx images/zImage images/imx6q-sabrelite.dtb \ 37 images/rootfs.cpio.uboot Profiles/Linux/OS\ Firmware/firmware/ 38 395. Copy the prebuilt binaries to be flashed 40 41Depending on your ucl2.xml file, the sample doesn't flash anything. 42 436. Run the MfgTools client: 44 45$ ./host/bin/mfgtoolcli -l mmc -s uboot_defconfig=imx \ 46 -s dtbname=imx6q-sabrelite.dtb -s initramfs=rootfs.cpio.uboot \ 47 -s mmc=1 -p 1 48 49For more information about the tools options, please read the 50"Manufacturing Tool V2 Quick Start Guide.docx" documentation contained 51in every mfgtools package from NXP website[1]. 52 53Note: All the above commands require your Linux host user to have 54permissions to access the USB devices. Please make sure to have udev 55rules that allow the user to communicate with the BootROM IDs 56(Freescale USB recovery) as well as the one used for the UTP Linux 57image (0x066F:0x37FF). Using 'sudo' in front of the mfgtoolcli 58command would also grant you the necessary permission but it is *not* 59recommended. 60 61Also, if your U-Boot environment doesn't include mfgtools bootargs, 62make sure to set the following: 63 64setenv bootargs "console=${console},${baudrate} g_mass_storage.stall=0 \ 65 g_mass_storage.removable=1 g_mass_storage.idVendor=0x066F \ 66 g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber=\"\" \ 67 g_mass_storage.file=/fat" 68 69[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 70