BuildTools 2 years ago
parent
commit
25780ee95d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      build.sh

+ 2 - 1
build.sh

@@ -212,7 +212,7 @@ flashrom -p serprog:dev=/dev/$arduino_device:115200 || :
 
 
 function flashrom_ch341_check_ {
 function flashrom_ch341_check_ {
 echo -e "\n\e[93mCheck flashrom :\e[0m"
 echo -e "\n\e[93mCheck flashrom :\e[0m"
-flashrom -p ch341a_spi || :
+sudo flashrom -p ch341a_spi || :
 }
 }
 
 
 function footer_ {
 function footer_ {
@@ -227,6 +227,7 @@ echo -e "flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=2000"
 echo -e ""
 echo -e ""
 echo -e "\e[93m\e[21mCh341a: \e[0m"
 echo -e "\e[93m\e[21mCh341a: \e[0m"
 echo -e "flashrom -p ch341a_spi"
 echo -e "flashrom -p ch341a_spi"
+echo -e "(ch341a need one reboot before use or use sudo)"
 echo -e ""
 echo -e ""
 if  ! [ -x "$(command -v flashrom)" ]
 if  ! [ -x "$(command -v flashrom)" ]
 then
 then