USB-port powering & CEC support - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: General Discussion on ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=86) +--- Thread: USB-port powering & CEC support (/showthread.php?tid=4848) |
USB-port powering & CEC support - gonzo - 08-04-2017 Hello everyone! where i can get the Information if it’s possible to power up/down the USB-ports seperately? I' m not sure if the information under the storage section at http://wiki.pine64.org/index.php/ROCK64_Main_Page :
I’m looking forward to buy this board and use it as kind of all-in-one-device (router, wifi ac with USB wifi dongle, kodi 4k video player, pi-hole-like ad-filter and something like a NAS. For this reason i need to know if i can power an external USB 2.0 or 3.0 harddrive on demand only for example for a scheduled backup-task. Afterwards i wish to cut the power thus the hard drive don’t has to run all the time unlike the board itself (which should run 24/7). Also it would nice to know which commands are used to enable USB Powering ON/OFF for each USB-port My 2nd question: Is the rock64 media board fully supported with CEC controls using Linux Distributions? Thanks in advance RE: USB-port powering & CEC support - Luke - 08-04-2017 Can't answer your question (someone who can will show up soon I'm sure). I'd just like to ask that you don't post the same thread multiple times - new users posts need to be moderated. Posting multiple times just make the process longer. Thanks. RE: USB-port powering & CEC support - gonzo - 08-04-2017 (08-04-2017, 03:54 AM)Luke Wrote: Can't answer your question (someone who can will show up soon I'm sure). I'd just like to ask that you don't post the same thread multiple times - new users posts need to be moderated. Posting multiple times just make the process longer. OK & thank you, just want to sorry, because i wondered why the post didn't came up instantly ... the fordwarding message which tells that any new thread will be checked by moderators was just to fast or not shown long enough but at the 2nd try i was able to take a screenshot and see the information. RE: USB-port powering & CEC support - pfeerick - 08-04-2017 (08-04-2017, 03:42 AM)gonzo Wrote: Where i can get the Information if it’s possible to power up/down the USB-ports seperately? Preproduction rock64s appeared to be able to toggle the USB2 ports via GPIO0_A2, and the USB3 port via GPIO0_A0 (but I never got around to testing that), but from the v2 (production release) schematics, it looks like the USB2 port power is still toggleable via GPIO0_A2, but the USB3 port connected is connected to the PWR_LED line on the RK805 PMIC, so unless we can a) talk to the RK805 and b) it allows the PWR_LED to be toggled, the USB3 port power probably can't be toggled. To toggle the power, to test the functionality, you should, as root (i.e. sudo -i) be able to do the following (where GPIO0_A2 calculates to sysfs 2) Code: echo 2 > /sys/class/gpio/export #enable use of pin by sysfs The application note for that SY6280 current limiter chip (which is what should allow the ports to be turned on and off) says it is enabled when high, so by rights, doing the echo 0 should power down the port... and there is also the possibility that functionality hasn't been enabled in the device tree... RE: USB-port powering & CEC support - gonzo - 08-04-2017 (08-04-2017, 07:46 AM)pfeerick Wrote:(08-04-2017, 03:42 AM)gonzo Wrote: Where i can get the Information if it’s possible to power up/down the USB-ports seperately? Thank you! Hm so it is still unknown until somebody can test it? The device from preprodution you mean... do you think it was able to power the USB2 ports separately from each other or does gpio2 low mean, that both ports will go down. i was not able to guess is... sorry RE: USB-port powering & CEC support - tllim - 08-04-2017 Just know that CEC has been implemented on upcoming LibreElec build. RE: USB-port powering & CEC support - pfeerick - 08-04-2017 (08-04-2017, 09:53 AM)gonzo Wrote: Thank you! Hm so it is still unknown until somebody can test it? The device from preprodution you mean... do you think it was able to power the USB2 ports separately from each other or does gpio2 low mean, that both ports will go down. i was not able to guess is... sorry Well, it didn't work for me when I tried just then, but I haven't tracked it down through the DTS to see if the sysfs IO is even hooked up properly, or is overridden by something else. The two USB2 ports don't appear to be independently controlled. They have independent current limiters, but the enable pins are tied together, and then hooked up to GPIO0_A2. So when it does work, it'll be a USB2 ports on or USB2 ports off affair. Because the USB3 port is always on, and you mentioned AC wireless, I'd be plugging that into the USB3 port, and then a HDD into one of the USB2 ports (probably the bottom one, I avoid USBOTG ports when any performance is needed as they tend to be slower unless they can be bypassed properly). Then you'd get the on/off functionality you want... unless you need the second USB2 port for something else that you would want to stay on... once somebody works out why it isn't working atm, of course RE: USB-port powering & CEC support - gonzo - 08-07-2017 (08-04-2017, 06:57 PM)pfeerick Wrote:(08-04-2017, 09:53 AM)gonzo Wrote: Thank you! Hm so it is still unknown until somebody can test it? The device from preprodution you mean... do you think it was able to power the USB2 ports separately from each other or does gpio2 low mean, that both ports will go down. i was not able to guess is... sorry Hi pfeerick, at all thats sounds really good and seems to be very close to the things i want to do. In order to achieve filetranser over the air with (n-draft or) ac -wifi the USB 3.0 port is the only option. And as you said always on status of the USB 3.0 is made for this wifi-dongle setup. I would buy either this https://goo.gl/DSyZ8w antenna for n-draft or this https://goo.gl/tFsyhH for ac-wifi because i' ve read that they are well supported with linux distributions on arm architecture, too. For backup cases i am not in a rush, so there's enough time for doing backups or download all the stuff via USB 2.0 ports maybe with a transfering rate up to 38-40 MB/s because the rock64 runs 24 hours a day. This speed should be also good enough for watching 4k videos from USB-drive. And for now i have no plans to connect another device to the left USB OTG port, so i don't care if the USB2 ports don't have the ability to get powered indepentently. To sum up and hopefully for my correct understanding (please correct me if i'm wrong): you have successfully tested USB2 power off / power on functionality? And if i don't care if or when the USB3 powering option will be supported at any time in the future or not, and the same for the USB 2 working independent power off / power on functionality then i can order the board for my planned usage? (the on demand access to usb i want to realize with a bunch of scripts depending on the activity: watching videos, starting downloads, back up tasks and as said afterwards i with to power off the hard drive) Regearding the CEC topic...i hope that upcoming libre elec support is connected with support on more "open" linux distributions like debian or arch soon, too. Again thanks a lot for your support! |