blob: 1996d937b9f64a7392996e23c91626c6be03fd6f [file] [log] [blame]
xf.li742dd022023-06-08 01:43:32 -07001#!/bin/bash
2
3FLASH_SIZE=$1
4if [ x"$FLASH_SIZE" = x"" ]; then
5 echo "Use the built-in flash size of partition.bin"
6else
7 echo "set new flash size:$FLASH_SIZE MB"
8fi
9
10./bin2conf partition.bin $FLASH_SIZE > sample.conf
11
12read -p "edit sample.conf and input any key to continue " any_key
13bash ./conf2ini.sh && rm -f conf2ini.sh
14if [ $? -ne 0 ]; then
15 echo "generate partition2.bin partition2.ini error"
16 cat partition2.ini
17 exit -1
18else
19 echo "generate new partition.2.bin and partition2.ini and check."
20fi
21