diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 14d733c92b865067f4fb77aad8ac2f1905fd658d..d665c031d39fd7a2c71ba2cd54933fc57b637d23 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -1164,9 +1164,12 @@ function image_setup_utils { if [[ $ARCHITECTURE == *"amd64" || $ARCHITECTURE == "x86_64" ]]; then GOARCH=amd64 fi - if [[ $ARCHITECTURE == *"arm"* || $ARCHITECTURE == *"aarch"* ]]; then + if [[ $ARCHITECTURE == *"arm"* ]]; then GOARCH=armv6l fi + if [[ $ARCHITECTURE == *"aarch"* ]]; then + GOARCH=arm64 + fi if [ ! $GOARCH ]; then echo $'System architecture was not specified when installing Go' exit 6734378 diff --git a/src/freedombone-utils-go b/src/freedombone-utils-go index 1e6e7e0876ef339c0cd475d3ec0d5e02a05d3284..933c8dc7f19e5bddd3488eb7caef8aaa20eb1c0e 100755 --- a/src/freedombone-utils-go +++ b/src/freedombone-utils-go @@ -144,16 +144,23 @@ function mesh_upgrade_golang { if [[ $ARCHITECTURE == *"amd64" || $ARCHITECTURE == "x86_64" ]]; then GOARCH=amd64 fi - if [[ $ARCHITECTURE == *"arm"* || $ARCHITECTURE == *"aarch"* ]]; then + if [[ $ARCHITECTURE == *"arm"* ]]; then GOARCH=armv6l fi + if [[ $ARCHITECTURE == *"aarch"* ]]; then + GOARCH=arm64 + fi if [ ! $GOARCH ]; then echo $'No architecture specified' ARCHITECTURE=$(uname -m) - if [[ $ARCHITECTURE == "arm"* || $ARCHITECTURE == *"aarch"* ]]; then + if [[ $ARCHITECTURE == "arm"* ]]; then GOARCH=armv6l echo $"Using $GOARCH" fi + if [[ $ARCHITECTURE == *"aarch"* ]]; then + GOARCH=arm64 + echo $"Using $GOARCH" + fi if [[ $ARCHITECTURE == "amd"* || $ARCHITECTURE == "x86_64" ]]; then GOARCH=amd64 echo $"Using $GOARCH"