Fastboot is a protocol for communication between your device and a computer. It allows you to modify file system images over a USB connection, which is a quick way to update firmware during development. Fastboot requires the USB interface to work as 'device'.

Although it was originally developed for Android images, its implementation on the NXP UUU (Universal Update Utility) tool extends the functionality to any file type.

To update U-Boot via USB OTG using uuu and the Fastboot protocol:

  1. Download the latest Universal Update Utility (UUU) tool, a software tool from NXP.

  2. Place the uuu executable in a directory in your PATH, such as /usr/bin.

  3. Install udev rules to allow any user to run the uuu for accessing the USB port:

    $ sudo sh -c "uuu -udev >> /etc/udev/rules.d/99-uuu.rules"
    $ sudo udevadm control --reload-rules
  4. Connect a micro USB cable to your development PC and the other end to the target USB OTG connector.

  5. Reset the device by pressing the reset button on the board and immediately press any key in the serial terminal to stop the auto-boot process. The U-Boot bootloader prompt displays:

    U-Boot dub-2017.03-r11.1 (Sep 29 2021 - 14:56:25 +0000)
    
    CPU:   Freescale i.MX6QP rev1.1 at 792MHz
    CPU:   Industrial temperature grade (-40C to 105C) at 38C
    Reset cause: POR
    I2C:   ready
    DRAM:  2 GiB
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1
    In:    serial
    Out:   serial
    Err:   serial
    Model: Digi International ConnectCore 6 QuadPlus Single Board Computer.
    ConnectCore 6 Plus SOM variant 0x02: Industrial QuadPlus-core 1GHz, 8GB eMMC, 2GB DDR3, -40/+85C, Wireless, Bluetooth, Kinetis
    Board: ConnectCore 6 Plus SBC, version 3, ID 160
    Boot device: MMC4
    PMIC:  DA9063, Device: 0x61, Variant: 0x63, Customer: 0x00, Config: 0x90
    flash target is MMC:0
    Net:   FEC [PRIME]
    Fastboot: Normal
    Hit any key to stop autoboot:  0
    => 
    Information in the console log may vary.
  6. On the target, in U-Boot, execute the following command:

    => fastboot 0
  7. On your development PC, change to your Digi Embedded Yocto project’s deploy images folder:

    $ cd tmp/deploy/images/ccimx6qpsbc/
  8. Run the install_linux_fw_uuu.sh script with -h parameter to check the syntax:

    $ ./install_linux_fw_uuu.sh -h
    ############################################################
    #           Linux firmware install through USB OTG         #
    ############################################################
    Usage: ./install_linux_fw_uuu.sh [options]
    
      Options:
       -h                     Show this help.
       -i <dey-image-name>    Image name that prefixes the image filenames, such as 'dey-image-qt',
                              'dey-image-webkit', 'core-image-base'...
                              Defaults to 'dey-image-qt' if not provided.
       -n                     No wait. Skips 10 seconds delay to stop script.
       -u <u-boot-filename>   U-Boot filename.
                              Auto-determined by variant if not provided.
  9. To program the default image files (dey-image-qt):

    $ ./install_linux_fw_uuu.sh
  10. Once the firmware is installed, the device boots automatically. The default username is root with no password.