# 板子名字
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"
#!/bin/bash# rm -rf uboot/
test() {
echo ${1}
cd uboot
echo "Building test..."
make distclean
make mx6ull_14x14_evk_defconfig
# make mx6ull_14x14_evk_emmc_defconfig
make -j$(nproc)
}
build() {
export CROSS_COMPILE=/home/ygc/Desktop/linux-gcc/2021-6ull/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-
export ARCH=arm
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
#!/bin/bash# rm -rf uboot/
test() {
echo ${1}
cd uboot
echo "Building test..."
make distclean
make mx6ull_14x14_evk_defconfig
# make mx6ull_14x14_evk_emmc_defconfig
make -j$(nproc)
}
build() {
export CROSS_COMPILE=/home/ygc/Desktop/linux-gcc/2021-6ull/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-
export ARCH=arm
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