Versions Compared

Key

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

...

1. Download the imx-mkimage tool and apply Embedian's patch to accept Embedian's device tree blob.

Info
iconfalse

$ git clone https://source.codeaurora.org/external/imx/imx-mkimage -b imx_4.14.98_2.0.0_ga

$ cd imx-mkimage

$ wget -c ftp://ftp.embedian.com/public/smarcimx8m/0003-change-uboot-device-tree-name.patch

$ patch -p1 <0003-change-uboot-device-tree-name.patch

$ cd ../

2. Get and Build the ARM Trusted firmware and copy bl31.bin to imx-mkimage/iMX8M directory.

Info
iconfalse

$ git clone https://source.codeaurora.org/external/imx/imx-atf -b imx_4.14.98_2.0.0_ga

$ cd imx-atf

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

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

$ cd ../

...

Info
iconfalse

$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.1.bin

 $ chmod a+x firmware-imx-7.8.1.bin

$ ./firmware-imx-8.1
enter "y" to accept EULA

$ cd firmware-imx-8.1

$ cp firmware/ddr/synopsys/lpddr4_pmu_train_1d_dmem.bin ../imx-mkimage/iMX8M/
$ cp firmware/ddr/synopsys/lpddr4_pmu_train_1d_imem.bin ../imx-mkimage/iMX8M/
$ cp firmware/ddr/synopsys/lpddr4_pmu_train_2d_dmem.bin ../imx-mkimage/iMX8M/
$ cp firmware/ddr/synopsys/lpddr4_pmu_train_2d_imem.bin ../imx-mkimage/iMX8M/

$ cp firmware/hdmi/cadence/signed_hdmi_imx8m.bin ../imx-mkimage/iMX8M/
$ cp firmware/hdmi/cadence/signed_dp_imx8m.bin ../imx-mkimage/iMX8M/

$ cd ../

...

Info
iconfalse

$ git clone git@git.embedian.com:developer/smarc-t335x-uboot.git u-boot_v2018.03 -b smarc_8m-imx_v2018.03_4.14.98_2.0.0_ga

$ cd u-boot_v2018.03

...

Info
iconfalse
title~/linux_v4.9.51, ~/linux_v4.14.7898

$ sudo cp -v arch/arm64/boot/Image /media/boot

...

Info
iconfalse
titledirectory where your root file system is

$ sudo tar jxvf <filename.tar.gz> -C /media/rootfs

...

iconfalse
titledirectory where your root file system is

$ sudo tar xvfz debian-stretch-imx8m-arm64.tar.gz -C /media/rootfs


Ubuntu 18.04:

Info
iconfalse
titledirectory where your root file system is

$ sudo tar xvfz ubuntu-minimal-imx8m-18.04-arm64.tar.gz -C /media/rootfs

...