Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP)feat: add extension for jetson orin SBC #624

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ spec:
- nvidia-container-toolkit-production
- nvidia-fabricmanager-lts
- nvidia-fabricmanager-production
- nvidia-l4t
- nvidia-open-gpu-kernel-modules-lts
- nvidia-open-gpu-kernel-modules-production
- nvme-cli
Expand Down
1 change: 1 addition & 0 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ If the field is marked as `Needs Maintainer`, it means that the package is curre
| nivida-container-toolkit-production | Sidero Labs | NA |
| nvidia-fabricmanager-lts | Sidero Labs | NA |
| nvidia-fabricmanager-production | Sidero Labs | NA |
| nvidia-l4t | Michał Małyska | [mmalyska](https://github.com/mmalyska) |
| nvidia-open-gpu-kernel-modules-lts | Sidero Labs | NA |
| nvidia-open-gpu-kernel-modules-production | Sidero Labs | NA |
| nvme-cli | Sidelo Labs | NA |
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ TARGETS += nvidia-container-toolkit-lts
TARGETS += nvidia-container-toolkit-production
TARGETS += nvidia-fabricmanager-lts
TARGETS += nvidia-fabricmanager-production
TARGETS += nvidia-l4t
TARGETS += nvidia-open-gpu-kernel-modules-lts
TARGETS += nvidia-open-gpu-kernel-modules-production
TARGETS += nvme-cli
Expand Down
1 change: 1 addition & 0 deletions Pkgfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ vars:
DRBD_DRIVER_VERSION: 9.2.12 # update this when updating PKGS_VERSION in Makefile
ZFS_DRIVER_VERSION: 2.3.0 # update this when updating PKGS_VERSION in Makefile
UTIL_LINUX_VERSION: 2.40.4 # update this when updating PKGS_VERSION in Makefile
L4T_NVIDIA_VERSION: 36.4.3 # update this when updating PKGS_VERSION in Makefile

# renovate: datasource=git-tags extractVersion=^libtiprc-(?<version>.*)$ depName=git://linux-nfs.org/~steved/libtirpc
LIBTIRPC_VERSION: 1-3-3
Expand Down
3 changes: 3 additions & 0 deletions nvidia-l4t/files/nvidia.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
blacklist nvidia
blacklist nvidia_drm
blacklist nvidia_modeset
10 changes: 10 additions & 0 deletions nvidia-l4t/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: v1alpha1
metadata:
name: nvidia-l4t
version: "$VERSION"
author: Michał Małyska
description: |
This system extension provides nvidia open source driver kernel modules build for Jetson Orin platform
compatibility:
talos:
version: ">= v1.9.0"
31 changes: 31 additions & 0 deletions nvidia-l4t/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: nvidia-l4t
variant: scratch
shell: /bin/bash
dependencies:
- stage: base
# The pkgs version for a particular release of Talos as defined in
# https://github.com/siderolabs/talos/blob/<talos version>/pkg/machinery/gendata/data/pkgs
- image: "{{ .BUILD_ARG_PKGS_PREFIX }}/nvidia-l4t-pkg:{{ .BUILD_ARG_PKGS }}"
steps:
- prepare:
- |
sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml
- install:
- |
mkdir -p /rootfs/usr/lib/modules \
/rootfs/usr/local/lib/modprobe.d

cp /pkg/files/nvidia.conf /rootfs/usr/local/lib/modprobe.d/nvidia.conf

cp -R /usr/lib/modules/* /rootfs/usr/lib/modules
test:
- |
mkdir -p /extensions-validator-rootfs
cp -r /rootfs/ /extensions-validator-rootfs/rootfs
cp /pkg/manifest.yaml /extensions-validator-rootfs/manifest.yaml
/extensions-validator validate --rootfs=/extensions-validator-rootfs --pkg-name="${PKG_NAME}"
finalize:
- from: /rootfs
to: /rootfs
- from: /pkg/manifest.yaml
to: /
2 changes: 2 additions & 0 deletions nvidia-l4t/vars.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# the first part is the driver version and the second the talos version for which the module is built against
VERSION: "{{ .L4T_NVIDIA_VERSION }}-{{ .BUILD_ARG_TAG }}"