Skip to content

Commit

Permalink
Added Grinch installation file
Browse files Browse the repository at this point in the history
  • Loading branch information
rogergranada committed Oct 20, 2017
1 parent 9eb3c71 commit 457206b
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/source/jetson/os-install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Installing JetPack L4T
=======================

JetPack (the Jetson SDK) is an on-demand all-in-one package that bundles and installs all software tools required to develop for the NVIDIA® Jetson Embedded Platform (including flashing the Jetson Developer Kit with the latest OS images). JetPack includes host and target developer tools, APIs and packages (OS images, tools, APIs, middleware, samples, documentation including compiling samples) to enable developers to jump-start their development environment for developing with the Jetson Embedded Platform. The latest release of JetPack runs on an Ubuntu 14.04 Linux 64-bit host system and supports the Jetson TK1 Developer Kit [1]_.
JetPack (the Jetson SDK) is an on-demand all-in-one package that bundles and installs all software tools required to develop for the NVIDIA® Jetson Embedded Platform (including flashing the Jetson Developer Kit). JetPack includes host and target developer tools, APIs and packages (OS images, tools, APIs, middleware, samples, documentation including compiling samples) to enable developers to jump-start their development environment for developing with the Jetson Embedded Platform. The latest release of JetPack runs on an Ubuntu 14.04 Linux 64-bit host system and supports the Jetson TK1 Developer Kit [1]_.

Setting up the local host
--------------------------
Expand Down Expand Up @@ -32,6 +32,9 @@ After downloading all packages, it starts to installing them in your local machi
:align: center
:width: 500pt

Flashing the Jetson board
--------------------------

Next step is to configure how the binaries are transmited to the Jetson board. Thus, JetPack asks what is the layout of the network to transmit the data. Select **Device accesses internet via houter/switch.** and click ``Next``, as the image:

.. image:: images/jetpack_4.png
Expand All @@ -50,7 +53,7 @@ In order to check if the Jetson board is set in recovery mode, open the terminal
$ lsusb
If the board is in revery mode, you should see the Jetson listed as Nvidia in the output, as the image:
If the board is in revery mode, you should see the Jetson listed as NVidia (*ID 0955:7140 NVidia Corp.*) in the output, as the image:

.. image:: images/jetpack_6.png
:align: center
Expand Down
52 changes: 52 additions & 0 deletions docs/source/jetson/scripts/installGrinch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/bin/sh
# Download the Grinch kernel files

wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/zImage
wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/jetson-tk1-grinch-21.3.4-modules.tar.bz2
wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/jetson-tk1-grinch-21.3.4-firmware.tar.bz2

# Compare the md5sum checksum for the downloaded files to make sure that they are not corrupt
# check zImage
CSUM="a4a4ea10f2fe74fbb6b10eb2a3ad5409"
MD5=$(md5sum zImage | cut -d ' ' -f 1)

if [ "$MD5" != "$CSUM" ]
then
/bin/echo -e "\e[0;31mThe checksum does not match for the file 'zImage'.\e[0m"
echo "Correct checksum: "$CSUM
echo "Checksum of downloaded file: "$MD5
/bin/echo -e "\e[0;31mInstallation Aborted. Please try downloading file again and doing a manual installation.\e[0m"
exit 1
fi

# check modules download
CSUM="3f84d425a13930af681cc463ad4cf3e6"
MD5=$(md5sum jetson-tk1-grinch-21.3.4-modules.tar.bz2 | cut -d ' ' -f 1)

if [ "$MD5" != "$CSUM" ]
then
/bin/echo -e "\e[0;31mThe checksum does not match for the file 'jetson-tk1-grinch-21.3.4-modules.tar.bz2'.\e[0m"
echo "Correct checksum: "$CSUM
echo "Checksum of downloaded file: "$MD5
/bin/echo -e "\e[0;31mInstallation Aborted. Please try downloading file again and doing a manual installation.\e[0m"
exit 1
fi

# check firmware downloads
CSUM="f80d37ca6ae31d03e86707ce0943eb7f"
MD5=$(md5sum jetson-tk1-grinch-21.3.4-firmware.tar.bz2 | cut -d ' ' -f 1)

if [ "$MD5" != "$CSUM" ]
then
/bin/echo -e "\e[0;31mThe checksum does not match for the file 'jetson-tk1-grinch-21.3.4-modules.tar.bz2'.\e[0m"
echo "Correct checksum: "$CSUM
echo "Checksum of downloaded file: "$MD5
/bin/echo -e "\e[0;31mInstallation Aborted. Please try downloading file again and doing a manual installation.\e[0m"
exit 1
fi

/bin/echo -e "\e[0;32mChecksum matches for downloaded files. Installation will now start.\e[0m"
sudo tar -C /lib/modules -vxjf jetson-tk1-grinch-21.3.4-modules.tar.bz2
sudo tar -C /lib -vxjf jetson-tk1-grinch-21.3.4-firmware.tar.bz2
sudo cp zImage /boot/zImage
/bin/echo -e "\e[0;32mGrinch Kernel Installed! Please Reboot.\e[0m"

0 comments on commit 457206b

Please sign in to comment.