forked from Sysdeploy/openwrt
Add i2c kmod and the files
This commit is contained in:
parent
90e53ad77b
commit
68bee355e2
|
@ -58,8 +58,12 @@ cp ${pwd}/authorized_keys files/etc/dropbear
|
||||||
chmod 0400 files/etc/dropbear/authorized_keys
|
chmod 0400 files/etc/dropbear/authorized_keys
|
||||||
mkdir -p files/etc/uci-defaults
|
mkdir -p files/etc/uci-defaults
|
||||||
cp ${pwd}/defaults/* files/etc/uci-defaults
|
cp ${pwd}/defaults/* files/etc/uci-defaults
|
||||||
|
mkdir -p files/boot/overlays
|
||||||
|
cp ${pwd}/overlays/*.txt files/boot/
|
||||||
|
cp ${pwd}/overlays/*.dtbo files/boot/overlays/
|
||||||
|
|
||||||
PACKAGES="kmod-nf-nathelper-extra kmod-rtc-ds1307 \
|
|
||||||
|
PACKAGES="kmod-i2c-bcm2835 kmod-nf-nathelper-extra kmod-rtc-ds1307 \
|
||||||
kmod-usb-audio kmod-usb-net-rtl8152 \
|
kmod-usb-audio kmod-usb-net-rtl8152 \
|
||||||
alsa-lib pciutils usbutils \
|
alsa-lib pciutils usbutils \
|
||||||
kmod-usb-net-qmi-wwan libqmi qmi-utils uqmi luci-proto-qmi \
|
kmod-usb-net-qmi-wwan libqmi qmi-utils uqmi luci-proto-qmi \
|
||||||
|
|
7
overlays/dualeth.txt
Normal file
7
overlays/dualeth.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
dtparam=i2c_vc=on
|
||||||
|
dtoverlay=i2c-rtc,pcf85063a,i2c_csi_dsi
|
||||||
|
|
||||||
|
[all]
|
||||||
|
|
||||||
|
[cm4]
|
||||||
|
otg_mode=1
|
18
overlays/sensing.txt
Normal file
18
overlays/sensing.txt
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
dtparam=i2c_arm=on
|
||||||
|
enable_uart=1
|
||||||
|
|
||||||
|
dtoverlay=ed-sdhost
|
||||||
|
dtoverlay=i2c-rtc,pcf8563
|
||||||
|
|
||||||
|
dtoverlay=spi1-1cs
|
||||||
|
dtparam=cs0_pin=18,cs0_spidev=disabled
|
||||||
|
dtoverlay=ed-mcp2515-spi1-can0
|
||||||
|
dtoverlay=uart2
|
||||||
|
dtoverlay=uart3
|
||||||
|
dtoverlay=uart4
|
||||||
|
dtoverlay=uart5
|
||||||
|
gpio=11=op,dl
|
||||||
|
[all]
|
||||||
|
|
||||||
|
[cm4]
|
||||||
|
otg_mode=1
|
Loading…
Reference in New Issue
Block a user