...
1. Download the imx-mkimage tool and apply Embedian's patch to accept Embedian's device tree blob.
Info |
---|
|
$ 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 |
---|
|
$ 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 |
---|
|
$ 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 |
---|
|
$ 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 |
---|
icon | false |
---|
title | ~/linux_v4.9.51, ~/linux_v4.14.7898 |
---|
|
$ sudo cp -v arch/arm64/boot/Image /media/boot
|
...
Info |
---|
icon | false |
---|
title | directory where your root file system is |
---|
|
$ sudo tar jxvf <filename.tar.gz> -C /media/rootfs
|
...
icon | false |
---|
title | directory where your root file system is |
---|
$ sudo tar xvfz debian-stretch-imx8m-arm64.tar.gz -C /media/rootfs
Ubuntu 18.04:
Info |
---|
icon | false |
---|
title | directory where your root file system is |
---|
|
$ sudo tar xvfz ubuntu-minimal-imx8m-18.04-arm64.tar.gz -C /media/rootfs
|
...