Jump to content

Recommended Posts

Posted

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

Posted (edited)

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
Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines