Below you will find instructions to build and install the imx7-linux-4.4 project.
Tags | Branch | Kernel Sourece |
---|---|---|
UC-8200_V1.4 UC-8200_V1.5 |
4.4.285-cip63-rt36/stretch-imx7d/master | linux-4.4 (Lastest ) |
UC-8200_V1.0 UC-8200_V1.1 UC-8200_V1.2 |
4.4.176-cip31-rt23/stretch/master | imx7-linux-4.4 (This repository) (Outdated ) |
To obtain the imx7-linux-4.4 sources you must clone them as below:
git clone https://github.com/Moxa-Linux/imx7-linux-4.4
📘 Refer to https://github.com/Moxa-Linux/linux-4.4.git for newer kernel source and building flow.
To build imx7-linux-4.4, we provide moxa-dockerfiles to create build environment.
To create a docker container execute the following commands from the directory which source in:
# sudo docker run -d -it -v ${PWD}:/workspace moxa-package-builder:1.0.0 bash
d103e6df5f719f9430056f9c23cf4e3e518d4a4f8b5b65e55889b90c258886c6
After execute commands, you will get a string like d103e6df5f719f9430056f9c23cf4e3e518d4a4f8b5b65e55889b90c258886c6
which called <container_id>
and we will use it in next step.
To build kernel package execute the following commands:
# docker start -ia <container_id>
# cd /workspace/imx7-linux-4.4
# apt-get build-dep -aarmhf .
# dpkg-buildpackage -us -uc -b -aarmhf
Once build process complete, you can find .deb
files under /workspace
directory.
After build the kernel packages, now you can update your device.
Below are instructions to update the kernel packages on UC-8200
.
To upload kernel package to the device execute the following commands:
# scp uc8200-kernel*.deb uc8200-modules*.deb [email protected]:/tmp
To install kernel package to the device execute the following commands:
# cd /tmp
# dpkg -i *.deb
# sync
NOTE: Remember to reboot the device after install the kernel package!
To configure your own kernel config based on moxa's configuration execute the following commands:
# export ARCH=arm
# make imx7d_defconfig
# make menuconfig