data/method/编译kernel或uboot/编译内核和uboot,rootfs.txt

21 lines
997 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

环境Ubuntu 20.04 LTS
kernellinux-imx-rel_imx_4.1.15_2.1.0_ga 正点原子资料中nxp官方kernel
编译步骤
declare -x ARCH="arm" //自定义变量改成环境变量(declare -x 变量名和export 变量名作用类似)
declare -x CROSS_COMPILE="arm-linux-gnueabihf-" //交叉编译器前缀可前往交叉编译器的bin文件中查看
make clean
make imx_v7_mfg_defconfig //配置文件在kernel/arch/arm/configs中
make -j8 //根据核心数选择
uboot
编译步骤:
declare -x ARCH="arm" //自定义变量改成环境变量(declare -x 变量名和export 变量名作用类似)
declare -x CROSS_COMPILE="arm-linux-gnueabihf-" //交叉编译器前缀可前往交叉编译器的bin文件中查看
make clean
make mx6ull_14x14_evk_emmc_defconfig ////配置文件在uboot/configs中
make -j8 //根据核心数选择
busybox
在Makefile上更改编译器
make config;make;make install path