All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lukasz Majewski <lukma@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP
Date: Wed, 5 Jun 2019 12:31:40 +0200	[thread overview]
Message-ID: <20190605123140.7f8fbefd@jawa> (raw)
In-Reply-To: <56145f763bec0d78b36a3ca92f9459b715d17f18.camel@collabora.co.uk>

Hi Sjoerd,

> On Wed, 2019-06-05 at 11:40 +0200, Lukasz Majewski wrote:
> > Hi Fabio, Sjoerd
> >   
> > > On Tue, Jun 4, 2019 at 5:41 PM Sjoerd Simons
> > > <sjoerd.simons@collabora.co.uk> wrote:
> > >   
> > > > Small steps right; Ooi what imx_usb_loader
> > > > configuration/commands are you using to test this? (I find its
> > > > config rather tricky to grasp).    
> > > 
> > > I simply run:
> > > 
> > > sudo ./imx_usb SPL
> > > 
> > > and then
> > > 
> > > sudo ./imx_usb u-boot-dtb.img
> > > 
> > > I suggest you to try U-Boot 2019.01 on a mx6sabreauto first.
> > >   
> > 
> > Tested-by: Lukasz Majewski <lukma@denx.de>
> > 
> > Test HW: i.MX6Q Display5 factory setup.
> > 
> > 
> > 
> > However, one thing puzzles me - the VID / PID used.When I run uuu
> > (mfgtools: SHA1: 13d187304f4faa473d2141409419c5b6f052addb):
> > 
> > I see that "Build in config" has following VID/PID:
> >         SDPU:    SPL             0x0525  0xb4a4  [0x0000..0x04ff]
> > [1] SDPV:    SPL1            0x0525  0xb4a4  [0x0500..0x9998]
> >         SDPU:    SPL             0x0525  0xb4a4  [0x9999..0x9999]
> > 
> > But to make the SDPU command working I had to adjust it to be
> > similar to sabreauto (CONFIG_USB_GADGET_VENDOR_NUM=0x0525
> > CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5). Those match to "FB"
> > (fastboot?).
> > 
> > Is this a bug or just the "Build in config" information is outdated?
> > With VID/PID set as for [1] (and as we use SDPU command, not FB),
> > the uuu doesn't connect to loaded SPL.  
> 
> So u-boot for the spl does (arch/arm/mach-imx/spl.c):
> ```
> int g_dnl_bind_fixup(struct usb_device_descriptor *dev, const char
> *name) {
>       put_unaligned(CONFIG_USB_GADGET_PRODUCT_NUM + 0xfff,
> &dev->idProduct); ``

Ach... Right.

Thanks for pointing this out.

> 
> Iotw with CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5 in the config when in
> the SPL the product will be 0xb4a4, which uuu recognizes.
> 
> Once in the main u-boot image in principle you shoudl be able to use
> `FB:`, however it doesn't seem `FB: ucmd` is supported for mainline u-
> boot so...
> 




Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190605/a27a41ae/attachment.sig>

  reply	other threads:[~2019-06-05 10:31 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-04 19:56 [U-Boot] [PATCH v2 0/3] Enable usage of SDP for i.MX6 Sabre Auto Boards Sjoerd Simons
2019-06-04 19:56 ` [U-Boot] [PATCH v2 1/3] mx6sabreauto: Remove CONFIG_SPL_DM to decrease the SPL size Sjoerd Simons
2019-06-04 20:25   ` Fabio Estevam
2019-06-11  8:44   ` sbabic at denx.de
2019-06-04 19:56 ` [U-Boot] [PATCH v2 2/3] mx6sabreauto: Enable SPL SDP support Sjoerd Simons
2019-06-04 20:26   ` Fabio Estevam
2019-06-11  8:44   ` sbabic at denx.de
2019-06-04 19:56 ` [U-Boot] [PATCH v2 3/3] usb: gadget: f_sdp: Allow SPL to load and boot FIT via SDP Sjoerd Simons
2019-06-04 20:19   ` Fabio Estevam
2019-06-04 20:41     ` Sjoerd Simons
2019-06-04 21:56       ` Fabio Estevam
2019-06-05  7:25         ` Sjoerd Simons
2019-06-05 12:23           ` Fabio Estevam
2019-06-05  9:40         ` Lukasz Majewski
2019-06-05 10:00           ` Sjoerd Simons
2019-06-05 10:31             ` Lukasz Majewski [this message]
2019-06-17 14:26         ` Sjoerd Simons
2019-06-17 14:57           ` Fabio Estevam
2019-06-19  2:00           ` Breno Matheus Lima
2019-06-19  9:53             ` Sjoerd Simons
2019-06-04 21:46     ` Lukasz Majewski
2019-06-11 12:44   ` Fabio Estevam
2019-06-11 12:48     ` Fabio Estevam
2019-06-11 13:11     ` Stefano Babic
2019-06-11 13:14       ` Fabio Estevam
2019-06-11 13:53         ` Lukasz Majewski
2019-07-22 18:31           ` Fabio Estevam
2019-07-22 20:52             ` Lukasz Majewski
2019-07-22 20:54               ` Fabio Estevam
2019-07-23  6:51             ` Stefano Babic

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=20190605123140.7f8fbefd@jawa \
    --to=lukma@denx.de \
    --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.