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
FS#2279 - USB not working on MikroTik RB2011UAS-2HnD #7328
Comments
xback: I'll take a look at it, but without any promises :) |
timk: Thanks Koen, let me know how I can help! Cheers |
ynezz: Probably some GPIO pin needs to be enabled in order to provide 5V power to the USB port? |
xback: According to the MikroTik website, the port is meant to function in host mode. |
xback: Here is the full bootlog with my USB stick attached. (master branch) Interesting part: So physically, it all looks OK. |
xback: Hi Tim, I tested this on a plain OpenWRT installation (master branch) and the Could you kindly elaborate a bit on which device you are connecting to it? The port (although it's micro-usb port) is intended to work in host mode, In case you want to connect the RB2011 to your computer or such you would need to make Please let us know so we can conclude this ticket. Appreciated, Koen |
timk: Hi Koen, Thanks very much for your time on this. I'm using the MikroTik supplied USB OTG cable and I'm connecting this device to it: I can try with another device, although I suspect it will not work as I don't get the relevant "ehci-platform" lines in my boot log like you do. My router must be older than yours, it reports itself as a RouterBOARD 2011UAS-2HnD with AR9344 rev 2. I seem to recall in the code it has a case statement looking at the device strings (2011UAS-2HnD etc) and doing different initialisation for each. I was going to look at this next. You can see my full boot log here: Cheers |
xback: Hi Tim, Thanks for the details! I've checked the machtypes and init code for master and 18.06 branches, and your model should load load the USB init code path. |
xback: Tim, As discussed on chat. Booting with a USB stick attached seems to work. Full bootlog: https://pastebin.com/raw/Gb8jREZU Regards, Koen |
timk: Hi Koen, I have tried several USB devices now but have the same outcome, I would have assumed this is a hardware problem if it weren't for the fact my friend's RB2011 does the same thing! Is it too much trouble for you to boot either 18.06.1 or 18.06.2 and ensure you get the same outcome? Alternatively do you know of any potential changes between my snapshot of r9987-655fff1571 and the one you booted that may have an effect? Are you using the MikroTik supplied USB OTG cable also? Cheers! |
timk: Instead I decided to update to latest snapshot (r10231-1fd900ddc2), and I can confirm USB is now working fine! :)
Thanks again for your help! |
xback: Hi Tim, Thanks for letting me know! Enjoy your USB :) Regards |
timk:
Hi,
I'm not able to get USB to do anything on my MikroTik RB2011UAS-2HnD.
I have tried both the latest snapshot (OpenWrt SNAPSHOT r9987-655fff1571) and 18.06.2, both have the same issue. I have also asked a friend to test his RB2011 on 18.06.1 and we both had the same outcome.
Nothing about the USB controller is mentioned in the kernel log at bootup or when devices are added/removed.
The contents of /sys/kernel/debug/usb/devices is completely blank.
I've added the kernel bootup messages to this forum post:
https://forum.openwrt.org/t/usb-not-working-on-mikrotik-rb2011uas-2hnd/36585
Thank you for OpenWrt! :)
The text was updated successfully, but these errors were encountered: