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.

Orange Pi one two usb host ports possible?

Featured Replies

I have a orange pi one lying around.

I need two usb ports. Is it possible to use the otg port as host port? (Need wifi and a webcam)

 

The seach didn't give me an answer...

 

If i post in a wrong section pls. move. Thanks

 

Markus

1 hour ago, MacBreaker said:

Ok, wrong question..

Is it possible to use the usb otg port as host post?

 

As I read

http://www.orangepi.org/orangepibbsen/forum.php?mod=viewthread&tid=3399
it seems to be possible.
At the URL is a information how to change the .DTB for the OPi Zero to use the USB-OTG as USB-HOST

 

You have to find the right usb-port (usb@1c19000) in the .DTB/.DTS for the OPi One

 

DTB to DTS decompile

dtc -I dtb -O dts /boot/dtb/sun8i-h3-orangepi-one.dtb -o /boot/dtb/sun8i-h3-orangepi-one.dts

 

EDIT

change in the .DTS:

change the line:
                        dr_mode = "otg";
to                     dr_mode = "host";

in the section

usb@1c19000

 

from:

                usb@1c19000 {
                        compatible = "allwinner,sun8i-h3-musb";
                        reg = <0x1c19000 0x400>;
                        clocks = <0x03 0x20>;
                        resets = <0x03 0x11>;
                        interrupts = <0x00 0x47 0x04>;
                        interrupt-names = "mc";
                        phys = <0x10 0x00>;
                        phy-names = "usb";
                        extcon = <0x10 0x00>;
                        dr_mode = "otg";
                        status = "okay";
                        phandle = <0x48>;
                };

                          
to:
                          
                usb@1c19000 {
                        compatible = "allwinner,sun8i-h3-musb";
                        reg = <0x1c19000 0x400>;
                        clocks = <0x03 0x20>;
                        resets = <0x03 0x11>;
                        interrupts = <0x00 0x47 0x04>;
                        interrupt-names = "mc";
                        phys = <0x10 0x00>;
                        phy-names = "usb";
                        extcon = <0x10 0x00>;
                        dr_mode = "host";
                        status = "okay";
                        phandle = <0x48>;
                };
                          

 

 

DTS to DTB compile

dtc -I dts -O dtb /boot/dtb/sun8i-h3-orangepi-one.dts -o /boot/dtb/sun8i-h3-orangepi-one.dtb

 

then REBOOT

 

As attachment the new compiled version (when you have the same kernel as I 5.15.4 :)

 

@MacBreaker

PS: Liebe Gruesse nach Hessen - vor 6 Jahren habe ich in Babenhausen bei Frankfurt/Darmstadt gewohnt - nun in der Tuerkei....

sun8i-h3-orangepi-one.dtb

  • Author

Yes, that was the information what I was missing..

 

I was thinking about that, but I didn't find that information.

 

Thanks for sharing your DTB, but i'm on 5.10.60.

I froze the kernel and changed my DTB, all is fine now!

 

@guidol

 

Liebe Grüsse aus Bishkek/Kirgistan wo ich zeitweise außer in Haiger/Hessen lebe..

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.