|
@@ -35,7 +35,20 @@ mount -a
|
|
|
mount -t tmpfs tmpfs /mnt
|
|
|
|
|
|
chmod 777 /Storage
|
|
|
-mount -t jffs2 /dev/mtdblock13 /Storage
|
|
|
+#mount -t jffs2 /dev/mtdblock13 /Storage
|
|
|
+ubiattach /dev/ubi_ctrl -m 13
|
|
|
+if [ "$?" -eq "0" ]
|
|
|
+then
|
|
|
+ echo "Success."
|
|
|
+else
|
|
|
+ echo "Erase /dev/mtd13 jffs2 block"
|
|
|
+ flash_eraseall /dev/mtd13
|
|
|
+ ubiattach /dev/ubi_ctrl -m 13
|
|
|
+fi
|
|
|
+
|
|
|
+ubimkvol /dev/ubi0 -N ubiNandFs -s 796MiB
|
|
|
+mount -t ubifs ubi0:ubiNandFs /Storage
|
|
|
+
|
|
|
mkdir -p /Storage/EventLog
|
|
|
mkdir -p /Storage/ChargeLog
|
|
|
mkdir -p /Storage/SystemLog
|