From b4afe7e394ac5b53186ed6a31a36209896d3b0b5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 29 Jul 2023 15:58:01 +0200 Subject: ch-rapsi-openwrt: enable i2c on boot --- inventory/host_vars/ch-raspi-openwrt.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'inventory/host_vars/ch-raspi-openwrt.yml') diff --git a/inventory/host_vars/ch-raspi-openwrt.yml b/inventory/host_vars/ch-raspi-openwrt.yml index 5c2f893d..9539b1c8 100644 --- a/inventory/host_vars/ch-raspi-openwrt.yml +++ b/inventory/host_vars/ch-raspi-openwrt.yml @@ -13,6 +13,7 @@ openwrt_packages_remove: - dnsmasq - odhcpd-ipv6only openwrt_packages_add: + - kmod-i2c-bcm2835 - kmod-usb-net-rtl8152 - kmod-usb-storage - kmod-usb-storage-extras @@ -40,6 +41,10 @@ openwrt_mixin: /etc/htoprc: file: "{{ global_files_dir }}/common/htoprc" + /etc/uci-defaults/99-boot-config.txt: + content: | + echo "dtparam=i2c=on" >> /boot/config.txt + openwrt_uci: system: -- cgit v1.2.3