Compiling Jetson TX1/TX2 source code: Difference between revisions

Line 128: Line 128:
</pre>
</pre>


3) Clean your kernel and configuration
3) Create and apply the necessary patches
 
3.a) Go to the sources directory:
 
<pre>
cd $DEVDIR/sources/
</pre>
 
3.b) Create a patches folder:
 
<pre>
mkdir patches
cd patches
</pre>
 
3.c) Create a '''0001-fix_build_errors.patch'''
 
<pre>
<pre>
cd $DEVDIR/sources/kernel/kernel-4.4
touch 0001-fix_build_errors.patch
make mrproper
</pre>
</pre>


4) Apply the following patch from '''$DEVDIR/sources/kernel''' to fix build errors:
and paste the following content on it:


<syntaxhighlight lang=diff>
<syntaxhighlight lang=diff>
Line 211: Line 226:
</syntaxhighlight>
</syntaxhighlight>


5) Configure your kernel
3.d) Create a '''series''' file:
 
<pre>
touch series
</pre>
 
and paste the following content on it:
 
<pre>
0001-fix_build_errors.patch
 
</pre>
 
'''Note:''' Make sure you have an empty line at the end of the file
 
3.e) Apply the patch:
 
<pre>
cd $DEVDIR/sources/
quilt push -a
</pre>
 
'''Note:''' If you don't have quilt installed you can get it by running:
 
<pre>
sudo apt-get install quilt
</pre>
 
4) Clean your kernel and configuration
<pre>
cd $DEVDIR/sources/kernel/kernel-4.4
make mrproper
</pre>
 
5) Configure your kernel:


* '''For TX1'''
* '''For TX1'''