# 板子名字 CONFIG_TARGET_MX6ULL_NARO=y # CONFIG_LDO_BYPASS_CHECK is not set CONFIG_SYS_I2C_MXC_I2C1=y CONFIG_SYS_I2C_MXC_I2C2=y CONFIG_DM_GPIO=y # 修改设备树 CONFIG_DEFAULT_DEVICE_TREE="imx6ull-naro"
test() { echo ${1} cd uboot echo "Building test..." make distclean make mx6ull_14x14_evk_defconfig # make mx6ull_14x14_evk_emmc_defconfig make -j$(nproc) }
if [ "${1}" == "test" ]; then test elif [ "${1}" == "build" ] ; then echo "Building uboot..." cp -rf ./uboot-revise/* ./uboot cd uboot make distclean make mx6ull_naro_defconfig # make mx6ull_14x14_evk_emmc_defconfig make -j$(nproc) elif [ "${1}" == "clean" ]; then echo ${1} cd uboot make distclean else echo "Usage: build.sh [test][build|clean]" fi
if [ -f "u-boot.bin" ]; then
echo "u-boot.bin exist" sudo mkfs.fat -F 32 /dev/sdb1 ../imxdownload ./u-boot.bin /dev/sdb else echo "u-boot.bin not exist" fi
}
if [ -e "uboot" ]; then build ${1} else echo git clone ...... git clone https://github.com/nxp-imx/uboot-imx.git uboot cd uboot git checkout lf_v2024.04 cd ../ build ${1} fi
test() { echo ${1} cd uboot echo "Building test..." make distclean make mx6ull_14x14_evk_defconfig # make mx6ull_14x14_evk_emmc_defconfig make -j$(nproc) }
if [ "${1}" == "test" ]; then test elif [ "${1}" == "build" ] ; then echo "Building uboot..." cp -rf ./uboot-revise/* ./uboot cd uboot make clean make distclean make mx6ull_naro_defconfig # make mx6ull_14x14_evk_emmc_defconfig make -j$(nproc) elif [ "${1}" == "clean" ]; then echo ${1} cd uboot make distclean else echo "Usage: build.sh [test][build|clean]" fi
if [ -f "u-boot.bin" ]; then if [ -b "/dev/sdb" ] ; then echo "u-boot.bin exist" sudo mkfs.fat -F 32 /dev/sdb1 ../imxdownload ./u-boot.bin /dev/sdb else echo "no /dev/sdb" fi else echo "u-boot.bin not exist" fi
}
if [ -e "uboot" ]; then build ${1} else echo git clone ...... git clone https://github.com/nxp-imx/uboot-imx.git uboot cd uboot git checkout lf_v2024.04 cd ../ build ${1} fi