Skip to content

python3-jetson-stats (jtop): upgrade 4.3.1 -> 7.2.0 - #211

Open
VFjr wants to merge 3 commits into
OE4T:masterfrom
VFjr:python3-jetson-stats-7.2.0
Open

python3-jetson-stats (jtop): upgrade 4.3.1 -> 7.2.0#211
VFjr wants to merge 3 commits into
OE4T:masterfrom
VFjr:python3-jetson-stats-7.2.0

Conversation

@VFjr

@VFjr VFjr commented Jul 30, 2026

Copy link
Copy Markdown

Updates jetson-stats for JetPack 7 / L4T R39, and adds the nvidia-ml-py
recipe it needs.

4.3.1 breaks in a few ways on L4T R39.2:

  • Python 3.14 defaults multiprocessing to forkserver; jtop's manager
    lambdas aren't picklable, so jtop.service crash-loops
  • GPU page KeyErrors on '3d_scaling' — JP7 Orin dropped that sysfs node
  • L4T R39.2 isn't in the JetPack version table, so the UI shows a blank
    JetPack field

7.2.0 already has the fork start-method fix, defaults/guards 3d_scaling
(and maps it to the devfreq governor on JP7 Orin), and knows R39.2 →
7.2 GA. On Orin it still uses the sysfs/devfreq path; NVML is mainly for
Thor.

Also adds python3-nvidia-ml-py 13.610.43 (pynvml). There is no OE recipe for it
yet. I kept it in this layer rather than meta-python so we don't grow a
cross-repo dependency for a package whose useful runtime on Jetson is
tegra-libraries-nvml. Happy to relocate later if preferred.

Tested on Jetson Orin Nano L4T R39.2

VFjr added 2 commits July 30, 2026 17:06
Python bindings for NVML (import name pynvml). Needed by jetson-stats
7.2.0. RRECOMMENDS tegra-libraries-nvml for the Jetson C library.

Signed-off-by: Victor <victor.florea.jr@gmail.com>
JetPack 7 / L4T R39 support: Python 3.14 fork start-method fix,
3d_scaling handling for JP7 Orin, and R39.2 JetPack mapping.

Switch to python_setuptools_build_meta, PEP 625 sdist name, and
${datadir} install paths. Replace the old OE patches with a setup.py
strip that avoids host systemctl/groupadd during the build.

RDEPENDS on python3-nvidia-ml-py.

Signed-off-by: Victor <victor.florea.jr@gmail.com>
@VFjr
VFjr force-pushed the python3-jetson-stats-7.2.0 branch from eaaf3b6 to 996664d Compare July 30, 2026 16:07
yocto-check-layer runs world against qemux86, where tegra recipes are
skipped. An ungated RRECOMMENDS made python3-nvidia-ml-py unbuildable
there. Move the recommend to python3-jetson-stats, which already has
COMPATIBLE_MACHINE = "(tegra)".

Signed-off-by: Victor <victor.florea.jr@gmail.com>

@madisongh madisongh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this. See in-line for a different way to solve the layer check failure that should be more correct.

inherit pypi setuptools3

RDEPENDS:${PN} += "python3-ctypes"
RRECOMMENDS:${PN} += "tegra-libraries-nvml"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is likely to be a hard requirement, rather than a recommendation. Just make the additional dependency tegra-specific, and set a tegra-specific PACKAGE_ARCH:

RDEPENDS:${PN}:append:tegra = " tegra-libraries-nvml"
PACKAGE_ARCH:tegra = "${TEGRA_PKGARCH}"

nv-tegra-release \
"
RRECOMMENDS:${PN} += "kernel-module-nvgpu"
RRECOMMENDS:${PN} += "kernel-module-nvgpu tegra-libraries-nvml"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then drop this addition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants