You can use the update command to update the bootloader in the storage media. For example, to update from TFTP using the file <u-boot-filename>.imx:

=> update uboot tftp <u-boot-filename>.imx
Writing an invalid bootloader file may lead to the target not booting.

Digi releases U-Boot updates from time to time to fix problems or add new functionality. Much of the custom functionality added to U-Boot depends on environment variables and scripts that may have new values in newly released versions. Digi recommends that you reset the environment to its defaults after upgrading U-Boot:

Reset U-Boot environment to default values
=> env default -a
=> env save

This resets the whole environment, with the exception of protected variables (like the MAC addresses). After resetting the environment, you may need to adjust your manufacturing or boot scripts to accommodate changes in the default environment, like new or modified scripts, variables, and default filenames.

See Hardware variants to verify which U-Boot binary you need.

Update bootloader from USB (fastboot)

  1. Place the U-Boot binary in a well known location in your host computer.

  2. Connect the board to your host computer. See Step 2 - Set up the hardware for instructions.

  3. Open a serial connection to the serial port to which the device is connected. Use the following settings:

    • Port: Serial port to which your device is attached

    • Baud rate: 115200

    • Data Bits: 8

    • Parity: None

    • Stop Bits: 1

    • Flow control: None

  4. Reset the device (press the Reset button on the board) and immediately press a key in the serial terminal to stop the auto-boot process. You will be stopped at the U-Boot bootloader prompt:

    U-Boot dub-2018.03-r1.3 (May 06 2019 - 00:13:13 +0200)
    
    CPU:   Freescale i.MX8QXP revB A35 at 1200 MHz at 49C
    DRAM:  2 GiB
    MCA:   HW_VER=1  FW_VER=0.12
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1
    In:    serial
    Out:   serial
    Err:   serial
    Model: Digi International ConnectCore 8X SBC Pro Board.
    ConnectCore 8X SOM variant 0x02: Automotive QuadXPlus 1.2GHz, 16GB eMMC, 2GB LPDDR4, -40/+85C, Wireless, Bluetooth
    Board: ConnectCore 8X SBC Pro, version 2, ID 135
    Boot:  MMC0
    
     BuildInfo:
      - SCFW 65afe5f6, SECO-FW 9d71fd5b, IMX-MKIMAGE 19b9d9b6, ATF d6451cc
      - U-Boot dub-2018.03-r1.3
    
    flash target is MMC:0
    Net:   eth0: ethernet@5b040000 [PRIME], eth1: ethernet@5b050000
    Fastboot: Normal
    Hit any key to stop autoboot:  0
    =>
  5. Start the fastboot mode in U-Boot:

    => fastboot 1
  6. Update the U-Boot image:

    1. On your development computer, execute the following command to update the U-Boot image:

      $ fastboot flash bootloader <u-boot-filename>.imx
    2. Reset the board to boot into the recently updated U-Boot, and press any key to stop the autoboot process.

    3. Reset the U-Boot environment to default values. (This will not reset protected variables like the MAC address). To do so, issue this command:

      => env default -a
    4. Save the U-Boot environment to apply the default configuration.

      => env save
  7. Power-cycle the board.

