U-boot Archive mirror
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: Frank Li <frank.li@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>, Ye Li <ye.li@nxp.com>,
	U-Boot-Denx <u-boot@lists.denx.de>,
	 Michael Trimarchi <michael@amarulasolutions.com>,
	Tim Harvey <tharvey@gateworks.com>,
	 Adam Ford <aford173@gmail.com>, Heiko Schocher <hs@denx.de>
Subject: imx8mp: Flashing U-Boot into eMMC hardware partition via UUU
Date: Fri, 10 May 2024 11:19:35 -0300	[thread overview]
Message-ID: <CAOMZO5AnweEsKk_LXVLRmC5=6L2x-Oo+rdngsAs_hcrSHFH91Q@mail.gmail.com> (raw)

Hi,

I am using an imx8mp-evk board and I can flash the U-Boot into the
eMMC hardware partition 0 by running:

   => tftpboot $loadaddr flash.bin
   => setexpr blkcnt $filesize + 0x1ff && setexpr blkcnt $blkcnt / 0x200
   => mmc dev 2 1
   => mmc write $loadaddr 0 $blkcnt

Now I want to do the same via UUU.

I tried to create a script called emmc_flash:

uuu_version 1.5.21

SDPS: boot -f flash.bin
SDPS: done
FB: ucmd setenv fastboot_dev mmc
FB: ucmd mmc dev 2 1
FB: flash bootloader flash.bin
FB: Done

Then on the PC: uuu emmc_flash

U-Boot is loaded to RAM, but the eMMC hardware partition is not programmed.

What is the correct script for doing this?

Any suggestions?

Thanks

             reply	other threads:[~2024-05-10 14:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-10 14:19 Fabio Estevam [this message]
2024-05-10 14:28 ` imx8mp: Flashing U-Boot into eMMC hardware partition via UUU Michael Nazzareno Trimarchi
2024-05-10 15:10   ` Fabio Estevam
2024-05-10 15:49     ` Michael Nazzareno Trimarchi

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='CAOMZO5AnweEsKk_LXVLRmC5=6L2x-Oo+rdngsAs_hcrSHFH91Q@mail.gmail.com' \
    --to=festevam@gmail.com \
    --cc=aford173@gmail.com \
    --cc=frank.li@nxp.com \
    --cc=hs@denx.de \
    --cc=michael@amarulasolutions.com \
    --cc=peng.fan@nxp.com \
    --cc=tharvey@gateworks.com \
    --cc=u-boot@lists.denx.de \
    --cc=ye.li@nxp.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).