代码拉取完成,页面将自动刷新
同步操作将从 KuDianWanJia/KODO-HI3516CV500开发板 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
##############
# Build Uboot
## EMMC
compile_Uboot_EMMC()
{
echo "================ Build Uboot ================="
cd opensource/uboot/u-boot-2016.11
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- hi3516cv500_emmc_defconfig
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- -j 20
make -C ../../../Tools/pc/hi_gzip
cp ../../../Tools/pc/hi_gzip/bin/gzip arch/arm/cpu/armv7/hi3516cv500/hw_compressed/ -rf
cp ../../../Tools/pc/uboot_tools/reg_info_hi3516cv500_emmc.bin .reg
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- u-boot-z.bin
#opensource/uboot/u-boot-2016.11下生成的u-boot-hi3516dv300.bin即为可用的u-boot镜像
cp u-boot-hi3516cv500.bin ../../../Image/EMMC/ -rf
cd ../../../
}
## NAND
compile_Uboot_NAND()
{
echo "================ Build Uboot ================="
cd opensource/uboot/u-boot-2016.11
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- hi3516cv500_defconfig
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- -j 20
make -C ../../../Tools/pc/hi_gzip
cp ../../../Tools/pc/hi_gzip/bin/gzip arch/arm/cpu/armv7/hi3516cv500/hw_compressed/ -rf
cp ../../../Tools/pc/uboot_tools/reg_info_hi3516cv500_nand.bin .reg
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- u-boot-z.bin
#opensource/uboot/u-boot-2016.11下生成的u-boot-hi3516dv300.bin即为可用的u-boot镜像
cp u-boot-hi3516cv500.bin ../../../Image/NAND/ -rf
cd ../../../
}
##############
# Build Kernel
## EMMC
compile_Kernel_EMMC()
{
echo "================ Build Kernel ================="
cd opensource/kernel/linux-4.9.y-smp
cp arch/arm/configs/hi3516cv500_emmc_smp_defconfig .config
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- uImage
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- modules
cp arch/arm/boot/uImage ../../../Image/EMMC/uImage_hi3516cv500_smp -rf
cd ../../../
}
## NAND
compile_Kernel_NAND()
{
echo "================ Build Kernel ================="
cd opensource/kernel/linux-4.9.y-smp
cp arch/arm/configs/hi3516cv500_smp_defconfig .config
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- uImage
make ARCH=arm CROSS_COMPILE=arm-himix200-linux- modules
cp arch/arm/boot/uImage ../../../Image/NAND/uImage_hi3516cv500_smp -rf
cd ../../../
}
##############
# MAKE ROOTFS
make_rootfs_EMMC()
{
echo "================ MAKE ROOTFS ================="
mkdir -p rootfs/{boot,dev,home,komod,lost+found,mnt,nfsroot,opt,proc,share,sharefs,sys,tmp}
mkdir -p rootfs/usr/{lib,share}
Tools/make_ext4fs -l 500M -s Image/EMMC/rootfs_hi3516cv500_500M.ext4 rootfs
}
make_rootfs_NAND()
{
echo "================ MAKE ROOTFS ================="
mkdir -p rootfs/{boot,dev,home,komod,lost+found,mnt,nfsroot,opt,proc,share,sharefs,sys,tmp}
mkdir -p rootfs/usr/{lib,share}
Tools/mkyaffs2image100 rootfs Image/NAND/rootfs_uclibc_2k_4bit.yaffs2 1 2
Tools/mkyaffs2image100 rootfs Image/NAND/rootfs_uclibc_2k_24bit.yaffs2 1 4
Tools/mkyaffs2image100 rootfs Image/NAND/rootfs_uclibc_4k_4bit.yaffs2 2 2
Tools/mkyaffs2image100 rootfs Image/NAND/rootfs_uclibc_4k_24bit.yaffs2 2 2
}
clean()
{
echo "================ Clean U-boot ================="
make -C opensource/uboot/u-boot-2016.11 clean
echo "================ Clean Kernel ================="
make -C opensource/kernel/linux-4.9.y-smp clean
make -C Tools/pc/hi_gzip/ clean
}
distclean()
{
echo "================ Distclean U-boot ================="
make -C opensource/uboot/u-boot-2016.11 distclean
echo "================ Distclean Kernel ================="
make -C opensource/kernel/linux-4.9.y-smp distclean
# rm -rf Image/EMMC/*
# rm -rf Image/NAND/*
}
if [ X$1 == Xclean ]; then
clean
elif [ X$1 == Xdistclean ]; then
distclean
elif [ X$1 == XEMMC ]; then
compile_Uboot_EMMC
compile_Kernel_EMMC
make_rootfs_EMMC
elif [ X$1 == XNAND ]; then
compile_Uboot_NAND
compile_Kernel_NAND
make_rootfs_NAND
else
echo "========== Build =========== "
echo "0) ./build-ddr3-emmc.sh EMMC "
echo "1) ./build-ddr3-emmc.sh NAND "
echo "========== Clean =========== "
echo "0) ./build-ddr3-emmc.sh clean "
echo "1) ./build-ddr3-emmc.sh distclean "
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。