Update bootloader from Ethernet (TFTP)

  1. Place the U-Boot binary inside your host computer TFTP exported folder.

  2. Connect the board to your host computer. See Step 2 - Set up the hardware for instructions.

  3. Open a serial connection to the serial port to which the device is connected. Use the following settings:

    • Port: Serial port to which your device is attached

    • Baud rate: 115200

    • Data Bits: 8

    • Parity: None

    • Stop Bits: 1

    • Flow control: None

  4. Reset the device (press the Reset button on the board) and immediately press a key in the serial terminal to stop the auto-boot process. You will be stopped at the U-Boot bootloader prompt:

    U-Boot dub-2018.03-r1.3 (May 06 2019 - 00:13:13 +0200)
    
    CPU:   Freescale i.MX8QXP revB A35 at 1200 MHz at 49C
    DRAM:  2 GiB
    MCA:   HW_VER=1  FW_VER=0.12
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1
    In:    serial
    Out:   serial
    Err:   serial
    Model: Digi International ConnectCore 8X SBC Pro Board.
    ConnectCore 8X SOM variant 0x02: Automotive QuadXPlus 1.2GHz, 16GB eMMC, 2GB LPDDR4, -40/+85C, Wireless, Bluetooth
    Board: ConnectCore 8X SBC Pro, version 2, ID 135
    Boot:  MMC0
    
     BuildInfo:
      - SCFW 65afe5f6, SECO-FW 9d71fd5b, IMX-MKIMAGE 19b9d9b6, ATF d6451cc
      - U-Boot dub-2018.03-r1.3
    
    flash target is MMC:0
    Net:   eth0: ethernet@5b040000 [PRIME], eth1: ethernet@5b050000
    Fastboot: Normal
    Hit any key to stop autoboot:  0
    =>
  5. On the target, configure the network settings of the device by doing one of the following:

    • Get a dynamic IP address from a DHCP server by running the following commands:

      => setenv autoload no
      => dhcp
    • Configure a static IP address, where a.b.c.d is the IP address of your device:

      => setenv ipaddr a.b.c.d
  6. Configure the IP address of the machine where the TFTP server is running and save the configuration as follows, where w.x.y.z is your machine IP address where the TFTP server is running:

    => setenv serverip w.x.y.z
    => env save
  7. Update the U-Boot image:

    1. Execute the following command to update the U-Boot image into the eMMC:

      => update uboot tftp <u-boot-filename>.imx
    2. Reset the board to boot into the recently updated U-Boot, and press any key to stop the autoboot process.

    3. Reset the U-Boot environment to default values (this will not reset protected variables like the MAC address). To do so, issue this command:

      => env default -a
    4. Configure the network and TFTP settings on your device again and save the configuration.

      => setenv ipaddr a.b.c.d
      => setenv serverip w.x.y.z
      => env save
  8. Power-cycle the board.

Update bootloader from microSD card

  1. Place the U-Boot binary inside a FAT-formatted microSD card.

  2. Power off the device.

  3. Insert the microSD card in the microSD socket of the device.

  4. Change the boot mode configuration to boot from the internal eMMC. To do so, set the boot mode micro-switches as follows:

    • BOOT.1 OFF

    • BOOT.2 OFF

      eMMC boot
  5. Connect the board to your host computer. See Step 2 - Set up the hardware for instructions.

  6. Open a serial connection to the serial port to which the device is connected. Use the following settings:

    • Port: Serial port to which your device is attached

    • Baud rate: 115200

    • Data Bits: 8

    • Parity: None

    • Stop Bits: 1

    • Flow control: None

  7. Reset the device (press the Reset button on the board) and immediately press a key in the serial terminal to stop the auto-boot process. You will be stopped at the U-Boot bootloader prompt:

    U-Boot dub-2018.03-r1.3 (May 06 2019 - 00:13:13 +0200)
    
    CPU:   Freescale i.MX8QXP revB A35 at 1200 MHz at 49C
    DRAM:  2 GiB
    MCA:   HW_VER=1  FW_VER=0.12
    MMC:   FSL_SDHC: 0, FSL_SDHC: 1
    In:    serial
    Out:   serial
    Err:   serial
    Model: Digi International ConnectCore 8X SBC Pro Board.
    ConnectCore 8X SOM variant 0x02: Automotive QuadXPlus 1.2GHz, 16GB eMMC, 2GB LPDDR4, -40/+85C, Wireless, Bluetooth
    Board: ConnectCore 8X SBC Pro, version 2, ID 135
    Boot:  MMC0
    
     BuildInfo:
      - SCFW 65afe5f6, SECO-FW 9d71fd5b, IMX-MKIMAGE 19b9d9b6, ATF d6451cc
      - U-Boot dub-2018.03-r1.3
    
    flash target is MMC:0
    Net:   eth0: ethernet@5b040000 [PRIME], eth1: ethernet@5b050000
    Fastboot: Normal
    Hit any key to stop autoboot:  0
    =>
  8. Update the U-Boot image:

    1. Run the following command to update U-Boot into the eMMC:

      => update uboot mmc 1 fat <u-boot-filename>.imx
    2. Reset the board to boot into the recently updated U-Boot, and press any key to stop the autoboot process.

    3. Reset the U-Boot environment to default values (this will not reset protected variables like the MAC address). To do so, issue this command:

      => env default -a
    4. Save the U-Boot environment to apply the default configuration.

      => env save
  9. Power-cycle the board.