If the bootloader has been erased from the storage media (or written with an invalid image) and the target does not boot, you can:
For a closed device, the recommended method is Program images with install_android_fw_uuu script. |
Program images with install_android_fw_uuu script
Requirements
-
Root/administrator permissions on your development computer.
-
Serial console cable.
-
A USB type-C cable.
Instructions
-
Download resources.
-
Download the firmware images from https://ftp1.digi.com/support/android/11.0/r2/images/ccimx8xsbcpro-installer.zip.
Decompress
ccimx8xsbcpro-installer.zip
in a directory of your choice.For a closed device, use your custom release images and the signed bootloader images:
-
u-boot-ccimx8xsbcpro2GB-<variant>-signed.imx
-
u-boot-ccimx8xsbcpro2GB-<variant>-trusty-signed.imx
-
-
Download NXP UUU (Universal Update Utility) tool:
-
Download the latest Universal Update Utility (UUU), a software tool from NXP.
UUU version should be 1.5.11 or higher. -
Place the
uuu
executable in a directory in your PATH, such as/usr/bin
. -
Install
udev
rules to allow any user to runuuu
to access the USB port:$ sudo sh -c "uuu -udev >> /etc/udev/rules.d/70-uuu.rules" $ sudo udevadm control --reload
-
-
-
Connect the USB type-C cable to the USB type-C of the board (top side, next to the USB host connectors) and the other end to the development computer.
-
Change the boot mode configuration to boot from USB. To do so, set the boot mode micro-switches as follows:
-
BOOT.1 ON
-
BOOT.2 ON
-
-
Reset the device by pressing the Reset button on the board.
-
Program images:
-
On your development PC, change to the directory where the images are uncompressed:
$ cd <zip-folder>
-
Execute the
install_android_fw_uuu.sh
script.Find the script inside
/usr/local/dea-11.0-r2/device/digi/common/tools
.$ /usr/local/dea-11.0-r2/device/digi/common/tools/install_android_fw_uuu.sh first-deploy \ -u u-boot-ccimx8xsbcpro2GB-<variant>.imx
For a closed device, use the signed bootloader images. See 5. Sign the bootloader images.
$ /usr/local/dea-11.0-r2/device/digi/common/tools/install_android_fw_uuu.sh tf-deploy -lu u-boot-ccimx8xsbcpro2GB-<variant>-signed.imx \ -u u-boot-ccimx8xsbcpro2GB-<variant>-trusty-signed.imx
See U-Boot files by variant to verify which bootloader binary you need.
-
-
Boot from the internal eMMC.
-
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
-
-
-
Reset the device by pressing the Reset button on the board.
The first Android boot takes several minutes due to system deployment. |
Perform a rescue boot
You can perform one of the following rescue boots:
Boot U-Boot in USB debug mode
Requirements
-
Root/administrator permissions on your development computer.
-
Serial console cable.
-
A USB type-C cable.
Instructions
-
Download resources.
-
Download the U-Boot bootloader binary image file from https://ftp1.digi.com/support/android/11.0/r2/images/ccimx8xsbcpro/
See U-Boot files by variant to verify which U-Boot binary you need. -
Download NXP UUU (Universal Update Utility) tool:
-
Download the latest Universal Update Utility (UUU), a software tool from NXP.
UUU version should be 1.5.11 or higher. -
Place the
uuu
executable in a directory in your PATH, such as/usr/bin
. -
Install
udev
rules to allow any user to runuuu
to access the USB port:$ sudo sh -c "uuu -udev >> /etc/udev/rules.d/70-uuu.rules" $ sudo udevadm control --reload
-
-
-
Boot from the USB.
-
Connect the USB type-C cable to the USB type-C of the board (top side, next to the USB host connectors) and the other end to the development computer.
-
Change the boot mode configuration to boot from USB. To do so, set the boot mode micro-switches as follows:
-
BOOT.1 ON
-
BOOT.2 ON
-
-
Open a serial terminal at 115200/8/n/1.
-
Power up the board.
-
On the host computer, run the
uuu
tool with the U-Boot file to boot as parameter.For example:
$ uuu -b spl </path/to/u-boot-file>
If you are using dea-11.0-r1:
$ uuu </path/to/u-boot-file>
For a closed device, use a signed bootloader file without Trusty
u-boot-ccimx8xsbcpro2GB-<variant>-signed.imx
to recover from USB.The serial terminal shows the device starting U-Boot.
-
-
Once you have booted U-Boot, you can proceed to re-program U-Boot into the eMMC. See Re-program U-Boot in the eMMC.
Boot U-Boot from the microSD card
Requirements
-
Root/administrator permissions in your development computer
-
A microSD card with a minimum capacity of 2 GB
The following procedure will destroy existing data in the microSD card. |
Instructions
-
Create a bootable microSD card.
-
Download the U-Boot bootloader binary image file from https://ftp1.digi.com/support/android/11.0/r2/images/ccimx8xsbcpro/
See U-Boot files by variant to verify which U-Boot binary you need. -
Copy the U-Boot file into a folder of your choice.
-
Insert the microSD card into your computer and check the node Linux assigns to it (
/dev/<sdcard>
) usingdmesg
:$ dmesg [1413652.901270] sd 41:0:0:0: [sdc] 7744512 512-byte logical blocks: (3.96 GB/3.69 GiB) [1413652.903140] sd 41:0:0:0: [sdc] No Caching mode page present [1413652.903144] sd 41:0:0:0: [sdc] Assuming drive cache: write through [1413652.905638] sd 41:0:0:0: [sdc] No Caching mode page present [1413652.905642] sd 41:0:0:0: [sdc] Assuming drive cache: write through [1413652.915154] sdc: sdc1
Do not mount any partitions the card might contain (or unmount any partition if automatically mounted), as you will be writing to the entire block device.
Using an incorrect device node in the next step might destroy all data on your computer hard drive. -
Raw write the image file to the microSD card with this command:
$ sudo dd if=<path/filename.imx> of=/dev/<sdcard> bs=1k seek=32 oflag=sync
-
<path/filename.imx>
must be substituted with the path and filename to the U-Boot image. -
<sdcard>
must be substituted with the device node that Linux assigns to your microSD card.
The microSD card is now ready.
-
-
-
Boot from the microSD card.
-
Power off the device.
-
Insert the microSD card into the microSD card holder.
-
Change the boot mode configuration to boot from the microSD card. To do so, set the boot mode micro-switches as follows:
-
BOOT.1 OFF
-
BOOT.2 ON
-
-
Power on the device.
-
-
Once you have booted U-Boot, you can proceed to re-program U-Boot into the eMMC. See Re-program U-Boot in the eMMC.
Re-program U-Boot in the eMMC
Once U-Boot is running, you can use it to update the bootloader in the eMMC using one of these methods:
Re-program bootloader from USB (fastboot)
-
Update the U-Boot image:
-
Enter U-Boot fastboot mode:
-
Unlock fastboot:
=> env set skip-fblock-check yes
-
Start the fastboot mode in U-Boot:
=> fastboot 1
-
-
On your development computer, execute the following command to update the U-Boot image:
$ fastboot flash bootloader u-boot-ccimx8xsbcpro2GB-<variant>.imx
-
Configure the partition of the eMMC to hold Android images by executing the following command on your development computer:
$ fastboot flash gpt <partition-table.img>
-
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
-
-
Reset the board to boot into the recently updated U-Boot, and press any key to stop the autoboot process.
-
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
-
Save the U-Boot environment to apply the default configuration.
=> env save
-
-
Power-cycle the board. The target now boots from the eMMC.
Re-program bootloader from Ethernet (TFTP)
-
Place the U-Boot binary inside your host computer TFTP exported folder.
-
Connect an Ethernet cable to the Ethernet port.
-
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
-
-
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
-
Update the U-Boot image:
-
Execute the following command to update the U-Boot image into the eMMC:
=> update uboot tftp u-boot-ccimx8xsbcpro2GB-<variant>.imx
-
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
-
-
Reset the board to boot into the recently updated U-Boot, and press any key to stop the autoboot process.
-
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
-
Save the U-Boot environment to apply the default configuration.
=> env save
-
-
Power-cycle the board. The target now boots from the eMMC.
Re-program bootloader from microSD card
-
Place the U-Boot binary inside a FAT-formatted microSD card.
-
Update the U-Boot image:
-
Run the following command to update U-Boot into the eMMC:
=> update uboot mmc 1 u-boot-ccimx8xsbcpro2GB-<variant>.imx
-
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
-
-
Reset the board to boot into the recently updated U-Boot, and press any key to stop the autoboot process.
-
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
-
Save the U-Boot environment to apply the default configuration.
=> env save
-
-
Power-cycle the board. The target now boots from the eMMC.