RESIN_HOST_CONFIG_dtoverlay with multiple values

Hi!
I’m working on a project which requires both serial port and LIRC.
I’ve used RESIN_HOST_CONFIG_dtoverlay=pi3-miniuart-bt to configure my serial port (https://resin.io/blog/updating-config-txt-remotely/). And it worked perfectly.

However I’m not sure how I can enable lirc, as I need a second dtoverlay entry in my config.txt for LIRC:
lirc-rpi,gpio_in_pin=23,gpio_out_pin=26

Docs indicate that multiple dtoverlay entries are allowed:
https://www.raspberrypi.org/documentation/configuration/device-tree.md

However I can’t create a second env variable named RESIN_HOST_CONFIG_dtoverlay which is understandable.
How would I go about that?
Is my only option manually modifying /boot/config.txt?
Is there a syntax to supply a lost of values for RESIN_HOST_CONFIG_?

Cheers,
Leonti

Hi @Leonti,

There isn’t great support for this right now through our remote config.txt management - as you’ve noticed, you need an environment variable per line, and those variables must be unique.

As a simple workaround, if you’re just looking for exactly two entries, you can use RESIN_HOST_CONFIG_dtoverlay and RESIN_HOST_CONFIG_device_tree_overlay, as the pi accepts that long form as an alias.

If you’re looking for more than two entries though, right now this isn’t supported through our remote config.txt management, and you’ll have to set this up the hard way, by manually modifying config.txt yourself.

Hi @tim!

Yes, for now it’s only 2 entries so thanks for the suggestion, didn’t know about the device_tree_overlay.

Hopefully multiple values will get implemented at some point, but for now it’s good enough :slight_smile:

Thanks for your help and for the awesome product!
Resin.io is amazing :smile:

cc @pcarranzav ^

Hi! still don’t supported multiple params into DTOVERLAY? my soundcard need to be enabled using this and to work well into ALSA need to add i2s-mmap overlay too… can’t pass both params with “,”?

Hi, multiple params in dtoverlay are now supported. What board are you targeting?

I’m working with audioinjector.net, to work well without XRUN (I can’t made work perfect yet!) need activate i2s-mmap for ALSA

  • enable the AudioInjector.net sound card
    dtoverlay=audioinjector-wm8731-audio
    dtoverlay=i2s-mmap

Thanks! can confirm that I can pass:
dtoverlay=audioinjector-wm8731-audio,i2s-mmap

right?

Thanks!

Yes, you should be able to use it like

RESIN_HOST_CONFIG_dtoverlay=audioinjector-wm8731-audio,i2s-mmap

Were you able to get this working with the audioinjector? I have this setup now with my app but I don’t get any audio. I have tested that it works if I setup a raspian config with the scripts provided by audioinjector on the latest build of raspian, but still no working audio through balenaCloud.