Detect hardware configuration

I am searching for a way to detect hardware configuration at compile and runtime
in my case I worked on NVIDIA Jetson AGX Orin Developer Kit(the one that looks like a cube) and I want to run the same software on another pc that has AGX Orin but has different commands to control periferics

What is the best way to detect the hardware that where I am compilling and running the software ?

Please provide more information of what this PC means.
And what’s the same software?

I want to detect a NVIDIA Jetson AGX Orin Developer Kit and an ADLINK ROS 590.
It would be great if I can detect which device is compiling on or during runtime would work also

For none-Nvidia devkit, you need to get the SW from vendor as we don’t know what device tree/pinmux they modified for configurations their HW.

I have the proprietary software for the other vendor, how can I detect that I am on NVIDIA Jetson AGX Orin Developer Kit or another vendor’s AGX Orin at compile time or during runtime, I want to use the same software without changing all the time the board.


// code board 1
#elseif USED_BOARD == BOARD_2
// code board 2
// board not supported

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