Edit this file on any computer, insert the SD card and create/enter the boot folder located at the FAT32 partition (it's very small, ~20MB).
Contents of the config.txt file:
dtparam=i2c_arm=on
dtparam=i2c0=on
dtparam=i2c1=on
dtparam=spi=on
dtparam=i2s=on
- i2c-tools - 3.1.2-1
- kmod-i2c-gpio - 4.4.92-1
- kmod-i2c-gpio-custom - 4.4.92-2
- kmod-i2c-algo-bit - 4.4.14-1
- kmod-i2c-algo-pcf - 4.4.14-1
- kmod-i2c-bcm2708 - 4.4.14-1
- kmod-i2c-bcm2835 - 4.4.14-1
- kmod-i2c-core - 4.4.14-1
- kmod-i2c-gpio - 4.4.14-1
- kmod-i2c-gpio-custom - 4.4.14-2
- kmod-i2c-mux - 4.4.14-1
opkg install i2c-tools kmod-i2c-gpio kmod-i2c-gpio-custom kmod-i2c-algo-bit kmod-i2c-algo-pcf kmod-i2c-bcm2708 kmod-i2c-bcm2835 kmod-i2c-core kmod-i2c-gpio kmod-i2c-gpio-custom kmod-i2c-mux
- python-smbus - 3.1.2-1
- python3-smbus - 3.1.2-1
opkg install python-smbus python3-smbus
i2cdetect -y 0
i2cdetect -y 1
root@LEDE-RPi:~/scripts# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@LEDE-RPi:~/scripts# i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 3f
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --