Note
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Funtoo on the Nvidia TK1"
Jump to navigation
Jump to search
m |
|||
Line 19: | Line 19: | ||
# git checkout tegra-l4t-r24.2.1 | # git checkout tegra-l4t-r24.2.1 | ||
# ln -s $PWD $XC_KERNEL_SRC | # ln -s $PWD $XC_KERNEL_SRC | ||
# . xcompile_variables.sh | |||
# git checkout -b `get_kernel_version` | |||
}} | }} | ||
Line 25: | Line 27: | ||
{{console|body= | {{console|body= | ||
# zcat /proc/config.gz > my_TK1_config | # zcat /proc/config.gz > my_TK1_config | ||
# scp my_TK1_config <xc_user>@<xc_host>: | # scp my_TK1_config <xc_user>@<xc_host>:~ | ||
# cp $XC_KERNEL_OLDCONFIG | # cp ~/my_TK1_config $XC_KERNEL_OLDCONFIG | ||
}} | }} | ||
Line 35: | Line 37: | ||
# tar xvf kernel_headers.tbz2 | # tar xvf kernel_headers.tbz2 | ||
# cp linux-headers-<kernel_version>/.config $XC_KERNEL_OLDCONFIG | # cp linux-headers-<kernel_version>/.config $XC_KERNEL_OLDCONFIG | ||
}} | |||
== Make the Kernel == | |||
{{console|body= | |||
# cp $XC_KERNEL_OLDCONFIG $XC_KERNEL_SRC/.config | # cp $XC_KERNEL_OLDCONFIG $XC_KERNEL_SRC/.config | ||
Revision as of 21:08, February 24, 2017
Introduction
Read this.
And this
And this.
Getting the Sources
Use the tools issued by Nvidia to handle kernel sources via git. Checkout the desired kernel version, probably the newest.
root # wget http://developer.nvidia.com/embedded/dlc/l4t-Jetson-TK1-Driver-Package-R21-5 -O $TOOLS/l4t-Jetson-TK1-Driver-Package-R21-5 root # cd $TOOLS root # tar jxf l4t-Jetson-TK1-Driver-Package-R21-5 root # rm l4t-Jetson-TK1-Driver-Package-R21-5 root # cd Linux_for_Tegra root # ./source_sync.sh #skip tag selection both times root # cd sources/kernel_source root # git ls-remote root # git checkout tegra-l4t-r24.2.1 root # ln -s $PWD $XC_KERNEL_SRC root # . xcompile_variables.sh root # git checkout -b `get_kernel_version`
Kernel Building
You need a working kernel config. You can get one from a running TK1 and get it into your $XC_KERNEL_SRC directory.
root # zcat /proc/config.gz > my_TK1_config root # scp my_TK1_config <xc_user>@<xc_host>:~ root # cp ~/my_TK1_config $XC_KERNEL_OLDCONFIG
Or you can get it from the kernel headers.
root # cd $TOOLS/Linux_for_Tegra/kernel root # tar xvf kernel_headers.tbz2 root # cp linux-headers-<kernel_version>/.config $XC_KERNEL_OLDCONFIG
Make the Kernel
{{console|body=
- cp $XC_KERNEL_OLDCONFIG $XC_KERNEL_SRC/.config