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.

enable i2c at u-boot for NanoPi Neo2

Featured Replies

Hi,

I tried to enable the i2c in u-boot by using the config flags shown in the Readme. But I had no success.

What do I miss?

  • Author

I’ve done this and in Linux I can access the i2c0, but I want to access it in u-boot.

And i'm stuck there.

I added the following code into the sun50i-h5-nanopi-neo2.dts, but now I see the i2c bus, but it is shown as Bus -1 and I can't access it

&i2c0 {
	pinctrl-names = "default";
	pinctrl-0 = <&i2c0_pins>;
	status = "okay";
};

 

16 minutes ago, rlu said:

but I want to access it in u-boot

Why do you need i2c0 in u-boot itself ?

You will need to compile a u-boot yourself with CONFIG_I2C0_ENABLE=y in the board defconfig.

 

EDIT : In the current v2018.05, I'm only seeing 2 boards that have it :

cache/sources/u-boot/v2018.05/configs/Colombus_defconfig:CONFIG_I2C0_ENABLE=y
cache/sources/u-boot/v2018.05/configs/Cubietruck_plus_defconfig:CONFIG_I2C0_ENABLE=y

 

  • Author

I compiled u-boot myself and added the CONFIG_I2C0_ENABLE=y to the defconfig.

After that I wasn't able to see the i2c0 in u-boot.

then I added the code above and now I see the i2c bus. But I can't access it, because it is shown as Bus -1.

 

At the moment it is only an exercise to get common with u-boot. Later I want to get dual boot via u-boot

  • Author

The I2C is for enabling a Bakebit Oled for Boot, so that I later can select which OS I want to use from my dual boot

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.