Skip to content
This repository was archived by the owner on Nov 22, 2022. It is now read-only.

Commit e506acf

Browse files
committed
Documentation cleanup
1 parent 8b892e2 commit e506acf

File tree

4 files changed

+69
-14
lines changed

4 files changed

+69
-14
lines changed

README.md

Lines changed: 64 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,89 @@
11
# buildJetsonTX1Kernel
2-
Scripts to help build the 4.4.38 kernel and modules onboard the Jetson TX1 (L4T 28.1, JetPack 3.1). For previous versions, visit the 'tags' section.
2+
Scripts to help build the 4.4.38 kernel and modules onboard the Jetson TX1 (L4T 28.2, JetPack 3.2). For previous versions, visit the 'tags' section.
33

4-
<em><strong>Note:</strong> The kernel source version must match the version of firmware flashed on the Jetson. For example, the source for the 4.4.38 kernel here is matched with L4T 28.1. This kernel compiled using this source tree will not work with newer versions or older versions of L4T, only 28.1.</em>
4+
<em><strong>Note:</strong> The kernel source version must match the version of firmware flashed on the Jetson. For example, the source for the 4.4.38 kernel here is matched with L4T 28.2. This kernel compiled using this source tree will not work with newer versions or older versions of L4T, only 28.2.</em>
55

66

77
As of this writing, the "official" way to build the Jetson TX1 kernel is to use a cross compiler on a Linux PC. These scripts are an alternative which builds the kernel onboard the Jetson itself. These scripts will download the kernel source to the Jetson TX1, wrangle some of the Makefiles to make them work on the Jetson, and then compile the kernel and selected modules. The newly compiled kernel can then be installed.
88

9-
WARNING: After flashing the Jetson TX1, there is a limited amount of room on the device. After completing these scripts there will be NO space on the device. You MUST remove some of the files that were added in the /usr/src directory. You should store the /usr/src/kernel directory offboard (like on a SATA drive or USB stick) along with the compressed sources before deleting them. You may want to use them again later.
9+
<strong>WARNING:</strong> After flashing the Jetson TX1, there is a limited amount of room on the device. You should modify the kernel directly after flashing the device. After completing these scripts there will be little space left on the device. Afterwards, you should remove some of the files that were added in the /usr/src directory. You may want to store the /usr/src/kernel directory offboard (like on a SATA drive or USB stick) along with the compressed sources before deleting them as you may want to use them again later.
1010

11-
These scripts are for building the kernel for the 64-bit L4T 28.1 (Ubuntu 16.04 based) operating system on the NVIDIA Jetson TX1. The scripts should be run directly after flashing the Jetson with L4T 28.1 from a host PC. There are three scripts:
11+
These scripts are for building the kernel for the 64-bit L4T 28.2 (Ubuntu 16.04 based) operating system on the NVIDIA Jetson TX1. The scripts should be run directly after flashing the Jetson with L4T 28.2 from a host PC. There are five scripts:
1212

1313
<strong>getKernelSources.sh</strong>
1414

15-
Downloads the kernel sources for L4T 28.1 from the NVIDIA website, decompresses them and opens a graphical editor on the .config file.
15+
Downloads the kernel sources for L4T 28.2 from the NVIDIA website, decompresses them and opens a graphical editor on the .config file.
16+
17+
<strong>getKernelSourcesNoGUI.sh</strong>
18+
19+
Downloads the kernel sources for L4T 28.2 from the NVIDIA website, decompresses them. This is useful when using SSH, or you prefer a different method of editing the .config file.
1620

1721
<strong>makeKernel.sh</strong>
1822

19-
This script applies a few patches to makefiles in the kernel source, and then compiles the kernel and modules using make.
23+
This script compiles the kernel and modules using make.
2024

2125
<strong>copyImage.sh</strong>
2226

23-
Copies the Image file created by compiling the kernel to the /boot directory
27+
Copies the Image file created by compiling the kernel to the /boot directory. If you modify the kernel, you will probably want to make a copy of the original kernel image (/boot/Image) before copying over the newly generated one. You will also want to modify /boot/extlinux/extlinux.conf so that you can boot from the new Image or the old Image in case something untowards happens. That way, you will be able to select the old Image through the serial console.
2428

25-
<strong>Notes:</strong>
29+
<strong>Note:</strong> The Image file is copied to the boot directory of the current root directory device. The Jetson generally boots from the internal eMMC. If you are developing on external media (such as a SSD or USB drive) you will probably need to manually copy the Image file to the /boot directory of the eMMC. Refer to the script for the location of the Image file in the source tree.
2630

