├── README.md ├── installGrinch.sh └── installGrinchNoDownload.sh /README.md: -------------------------------------------------------------------------------- 1 | # installGrinch 2 | Installation script for the Grinch Kernel on the NVIDIA Jetson TK1. 3 | 4 | The Grinch Kernel for L4T provides fixes, configuration, module and firmware support to the stock kernel. There are over 60 changes and additions to the kernel and module system. The Grinch is written and supported by Jetson Forum user Santyago. For more information, supported devices, and support for the Grinch Kernel, please see the NVIDIA Jetson Forum: 5 | 6 | https://devtalk.nvidia.com/default/topic/823132/embedded-systems/-customkernel-the-grinch-21-3-4-for-jetson-tk1-developed/ 7 | 8 | This installation script is for Linux for Tegra (L4T) 21.3, which must be installed on the Jetson before running the install script. 9 | 10 | To install the Grinch Kernel: 11 | 12 | $ ./installGrinch.sh 13 | 14 | After the install script completes, reboot the Jetson TK1. 15 | 16 | Note: If you want to enable SPI (the install scripts do not do this by default): 17 | 18 | $ wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/tegra124-jetson_tk1-pm375-000-c00-00.dtb -O /boot/tegra124-jetson_tk1-pm375-000-c00-00.dtb 19 | 20 | Note 2: 21 | There is an additional script which installs the Grinch kernel, but does not download the needed files first. This is for the case where the files need to be manually downloaded, or have been previously downloaded. This script expects the kernel files to be in the same directory as the script. In order to run the script: 22 | 23 | $ ./installGrinchNoDownload.sh 24 | 25 | The script will examine the checksums for the files to make sure that they are correct. 26 | 27 | Because these scripts will replace the stock kernel with a new one, it is important that the downloaded files have the correct checksum to ensure that they are not corrupted. 28 | -------------------------------------------------------------------------------- /installGrinch.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Download the Grinch kernel files 3 | wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/zImage 4 | wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/jetson-tk1-grinch-21.3.4-modules.tar.bz2 5 | wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/jetson-tk1-grinch-21.3.4-firmware.tar.bz2 6 | 7 | # Compare the md5sum checksum for the downloaded files to make sure that they are not corrupt 8 | # check zImage 9 | CSUM="a4a4ea10f2fe74fbb6b10eb2a3ad5409" 10 | MD5=$(md5sum zImage | cut -d ' ' -f 1) 11 | if [ "$MD5" != "$CSUM" ] 12 | then 13 | /bin/echo -e "\e[0;31mThe checksum does not match for the file 'zImage'.\e[0m" 14 | echo "Correct checksum: "$CSUM 15 | echo "Checksum of downloaded file: "$MD5 16 | /bin/echo -e "\e[0;31mInstallation Aborted. Please try downloading file again and doing a manual installation.\e[0m" 17 | exit 1 18 | fi 19 | # check modules download 20 | CSUM="3f84d425a13930af681cc463ad4cf3e6" 21 | MD5=$(md5sum jetson-tk1-grinch-21.3.4-modules.tar.bz2 | cut -d ' ' -f 1) 22 | if [ "$MD5" != "$CSUM" ] 23 | then 24 | /bin/echo -e "\e[0;31mThe checksum does not match for the file 'jetson-tk1-grinch-21.3.4-modules.tar.bz2'.\e[0m" 25 | echo "Correct checksum: "$CSUM 26 | echo "Checksum of downloaded file: "$MD5 27 | /bin/echo -e "\e[0;31mInstallation Aborted. Please try downloading file again and doing a manual installation.\e[0m" 28 | exit 1 29 | fi 30 | # check firmware downloads 31 | CSUM="f80d37ca6ae31d03e86707ce0943eb7f" 32 | MD5=$(md5sum jetson-tk1-grinch-21.3.4-firmware.tar.bz2 | cut -d ' ' -f 1) 33 | if [ "$MD5" != "$CSUM" ] 34 | then 35 | /bin/echo -e "\e[0;31mThe checksum does not match for the file 'jetson-tk1-grinch-21.3.4-modules.tar.bz2'.\e[0m" 36 | echo "Correct checksum: "$CSUM 37 | echo "Checksum of downloaded file: "$MD5 38 | /bin/echo -e "\e[0;31mInstallation Aborted. Please try downloading file again and doing a manual installation.\e[0m" 39 | exit 1 40 | fi 41 | /bin/echo -e "\e[0;32mChecksum matches for downloaded files. Installation will now start.\e[0m" 42 | sudo tar -C /lib/modules -vxjf jetson-tk1-grinch-21.3.4-modules.tar.bz2 43 | sudo tar -C /lib -vxjf jetson-tk1-grinch-21.3.4-firmware.tar.bz2 44 | sudo cp zImage /boot/zImage 45 | /bin/echo -e "\e[0;32mGrinch Kernel Installed! Please Reboot.\e[0m" 46 | 47 | 48 | 49 | -------------------------------------------------------------------------------- /installGrinchNoDownload.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Install the Grinch kernel for L4T 21.3 3 | # The files: 4 | # zImage 5 | # jetson-tk1-grinch-21.3.4-modules.tar.bz2 6 | # jetson-tk1-grinch-21.3.4-firmware.tar.bz2 7 | # Should be in the same directory as this script 8 | 9 | # Grinch kernel files are available here: 10 | # wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/ 11 | # wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/jetson-tk1-grinch-21.3.4-modules.tar.bz2 12 | # wget http://www.jarzebski.pl/files/jetsontk1/grinch-21.3.4/jetson-tk1-grinch-21.3.4-firmware.tar.bz2 13 | 14 | # Compare the md5sum checksum for the downloaded files to make sure that they are not corrupt 15 | # check zImage 16 | CSUM="a4a4ea10f2fe74fbb6b10eb2a3ad5409" 17 | MD5=$(md5sum zImage | cut -d ' ' -f 1) 18 | if [ "$MD5" != "$CSUM" ] 19 | then 20 | /bin/echo -e "\e[0;31mThe checksum does not match for the file 'zImage'.\e[0m" 21 | echo "Correct checksum: "$CSUM 22 | echo "Checksum of downloaded file: "$MD5 23 | /bin/echo -e "\e[0;31mInstallation Aborted. Please try downloading file again and doing a manual installation.\e[0m" 24 | exit 1 25 | fi 26 | # check modules download 27 | CSUM="3f84d425a13930af681cc463ad4cf3e6" 28 | MD5=$(md5sum jetson-tk1-grinch-21.3.4-modules.tar.bz2 | cut -d ' ' -f 1) 29 | if [ "$MD5" != "$CSUM" ] 30 | then 31 | /bin/echo -e "\e[0;31mThe checksum does not match for the file 'jetson-tk1-grinch-21.3.4-modules.tar.bz2'.\e[0m" 32 | echo "Correct checksum: "$CSUM 33 | echo "Checksum of downloaded file: "$MD5 34 | /bin/echo -e "\e[0;31mInstallation Aborted. Please try downloading file again and doing a manual installation.\e[0m" 35 | exit 1 36 | fi 37 | # check firmware downloads 38 | CSUM="f80d37ca6ae31d03e86707ce0943eb7f" 39 | MD5=$(md5sum jetson-tk1-grinch-21.3.4-firmware.tar.bz2 | cut -d ' ' -f 1) 40 | if [ "$MD5" != "$CSUM" ] 41 | then 42 | /bin/echo -e "\e[0;31mThe checksum does not match for the file 'jetson-tk1-grinch-21.3.4-modules.tar.bz2'.\e[0m" 43 | echo "Correct checksum: "$CSUM 44 | echo "Checksum of downloaded file: "$MD5 45 | /bin/echo -e "\e[0;31mInstallation Aborted. Please try downloading file again and doing a manual installation.\e[0m" 46 | exit 1 47 | fi 48 | /bin/echo -e "\e[0;32mChecksum matches for downloaded files. Installation will now start.\e[0m" 49 | sudo tar -C /lib/modules -vxjf jetson-tk1-grinch-21.3.4-modules.tar.bz2 50 | sudo tar -C /lib -vxjf jetson-tk1-grinch-21.3.4-firmware.tar.bz2 51 | sudo cp zImage /boot/zImage 52 | /bin/echo -e "\e[0;32mGrinch Kernel Installed! Please Reboot.\e[0m" 53 | 54 | 55 | 56 | --------------------------------------------------------------------------------