mirror of
https://github.com/LuckfoxTECH/luckfox-pico.git
synced 2026-01-18 03:28:19 +01:00
update:add support for exFAT file system and automatically mount
This commit is contained in:
@@ -1312,7 +1312,9 @@ function parse_partition_file()
|
||||
echo "ln -sf /dev/${storage_dev_prefix}${part_num} ${part_name}" >> $RK_PROJECT_FILE_ROOTFS_SCRIPT
|
||||
part_num=$(( part_num + 1 ))
|
||||
done
|
||||
cat >> $RK_PROJECT_FILE_ROOTFS_SCRIPT <<EOF
|
||||
case $RK_BOOT_MEDIUM in
|
||||
emmc)
|
||||
cat >> $RK_PROJECT_FILE_ROOTFS_SCRIPT <<EOF
|
||||
for i in \$(seq 5 8); do
|
||||
det_partition="/dev/mmcblk1p\$i"
|
||||
mount_point=\$(mount | grep "\$det_partition" | awk '{print \$3}')
|
||||
@@ -1324,6 +1326,10 @@ for i in \$(seq 5 8); do
|
||||
fi
|
||||
done
|
||||
EOF
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
IFS=
|
||||
echo "fi }" >> $RK_PROJECT_FILE_ROOTFS_SCRIPT
|
||||
|
||||
@@ -2042,4 +2048,4 @@ do
|
||||
fi
|
||||
done
|
||||
|
||||
eval "${option:-build_allsave}"
|
||||
eval "${option:-build_allsave}"
|
||||
Reference in New Issue
Block a user