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 Duo OTG works with FriendlyElec image, but not Armbian (SOLVED)

Featured Replies

I just got 4 NanoPi Duos v1.1 and the OTG port functions (unlike v1.0)! This is with the FriendlyElec image. I was wondering should I compare the FriendlyElec's sun8i-h2-plus-nanopi-duo.dtb to the one on Armbian? I already tried messing with Armbian's sun8i-h2-plus-nanopi-duo.dtb by changing usb@01c19000 status = "okay" and adding dr_mode = "host". I'm not sure I can just drop in the dtb? Any way, I'll see what I can figure out. I'm excited the OTG port works now for more than just power since that saves you from buying the Mini Shield if you have a simple project that just needs a USB drive or camera.

  • Author

OK, solved this by using FriendlyElec's dtb! Armbian folks may want to use this DTB instead of what's in the current distro. lsusb show thumb drive:

 

Bus 001 Device 002: ID 090c:1000 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Flash Drive

IMG_20180122_205953.thumb.jpg.98bceba6255809c9ceeaa8de94f85d08.jpg

Ideally adding this to the dts should do the trick:

 

&usb_org {

   dr_mode = "host";

   status = "okay";

};

 

Since my Duo is V1.0  I can't test though ...

 

There's a typo in my code above - it should say &usb_otg, not &usb_org (thick fingers, sorry!):

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

Did you catch that? If not, maybe give at another go with the above modification.

This tag corresponds to the following part of the friendlyelec "all-in-one" dts:

		usb@01c19000 {
			compatible = "allwinner,sun8i-h3-musb";
			reg = <0x1c19000 0x400>;
			clocks = <0x4 0x20>;
			resets = <0x4 0x11>;
			interrupts = <0x0 0x47 0x4>;
			interrupt-names = "mc";
			phys = <0x1c 0x0>;
			phy-names = "usb";
			extcon = <0x1c 0x0>;
			status = "okay";
			dr_mode = "otg";
		};

Based on that I would try exchanging "host" for "otg" in the dr_mode tag.

 

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.