Nvpmodel not installed on Jetson TX2 yocto image

Adding it to the APPLICATION_NAME.config.json also works.
Convert the .rules file with this: cat your_rule.rules | jq -sR .

For above rule it looks as such:

  "applicationName": "AmazingName",
  "applicationId": 1234567,
  "deviceType": "jetson-tx2",
  "userId": 12345,
  "username": "user_name",
  "appUpdatePollInterval": 600000,
  "listenPort": 48484,
  "vpnPort": 443,
  "apiEndpoint": "https://api.balena-cloud.com",
  "vpnEndpoint": "vpn.balena-cloud.com",
  "registryEndpoint": "registry2.balena-cloud.com",
  "deltaEndpoint": "https://delta.balena-cloud.com",
  "pubnubSubscribeKey": "",
  "pubnubPublishKey": "",
  "mixpanelToken": "12345678eeff12345567",
  "apiKey": "12345678eeff1234556712345678eeff12345567",
  "os": {
    "udevRules": {
      "101": "ACTION==\"add\", SUBSYSTEMS==\"usb\", RUN+=\"/usr/sbin/nvpmodel -m 0\"\n"
    }
  }
}

All but the os: section is generated and can be downloaded from your Application Dashboard:

  • Click Add device
  • Click Advanced
  • Tick Download configuration file only
  • Download configuration file

Now use balena config inject .../APPLICATION_NAME.config.json --drive .../BALENA_IMAGE.img --type=jetson-tx2 to inject it.
(see https://www.balena.io/docs/reference/cli/#config-inject-file-)

And flash it to a SDcard and then to the TX2.

1 Like