• 0
sulrnarum

USB-OTG on Zedboard running Arch Linux

Question

Hi, I'm running Arch Linux (https://archlinuxarm.org/platforms/armv7/xilinx/zedboard) on Zedboard and I'd like to use the OTG-USB as a host, but my Zedboard doesn't seem to detect the device plugged in (I've tried a USB flash drive). What are your suggestions? I've followed the instructions on http://zedboard.org/sites/default/files/documentations/GS-AES-Z7EV-7Z020-G-V7-1.pdf , but Zedboard just won't see the device.

 

Edited by sulrnarum

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
On 6/9/2018 at 6:36 AM, sbobrowicz said:

@sulrnarum

Did you short JP2 and JP3? They will need to be shorted to act as a USB host.

Yes, I did short them. I've followed everything from the linked instructions.

Share this post


Link to post
Share on other sites
  • 0

It could be the device tree, can you provide the node for the USB controller?

I'm not familiar with the archlinux docs and images you are using, so I can't really say off the top what is wrong. You could use the Petalinux BSP (which includes pre-built images) from Xilinx as an example of a working linux system with USB host. That could help you pinpoint what is wrong in the archlinux image.

Share this post


Link to post
Share on other sites
  • 0

Try replacing the usb phy node with:

	usb_phy0: usb_phy@0 {
		compatible = "ulpi-phy";
		#phy-cells = <0>;
		reg = <0xe0002000 0x1000>;
		view-port = <0x0170>;
		drv-vbus;
	};

And update the phy handle property in the usb controller:

usb-phy = <&usb_phy0>;

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now