rkbin/tools/burner_image_kits/make_spi_nand.sh
Jon Lin a99428b748 tools: burner_image_kits: Support spinand 4096B page size
Change-Id: Icc8e95807749b54845a647e95c996ca7a3d6183c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2020-11-15 16:00:03 +08:00

23 lines
400 B
Bash
Executable File

#!/bin/bash
DIR="$( cd "$( dirname "$0" )" && pwd )"
src_path=$1
dst_path=$2
soc=$3
block_size=$4
page_size=2048
oob_size=64
is_slc_nand=0
if [[ $5 == 4096 ]]; then
page_size=4096
elif [[ -n "$5" ]]; then
echo "param page_size: $5 not support!"
echo "support:"
echo " 2048(B)"
echo " 4096(B)"
exit 0
fi
$DIR/make.sh $src_path $dst_path $soc $block_size $page_size $oob_size $is_slc_nand