tools: burner_image_kits: Support spinand 4096B page size

Change-Id: Icc8e95807749b54845a647e95c996ca7a3d6183c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
Jon Lin
2020-11-15 15:54:37 +08:00
parent 6f1360c8a3
commit a99428b748
2 changed files with 11 additions and 1 deletions

View File

@@ -23,7 +23,7 @@ function gen_idblock()
{
$mkimage -n $soc -T rksd -d $1:$2 idblock1.img.temp > /dev/null
echo $3": gen_idblock: success!"
if [[ $is_slc_nand == 1 && $page_size == 4096 ]]; then
if [[ $page_size == 4096 ]]; then
$transfer_4K_2_2K idblock1.img.temp $3
rm idblock1.img.temp
else

View File

@@ -9,4 +9,14 @@ 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