ribbit-network-frog-hardware icon indicating copy to clipboard operation
ribbit-network-frog-hardware copied to clipboard

Programmatically Set Device Tree Configuration

Open keenanjohnson opened this issue 3 years ago • 2 comments

In order to enable the USB Power on the Wavehsare Carrier board we use for the Raspberry PI CM4, a dt_overlay variable must be set. Wiki link to the documentation.

dtoverlay=dwc2,dr_mode=host

Previously I've been setting this via the Balena Web UI, however, this makes this configuration obscure and not obvious to the Open Source community. We should consider setting this programmatically in code.

keenanjohnson avatar Nov 10 '21 05:11 keenanjohnson

We should add the changes made as part of #61 in this changeset. Currently the settings below are set via the balena web UI.

t_params = "i2c_arm=off","i2c-gpio=on"
dt_overlay = "dwc2,dr_mode=host","i2c-gpio,bus=11,i2c_gpio_delay_us=100,i2c_gpio_sda=2,i2c_gpio_scl=3"

keenanjohnson avatar Nov 25 '21 02:11 keenanjohnson

@djgood fyi in case you are ever messing with anything until I finish this item.

keenanjohnson avatar Nov 25 '21 02:11 keenanjohnson

We're moving to an esp32-based frog for the foreseeable future, so closing this won't fix fow now. Perhaps once the global supply chain clears up a bit, we will revisit this.

New software repo below:

https://github.com/Ribbit-Network/ribbit-network-frog-software

keenanjohnson avatar Dec 06 '22 00:12 keenanjohnson