Davinci内核编译常用命令
DM6446设置内核为默认配置模式:
make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm644x_defconfig
make ARCH=arm CROSS_COMPILE=arm_v5t_le- checksetconfig
DM355设置内核为默认配置模式:
make ARCH=arm CROSS_COMPILE=arm_v5t_le- davinci_dm355_evm_defconfig
make ARCH=arm CROSS_COMPILE=arm_v5t_le- checksetconfig
进入配置菜单,更改内核配置选项:
make ARCH=arm CROSS_COMPILE=arm_v5t_le- menuconfig
内核镜像编译命令:
make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage
内核模块编译命令:
ARCH=arm CROSS_COMPILE=arm_v5t_le- modules
如果遇到镜像编译时找不到mkimage命令的,执行如下命令,再执行make命令
export
PATH=$PATH:/opt/mv_pro_4.0.1/montavista/pro/bin(编译内核所需的gcc所在路径)
chmod a+x
/opt/mv_pro_4.0.1/montavista/pro/bin/mkimage(mkimage所在路径)
make ARCH=arm CROSS_COMPILE=arm_v5t_le- uImage
如若还不行,则:
打开/home/davinci/ICETEKWork/lsp/ti-davinci/scripts/mkuboot.sh文件,将其中的MKIMAGE直接赋值为mkimage的绝对路径,我的为:MKIMAGE=/opt/mv_pro_4.0/montavista/pro/bin/mkimage,然后重新运行编译内核命令即可。。。