mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			Fix pqtools script to use ipcinfo
							parent
							
								
									d0c9b6c580
								
							
						
					
					
						commit
						e108d12a9f
					
				|  | @ -6,19 +6,11 @@ | ||||||
| set -e | set -e | ||||||
| 
 | 
 | ||||||
| mpp=$(awk '/Version:/ {print $3,$4"]"}' /proc/umap/sys) || true | mpp=$(awk '/Version:/ {print $3,$4"]"}' /proc/umap/sys) || true | ||||||
| soc=$(ipctool --chip_id) | soc=$(ipcinfo --chip-id) | ||||||
| 
 | 
 | ||||||
| 
 | prepare() { | ||||||
| 
 |  | ||||||
| prepare() |  | ||||||
| { |  | ||||||
|   case ${soc} in |   case ${soc} in | ||||||
| 
 | 
 | ||||||
|   hi3516av300|hi3516cv500|hi3516dv300) |  | ||||||
|     echo -e "\n\e[1;31mSorry but the ${soc} is not supported at the moment...\e[0m\n" |  | ||||||
|     exit 1 |  | ||||||
|     ;; |  | ||||||
| 
 |  | ||||||
|   hi3516ev200 | hi3516ev300 | hi3516dv200 | hi3518ev300) |   hi3516ev200 | hi3516ev300 | hi3516dv200 | hi3518ev300) | ||||||
|     echo -e "\n\e[1;31mA supported processor with ${mpp} was found...\e[0m\n" |     echo -e "\n\e[1;31mA supported processor with ${mpp} was found...\e[0m\n" | ||||||
|     ittb_url="https://raw.githubusercontent.com/widgetii/pqtools/master/hi3516ev300/ittb_ev300_V1.0.1.2.tgz" |     ittb_url="https://raw.githubusercontent.com/widgetii/pqtools/master/hi3516ev300/ittb_ev300_V1.0.1.2.tgz" | ||||||
|  | @ -33,19 +25,17 @@ prepare() | ||||||
|   esac |   esac | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | download() if [[ -d /tmp/${ittb_folder} ]]; then | ||||||
| download() |  | ||||||
|   if [[ -d /tmp/${ittb_folder} ]]; then |  | ||||||
|   echo -e "\n\e[1;31mA directory with utilities was found and the download is not needed...\e[0m\n" |   echo -e "\n\e[1;31mA directory with utilities was found and the download is not needed...\e[0m\n" | ||||||
|   echo -e "\n\e[1;31mWe run the utilities for sensor calibration...\e[0m\n" |   echo -e "\n\e[1;31mWe run the utilities for sensor calibration...\e[0m\n" | ||||||
|     cd /tmp/${ittb_folder} ; ./start.sh |   cd /tmp/${ittb_folder} | ||||||
|  |   ./start.sh | ||||||
| else | else | ||||||
|   echo -e "\n\e[1;31mDownloading the latest tools, please wait...\e[0m\n" |   echo -e "\n\e[1;31mDownloading the latest tools, please wait...\e[0m\n" | ||||||
|   curl -s ${ittb_url} | gzip -d - | tar xvf - -C /tmp |   curl -s ${ittb_url} | gzip -d - | tar xvf - -C /tmp | ||||||
|   echo -e "\n\e[1;31mWe run the utilities for sensor calibration...\e[0m\n" |   echo -e "\n\e[1;31mWe run the utilities for sensor calibration...\e[0m\n" | ||||||
|     cd /tmp/${ittb_folder} ; ./start.sh |   cd /tmp/${ittb_folder} | ||||||
|  |   ./start.sh | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| prepare && download | prepare && download | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue