• Ready for review
  • NXP Universal Update Utility (UUU) for Myon & Trizeps

    UUU / MFGTools

    Releases ยท nxp-imx/mfgtools

    UUU is the next generation of Freescale/NXP i.MX Chip image deploy tools and replaces the previous MFGTools.
    Please view the NXP UUU documentation for details.

    Using UUU

    The first step is to put the module into USB Serial Download Mode.
    The USB Serial Download Mode (manufacturing mode) is a mode by which the i.MX processor loads its internal ROM firmware instead of the bootloader stored in eMMC or SD-card.
    It will use the USB-OTG port to enumerate as HID device on a connected PC.

    ย 

    Some Samples:

    Download uboot

    uuu flash.bin

    Burn uboot into emmc

    uuu -b emmc flash.bin

    Burn rootfs image into emmc

    uuu -b emmc_all flash.bin rootfs.sdcard

    Decompress rootfs image and burn into emmc

    uuu -b emmc_all flash.bin rootfs.sdcard.bz2

    Burn release image into emmc

    uuu L4.9.123_2.3.0_8mm-ga.zip

    *) If you see 'Failure open usb device' message, you may need to call 'sudo uuu โ€ฆ'.

    Notes on eMMC Boot Partition

    Whereas SD-cards got memory organized in one user-space, eMMC have two additional boot-spaces.
    The spaces are often referred to as partitions. But this might be confusing, since they are not the typical partition, one would create through a partition-table/master-boot-record.
    A boot-space can overlay the first megabytes of normal user-space. After the bootloader got booted, it will fade-out the boot-space and so prevent any subsequent operating-system to be able to mess with the bootloader.
    When using eMMC it needs to be decided, wether to use the boot-space or the user-space for the bootloader.
    Following commands may be used to switch between the different modes (this is kept after power-cycle):

    //display configuration mmc partconf 0 //boot0 mmc partconf 0 1 1 0 //boot1 mmc partconf 0 1 2 0 //no boot partition, the the emmc will be used like an sd card mmc partconf 0 0 0 0

    When using different tools for updating the flash-content, a situation may arise, where the bootloader is written into the โ€žwrongโ€œ partition โ€“ the flash-space, which is not used for booting.

    If you use

    sudo ./uuu -bshow emmc

    to view the default-script used by uuu, you should note the line

    FB: ucmd emmc partconf ${emmc_dev} ${emmc_ack} 1 0

    , which will configure the eMMC to use the boot-space after it has completed the update. If you want to use the user-space simply call

    after running uuu or run uuu with a custom-script.

    Trizeps VIII

    Enter USB Serial Download Mode

    Using Hardware RESET_IN

    The default Kinetis MCU firmware will enter Serial Download Mode after RESET_IN (SODIMM-pin 26) has been asserted for more than 10s.

    Using Bootloader

    To enter the USB Serial Download Mode of the NXP boot-ROM issue following commands:

    or run the script:

    This will write to REG_CONTROL of the Trizeps VIII MCU, which will than reset the i.MX8M processor into this mode.

    As an alternative or for modules without Kinetis MCU:

    Using Linux

    To enter the USB Serial Download Mode of the NXP boot-ROM issue the following command:

    This will write to REG_CONTROL of the Trizeps VIII MCU, which will than reset the i.MX8M processor into this mode.

    Myon II

    Enter USB Serial Download Mode

    Using BOOT_MODE0 (J70-40)

    The Myon II will enter Serial Download Mode if BOOT_MODE0 (pin J70-40) is set to VDD_IO (pin J70-52) during (re-)boot.
    Typical baseboards for Myon have a โ€žForce USB-Bootโ€œ switch to set this pin.