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.

OrangePi One usb OTG no power in host mode

Featured Replies

a device hooked up on the microusb OTG port does not power up anymore (webcam, used to work a long time ago then I did system update but did not configure the webcam again, until now...)

 

bruno@orangepione:~$ sudo cat /sys/kernel/debug/gpio
[sudo] password for bruno:
gpiochip0: GPIOs 0-223, parent: platform/1c20800.pinctrl, 1c20800.pinctrl:
 gpio-15  (                    |orangepi:red:status ) out lo
 gpio-166 (                    |cd                  ) in  lo ACTIVE LOW
 gpio-204 (                    |usb0_id_det         ) in  lo IRQ

gpiochip1: GPIOs 352-383, parent: platform/1f02c00.pinctrl, 1f02c00.pinctrl:
 gpio-354 (                    |usb0-vbus           ) out lo
 gpio-355 (                    |sw4                 ) in  hi IRQ ACTIVE LOW
 gpio-358 (                    |vdd-cpux            ) out hi
 gpio-362 (                    |orangepi:green:pwr  ) out hi
 

Looks like no power on usb0, which should be enabled in host mode

I enabled in armbian-config hardware configuration usbhost 0 to 4 (shows in armbianEnv.txt )

I edited sun8i-h3-orangepi-one.dtb so that usb0 dr_mode is set to "host" (like shown here https://forum.armbian.com/topic/4814-orange-pi-one-usb-otg/?do=findComment&comment=44756 )

I perused this thread https://forum.armbian.com/topic/8686-orange-pi-lite-using-micro-usb-otg-as-host-for-usb-camera/ and verified handles and setting seem to match.

 

Seems no matter what, usb0 is not powered. 

 

 

What am I missing ?

Any help greatly appreciated...

 

sun8i-h3-orangepi-one.dtb sun8i-h3-orangepi-one.dts

  • Author

armbianmonitor can not upload for whatever reason so here is the output from armbianmonitor -U

 

armbianmonitor.log

 

bruno@orangepione:~$ less /boot/armbianEnv.txt
verbosity=1
bootlogo=false
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
rootdev=UUID=2f506a90-a24d-4930-a5bb-8d61ce45629a
rootfstype=ext4
overlays=usbhost0 usbhost1 usbhost2 usbhost3
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
 

Edited by bschwand

  • Author

I don't understand, I did a system update/upgrade with armbian-config before posting here.

so I thought I was running latest version already.

 

ok so now I just ran directly from CLI:

sudo apt update

sudo apt upgrade

bruno@orangepione:~$ uname -a
Linux orangepione 6.4.12-edge-sunxi #2 SMP Wed Aug 23 15:32:56 UTC 2023 armv7l armv7l armv7l GNU/Linux
 

and my usbhost is indeed powering up.

dang, that was silly... thanks for pointing out my system was far out of date.

 

Thanks and cheers !

 

 

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.