RESIN_HOST_CONFIG_dtoverlay with multiple values

support

#1

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:

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


#2

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.


#3

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:


#4

cc @pcarranzav ^


#5

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 “,”?


#6

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


#7

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!


#8

Yes, you should be able to use it like

RESIN_HOST_CONFIG_dtoverlay=audioinjector-wm8731-audio,i2s-mmap