From 4b47a9eef6a9e3daa22173792adfff5e5df11369 Mon Sep 17 00:00:00 2001 From: bavarianledger <48831982+bavarianledger@users.noreply.github.com> Date: Sun, 19 May 2019 16:25:47 +0200 Subject: [PATCH 1/2] added "special prepare when Nvidia Jetson Nano" Disables GUI/X11 login to make sure that you can login after rebooting. --- build_sdcard.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build_sdcard.sh b/build_sdcard.sh index 0fd291f54..d3795dbe4 100644 --- a/build_sdcard.sh +++ b/build_sdcard.sh @@ -148,6 +148,12 @@ if [ "${baseImage}" = "ubuntu" ] || [ "${baseImage}" = "armbian" ]; then sudo adduser pi sudo fi +# special prepare when Nvidia Jetson Nano +if [ "${baseImage}" = "ubuntu" ] && [ ${isAARCH64} -eq 1 ] ; then + # disable GUI on boot + sudo systemctl set-default multi-user.target +fi + echo "" echo "*** CONFIG ***" # based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md#raspi-config From 8f37c51b817294c7c7c5c312a0222b0515b453fc Mon Sep 17 00:00:00 2001 From: bavarianledger <48831982+bavarianledger@users.noreply.github.com> Date: Fri, 7 Jun 2019 11:02:50 +0200 Subject: [PATCH 2/2] Introduce a variable to identify the Nvidia based on a suggestion from @openoms --- build_sdcard.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_sdcard.sh b/build_sdcard.sh index d3795dbe4..7b1b5dea6 100644 --- a/build_sdcard.sh +++ b/build_sdcard.sh @@ -62,6 +62,7 @@ isDietPi=$(uname -n | grep -c 'DietPi') isRaspbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Raspbian') isArmbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Debian') isUbuntu=$(cat /etc/os-release 2>/dev/null | grep -c 'Ubuntu') +isNvidia=$(uname -a | grep -c 'tegra') if [ ${isRaspbian} -gt 0 ]; then baseImage="raspbian" fi @@ -149,7 +150,7 @@ if [ "${baseImage}" = "ubuntu" ] || [ "${baseImage}" = "armbian" ]; then fi # special prepare when Nvidia Jetson Nano -if [ "${baseImage}" = "ubuntu" ] && [ ${isAARCH64} -eq 1 ] ; then +if [ ${isNvidia} -eq 1 ] ; then # disable GUI on boot sudo systemctl set-default multi-user.target fi