Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info
iconfalse

$ git clone https://source.codeaurora.org/external/imx/imx-atf -b imx_5.4.24_2.1.0

$ cd imx-atf

$ wget -c ftp://ftp.embedian.com/public/smarcimx8m/0001-imx8m-atf-ddr-timing.patch

$ patch -p1 <0001-imx8m-atf-ddr-timing.patch

$ make CROSS_COMPILE=${CC} PLAT=imx8mq bl31

$ cp build/imx8mq/release/bl31.bin ../imx-mkimage/iMX8M/

$ cd ../

...

Info
iconfalse
$ sync
$ sudo umount /media/boot
$ sudo umount /media/rootfs

...

Setup eMMC

...

Setting up eMMC usually is the last step at development stage after the development work is done at your SD card or NFS environments. From software point of view, eMMC is nothing but a non-removable SD card on board. For SMARC-iMX8MiMX8MQ, the SD card is always emulated as /dev/mmcblk1 and on-module eMMC is always emulated as /dev/mmcblk0. Setting up eMMC now is nothing but changing the device descriptor. 

This section gives a step-by-step procedure to setup eMMC flash. Users can write a shell script your own at production to simplify the steps.

...

Info
iconfalse

$ sudo mkdir -p /media/boot/dtbs

$ sudo cp -v imx8mq-smarc.dtb /media/boot/dtbs/

Setup eMMC

...

Info
iconfalse

$ sudo tar -zxvf smarcimx8mq-emmc-rootfs.tar.gz -C /media/rootfs

...