27-
The kernel source files are downloaded in a .tgz2 format. After compilation you may want to remove those files. The files are located in /usr/src You will need to use sudo to remove the files, as they are in a system area. The work directory 'sources' contains kernel_src-txt1.tbz2, you can remove that directory. The file 'source_release.tbz2' is a much larger file that holds the kernel sources as well as many other TX1 specific source packages. You can make a backup of source_release.tbz2 before deleting it.
31+
<strong>removeAllKernelSources.sh</strong>
32+
Removes all of the kernel sources and compressed source files. You may want to make a backup of the files before deletion.
2833

29-
You may want to save the newly built Image and modules to external media so that can be used to flash a Jetson image, or clone the disk image.
34+
35+
<strong>Notes:</strong>
3036

3137
These scripts make only the kernel Image and Modules. You will need to modify the scripts if more are needed.
3238

33-
The copyImage.sh script copies the Image to the current device. If you are building the kernel on an external device, for example a SSD, you will want to copy the Image file over to the eMMC in the eMMC /boot directory if you are booting from the eMMC and using external storage as your root directory.
39+
<strong>IMPORTANT</strong>The copyImage.sh script copies the Image to the current device. If you are building the kernel on an external device, for example a SSD, you will want to copy the Image file over to the eMMC in the eMMC /boot directory if you are booting from the eMMC and using external storage as your root directory.
40+
41+
42+
### Release Notes
43+
April, 2018
44+
* v1.0-L4T28.2
45+
* L4T 28.2 (JetPack 3.2)
46+
* Add getKernelSourcesNoGUI.sh for cases where the user does not want to edit the .config file through a GUI.
47+
* Add removeAllSources.sh for removing kernel sources and compressed files after the kernel is built.
48+
* Check to make sure that the version of the kernel matches the sources to download
49+
50+
March, 2018
51+
* v1.0-L4T28.1
52+
* L4T 28.1 (JetPack 3.1)
53+
54+
July, 2017
55+
* v1.0-L4T24.2.1
56+
* L4T 24.2.1
57+
58+
April, 2017
59+
* v1.0-L4T24.2
60+
* L4T 24.2
61+
62+
## License
63+
MIT License
64+
65+
Copyright (c) 2017-2018 Jetsonhacks
66+
Copyright (c) 2015-2018 Raffaello Bonghi (jetson_easy)
67+
68+
Permission is hereby granted, free of charge, to any person obtaining a copy
69+
of this software and associated documentation files (the "Software"), to deal
70+
in the Software without restriction, including without limitation the rights
71+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
72+
copies of the Software, and to permit persons to whom the Software is
73+
furnished to do so, subject to the following conditions:
74+
75+
The above copyright notice and this permission notice shall be included in all
76+
copies or substantial portions of the Software.
77+
78+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
79+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
80+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
81+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
82+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
83+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
84+
SOFTWARE.
85+
86+
3487

3588

3689

getKernelSources.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ else
2020
echo ""
2121
echo "This repository branch is for installing the kernel sources for L4T "$L4TTarget
2222
echo "You are attempting to use these kernel sources on a L4T "$JETSON_L4T "system."
23-
echo "The kernel sources do not match their L4T release.!"
23+
echo "The kernel sources do not match their L4T release!"
2424
echo ""
2525
echo "Please git checkout the appropriate kernel sources for your release"
2626
echo " "

scripts/getKernelSources.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ apt-get update
44
apt-get install qt5-default pkg-config -y
55
cd /usr/src
66
wget -N http://developer.download.nvidia.com/embedded/L4T/r28_Release_v2.0/GA/BSP/tx1_sources.tbz2
7-
sudo tar -xvf tx1_sources.tbz2 public_release/kernel_src.tbz2
7+
echo "Expanding sources, please wait"
8+
tar -xvf tx1_sources.tbz2 public_release/kernel_src.tbz2
89
tar -xvf public_release/kernel_src.tbz2
910
# Space is tight; get rid of the compressed kernel source
1011
rm -r public_release

scripts/getKernelSourcesNoGUI.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ apt-get update
44
apt-get install pkg-config -y
55
cd /usr/src
66
wget -N http://developer.download.nvidia.com/embedded/L4T/r28_Release_v2.0/GA/BSP/tx1_sources.tbz2
7-
sudo tar -xvf tx1_sources.tbz2 public_release/kernel_src.tbz2
7+
echo "Expanding sources, please wait"
8+
tar -xvf tx1_sources.tbz2 public_release/kernel_src.tbz2
89
tar -xvf public_release/kernel_src.tbz2
910
# Space is tight; get rid of the compressed kernel source
1011
rm -r public_release

0 commit comments

Comments
 (0)