Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

i2c support on Banana Pi M2 (A31s)

Featured Replies

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!

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.

  • Author

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?

  • Author

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!

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.