Application Notes

Enable AI framework: TensorFlow

Please refer to the application note to enable TensorFlow at the device side.

Connect to Secure Element chip: A71CH

Please refer to the a71ch application note to enable a71ch at the device side.

Enable i.MX Linux with EdgeScale

  1. Register an account and the device

Following Quick Start Guide to register account, register the i.mx linux device and download the device identification image.

  1. Program the identification image to SD on a Linux PC.
Make sure the SD card is partition as below:
$ /dev/sdb1         131072  2228223  2097152    1G 83 Linux
$ /dev/sdb2        2228224 10616831  8388608    4G 83 Linux
$ /dev/sdb3       10616832 23199743 12582912    6G 83 Linux
$ /dev/sdb4       23199744 30719999  7520256  3.6G 83 Linux

Program the device identity

$ sudo fdisk -l         # find the /dev/sdx for the SD card e.g. /dev/sdx
$ sudo umount /dev/<sdx>
$ sudo ./bootstrap-enroll-<deviceID>.sh /dev/<sdx>
  1. Download and program the pre-built bootstrap image

Please refer Image Download for the pre-built bootstrap images.

  1. Program the bootstrap image

For SD boot, run the following to program image on SD card

$ sudo dd if=firmware_imx<xxxx>_uboot_sdboot.img of=/dev/sdx bs=512 skip=8 seek=8 && sync

For flashboot with i.mx8mmevk, run the following to program image on flash

=> tftp 0x42000000 imx8mm/firmware_imx8mmevk_uboot_norboot.img
=> sf probe
=> sf erase 0 440000
=> sf write 0x42000000 0 440000
  1. Reset to OTA

Run the following command in u-boot environment to start the OTA process:

=> reset
  1. Deploy app

Please refer Deploy APP for deployment of apps.

Build EdgeScale images on i.MX

1. Download the metadata

#mkdir fsl-arm-yocto-bsp
#cd fsl-arm-yocto-bsp
#repo init -u https://source.codeaurora.org/external/imx/imx-manifest  -b imx-linux-sumo -m imx-4.14.78-1.0.0_demo_edgescale.xml
#repo sync

2. Build bootstrap/solution image

Take imx8mqevk as an example:
  • Setup build environment
#MACHINE=imx8mqevk DISTRO=fsl-imx-xwayland source edgescale-setup.sh bld-xwayland
#Add the lines to the configuration file – conf/local.conf
#GOVERSION = "1.10%"
#DISTRO_FEATURES_append = " ota"

Note

For imx6qsabresd

Add below lines to source/meta-fsl-bsp-release/imxmeta-sdk/conf/distro/include/fsl-imx-preferred-env.inc

#PREFERRED_PROVIDER_virtual/bootloader_mx6 = “uboot-ota”

  • Build EdgeScale bootstrap image
#bitbake  edgescale-bootstrap-imx
  • Build EdgeScale solution image

Note

Remove the lines to the configuration file – conf/local.conf

#DISTRO_FEATURES_append = ” ota”

For imx6qsabresd

Remove below in source/meta-fsl-bsp-release/imxmeta-sdk/conf/distro/include/fsl-imx-preferred-env.inc

#PREFERRED_PROVIDER_virtual/bootloader_mx6 = “uboot-ota”

#bitbake  core-image-weston

3. Register EdgeScale solution image

IMX8MMEVK/IMX8MQEVK

tar czvf full-image.tgz Image \
 u-boot.itb \
 fsl-<machine>-evk.dtb \
 core-image-weston-<machine>.rootfs.tgz

IMX6QSABRESD

tar czvf full-image.tgz zImage \
 u-boot-dtb.img \
  imx6q-sabresd.dtb \
 core-image-weston-imx6qsabresd-rootfs.tgz

Upload the compressed solution image to a storage server and get the download URL link. Please refer to Create Solution for more details to register solution image.