All of lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: Tim Harvey <tharvey@gateworks.com>
Cc: Schrempf Frieder <frieder.schrempf@kontron.de>,
	u-boot <u-boot@lists.denx.de>, Peng Fan <Peng.Fan@nxp.com>
Subject: Re: iMX8MM USB support?
Date: Thu, 1 Jul 2021 20:15:38 -0300	[thread overview]
Message-ID: <CAOMZO5D6n5FS+bQEx19Z0LHRd2OCAdm5Z98zGYjwT-Nuq8==jg@mail.gmail.com> (raw)
In-Reply-To: <CAJ+vNU0g_Fc2uPnQgA6g73bn+ZH80AM_qFHeoJ2Oy71OjVDcDA@mail.gmail.com>

Hi Tim and Schrempf,

On Fri, Apr 10, 2020 at 3:37 PM Tim Harvey <tharvey@gateworks.com> 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

  reply	other threads:[~2021-07-01 23:15 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-01 17:55 iMX8MM USB support? Tim Harvey
2020-04-01 21:34 ` Igor Opaniuk
2020-04-02  1:02   ` Sherry Sun
2020-04-06  9:43 ` Schrempf Frieder
2020-04-07 17:06   ` Tim Harvey
2020-04-08  7:35     ` Schrempf Frieder
2020-04-08 15:31       ` Tim Harvey
2020-04-09 10:02         ` Schrempf Frieder
2020-04-09 21:45           ` Tim Harvey
2020-04-10 18:37             ` Tim Harvey
2021-07-01 23:15               ` Fabio Estevam [this message]
2021-07-01 23:58                 ` Tim Harvey
2021-07-02  0:36                   ` Fabio Estevam
2021-07-02  0:49                     ` Tim Harvey
2021-07-02  0:56                       ` Fabio Estevam
2021-07-02  1:13                       ` Fabio Estevam
2021-07-02  1:36                         ` Fabio Estevam
2021-07-02 14:50                           ` Fabio Estevam
2021-07-02 21:12                             ` Tim Harvey
2021-07-02 21:32                               ` Fabio Estevam
2022-03-09 10:52               ` Michael Nazzareno Trimarchi
2022-03-09 11:06                 ` Tommaso Merciai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOMZO5D6n5FS+bQEx19Z0LHRd2OCAdm5Z98zGYjwT-Nuq8==jg@mail.gmail.com' \
    --to=festevam@gmail.com \
    --cc=Peng.Fan@nxp.com \
    --cc=frieder.schrempf@kontron.de \
    --cc=tharvey@gateworks.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.