1#!/bin/bash 2 3DIR="$( cd "$( dirname "$0" )" && pwd )" 4src_path=$1 5dst_path=$2 6soc=$3 7block_size=$4 8page_size=2048 9oob_size=64 10is_slc_nand=0 11 12if [[ $5 == 4096 ]]; then 13 page_size=4096 14elif [[ -n "$5" ]]; then 15 echo "param page_size: $5 not support!" 16 echo "support:" 17 echo " 2048(B)" 18 echo " 4096(B)" 19 exit 0 20fi 21 22$DIR/make.sh $src_path $dst_path $soc $block_size $page_size $oob_size $is_slc_nand 23