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 21:56:02 -0300	[thread overview]
Message-ID: <CAOMZO5CBGDigz+ceqXLYQO8qG=p_1jh0zBj+VUdJjkG+rQv=5Q@mail.gmail.com> (raw)
In-Reply-To: <CAJ+vNU1zQPJ_K7nCDWyP3Dp9rypj0jiez3iNjS-tTc2hAAfA1A@mail.gmail.com>

Hi Tim,

On Thu, Jul 1, 2021 at 9:49 PM Tim Harvey <tharvey@gateworks.com> wrote:

> Yes, this works on my board. I just sent a v2 of these patches (cc'd you).

I have just tried "ums 0 mmc 1" and it works on a imx8mm-evk now after
applying your patches, thanks!

> By the way, I took a quick stab at enabling SDP on
> imx8mm-venice-gw73xx-0x and found compile issues so I configured for
> an imx8mm_evk using your diffs and hit the same issues.
>
> drivers/usb/host/ehci-mx6.c: In function ‘ehci_hcd_init’:
> drivers/usb/host/ehci-mx6.c:360:46: error: ‘USB_BASE_ADDR’ undeclared
> (first use in this function); did you mean ‘SRC_BASE_ADDR’?
>   struct usb_ehci *ehci = (struct usb_ehci *)(USB_BASE_ADDR +
>                                               ^~~~~~~~~~~~~
>                                               SRC_BASE_ADDR
> drivers/usb/host/ehci-mx6.c:360:46: note: each undeclared identifier
> is reported only once for each function it appears in
> drivers/usb/host/ehci-mx6.c:361:4: error: ‘controller_spacing’
> undeclared (first use in this function); did you mean ‘console_start’?
>    (controller_spacing * index));
>     ^~~~~~~~~~~~~~~~~~
> ...
>
> The above is resolved with CONFIG_DM_USB=y and CONFIG_SPL_DM_USB=y
>
> After enabling those I just run into other issues with things such as:
> WARNING 'mkimage.flash.mkimage' not found, resulting binary is not-functional
>  ...
> aarch64-linux-ld.bfd: cmd/nvedit.o: in function `env_match':
> /usr/src/venice/uboot-master/cmd/nvedit.c:824: undefined reference to
> `env_get_char'
> aarch64-linux-ld.bfd: /usr/src/venice/uboot-master/cmd/nvedit.c:828:
> undefined reference to `env_get_char'
> ...
>
> What branch were you working with here? I tried the above with v2021.07-rc5

I am also testing against 2021.07-rc5.

Please see the complete diff (your patches + imx8mm_evk defconfig
changes against 2021.07-rc5):
https://pastebin.com/raw/BtCD0xat

Now the missing part is SDP. Hopefully we can get SDK working too.

Thanks!

  reply	other threads:[~2021-07-02  0:56 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
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 [this message]
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='CAOMZO5CBGDigz+ceqXLYQO8qG=p_1jh0zBj+VUdJjkG+rQv=5Q@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.