add(duo nand):add nand utils and fix build.sh nor/nand print

This commit is contained in:
yue-xiaomin
2024-01-19 16:42:14 +08:00
parent 54977e9c4d
commit 084be3f1c5
3 changed files with 9 additions and 9 deletions

View File

@ -165,22 +165,22 @@ function milkv_pack_nor_nand()
[ ! -d out ] && mkdir out [ ! -d out ] && mkdir out
if [ -f "${OUTPUT_DIR}/upgrade.zip" ]; then if [ -f "${OUTPUT_DIR}/upgrade.zip" ]; then
nor_out_name=${MILKV_BOARD}-`date +%Y%m%d-%H%M` img_out_patch=${MILKV_BOARD}-`date +%Y%m%d-%H%M`
mkdir -p out/$nor_out_name mkdir -p out/$img_out_patch
if [ "${STORAGE_TYPE}" == "spinor" ]; then if [ "${STORAGE_TYPE}" == "spinor" ]; then
cp ${OUTPUT_DIR}/fip.bin out/$nor_out_name cp ${OUTPUT_DIR}/fip.bin out/$img_out_patch
cp ${OUTPUT_DIR}/*.spinor out/$nor_out_name cp ${OUTPUT_DIR}/*.spinor out/$img_out_patch
else else
cp ${OUTPUT_DIR}/fip.bin out/$nor_out_name cp ${OUTPUT_DIR}/fip.bin out/$img_out_patch
cp ${OUTPUT_DIR}/*.spinand out/$nor_out_name cp ${OUTPUT_DIR}/*.spinand out/$img_out_patch
fi fi
touch ${OUTPUT_DIR}/how_to_download.txt touch ${OUTPUT_DIR}/how_to_download.txt
echo "Copy all to a blank tf card, power on and automatically download firmware to NOR or NAND in U-bOOT." >> out/$nor_out_name/how_to_download.txt echo "Copy all to a blank tf card, power on and automatically download firmware to NOR or NAND in U-boot." >> out/$img_out_patch/how_to_download.txt
print_info "Create spinor img successful: ${nor_out_name}" print_info "Create spinor/nand img successful: ${img_out_patch}"
else else
print_err "Create spinor img failed!" print_err "Create spinor/nand img failed!"
exit 1 exit 1
fi fi
} }