blob: 6cb1dc8ac0a9245f9cb862923b39eaff12fdbe09 [file] [log] [blame]
xf.li86118912025-03-19 20:07:27 -07001#!/bin/sh
2
3if [ ! -b /dev/mmcblk1p2 ]; then
4 fdisk_emmc.sh
5 mkfs.ext4 /dev/mmcblk1p3
6fi
7
8#mount -o remount,rw /
9#mkdir -p /mnt/emmc2
10#mkdir -p /mnt/emmc3
11#mount -o remount,ro /
12
13mount -t ext4 -o async /dev/mmcblk1p3 /mnt/emmc2
14if [ $? -ne 0 ]; then
15 echo "ext4 mmcblk1p3 mount fail $? !"
16 mkfs.ext4 /dev/mmcblk1p3
17 mount -t ext4 /dev/mmcblk1p3 /mnt/emmc2
18fi
19