From 26c06979cd0a2f143732faa48329b9d4e2236d24 Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Sat, 24 Aug 2019 16:50:52 +0800
Subject: [PATCH] update setup_env.sh to fix import bug

---
 linux-bsp/build.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/linux-bsp/build.sh b/linux-bsp/build.sh
index ed8273a..e505f78 100755
--- a/linux-bsp/build.sh
+++ b/linux-bsp/build.sh
@@ -135,8 +135,9 @@
     LEB_CNT=`expr $PEB_CNT - 4 - $PEB_CNT \/ 100 `
 
     #echo "Parition size ${partition_size}MiB and LEB=$LEB_CNT"
-    set -x
-    mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp}
+    set -x 
+    printf "\nWARNNING: generete rootfs image need root privilege, please input sudo passwd!\n\n" 
+    sudo mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp}
     set +x
 
 

--
Gitblit v1.9.1