mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 13:02:21 +02:00
Merge pull request #653 from openoms/x86v1.2
fix error when using a new disk + add support for the Nvidia Jetson Nano
This commit is contained in:
@@ -18,7 +18,7 @@ Specifications of the tested hardware: [hw_comparison.md](hw_comparison.md)
|
|||||||
All testers are welcome. Open an issue for your specific board to collaborate and share your experience.
|
All testers are welcome. Open an issue for your specific board to collaborate and share your experience.
|
||||||
|
|
||||||
---
|
---
|
||||||
## Armbian
|
## Armbian Stretch
|
||||||
Many SBC-s are supported:
|
Many SBC-s are supported:
|
||||||
https://www.armbian.com/download/
|
https://www.armbian.com/download/
|
||||||
|
|
||||||
@@ -40,12 +40,13 @@ Continue with building the SDcard: https://github.com/rootzoll/raspiblitz#build-
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Ubuntu
|
## Ubuntu Bionic
|
||||||
|
|
||||||
A common distro to be supplied by the manufacturer for various boards.
|
A common distro to be supplied by the manufacturer for various boards.
|
||||||
|
|
||||||
Tested on:
|
Tested on:
|
||||||
* Odroid XU4 with ubuntu-18.04.1-4.14-minimal image from https://de.eu.odroid.in/ubuntu_18.04lts/XU3_XU4_MC1_HC1_HC2
|
* Odroid XU4 with ubuntu-18.04.1-4.14-minimal image from https://de.eu.odroid.in/ubuntu_18.04lts/XU3_XU4_MC1_HC1_HC2
|
||||||
|
* Nvidia Jetson Nano with Ubuntu Bionic image from https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write
|
||||||
|
|
||||||
Burn the image to the SDCard with [Etcher](https://www.balena.io/etcher/).
|
Burn the image to the SDCard with [Etcher](https://www.balena.io/etcher/).
|
||||||
|
|
||||||
|
@@ -62,6 +62,7 @@ isDietPi=$(uname -n | grep -c 'DietPi')
|
|||||||
isRaspbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Raspbian')
|
isRaspbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Raspbian')
|
||||||
isArmbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Debian')
|
isArmbian=$(cat /etc/os-release 2>/dev/null | grep -c 'Debian')
|
||||||
isUbuntu=$(cat /etc/os-release 2>/dev/null | grep -c 'Ubuntu')
|
isUbuntu=$(cat /etc/os-release 2>/dev/null | grep -c 'Ubuntu')
|
||||||
|
isNvidia=$(uname -a | grep -c 'tegra')
|
||||||
if [ ${isRaspbian} -gt 0 ]; then
|
if [ ${isRaspbian} -gt 0 ]; then
|
||||||
baseImage="raspbian"
|
baseImage="raspbian"
|
||||||
fi
|
fi
|
||||||
@@ -148,6 +149,12 @@ if [ "${baseImage}" = "ubuntu" ] || [ "${baseImage}" = "armbian" ]; then
|
|||||||
sudo adduser pi sudo
|
sudo adduser pi sudo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# special prepare when Nvidia Jetson Nano
|
||||||
|
if [ ${isNvidia} -eq 1 ] ; then
|
||||||
|
# disable GUI on boot
|
||||||
|
sudo systemctl set-default multi-user.target
|
||||||
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "*** CONFIG ***"
|
echo "*** CONFIG ***"
|
||||||
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md#raspi-config
|
# based on https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_20_pi.md#raspi-config
|
||||||
|
@@ -20,6 +20,7 @@ if [ ${hddExists} -eq 0 ]; then
|
|||||||
echo "Press ENTER to create a Partition - or CTRL+C to abort"
|
echo "Press ENTER to create a Partition - or CTRL+C to abort"
|
||||||
read key
|
read key
|
||||||
echo "Creating Partition ..."
|
echo "Creating Partition ..."
|
||||||
|
sudo parted -s /dev/sda mklabel msdos
|
||||||
sudo parted -s /dev/sda unit s mkpart primary `sudo parted /dev/sda unit s print free | grep 'Free Space' | tail -n 1`
|
sudo parted -s /dev/sda unit s mkpart primary `sudo parted /dev/sda unit s print free | grep 'Free Space' | tail -n 1`
|
||||||
echo "DONE."
|
echo "DONE."
|
||||||
sleep 3
|
sleep 3
|
||||||
|
Reference in New Issue
Block a user