Skip to contentSkip to conversation

package/linux-nvidia for Jetson Nano SD

PATCH New Graham Leva 1 participant 3 messages Nov 7, 2020 – Nov 29, 2020

lore
Share & tools
lore
#0 lore raw

cover package/linux-nvidia for Jetson Nano SD

Hello,

I would like to submit some packages to support building NVIDIA's Jetson line of boards, beginning with the Jetson Nano 4GB developer module. This will be the the first of roughly 10 commits -- 9 packages for various code repositories for building NVIDIA's Linux for Tegra kernel and an additional commit for the board/nvidia files and defconfig.

I wasn't sure whether or not to submit this as a patch series or as standalone patches. Happy to resubmit if the preference is for a patch series.

While this is not an officially supported project by NVIDIA, I have received approval from legal and management for these patches.

I also wanted to say that I've become a big fan of Buildroot after creating this port. This is an excellent project, and I've learned a tremendous amount from it. Thank you for all the hard work!

Kind regards,
Graham Leva

Graham Leva (1):
package/linux-nvidia: add nvidia linux kernel extensions package

 DEVELOPERS                             |  3 +++
 linux/Config.ext.in                    | 10 ++++++++++
 package/Config.in                      |  1 +
 package/linux-nvidia/Config.in         |  7 +++++++
 package/linux-nvidia/linux-nvidia.hash |  2 ++
 package/linux-nvidia/linux-nvidia.mk   | 20 ++++++++++++++++++++
 6 files changed, 43 insertions(+)
 create mode 100644 package/linux-nvidia/Config.in
 create mode 100644 package/linux-nvidia/linux-nvidia.hash
 create mode 100644 package/linux-nvidia/linux-nvidia.mk
Signature · 1 line
2.17.1
#1 lore raw

PATCH 1/1 package/linux-nvidia: add nvidia linux kernel extensions package

A required dependency for building NVIDIA's Linux for Tegra kernel for the Jetson line of boards.

---
 DEVELOPERS                             |  3 +++
 linux/Config.ext.in                    | 10 ++++++++++
 package/Config.in                      |  1 +
 package/linux-nvidia/Config.in         |  7 +++++++
 package/linux-nvidia/linux-nvidia.hash |  2 ++
 package/linux-nvidia/linux-nvidia.mk   | 20 ++++++++++++++++++++
 6 files changed, 43 insertions(+)
 create mode 100644 package/linux-nvidia/Config.in
 create mode 100644 package/linux-nvidia/linux-nvidia.hash
 create mode 100644 package/linux-nvidia/linux-nvidia.mk
DEVELOPERS +3 -0
index b245c1cd7e..391688c1c9 100644
@@ -1036,6 +1036,9 @@ F:	package/libsrtp/
 F:	package/libwebsock/
 F:	package/sofia-sip/
 
+N:  Graham Leva <[email protected]>
+F:  package/linux-nvidia/
+
 N:	Grzegorz Blach <[email protected]>
 F:	fs/f2fs/
 F:	package/bluez5_utils-headers/
linux/Config.ext.in +10 -0
index 734a52a533..e817b4da13 100644
@@ -52,6 +52,16 @@ config BR2_LINUX_KERNEL_EXT_RTAI
 	help
 	  RTAI Kernel part.
 
+#-------------------------------------------------------------------------------
+# NVIDIA Linux Tegra drivers and patches
+config BR2_LINUX_KERNEL_EXT_LINUX_NVIDIA
+    bool "NVIDIA Linux Tegra drivers and patches"
+    select BR2_PACKAGE_LINUX_NVIDIA
+    help
+      NVIDIA Linux Tegra kernel drivers and patches
+
+      https://developer.nvidia.com/embedded/linux-tegra
+
 #-------------------------------------------------------------------------------
 # ev3dev Linux drivers
 config BR2_LINUX_KERNEL_EXT_EV3DEV_LINUX_DRIVERS
package/Config.in +1 -0
index 504cfec98e..e677f0acea 100644
@@ -481,6 +481,7 @@ endmenu
 	source "package/libubootenv/Config.in"
 	source "package/libuio/Config.in"
 	source "package/linux-backports/Config.in"
+        source "package/linux-nvidia/Config.in"
 	source "package/linux-serial-test/Config.in"
 	source "package/linuxconsoletools/Config.in"
 	source "package/lirc-tools/Config.in"
package/linux-nvidia/Config.in new file +7 -0
new file mode 100644
index 0000000000..6693d59a96
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LINUX_NVIDIA
+	bool "Linux for Tegra"
+	depends on BR2_LINUX_KERNEL
+	help
+	  NVIDIA Linux source code for Tegra
+
+	  https://developer.nvidia.com/embedded/linux-tegra
package/linux-nvidia/linux-nvidia.hash new file +2 -0
new file mode 100644
index 0000000000..394d5ca193
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  ed1102afdce44bad4a016c95f361d281129f2125b8fd5616c837b7e8224eccd0  linux-nvidia-tegra-l4t-r32.4.2.tar.gz
package/linux-nvidia/linux-nvidia.mk new file +20 -0
new file mode 100644
index 0000000000..c460ea1a66
@@ -0,0 +1,20 @@
+################################################################################
+#
+# NVIDIA Linux for Tegra
+#
+################################################################################
+
+LINUX_NVIDIA_VERSION = tegra-l4t-r32.4.2
+LINUX_NVIDIA_SITE = git://nv-tegra.nvidia.com/linux-nvidia.git
+LINUX_NVIDIA_LICENSE = GPL-2.0
+LINUX_NVIDIA_LICENSE_FILES = drivers/Makefile
+
+# Must be defined here as well as in hardware-nvidia packages
+export NV_BUILD_KERNEL_DTS_ROOT=$(BUILD_DIR)/hardware/nvidia
+
+# L4T build process requires specific directory layouts
+define LINUX_NVIDIA_CONFIGURE_CMDS
+	ln -s $(BUILD_DIR)/linux-nvidia-$(LINUX_NVIDIA_VERSION) $(BUILD_DIR)/nvidia
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.17.1
#2 lore raw

