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.

How to enable i2c3 on Orange Pi Zero 3

Featured Replies

This is a reply to treii28's post from 2023: 

 

To enable i2c on PH4 and PH5 pins, one would have to have to following lines in /boot/armbianEnv.txt files:

Quote

overlay_prefix=sun50i-h616
overlays=i2c3-ph

 

Reboot and see the new devices with:

Quote

ls /dev/i2c*

 

Scan for all the connected i2c devices:

Quote

 

sudo apt install i2c-tools

i2cdetect -y 2

 

 

All relevant (and some extra) overlays can be seen with the following command:

Quote

ls /boot/dtb/allwinner/overlay/sun50i-h616*

 

To see the configuration one could disassemble the dtb binary file and search it's contents for i2c3-ph

Quote

 

cd /boot/dtb/allwinner

dtc -I dtb -O dts sun50i-h618-orangepi-zero3.dtb > opz3.dts

 

 

Whenever making changes it would be the best to connect a serial monitor to the physical serial pins (3 separate pins labeled with UART and GND, RX, TX) to see kernel output at boot (115200 baud rate). The kernel log would have a line for loading the dtbo (or maybe an error for missing file:

Quote

Applying kernel provided DT overlay sun50i-h616-i2c3-ph.dtbo

 

For easier reference there are included lsmod output, kernel config and dts files from an armbian and the opiz version for "original" debian image (distributed by a sketchy Google drive link, it runs an unnecessary service with weird software repositories enabled by default).

 

lsmod-armbian lsmod-opiz kernel-armbian.config kernel-opiz.config opz3-armbian.dts opiz3-opiz.dts

Edited by mpl

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

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.