From 179b22ae9ffa3ef2a6519b8e0f2965b94c3ff479 Mon Sep 17 00:00:00 2001 From: "siyuan.yang" Date: Wed, 30 Oct 2024 16:05:30 +0800 Subject: [PATCH 1/2] fix(socbak): add fat and vfat to blacklist --- source/psocbak/socbak/socbak.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/psocbak/socbak/socbak.sh b/source/psocbak/socbak/socbak.sh index 812a174..b5923cc 100755 --- a/source/psocbak/socbak/socbak.sh +++ b/source/psocbak/socbak/socbak.sh @@ -108,6 +108,11 @@ if [[ "${FILESYSTEM}" != "ext4" ]]; then echo "You can format the external storage to ext4 format according to the content at https://developer.sophgo.com/thread/758.html." fi +if [[ "${FILESYSTEM}" != "vfat" ]] || [[ "${FILESYSTEM}" != "fat" ]]; then + echo "ERROR: filesystem ${FILESYSTEM} is not supported to use socbak, please look at infomation above!" | tee -a $SOCBAK_LOG_PATH + exit -1 +fi + echo "INFO: get chip id ..." | tee -a $SOCBAK_LOG_PATH if [[ "$(busybox devmem 0x50010000 2>/dev/null)" == "0x16860000" ]]; then SOC_NAME="bm1684x" From bac1144cc98c0a7aa44e9c754aba731f75efb2b5 Mon Sep 17 00:00:00 2001 From: "siyuan.yang" Date: Wed, 30 Oct 2024 16:07:24 +0800 Subject: [PATCH 2/2] fix(socbak): add fat and vfat to blacklist --- source/psocbak/socbak/socbak.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/psocbak/socbak/socbak.sh b/source/psocbak/socbak/socbak.sh index a48014d..9a4fa7f 100755 --- a/source/psocbak/socbak/socbak.sh +++ b/source/psocbak/socbak/socbak.sh @@ -108,7 +108,7 @@ if [[ "${FILESYSTEM}" != "ext4" ]]; then echo "You can format the external storage to ext4 format according to the content at https://developer.sophgo.com/thread/758.html." fi -if [[ "${FILESYSTEM}" != "vfat" ]] || [[ "${FILESYSTEM}" != "fat" ]]; then +if [[ "${FILESYSTEM}" == "vfat" ]] || [[ "${FILESYSTEM}" == "fat" ]]; then echo "ERROR: filesystem ${FILESYSTEM} is not supported to use socbak, please look at infomation above!" | tee -a $SOCBAK_LOG_PATH exit -1 fi