Gl-mt300n-v2 i2c


I want to build a firmware with the I2C pins working.

So I clone the repo and change the target/linux/ramips/dts/MT7628.dts according to
I added the I2c-tools and kmod-i2c-mt7278 to the extra section of images.json.

But the I2C-bus is not working. The kmod-i2c-mt7628 is loaded but I get no info in dmesg. The /dev/i2c-0 is missing. “mknod /dev/i2c-o 89 0” created the dev-file but i2cdetect 0 can’t find the bus.

What did i miss?

You can’t edit dts on imagebuilder, because it won’t build it to dtb.

@Ondo Yes @kyson-lok is right. You need to go a level further, you need to compile openwrt from scratch, copy all the packages to image builder of GL for it to work, or add the gl packages to the openwrt stock image builder.

The GL image builder has already compiled the kernel beforehand, so any changes you make won’t recompile it in the builder. The whole point of image builder is that it you don’t compile anything, just smash an image together with the packages you want.

Thanks for your answers.

To rebuild the whole system is to much work. I’m now using the second option and installed the kmod-i2c-gpio-custom module. for more information.