cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
288 Views
Registered: ‎10-22-2018

USB work fine under QSPI boot mode but not SD boot mode

Problem

   - USB works fine when Linux boots from QSPI. But it does not work while booting from SD card.

 

Description

   - Setup

      + Hardware. Custom borad of ZU9EG

      + Toolchain. 2017.2 PetaLinux, 2018.2 Vivado

   - Details

      + Phenomenon. Under each mode, Linux can be logged in. For USB when Linux boots from QSPI, USB wired keyboard insertion can be detected. However, if board boots from SD card, the keyboard insertion cannot be detected.

      + Generated USB device tree

		usb0 {
			#address-cells = <0x2>;
			#size-cells = <0x2>;
			status = "okay";
			compatible = "xlnx,zynqmp-dwc3";
			reg = <0x0 0xff9d0000 0x0 0x100>;
			clock-names = "bus_clk", "ref_clk";
			#stream-id-cells = <0x1>;
			iommus = <0x7 0x860>;
			power-domains = <0x25>;
			ranges;
			nvmem-cells = <0x18>;
			nvmem-cell-names = "soc_revision";
			clocks = <0x3 0x20 0x3 0x22>;

			dwc3@fe200000 {
				compatible = "snps,dwc3";
				status = "okay";
				reg = <0x0 0xfe200000 0x0 0x40000>;
				interrupt-parent = <0x4>;
				interrupts = <0x0 0x41 0x4 0x0 0x45 0x4>;
				snps,quirk-frame-length-adjustment = <0x20>;
				snps,refclk_fladj;
				dr_mode = "host";
			};
		};

      + Identical USB related boot logs

[    1.388054] usbcore: registered new interface driver usbfs
[    1.388054] usbcore: registered new interface driver usbfs
[    1.388175] usbcore: registered new interface driver hub
[    1.388325] usbcore: registered new device driver usb
[    1.388325] usbcore: registered new device driver usb
[    3.096305] usbcore: registered new interface driver asix
[    3.101748] usbcore: registered new interface driver ax88179_178a
[    3.107826] usbcore: registered new interface driver cdc_ether
[    3.113639] usbcore: registered new interface driver net1080
[    3.119283] usbcore: registered new interface driver cdc_subset
[    3.125189] usbcore: registered new interface driver zaurus
[    3.130765] usbcore: registered new interface driver cdc_ncm
[    3.136984] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.148270] usbcore: registered new interface driver uas
[    3.153591] usbcore: registered new interface driver usb-storage
[    3.153591] usbcore: registered new interface driver usb-storage
[    3.233588] usbcore: registered new interface driver bcm203x
[    3.239248] usbcore: registered new interface driver bpa10x
[    3.244822] usbcore: registered new interface driver bfusb
[    3.244822] usbcore: registered new interface driver bfusb
[    3.250306] usbcore: registered new interface driver btusb
[    3.250306] usbcore: registered new interface driver btusb
[    3.261515] usbcore: registered new interface driver ath3k
[    3.371128] usbcore: registered new interface driver usbhid
[    3.371128] usbcore: registered new interface driver usbhid
[    3.376625] usbhid: USB HID core driver
[    3.376625] usbhid: USB HID core driver
[    3.685503] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[    3.708121] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.708121] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.708121] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.714838] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.714838] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.714838] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.722044] usb usb1: Product: xHCI Host Controller
[    3.722044] usb usb1: Product: xHCI Host Controller
[    3.726897] usb usb1: Manufacturer: Linux 4.9.0-xilinx-v2017.2 xhci-hcd
[    3.726897] usb usb1: Manufacturer: Linux 4.9.0-xilinx-v2017.2 xhci-hcd
[    3.733494] usb usb1: SerialNumber: xhci-hcd.0.auto
[    3.733494] usb usb1: SerialNumber: xhci-hcd.0.auto
[    3.739010] hub 1-0:1.0: USB hub found
[    3.752354] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[    3.760038] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.760038] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    3.768133] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    3.768133] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    3.768133] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    3.774841] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.774841] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.774841] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.782052] usb usb2: Product: xHCI Host Controller
[    3.782052] usb usb2: Product: xHCI Host Controller
[    3.786904] usb usb2: Manufacturer: Linux 4.9.0-xilinx-v2017.2 xhci-hcd
[    3.786904] usb usb2: Manufacturer: Linux 4.9.0-xilinx-v2017.2 xhci-hcd
[    3.793501] usb usb2: SerialNumber: xhci-hcd.0.auto
[    3.793501] usb usb2: SerialNumber: xhci-hcd.0.auto
[    3.798965] hub 2-0:1.0: USB hub found

Question

   - What might cause this problem ? Hope for your reply. Thanks !

0 Kudos