Skip to content

Instantly share code, notes, and snippets.

@sunsided
Last active September 29, 2021 23:07
Show Gist options
  • Save sunsided/904f6d0feffe6772e1e50b401311f561 to your computer and use it in GitHub Desktop.
Save sunsided/904f6d0feffe6772e1e50b401311f561 to your computer and use it in GitHub Desktop.
Waveshare JetRacer Pro AI - JetPack 4.5+ (stats display fix)

Waveshare JetRacer Pro AI

JetPack 4.5 + OTA

A JetPack 4.5 version can be downloaded from the Pre-built image (Jetpack4.5) for Waveshare JetRacer Pro AI Kit issue.

From there, update /etc/apt/sources.list.d/nvidia-l4t-apt-source.list for the new OTA scheme. For Jetson Nano (B01), use the t210 platform:

deb https://repo.download.nvidia.com/jetson/common r32.4 main
deb https://repo.download.nvidia.com/jetson/t210 r32.4 main

Then run

$ sudo apt update
$ sudo apt dist-upgrade

If the bootloader fails to install, follow the repair instructions. After the dist-upgrade, everything should work.

Note: In the existing install.sh scripts, the TensorFlow version might have to be adjusted as well.

Jetcard Display (jetcard_display.service)

At some point during update the tiny display showing the IP address and resource utilizations may stop working. It is powered by the systemd jetcard_display.service, which in turn is set from within a Flask server.

The script requires access to I2C but may fail to have access, showing the below error message. This was fixed in NVIDIA-AI-IOT/jetcard#6600b6 by giving the service root permissions rather than $USER ones upon setup.

Sep 30 00:37:16 jetracer sh[12979]: PermissionError: [Errno 13] Permission denied: '/sys/devices/50000000.host1x/546c0000.i2c/i2c-6/6-0040/iio:device0/in_power0_input'
Sep 30 00:37:16 jetracer sh[12979]: 127.0.0.1 - - [30/Sep/2021 00:37:16] "GET / HTTP/1.1" 404 -
Sep 30 00:37:22 jetracer sh[12979]: 127.0.0.1 - - [30/Sep/2021 00:37:22] "GET / HTTP/1.1" 404 -
Sep 30 00:37:25 jetracer systemd[1]: Stopping JetCard display service...
Sep 30 00:37:25 jetracer systemd[1]: Stopped JetCard display service.
Sep 30 00:37:25 jetracer systemd[1]: Started JetCard display service.
Sep 30 00:37:29 jetracer sh[13076]:  * Serving Flask app "display_server" (lazy loading)
Sep 30 00:37:29 jetracer sh[13076]:  * Environment: production
Sep 30 00:37:29 jetracer sh[13076]:    WARNING: This is a development server. Do not use it in a production deployment.
Sep 30 00:37:29 jetracer sh[13076]:    Use a production WSGI server instead.
Sep 30 00:37:29 jetracer sh[13076]:  * Debug mode: off
Sep 30 00:37:29 jetracer sh[13076]:  * Running on http://0.0.0.0:8000/ (Press CTRL+C to quit)
Sep 30 00:37:31 jetracer sh[13076]: Exception in thread Thread-1:
Sep 30 00:37:31 jetracer sh[13076]: Traceback (most recent call last):
Sep 30 00:37:31 jetracer sh[13076]:   File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
Sep 30 00:37:31 jetracer sh[13076]:     self.run()
Sep 30 00:37:31 jetracer sh[13076]:   File "/usr/lib/python3.6/threading.py", line 864, in run
Sep 30 00:37:31 jetracer sh[13076]:     self._target(*self._args, **self._kwargs)
Sep 30 00:37:31 jetracer sh[13076]:   File "/usr/local/lib/python3.6/dist-packages/jetcard-0.0.0-py3.6.egg/jetcard/display_server.py", line 115, in _run_display_stats
Sep 30 00:37:31 jetracer sh[13076]:   File "/usr/local/lib/python3.6/dist-packages/jetcard-0.0.0-py3.6.egg/jetcard/utils.py", line 62, in power_usage
Sep 30 00:37:31 jetracer sh[13076]:     with open("/sys/devices/50000000.host1x/546c0000.i2c/i2c-6/6-0040/iio:device0/in_power0_input", 'r') as f:
Sep 30 00:37:31 jetracer sh[13076]: PermissionError: [Errno 13] Permission denied: '/sys/devices/50000000.host1x/546c0000.i2c/i2c-6/6-0040/iio:device0/in_power0_input'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment