Skip to content

Commit

Permalink
Merge pull request #7 from hsyysy/socbak
Browse files Browse the repository at this point in the history
fix(socbak): add fat and vfat to blacklist
  • Loading branch information
zetao-zhang-sophgo authored Dec 4, 2024
2 parents 317eecb + bac1144 commit 8fb99fc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/psocbak/socbak/socbak.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 8fb99fc

Please sign in to comment.