How to Include "jetson_clocks" in Yocto Project Image

Hello,

I’m currently using a Yocto Project-based core-image-sato Image and I need to include the “jetson_clocks” command in my image. This command is essential for managing clock settings on Jetson devices to optimize performance.

I’ve already searched through the Yocto Project documentation and the NVIDIA Jetson resources, but I couldn’t find a clear set of instructions on how to include “jetson_clocks” in my Yocto Project image.

Could you please guide me on the steps required to add the “jetson_clocks” command to my Yocto Project image?

I can’t completely answer this, but the way jetson_clocks works implies that mostly you need a kernel/driver setup producing the correct “/sys” files. “/sys” files are not real files, but instead live in RAM pretending to be files, and those files are part of the drivers. Those drivers in turn are just configuration symbols during kernel build. If the drivers exist and load, then so do those files. jetson_clocks does have some configuration files associated with it, but the actual function is an echo to those files.

The actual program is just a human-readable shell script. You can find the files referenced by examining the shell script. Perhaps a useful aid for that, with an example (this takes some disk space, but you don’t need this on the final system; I keep this installed on my Jetsons):

sudo apt-get install locate
sudo updatedb
egrep '[.]conf' `which jetson_clocks`
locate l4t_dfs.conf
egrep 'echo.* [/]sys' `which jetson_clocks`

Note that there might be some file names in variables, so the above won’t give you everything, but it will give you a lot.

I’m only guessing, but probably the NVIDIA source for a given L4T release also makes available a .tar.bz2 (or similar) set of files as well (since it is using content in “/usr/local” this tends to imply not all of it is in the form of a Debian package). Incidentally, you might also examine “/usr/local/jetson_stats”.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.