From 02c05426483493baf263a6f2df08c8904426c283 Mon Sep 17 00:00:00 2001 From: Meng Li Date: Wed, 4 Mar 2026 17:05:12 +0800 Subject: [PATCH 1/2] jtop: Fix Python 3.14 multiprocessing compatibility Create a patch to fix Python 3.14 multiprocessing compatibility Signed-off-by: Meng Li --- ...n-3.14-multiprocessing-compatibility.patch | 39 +++++++++++++++++++ .../python/python3-jetson-stats_4.3.1.bb | 1 + 2 files changed, 40 insertions(+) create mode 100644 recipes-devtools/python/python3-jetson-stats/0001-Fix-Python-3.14-multiprocessing-compatibility.patch diff --git a/recipes-devtools/python/python3-jetson-stats/0001-Fix-Python-3.14-multiprocessing-compatibility.patch b/recipes-devtools/python/python3-jetson-stats/0001-Fix-Python-3.14-multiprocessing-compatibility.patch new file mode 100644 index 00000000..6d6c6b4b --- /dev/null +++ b/recipes-devtools/python/python3-jetson-stats/0001-Fix-Python-3.14-multiprocessing-compatibility.patch @@ -0,0 +1,39 @@ +From ee95d952d78d7b167a672cb2821e40306c463e23 Mon Sep 17 00:00:00 2001 +From: Your Name +Date: Wed, 4 Mar 2026 16:20:00 +0800 +Subject: [PATCH] Fix Python 3.14 multiprocessing compatibility + +Force fork method for multiprocessing to avoid pickle errors +with lambda functions in Python 3.14+ which uses forkserver by default. + +Upstream-Status: Pending + +Signed-off-by: Meng Li +--- + jtop/service.py | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/jtop/service.py b/jtop/service.py +index 02b9d9d..96a36e5 100644 +--- a/jtop/service.py ++++ b/jtop/service.py +@@ -25,6 +25,7 @@ import sys + import stat + import shlex + import subprocess as sp ++import multiprocessing + from copy import deepcopy + from grp import getgrnam + from shutil import copyfile, rmtree +@@ -148,6 +149,8 @@ class JtopServer(Process): + + def __init__(self, force=False): + self.force = force ++ # Force fork method for Python 3.14+ compatibility ++ multiprocessing.set_start_method('fork', force=True) + # Load configuration + self.config = Config() + # Save version jtop +-- +2.34.1 + diff --git a/recipes-devtools/python/python3-jetson-stats_4.3.1.bb b/recipes-devtools/python/python3-jetson-stats_4.3.1.bb index d8b827ad..084b6799 100644 --- a/recipes-devtools/python/python3-jetson-stats_4.3.1.bb +++ b/recipes-devtools/python/python3-jetson-stats_4.3.1.bb @@ -7,6 +7,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8763b57f0092c337eb12c354870a324a" SRC_URI += "file://0001-fix-installation-process-issue-and-cleanup.patch \ file://0002-fix-paths-to-match-with-OE-and-getting-the-right-ver.patch \ + file://0001-Fix-Python-3.14-multiprocessing-compatibility.patch \ " SRC_URI[sha256sum] = "38b11fcb6a27d59a194bc587e7665bccfc0c658979171969974550013e62afeb" From 6e4ddd111295bceb9544ba31d18bce244b0055b9 Mon Sep 17 00:00:00 2001 From: Meng Li Date: Thu, 5 Mar 2026 11:16:37 +0800 Subject: [PATCH 2/2] jtop: add L4T 36.5.0 support for jtop feature Create a patch to add L4T 36.5.0 support for jtop feature. Signed-off-by: Meng Li --- .../0001-jtop-add-L4T-36.5.0-support.patch | 29 +++++++++++++++++++ .../python/python3-jetson-stats_4.3.1.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 recipes-devtools/python/python3-jetson-stats/0001-jtop-add-L4T-36.5.0-support.patch diff --git a/recipes-devtools/python/python3-jetson-stats/0001-jtop-add-L4T-36.5.0-support.patch b/recipes-devtools/python/python3-jetson-stats/0001-jtop-add-L4T-36.5.0-support.patch new file mode 100644 index 00000000..b5733f74 --- /dev/null +++ b/recipes-devtools/python/python3-jetson-stats/0001-jtop-add-L4T-36.5.0-support.patch @@ -0,0 +1,29 @@ +From dd3d3562c37d5f0727446e8a6147c7d53505a38a Mon Sep 17 00:00:00 2001 +From: Meng Li +Date: Thu, 5 Mar 2026 10:20:18 +0800 +Subject: [PATCH] jtop: add L4T 36.5.0 support + +Add L4T 36.5.0 to NVIDIA_JETPACK dictionary for Jetpack detection. + +Upstream-Status: Pending + +Signed-off-by: Meng Li +--- + jtop/core/jetson_variables.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/jtop/core/jetson_variables.py b/jtop/core/jetson_variables.py +index 120b7b8..c955252 100644 +--- a/jtop/core/jetson_variables.py ++++ b/jtop/core/jetson_variables.py +@@ -42,6 +42,7 @@ if not sys.warnoptions: + # https://developer.nvidia.com/embedded/jetpack-archive + NVIDIA_JETPACK = { + # -------- JP6 -------- ++ "36.5.0": "6.2.2", + "36.4.3": "6.2", + "36.4.2": "6.1 (rev1)", + "36.4.0": "6.1", +-- +2.34.1 + diff --git a/recipes-devtools/python/python3-jetson-stats_4.3.1.bb b/recipes-devtools/python/python3-jetson-stats_4.3.1.bb index 084b6799..967746fa 100644 --- a/recipes-devtools/python/python3-jetson-stats_4.3.1.bb +++ b/recipes-devtools/python/python3-jetson-stats_4.3.1.bb @@ -8,6 +8,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=8763b57f0092c337eb12c354870a324a" SRC_URI += "file://0001-fix-installation-process-issue-and-cleanup.patch \ file://0002-fix-paths-to-match-with-OE-and-getting-the-right-ver.patch \ file://0001-Fix-Python-3.14-multiprocessing-compatibility.patch \ + file://0001-jtop-add-L4T-36.5.0-support.patch \ " SRC_URI[sha256sum] = "38b11fcb6a27d59a194bc587e7665bccfc0c658979171969974550013e62afeb"