From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9C63BC11F67 for ; Thu, 1 Jul 2021 23:15:59 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BA3C2613BD for ; Thu, 1 Jul 2021 23:15:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA3C2613BD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5772882C1D; Fri, 2 Jul 2021 01:15:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Gf1p2lyK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0A6B782C23; Fri, 2 Jul 2021 01:15:54 +0200 (CEST) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 17C2A82C1C for ; Fri, 2 Jul 2021 01:15:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=festevam@gmail.com Received: by mail-lj1-x229.google.com with SMTP id u25so10722536ljj.11 for ; Thu, 01 Jul 2021 16:15:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q65McvlvrBVtyMg7q4UhNzQyKZFTfBNrdsNMi5hysa0=; b=Gf1p2lyKqS0WzsuO4Q66vM1KitNmEqaqB9x1rLXnWYnf55K+EIGEXlB4letHxEZfzW 08/P70icEQJoC31OaMa53jzcpYbZHpj9g4ia1fermdQgLcaZs8qtMj8Cv1NGY/CrazbB 2NBhAijLJPC4uTqRAoxaM+pFxxQbPHrwwcZZ8sy9mCjWKEXdCF8BdhBGdX72FjMcJrFF V9GmCOt4Nvon1BtHWBGIJkgcyXAEEHKDWeQtmyiyUvjvKttbURITkj3X18yEeWCOkRbq Dj4S4ULbh24s9tMJduYeKYAL4s3IYTFV3nkd52TeNECPHLU1As0xfu+6xNZRbKd+w/hD /m7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q65McvlvrBVtyMg7q4UhNzQyKZFTfBNrdsNMi5hysa0=; b=hZ6SpmucmkE5wRTlSXo9lKncuIKp1j25TdCFJ9MEPsMNYw1uDvXad0iQYZTkGMgo97 UkXjVWpTuIjDJP2WTVUddQy412j1nxY46wJZ2raH2y8RQJ2l0LrXPNWZQlDPcP6pYItc YrIc/4XHxK3a5dFOtvyXmmRK6jxXb263AOeDy9P2qYZlMZVRibTdxSJGJMsrUZ8iywRa KlpiIUKJgtAnHSijhsMxu3xW7zxeD38tZ/wUIs3WqDrsDUCmHx3dlicGx1S8Yvxnev1y xTePVBnNd0dbpslCcGcLMYZ3jOttKRZ+hKYyScjK8sUgc8BH4hHKW6l7xB4KqLZEwxE8 +Xsw== X-Gm-Message-State: AOAM532jyFJtFJqkJOGu3/bq8G4tFphWpflAO1aHINb5DhPzDyDn3s7q 3O7/pfuEi7H9g68AKNH4LrbGQTRYWbr1NE4LDfE= X-Google-Smtp-Source: ABdhPJwcNZ5Ys7BQzbb7OGRYweqncGBQlboliPkT2c0JHgaMNLGZ60FUFH94bKS1dOp4E+sxrtXDqBAkCnc/WKwU0cc= X-Received: by 2002:a2e:92cc:: with SMTP id k12mr1529230ljh.116.1625181350389; Thu, 01 Jul 2021 16:15:50 -0700 (PDT) MIME-Version: 1.0 References: <42254730-c8fb-8b1e-0b6e-dd5dd9da57a4@kontron.de> <99d1790f-101a-a09e-503a-4f90775f9d3e@kontron.de> <9d7f8b3a-6e54-9b3b-c820-06678b2c225c@kontron.de> In-Reply-To: From: Fabio Estevam Date: Thu, 1 Jul 2021 20:15:38 -0300 Message-ID: Subject: Re: iMX8MM USB support? To: Tim Harvey Cc: Schrempf Frieder , u-boot , Peng Fan Content-Type: text/plain; charset="UTF-8" X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi Tim and Schrempf, On Fri, Apr 10, 2020 at 3:37 PM Tim Harvey wrote: > Frieder, > > My issue was that I forgot to set ATF_LOAD_ADDR=0x920000! > > So I'm running now, booting imx8mm-evk via SDP using your USB patches > and imx_usb configuration. Sorry for resurrecting such an old thread. I am trying to accomplish the same here: boot imx8mm-evk via SDP. I tried building Schremp's U-Boot from https://git.kontron-electronics.de/linux/u-boot/-/commits/v2020.01-ktn with the additional changes: --- a/configs/imx8mm_evk_defconfig +++ b/configs/imx8mm_evk_defconfig @@ -85,3 +85,14 @@ CONFIG_MXC_UART=y CONFIG_SYSRESET=y CONFIG_SYSRESET_PSCI=y CONFIG_DM_THERMAL=y +CONFIG_SPL_USB_HOST_SUPPORT=y +CONFIG_SPL_USB_GADGET=y +CONFIG_SPL_USB_SDP_SUPPORT=y +CONFIG_SPL_WATCHDOG_SUPPORT=y +CONFIG_USB=y +CONFIG_USB_EHCI_HCD=y +CONFIG_USB_GADGET=y +CONFIG_USB_GADGET_MANUFACTURER="FSL" +CONFIG_USB_GADGET_VENDOR_NUM=0x0525 +CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 +CONFIG_CI_UDC=y diff --git a/include/configs/imx8mm_evk.h b/include/configs/imx8mm_evk.h index 991fe0056c4a..d41704d60754 100644 --- a/include/configs/imx8mm_evk.h +++ b/include/configs/imx8mm_evk.h @@ -35,6 +35,11 @@ #endif +#define CONFIG_EHCI_HCD_INIT_AFTER_RESET +#define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) +#define CONFIG_MXC_USB_FLAGS 0 +#define CONFIG_USB_MAX_CONTROLLER_COUNT 2 + /* Initial environment variables */ #define CONFIG_EXTRA_ENV_SETTINGS \ "script=boot.scr\0" \ but I get the following error: U-Boot SPL 2020.01-01059-geb5a1eb17cea-dirty (Jul 01 2021 - 19:45:58 -0300) Normal Boot WDT: Not found! SPL: Unsupported Boot Device! SPL: failed to boot from all boot devices ### ERROR ### Please RESET the board ### Tim, Do you still have the imx8mm-evk patches and mx8mm_usb_sdp_spl.conf that you used? This version of U-Boot does not generate u-boot.itb by default, so I passed the following line in mx8mm_usb_sdp_spl.conf: .../u-boot/flash.bin:dcd,clear_dcd,plug,jump header Any help is appreciated. I plan to upstream this support once I get it resolved. Thanks, Fabio Estevam