====== Build sw (tested on debian 10) ======
===== build rootfs =====
Download {{ boards:nms-uq7-imx8m:rootfs.tar.gz |}}
tar -xf rootfs.tar.gz
cd rootfs
make
result:
* buildroot-2020.05.1/output/images/rootfs.cpio.uboot # rootfs
* buildroot-2020.05.1/output/host/bin/aarch64-none-linux-gnu-gcc #comiler
* BR=<...>/buildroot-2020.05.1 # path to buildroot (for linux kernel build)
===== build linux =====
#Download {{ boards:nms-uq7-imx8m:kernel_inmys_imx8m_patch.patch.gz}}
git clone https://source.codeaurora.org/external/imx/linux-imx -b imx_5.4.24_2.1.0 --depth 1
cd linux-imx
gunzip kernel_inmys_imx8m_patch.patch.gz
patch -p1 < kernel_inmys_imx8m_patch.patch
make ARCH=arm64 CROSS_COMPILE=${BR}/output/host/bin/aarch64-none-linux-gnu- inmys_imx8mq_uq7_defconfig
make ARCH=arm64 CROSS_COMPILE=${BR}/output/host/bin/aarch64-none-linux-gnu- Image
make ARCH=arm64 CROSS_COMPILE=${BR}/output/host/bin/aarch64-none-linux-gnu- freescale/inmys-imx8mq-uq7-mb-hdmi.dtb
result:
* arch/arm64/boot/Image
* arch/arm64/boot/dts/freescale/inmys-imx8mq-uq7-mb-hdmi.dtb
===== Rootfs settings =====
change ip:
savevar.sh kernel NETWORK_IP 192.168.1.198 # ip on eth0
savevar.sh kernel NETWORK_IP_1 192.168.2.198 # ip on eth1
script run on start:
/mnt/store/postup.sh