open-balena-api icon indicating copy to clipboard operation
open-balena-api copied to clipboard

Support for custom device types

Open floion opened this issue 5 years ago • 4 comments
trafficstars

Will collect here the PRs / remaining issues / resources (as I find them) for allowing users to have custom device types in openBalena

  1. https://github.com/balena-io/open-balena-api/pull/473

floion avatar Sep 15 '20 09:09 floion

[dfunckt] This issue has attached support thread https://jel.ly.fish/878f58e5-976d-4097-bb99-af5078f046da

jellyfish-bot avatar Sep 15 '20 12:09 jellyfish-bot

Most commands on custom devices like balena config generate --fleet FleetWithCustomDevice --version 2.98.12 --dev --debug fail when calling SDK function config.ts: getDeviceTypeManifestBySlug() which executes an api call to /device-types/v1.

Looking at /device-types/v1 in the api it builds a list of device type slugs in device-types-list.ts: getDeviceTypes() which downloads a list of all folders in the S3 bucket configured in IMAGE_STORAGE_BUCKET/IMAGE_STORAGE_PREFIX where all public device images are stored.

Obviously our custom device image is not available in this S3 bucket. I don't know if the balena-sdk repo should be updated to not use v1 endpoints any more or the v1 endpoint in open-balena-api should be fixed.

edit: The command balena-dev os configure ./myimge.img --fleet FleetWithCustomDevice --debug results in a call to api route /download-config which calls device-types.ts: findBySlug() that also utilizes the device-types from the S3 bucket.

markdegrootnl avatar May 30 '22 12:05 markdegrootnl

Any updates on this?

Razikus avatar Oct 17 '22 20:10 Razikus

See: https://forums.balena.io/t/supported-devices-in-open-balena/357665/20

markdegrootnl avatar Oct 17 '22 20:10 markdegrootnl