Versions Compared

Key

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

...

Code Block
languagebash
themeMidnight
export ARCH=arm										#mx6, mx6ul, mx7, am335x
export ARCH=arm64									

然后准备.config文件,config文件位于内核代码的 arch/arm/configs/

...

Code Block
languagebash
themeMidnight
make imx_v6_v7_defconfig					#只有一个config文件的平台

./scripts/kconfig/merge_config.sh -m arch/arm64/configs/defconfig arch/arm64/configs/imx8_phytec_platform.config arch/arm64/configs/imx8_phytec_distro.conf  #IMX8MP,IMX8MM,有多个config文件需要混合

或者从yocto的deploy中复制zImage.config到源码覆盖.config来使用(不推荐)。

...

Code Block
languagebash
themeMidnight
编译内核:make zImage -j?
编译设备树:make xxxxx.dtb
make -j? 			#IMX8MM,IMX8MP


j后面的参数是内核的数目

...