D.Cent Posted July 1, 2016 Posted July 1, 2016 Hi, I just bought an RTC module for my Banana Pi M2, but when scanning for i2c devices I noticed that there are no i2c device nodes in /dev using the latest Armbian version (5.15). Is there any way to get it working? Modprobing i2c-dev or any other modules I've found didn't help Thanks in advance!
Igor Posted July 1, 2016 Posted July 1, 2016 There are no definitions for I2C among arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts device tree. Try adding: &i2c1 { pinctrl-names = "default"; pinctrl-0 = <&i2c1_pins_a>; status = "okay"; }; &i2c2 { pinctrl-names = "default"; pinctrl-0 = <&i2c2_pins_a>; status = "okay"; }; ... and recompile.
D.Cent Posted July 1, 2016 Author Posted July 1, 2016 Thanks for your help! I changed the DTS file, compiled u-boot using your build script and replaced the pre-installed sun6i-a31s-sinovoip-bpi-m2.dtb with the new one (and rebooted). However, there's still no i2c device do I also have to compile and replace the whole bootloader?
D.Cent Posted July 1, 2016 Author Posted July 1, 2016 Nevermind! The changes got lost because of the compile script it reset the git tree of u-boot and my changes got lost. After fixing this, it is now working - thanks! 1
Recommended Posts