This repository has been archived by the owner on Nov 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from jetsonhacks/development
Development for L4T 28.2
- Loading branch information
Showing
17 changed files
with
354 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
#!/bin/bash | ||
sudo ./scripts/copyImage.sh | ||
# Check to make sure the Image file has been generated | ||
# The "could not stat" error seems to confuse people | ||
if [ -f /usr/src/kernel/kernel-4.4/arch/arm64/boot/Image ] ; then | ||
echo "Copying Image to /boot diretory" | ||
sudo ./scripts/copyImage.sh | ||
echo "Image copied" | ||
tput setaf 2 | ||
echo "Please reboot for changes to take effect" | ||
tput sgr0 | ||
else | ||
tput setaf 1 | ||
echo "==== Image file does not exist ====" | ||
tput sgr0 | ||
echo "Check for errors in makeKernel" | ||
echo "" | ||
echo "Copy failed" | ||
fi | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
#!/bin/bash | ||
# Install the kernel source for L4T | ||
sudo ./scripts/getKernelSources.sh | ||
# Make sure that we are downloading the correct kernel source | ||
source scripts/jetson_variables.sh | ||
#Print Jetson version | ||
echo "$JETSON_DESCRIPTION" | ||
#Print Jetpack version | ||
echo "Jetpack $JETSON_JETPACK [L4T $JETSON_L4T]" | ||
|
||
# Check to make sure we're installing the correct kernel sources | ||
L4TTarget="28.2" | ||
if [ $JETSON_L4T == $L4TTarget ] ; then | ||
echo "Getting kernel sources" | ||
sudo ./scripts/getKernelSources.sh | ||
else | ||
echo "" | ||
tput setaf 1 | ||
echo "==== L4T Kernel Version Mismatch! =============" | ||
tput sgr0 | ||
echo "" | ||
echo "This repository branch is for installing the kernel sources for L4T "$L4TTarget | ||
echo "You are attempting to use these kernel sources on a L4T "$JETSON_L4T "system." | ||
echo "The kernel sources do not match their L4T release!" | ||
echo "" | ||
echo "Please git checkout the appropriate kernel sources for your release" | ||
echo " " | ||
echo "You can list the tagged versions." | ||
echo "$ git tag -l" | ||
echo "And then checkout the latest version: " | ||
echo "For example" | ||
echo "$ git checkout v1.0-L4T"$JETSON_L4T | ||
echo "" | ||
fi | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
# Install the kernel source for L4T | ||
# Make sure that we are downloading the correct kernel source | ||
source scripts/jetson_variables.sh | ||
#Print Jetson version | ||
echo "$JETSON_DESCRIPTION" | ||
#Print Jetpack version | ||
echo "Jetpack $JETSON_JETPACK [L4T $JETSON_L4T]" | ||
|
||
# Check to make sure we're installing the correct kernel sources | ||
L4TTarget="28.2" | ||
if [ $JETSON_L4T == $L4TTarget ] ; then | ||
echo "Getting kernel sources" | ||
sudo ./scripts/getKernelSourcesNoGUI.sh | ||
else | ||
echo "" | ||
tput setaf 1 | ||
echo "==== L4T Kernel Version Mismatch! =============" | ||
tput sgr0 | ||
echo "" | ||
echo "This repository branch is for installing the kernel sources for L4T "$L4TTarget | ||
echo "You are attempting to use these kernel sources on a L4T "$JETSON_L4T "system." | ||
echo "The kernel sources do not match their L4T release.!" | ||
echo "" | ||
echo "Please git checkout the appropriate kernel sources for your release" | ||
echo " " | ||
echo "You can list the tagged versions." | ||
echo "$ git tag -l" | ||
echo "And then checkout the latest version: " | ||
echo "For example" | ||
echo "$ git checkout v1.0-L4T"$JETSON_L4T | ||
echo "" | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
#!/bin/bash | ||
sudo ./scripts/fixMakeFiles.sh | ||
sudo ./scripts/makeKernel.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
# Remove all of the kernel sources that were downloaded and built during the kernel build process | ||
# Note that this will also remove the possibly changed .config file in: | ||
# /usr/src/kernel/kernel-4.4 | ||
echo "Removing All Kernel Sources" | ||
sudo ./scripts/removeAllKernelSources.sh | ||
echo "Kernel sources removed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
apt-add-repository universe | ||
apt-get update | ||
apt-get install pkg-config -y | ||
cd /usr/src | ||
wget -N http://developer.download.nvidia.com/embedded/L4T/r28_Release_v2.0/GA/BSP/tx1_sources.tbz2 | ||
echo "Expanding sources, please wait" | ||
tar -xvf tx1_sources.tbz2 public_release/kernel_src.tbz2 | ||
tar -xvf public_release/kernel_src.tbz2 | ||
# Space is tight; get rid of the compressed kernel source | ||
rm -r public_release | ||
cd kernel/kernel-4.4 | ||
zcat /proc/config.gz > .config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Raffaello Bonghi | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
Oops, something went wrong.