kernel 的生成

从Release_to_customer.sh中可以看到,当flash类型选择为nand,并且不开启fastboot模式时,在kernel目录下执行:

# make infinity2m_spinand_ssc011a_s01a_minigui_defconfig

Release_to_customer.sh中kernel的脚本内容如下所示:

#build kernel
cd ${RELEASEDIR}/kernel
declare -x ARCH="arm"
declare -x CROSS_COMPILE="arm-linux-gnueabihf-"
if [ "${flashtype}" = "nor" ]; then
    if [ "${fastboot}" = "fastboot" ]; then
        make infinity2m_ssc011a_s01a_fastboot_defconfig
    else
        make infinity2m_ssc011a_s01a_minigui_defconfig
    fi

else
    if [ "${fastboot}" = "fastboot" ]; then
        make infinity2m_spinand_ssc011a_s01a_minigui_fastboot_defconfig
    else
        #make infinity2m_spinand_ssc011a_s01a_minigui_defconfig
        make ${KERNEL_DEFCONFIG}
    fi

fi
#make clean
make -j16

# vi arch/arm/configs/infinity2m_spinand_ssc011a_s01a_minigui_defconfig

# Options
#
CONFIG_SS_DTB_NAME="infinity2m-spinand-ssc011a-s01a-display"
CONFIG_SS_BUILTIN_DTB=y
CONFIG_MS_KERNEL_TYPE=""
CONFIG_SSTAR_CHIP_NAME="infinity2m"
CONFIG_SSTAR_SHORT_NAME=""
CONFIG_MP_IRQ_TRACE=y
CONFIG_DISABLE_CLK_DEBUGFS_SUPPORT=y
CONFIG_SKIP_SQUASHFS_BAD_BLOCK=y
CONFIG_DEFERRED_INIICALLS=y
# CONFIG_DEFERRED_INIICALLS_SLAB_SYSFS is not set
# CONFIG_DEFERRED_INIICALLS_PARAM_SYSFS is not set
# CONFIG_DEFERRED_INIICALLS_PPERF_SYSFS is not set
# CONFIG_DEFERRED_INIICALLS_MORE_SYSFS is not set
# CONFIG_DEFERRED_CREATE_DTS_SYSNODE is not set
# CONFIG_CRYPTO_MANAGER_NO_TESTS_THREAD is not set
CONFIG_ARCH_INFINITY2M=y

可以得知,目标dtb为 arch/arm/boot/dts/infinity2m-spinand-ssc011a-s01a-display.dtb,目标dts为 arch/arm/boot/dts/infinity2m-spinand-ssc011a-s01a-display.dts。

文档更新时间: 2021-04-26 17:54   作者:Aeeditor