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.

NanoPi NEO AIR USB OTG and I2C

Featured Replies

Hello guys,

 

I've been trying for the past month to get USB OTG and I2C to work on a NanoPI NEO AIR running Armbian, without any success. For OTG what I've tried was adding the following to "sun8i-h3-nanopi-neo-air.dts":

 

&usb_otg {
        dr_mode = "otg";
        status = "okay";
};

I have also enabled OTG and I2C in the kernel config menu, but for I2C I couldn't find what to put inside the DTS file.

 

Can someone give me pointers on how to solve this, please? Yes, I am a very inexperienced developer when it comes to embedded systems and have very poor understanding of how to properly configure a device tree source file. Any help would be deeply appreciated. Thank you.

I don't know much about device tree overlays or kernel configs, since there hasn't been a compulsion for me to learn.... yet :P but I have been able to get i2c screens and Serial over USB via OTG working on the NanoPi NeoAir.

And by 'I' Have, I mean others have lead the way and I've stood on their shoulders :D Don't know what exactly you wanna do with i2c/OTG on NPNA but maybe you'll find something useful here: https://github.com/BiTinerary/PocketServerPi

It's the best I can offer, otherwise you'll have to wait for better, more experienced, specific direction. Good luck.

  • Author

@Igor

I had tried what's on the docs before, but it didn't work =/ I am now playing with the DTS, basing myself on the orangepi DTS, but so far I haven't succeeded.

 

About the OTG, I don't know if I am testing it correctly. What I do is the following:

 

modprobe gadgetfs
sudo mkdir /dev/gadget
sudo mount -t gadgetfs gadgetfs /dev/gadget
ls /dev/gadget

But it fails on the third command (sudo mount...). It says: mount: unknown filesystem type 'gadgetfs'. Is this the right way to test it? lsmod shows that gadgetfs is loaded. Thank you.

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.