Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fleet variables and configuration - automatic? #164

Closed
shawaj opened this issue Oct 12, 2021 · 5 comments
Closed

fleet variables and configuration - automatic? #164

shawaj opened this issue Oct 12, 2021 · 5 comments

Comments

@shawaj
Copy link
Member

shawaj commented Oct 12, 2021

we currently use fleet variables such as VARIANT and FREQ and we have configuration info such as:

Define DT parameters
"i2c_arm=on","spi=on"
Define DT overlays
"spi1-3cs", "uart0,txd0_pin=32,rxd0_pin=33,pin_func=7"

ideally, for balena open fleets we would be able to have these auto-populate and/or somehow be set manually - perhaps in diagnostics?

@vpetersson
Copy link
Contributor

It doesn't seem to be possible to do this out-of-the-box in the image creation process at least.

@shawaj
Copy link
Member Author

shawaj commented Nov 1, 2021

We do it with the config.txt and a loopback connection.

We could just do the same with a file called like nebra.txt or something and read back the details perhaps? Or if it doesn't break anything, put some custom stuff in config.txt

A custom file is preferable IMO as it's more platform agnostic

@vpetersson
Copy link
Contributor

@shawaj I've scoped out the ticket for migrating VARIANT and FREQ here. I'm still not sure how to solve the SPI configuration, as this is set from within the dashboard. The only way I can think of is having separate fleets per device type (which wouldn't be too big of an issue).

@shawaj
Copy link
Member Author

shawaj commented Jan 23, 2023

This has been sorted for open fleets by Balena.yml files

And the rest will be sorted by NebraLtd/hm-diag#444

@shawaj
Copy link
Member Author

shawaj commented Mar 20, 2023

Closing as completed

@shawaj shawaj closed this as completed Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants