i.MX8MP usb status

Tommaso Merciai tommaso.merciai at amarulasolutions.com
Fri May 20 10:34:02 CEST 2022


On Mon, May 16, 2022 at 12:50:34PM -0300, Fabio Estevam wrote:
> Hi Marcel,
> 
> On 16/05/2022 12:41, Marcel Ziswiler wrote:
> 
> > Talking about uuu, has anybody managed to get that going on the i.MX
> > 8M Mini yet? Regular USB device/host
> > functionality works great but last I tried gadget functionality in SPL
> > it gave me quite some grief.
> 
> Please see this series:
> https://patchwork.ozlabs.org/project/uboot/list/?series=251796&state=*
> 
> I haven't had a chance to rework it. Feel free to work to submit it
> if you have a chance.
> 
> Tommaso has recently tested it:
> https://www.mail-archive.com/search?l=u-boot@lists.denx.de&q=subject:%22Re%5C%3A+iMX8MM+USB+support%5C%3F%22&o=newest&f=1

Hi Fabio,
I share here a more recent version of your series:

https://patchwork.amarulasolutions.com/project/linux-amarula/list/?series=371

This series brings USB gadget support for i.MX8MM
and allows the usage of the Serial Download Protocol,
which is a convenient way for loading U-Boot via the
'uuu' tool and and flashing the eMMC via the U-Boot
'ums' command.

Tested on board based on iMX8MM SOC:

--------------------------------------------------------------------------------
U-Boot SPL 2022.04-00114-gd04ac0fd3a-dirty (May 20 2022 - 10:12:08 +0200)

DEBUG
Normal Boot
WDT:   Started watchdog at 30280000 with servicing (60s timeout)
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 2366576 to 0x40400000... done
Jumping to header at 0x40400000
Header Tag is not an IMX image
Found header at 0x4041e1a0
NOTICE:  BL31: v2.2(release):android-11.0.0_1.2.0-rc2-0-gcb435ee78
NOTICE:  BL31: Built : 16:43:13, Feb  1 2022

welcome to lk/MP

boot args 0x2000000 0xbe000000 0x2000 0x0
initializing trusty (Built: 12:13:25 Nov 19 2020)
Initializing Trusted OS SMC handler
avb: Initializing AVB App
hwcrypto: Initializing
caam_drv: 318: job failed (0x2000055b)
trusty_gatekeeper: Initializing
hwrng_caam: Init HWRNG service provider
hwrng_srv: Start HWRNG service
hwcrypto_caam: Init HWCRYPTO service provider
hwcrypto_srv: Start HWCRYPTO service
hwkey_caam: Init HWKEY service provider
hwkey_caam: 183: Invalid magic, unpack key package fail.
hwkey_srv: Start HWKEY service
hwcrypto: enter main event loop


U-Boot 2022.04-00114-gd04ac0fd3a-dirty (May 20 2022 - 10:12:08 +0200)

CPU:   Freescale i.MX8MMQ rev1.0 at 1200 MHz
Reset cause: POR
Model: FSL i.MX8MM EVK board
DRAM:  2 GiB
--------------------------------------------------------------------------------

References:
 - https://patchwork.ozlabs.org/project/uboot/list/?series=251796&state=*
 - https://www.mail-archive.com/u-boot@lists.denx.de/msg410536.html

Hope this could be helpfull.


Regards,
Tommaso

> 
> Someone needs to rework this series and resubmit it.
> 
> Regards,
> 
> Fabio Estevam
> -- 
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-60 Fax: (+49)-8142-66989-80 Email: festevam at denx.de

-- 
Tommaso Merciai
Embedded Linux Engineer
tommaso.merciai at amarulasolutions.com
__________________________________

Amarula Solutions SRL
Via Le Canevare 30, 31100 Treviso, Veneto, IT
T. +39 042 243 5310
info at amarulasolutions.com
www.amarulasolutions.com


More information about the U-Boot mailing list