...
To build Embedian’s SMARC-FiMX7 u-boot and linux kernel, you will need to install the following Linaro arm compiler first:
For u-boot 2018.03 and Linux 4.14.98, you need to use the following newer Linaro arm compilier.
Info | ||
---|---|---|
| ||
$ wget -c http://releases.linaro.org/components/toolchain/binaries/6.4-2017.11/arm-linux-gnueabihf/gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz $ sudo tar -C /opt -xJf gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz $ export CC=/opt/gcc-linaro-6.4.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- |
For u-boot 2017.03, Linux 4.9.11 and Linux 4.9.88, you need to use the following newer Linaro arm compilier.
...
Clone the U-Boot source code from Embedian Git Server.
Download:
For u-boot v2018.03:
Info | ||
---|---|---|
| ||
$ git clone git@git.embedian.com:developer/smarc-t335x-uboot.git smarcfimx7-uboot $ cd smarcfimx7-uboot $ git checkout smarc-imx7_v2018.03_4.14.98_2.0.0_ga |
For u-boot v2017.03:
Info | ||
---|---|---|
| ||
$ git clone git@git.embedian.com:developer/smarc-t335x-uboot.git smarcfimx7-uboot $ cd smarcfimx7-uboot $ git checkout smarc-imx7_v2017.03_4.9.11_1.0.0_ga |
...
Note | ||||
---|---|---|---|---|
| ||||
Note1:
Note 2:
Note 3:
|
...
Linux Kernel
...
Download:
For 4.14.98 (Based on Freescale imx_4.14.98_2.0.0_ga official release):
Info | ||
---|---|---|
| ||
$ git clone git@git.embedian.com:developer/smarc-fsl-linux-kernel.git $ cd smarc-fsl-linux-kernel $ git checkout smarc-imx7_4.14.98_2.0.0_ga |
For 4.9.88 (Based on Freescale imx_4.9.88_2.0.0_ga official release):
...
Copy u-boot.imx to the boot partition. (Note: Rename u-boot-dtb.img to u-boot.img if your u-boot is v2018.03 or v2017.03)
Info | ||||
---|---|---|---|---|
| ||||
$ sudo cp -v u-boot.imx /media/boot/u-boot.imx |
...
Info | ||||
---|---|---|---|---|
| ||||
U-Boot# mmc rescan; mmc dev; load mmc 0:1 0x90800000 u-boot.imx; sf probe; sleep 2; sf erase 0 0xc0000; sf write 0x90800000 0x400 86000c0000 |
If SPI NOR Flash is empty
...
Copy u-boot.imx to the boot partition. (Note: Rename u-boot-dtb.img to u-boot.img if your u-boot is v2018.03 or v2017.03)
Info | ||||
---|---|---|---|---|
| ||||
$ sudo dd if=u-boot.imx of=${DISK} bs=512 seek=2 |
...
Info | ||||
---|---|---|---|---|
| ||||
$ |
Install Kernel Device Tree Binary
...
Now it will be almost the same as you did when setup your SD card, but the eMMC device descriptor is /dev/mmcblk2 now.
Info | ||
---|---|---|
| ||
$ |
Erase SD card:
Info | ||
---|---|---|
| ||
$ |
...
Unmount eMMC:
Info | ||
---|---|---|
| ||
$ sync $ sudo umount /media/boot $ sudo umount /media/rootfs |
Switch your Boot Select to eMMC and you will be able to boot up from eMMC now.
version 1.0a, 3/08/2017
Last updated 20182019-0211-08