Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberry Pi 4 support? #204

Closed
vsg24 opened this issue Dec 27, 2019 · 11 comments
Closed

Raspberry Pi 4 support? #204

vsg24 opened this issue Dec 27, 2019 · 11 comments

Comments

@vsg24
Copy link

vsg24 commented Dec 27, 2019

Does this program work under Raspberry Pi 4?

@vsg24 vsg24 changed the title Raspberry Pie 4 support? Raspberry Pi 4 support? Dec 27, 2019
@srijansaxena11
Copy link

+1. Even if it is not completely supported let us know. I currently am using pen drive on one of the USB 3.0 ports. Other 3 ports are available to be used, one of which I have to connect to display/touchscreen which I have to turn off at night by turning off the USB port to which it is connected. Even if both USB 2.0 ports are turned off it is fine.

@mvp
Copy link
Owner

mvp commented Dec 29, 2019

Sorry it took so long to respond, I was traveling.
This is ongoing effort tracked in raspberrypi/linux#3079
We still have improper usb descriptors reported by RPi 4, even after using latest beta firmware.
There is a way to hack it in uhubctl, but it is very kludgy - it would still require you to execute uhubctl twice.
Unfortunately, I don't have RPi 4 to provide reliable fix quickly, but this effort will continue.

@mvp
Copy link
Owner

mvp commented Dec 31, 2019

@vsg24 , @srijansaxena11 , can you please try compiling from rpi4 branch https://github.com/mvp/uhubctl/tree/rpi4?

You may need need to flash new USB firmware https://www.raspberrypi.org/forums/download/file.php?id=33477&sid=d08e808232df0e2ac10eb1af53932f36
per this article: https://www.raspberrypi.org/forums/viewtopic.php?t=258489

You don't need to use patches mentioned in that article, and should not need to use -e.
However, power switching may still require turning off power on all ports, e.g.

To turn off:

sudo uhubctl -a 0 -l 2

To turn on:

sudo uhubctl -a 1 -l 2

@mvp
Copy link
Owner

mvp commented Jan 3, 2020

Bump: I need someone to try rpi4 fix. I don't have Raspberry Pi 4 (unless you want to send me one 😄 ).
Steps:

  1. Flash this USB firmware to your RPi4: https://www.raspberrypi.org/forums/download/file.php?id=33477&sid=d08e808232df0e2ac10eb1af53932f36
  2. Build uhubctl with the fix:
git clone https://github.com/mvp/uhubctl -b rpi4
cd uhubctl
make
  1. Check if power switching is working:
# off:
sudo uhubctl -a 0 -l 2
# on:
sudo uhubctl -a 1 -l 2

@mvp
Copy link
Owner

mvp commented Jan 5, 2020

Thanks to @justinasjaronis providing ssh access to RPi4, I think I have a fix 7277ae4.
Can someone please try building uhubctl from https://github.com/mvp/uhubctl/tree/rpi4, and try it per instructions above? Thanks!

@mvp
Copy link
Owner

mvp commented Jan 5, 2020

Fix is merged to master 4aae44c.
It is confirmed working by at least 2 other people.

@mvp mvp closed this as completed Jan 5, 2020
@radokristof
Copy link

@mvp so it works for all USB ports? The README says that only port 4 will work on an RPi 4.
How can I identify what is the 4th port of the RPi 4?

@mvp
Copy link
Owner

mvp commented Jan 14, 2020

Turning off port 4 kills power on all remaining ports.

@radokristof
Copy link

Ok so it doesn't matter which port you use, just need to specify port 4 to cut power?

@mvp
Copy link
Owner

mvp commented Jan 14, 2020

Yes. I don't have physical access to rpi4b, you might want to experiment with it yourself :-)

@radokristof
Copy link

Ok, I'll try :) I want to use a project that uses this, so I don't know how it is handled there, but I'll try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants