Skip to content

Commit 5e2be5f

Browse files
committed
aml: aml-flash-tool: update: add tools for linux arm
Ver 1.7.5 ./flash-tool --img=/path/to/xxxx.img --parts=all --wipe --soc=g12a Signed-off-by: Nick Xie <[email protected]>
1 parent 09fd7ae commit 5e2be5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aml-flash-tool/flash-tool

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ fi
307307

308308
# Should we destroy the boot ?
309309
# ----------------------------
310-
if [[ "$parts" == "all" ]] || [[ "$parts" == "bootloader" ]] || [[ "$parts" == "" ]] || [[ "$parts" == "none" ]]; then
310+
if [[ "$SYSTEM" != "linux-arm" ]] && ([[ "$parts" == "all" ]] || [[ "$parts" == "bootloader" ]] || [[ "$parts" == "" ]] || [[ "$parts" == "none" ]]); then
311311
run_update bulkcmd "echo 12345"
312312
#run_update bulkcmd "low_power"
313313
if [[ $? = 0 ]]; then
@@ -450,7 +450,7 @@ if [ -e /etc/lsb-release ]; then
450450
source /etc/lsb-release
451451
fi
452452

453-
if [ $host_os = Linux ] && linux-version compare $DISTRIB_RELEASE ge 19.10; then
453+
if [ $host_os = Linux ] && [ -n $DISTRIB_RELEASE ] && linux-version compare $DISTRIB_RELEASE ge 19.10; then
454454
platform_conf_name=`awk '/sub_type="platform"/{gsub("file=","",$1); gsub(/"/,"",$1); print $1}' $tmp_dir/image.cfg`
455455
print_debug "platform_conf_name = $platform_conf_name"
456456
ddr_filename=`awk '/sub_type="DDR"/{gsub("file=","",$1); gsub(/"/,"",$1); print $1}' $tmp_dir/image.cfg`
-147 KB
Binary file not shown.

0 commit comments

Comments
 (0)