I have a Jetson Nano Developer Kit 2G (3USB + 1 USBC) with Jetpack Version: 4.6.1-b110 loaded.
I’ve updated and upgraded all the drivers from the Jetson Nano image (ubuntu 18.04) and I’m trying to run the ups software that comes with the Waveshare UPS Power Module.
When I run the display_server.py I get the following error from the utils.py import.
* Serving Flask app 'display_server' (lazy loading)
* Environment: production
WARNING: This is a development server. Do not use it in a production deployment.
Use a production WSGI server instead.
* Debug mode: off
* Running on all addresses.
WARNING: This is a development server. Do not use it in a production deployment.
* Running on http://192.168.7.224:8000/ (Press CTRL+C to quit)
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "display_server.py", line 79, in _run_display_stats
power_watts = '%.1f' % power_usage()
File "/home/joe/Code/UPS-Power-Module/ups_display/utils.py", line 62, in power_usage
with open("/sys/devices/50000000.host1x/546c0000.i2c/i2c-6/6-0040/iio:device0/in_power0_input", 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/sys/devices/50000000.host1x/546c0000.i2c/i2c-6/6-0040/iio:device0/in_power0_input'
I don’t expect you (or anyone) to review all of the above. Really what I need is to understand why the ina3221x driver is not installing the correct 6-0040/iio:device0/in_voltage0_input directories.
I’m trying to monitor power consumption on the ina3221x chip.
When I google the ina3221x driver, the results point to the jetpack drivers install.
Do you have any suggestions where I can get clues to figure this out?
I know nothing about the specific software, but if there is a file in “/sys”, then that is not a “real” file, but is instead a file in RAM created by a running kernel feature. The reason this would be missing would be either (A) the feature is not enabled in the kernel config, in which case you could probably build it as a module, or (B) the kernel version differs from what the software was built for, in which case that feature might not be available.
You probably need to read the install docs and find out what kernel config item is used for that feature.
That’s very helpful. So the missing 6-0400 folder is a not-configured feature of the power management chip. I’ll search for drivers for that chip and see if they are installed.
My guess is that somewhere you will find the name of a kernel config item needed to support the user space software. That’s what you’d need to add (probably as a module).