PATCH 1/1 package/linux-nvidia: add nvidia linux kernel extensions package

Hello,

I'd like to retract this package submission. I think this package probably makes little sense by itself and should have been part of a series. I will resubmit this soon as part of a series.

Kind regards,
Graham Leva

Quoted 120 lines · Graham Leva

A required dependency for building NVIDIA's Linux for Tegra kernel for the Jetson line of boards.

---
 DEVELOPERS                             |  3 +++
 linux/Config.ext.in                    | 10 ++++++++++
 package/Config.in                      |  1 +
 package/linux-nvidia/Config.in         |  7 +++++++
 package/linux-nvidia/linux-nvidia.hash |  2 ++
 package/linux-nvidia/linux-nvidia.mk   | 20 ++++++++++++++++++++
 6 files changed, 43 insertions(+)
 create mode 100644 package/linux-nvidia/Config.in
 create mode 100644 package/linux-nvidia/linux-nvidia.hash
 create mode 100644 package/linux-nvidia/linux-nvidia.mk
DEVELOPERS +3 -0
index b245c1cd7e..391688c1c9 100644
@@ -1036,6 +1036,9 @@ F:        package/libsrtp/
 F:     package/libwebsock/
 F:     package/sofia-sip/
 
+N:  Graham Leva <[email protected]>
+F:  package/linux-nvidia/
+
 N:     Grzegorz Blach <[email protected]>
 F:     fs/f2fs/
 F:     package/bluez5_utils-headers/
linux/Config.ext.in +10 -0
index 734a52a533..e817b4da13 100644
@@ -52,6 +52,16 @@ config BR2_LINUX_KERNEL_EXT_RTAI
        help
          RTAI Kernel part.
 
 
+#-------------------------------------------------------------------------------
+# NVIDIA Linux Tegra drivers and patches
+config BR2_LINUX_KERNEL_EXT_LINUX_NVIDIA
+    bool "NVIDIA Linux Tegra drivers and patches"
+    select BR2_PACKAGE_LINUX_NVIDIA
+    help
+      NVIDIA Linux Tegra kernel drivers and patches
+
+      https://developer.nvidia.com/embedded/linux-tegra
+
 
 #-------------------------------------------------------------------------------
 # ev3dev Linux drivers
 config BR2_LINUX_KERNEL_EXT_EV3DEV_LINUX_DRIVERS
package/Config.in +1 -0
index 504cfec98e..e677f0acea 100644
@@ -481,6 +481,7 @@ endmenu
        source "package/libubootenv/Config.in"
        source "package/libuio/Config.in"
        source "package/linux-backports/Config.in"
+        source "package/linux-nvidia/Config.in"
        source "package/linux-serial-test/Config.in"
        source "package/linuxconsoletools/Config.in"
        source "package/lirc-tools/Config.in"
package/linux-nvidia/Config.in new file +7 -0
new file mode 100644
index 0000000000..6693d59a96
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_LINUX_NVIDIA
+       bool "Linux for Tegra"
+       depends on BR2_LINUX_KERNEL
+       help
+         NVIDIA Linux source code for Tegra
+
+         https://developer.nvidia.com/embedded/linux-tegra
package/linux-nvidia/linux-nvidia.hash new file +2 -0
new file mode 100644
index 0000000000..394d5ca193
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256  ed1102afdce44bad4a016c95f361d281129f2125b8fd5616c837b7e8224eccd0

linux-nvidia-tegra-l4t-r32.4.2.tar.gz

package/linux-nvidia/ renamed from package/linux-nvidia/linux-nvidia.mk +0 -0

linux-nvidia.mk
new file mode 100644
index 0000000000..c460ea1a66

package/linux-nvidia/linux-nvidia.mk new file +17 -0
@@ -0,0 +1,20 @@
 
+################################################################################
+#
+# NVIDIA Linux for Tegra
+#
 
+################################################################################
+
+LINUX_NVIDIA_VERSION = tegra-l4t-r32.4.2
+LINUX_NVIDIA_SITE = git://nv-tegra.nvidia.com/linux-nvidia.git
+LINUX_NVIDIA_LICENSE = GPL-2.0
+LINUX_NVIDIA_LICENSE_FILES = drivers/Makefile
+
+# Must be defined here as well as in hardware-nvidia packages
+export NV_BUILD_KERNEL_DTS_ROOT=$(BUILD_DIR)/hardware/nvidia
+
+# L4T build process requires specific directory layouts
+define LINUX_NVIDIA_CONFIGURE_CMDS
+       ln -s $(BUILD_DIR)/linux-nvidia-$(LINUX_NVIDIA_VERSION)

$(BUILD_DIR)/nvidia

package/linux-nvidia/linux-nvidia.mk new file +3 -1
+endef
+
+$(eval $(generic-package))
--
Quoted 3 lines

2.17.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20201129/55d16296/attachment.html>