https://github.com/teknoir/nvidia-tegra-kernel-modules
Instructions on how to build the kernel modules needed
https://github.com/teknoir/nvidia-tegra-kernel-modules
Last synced: 7 months ago
JSON representation
Instructions on how to build the kernel modules needed
- Host: GitHub
- URL: https://github.com/teknoir/nvidia-tegra-kernel-modules
- Owner: teknoir
- Created: 2021-02-10T08:55:31.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-16T12:58:53.000Z (over 4 years ago)
- Last Synced: 2025-01-30T08:43:01.108Z (9 months ago)
- Language: Shell
- Size: 137 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Preparations or building kernel modules for Nvidia Tegra
## Preparations to build module
Create the “source_sync.sh” on the Device at “/usr/src”.
Run this to get full source:
```shell script
sudo su
apt-get install bc
cd /usr/src
./source_sync.sh -k tegra-l4t-r32.1
```Now you will have “/usr/src/sources/kernel/kernel-4.9”. Copy the “/proc/config.gz” there, gunzip it, rename as “.config”, set CONFIG_LOCALVERSION="-tegra" (or whatever your current “uname -r” suffix is), and then update the symbolic link in “/lib/modules/$(uname -r)/”:
```shell script
cp /proc/config.gz /usr/src/sources/kernel/kernel-4.9/
cd /usr/src/sources/kernel/kernel-4.9
gunzip config.gz
mv config .config
vi .config
```Update the variable, to match current kernel:
```
CONFIG_LOCALVERSION="-tegra"
```Prepare build dir:
```
cd /lib/modules/$(uname -r)
rm build
ln -s /usr/src/sources/kernel/kernel-4.9/ build
```### OLD CRAP
Enable bonding module
CONFIG_BONDING=mUpdate the symbolic link:
```shell script
cd /lib/modules/$(uname -r)
rm build
ln -s /usr/src/sources/kernel/kernel-4.9 build
cd build
sudo make modules_prepare
```