2. Flashing Debian¶
For assistance: contact CTHINGS.CO Support at support.cthings.co.
2.1. Goals¶
This guide explains how to flash the Edge IoT Gateway (XS) using the NXP UUU utility.
2.2. Prerequisites¶
You will need:
A valid Debian OS image containing:
Bootloader (
*.bin)Root filesystem (
*.img)(Optional) Integrity checksum (
*.sha256)
Flashing tool: NXP UUU
2.3. Steps¶
2.3.1. Installing NXP UUU¶
Follow the instructions here (it is recommended to use a Linux-based host computer): https://github.com/nxp-imx/mfgtools
If you’d like you install the uuu utility to your computer, optionally run sudo make install after compiling.
2.3.2. Flashing the Bootloader¶
2.3.2.1. Acquire the bootloader¶
Obtain the correct .bin bootloader file for your Edge IoT Gateway XS hardware revision.
2.3.2.2. Accessing the UUU port¶
Power off the gateway.
Connect the micro-USB interface to your host computer (this is the NXP UUU interface).
2.3.2.3. Entering flashing mode¶
Power on the device by long-pressing the ON button for approximately 1–2 seconds. The gateway should be detected automatically by the UUU tool.
2.3.2.4. Flashing the bootloader¶
Run one of the following commands, depending on your host OS:
.\uuu.exe -b emmc flash.bin
$ sudo uuu -b emmc flash.bin
Replace flash.bin with the correct bootloader filename for your model.
2.3.2.5. Resetting after bootloader flashing¶
Power off the device (either by pressing and holding the power button or unplugging the device).
Disconnect the micro-USB cable from the NXP UUU interface port. Connect a cable between the console port and your computer and establish a serial connection.
Power on the device. Interrupt the boot in order to enter the U-Boot shell.
2.3.2.6. Resetting and saving U-Boot environment¶
At the U-Boot prompt, execute:
env default -a
saveenv
reset
2.3.3. Flashing a Complete OS Image¶
2.3.3.1. Prepare¶
Power down the gateway (simple shutdown will suffice; no need to unplug power).
Connect the micro-USB interface to your host computer (this is the NXP UUU interface).
Power on the device by long-pressing (1-2 seconds) the power button.
2.3.3.2. Acquire and verify the image¶
Acquire the image and verify checksums (if available).
$ sha256sum cthingsco-xs-debian-xxxxxxxx.img
d41fbc4d2a5e7d8c... cthingsco-xs-debian-xxxxxxxx.img
2.3.3.3. Flashing the full eMMC image¶
Use the emmc_all target to flash the complete image:
$ sudo uuu -b emmc_all cthingsco-xs-debian-xxxxxxxx.img
Replace the filename with your actual .img provided by CTHINGS.CO.
2.3.3.4. First reboot¶
After the flashing process completes:
Disconnect power.
Wait 1–2 seconds.
Power on the gateway.
The Debian system will boot automatically and expand the filesystem if supported by the image.
Note
To obtain the correct image and firmware for your hardware revision, please contact CTHINGS.CO Support at support@cthings.co.