Quicker factory flashing of i.MX6ULL

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Quicker factory flashing of i.MX6ULL

383 Views
filip_kubicz
Contributor II

Hi!

We use i.MX6ULL with eMMC flash memory. We flash a Linux image during production, however it takes a long time to perform flashing, between 190-240 seconds.
The sdcard.img has 544MB (dual rootfs). The flashing is done from a Linux machine, over USB. First uboot is loaded to RAM, and then fastboot mode is used to flash whole image to eMMC.

We use NXP uuu to flash the image, with the "emmc_all" command:

uuu -v -b emmc_all ${uboot} ${image}


What is the fastest way to flash the devices in production? How can we improve the current process?

Our steps:

UUU_TOOL=scripts/uuu
uboot=${1:-'output_zubr_imx6/images/u-boot.imx'} 
image=${2:-'output_zubr_imx6/images/sdcard.img'}

# Load uboot to RAM
echo "Uploading u-boot image to the i.mx6 device..."
sudo ${UUU_TOOL} SDP: boot -f ${uboot}

# Setup uboot env
sudo ${UUU_TOOL} FB: ucmd setenv fdt_addr 0x83000000
sudo ${UUU_TOOL} FB: ucmd setenv loadaddr 0x80800000

# These variables are used by uuu; see uuu -bshow emmc_all for details
sudo ${UUU_TOOL} FB: ucmd setenv emmc_dev 1
sudo ${UUU_TOOL} FB: ucmd setenv emmc_ack 0

# Flash the uboot, kernel and rootfs
# see > uuu -bshow emmc_all
sudo ${UUU_TOOL} -v -b emmc_all ${uboot} ${image}

# Clear uboot environment and boot command
sudo ${UUU_TOOL} FB: ucmd env default -a
sudo ${UUU_TOOL} FB: ucmd env save

# Boot the kernel
sudo ${UUU_TOOL} FB: acmd boot

 

Tags (3)
0 Kudos
0 Replies