<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 10, 2017 at 7:14 PM, Kevin O'Connor <span dir="ltr"><<a href="mailto:kevin@koconnor.net" target="_blank">kevin@koconnor.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Mon, Jan 09, 2017 at 09:31:22AM +0200, Евгени Димитров wrote:<br>
> On Fri, Jan 6, 2017 at 4:46 PM, Kevin O'Connor <<a href="mailto:kevin@koconnor.net">kevin@koconnor.net</a>> wrote:<br>
> > Are you trying to boot from the "Multimedia Card Reader" or from a<br>
> > regular USB flash drive?  If you're not booting from the card reader,<br>
> > does the patch below help?<br>
><br>
> I was trying to boot from whatever USB devices I can get my hands on.<br>
> Ultimately my goal is to boot from a regular flash drive. The patch doesn't<br>
> help.<br>
<br>
I'm not sure what is happening - it looks like the controller is<br>
shutting down, but it's unclear why.  What do you get with the patch<br>
below?<br>
<br>
-Kevin<br>
<br>
<br>
--- a/src/hw/usb-ehci.c<br>
+++ b/src/hw/usb-ehci.c<br>
@@ -519,6 +519,9 @@ ehci_wait_td(struct ehci_pipe *pipe, struct ehci_qtd *td, u32 end)<br>
             ehci_reset_pipe(pipe);<br>
             struct usb_ehci_s *cntl = container_of(<br>
                 GET_LOWFLAT(pipe->pipe.cntl), struct usb_ehci_s, usb);<br>
+            if (!MODESEGMENT)<br>
+                dprintf(1, "ehci usbcmd=%08x usbsts=%08x\n"<br>
+                        , cntl->regs->usbcmd, cntl->regs->usbsts);<br>
             ehci_waittick(cntl);<br>
             return -1;<br>
         }<br>
</blockquote></div></div><div class="gmail_extra"><br></div></div>