public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ravik Hasija <rahasij@linux.microsoft.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2] cmd: mmc: add mmcboot command
Date: Tue, 5 Jan 2021 11:21:49 -0700 (MST)	[thread overview]
Message-ID: <1609870909175-0.post@n7.nabble.com> (raw)
In-Reply-To: <d4c15f82-77a6-77d7-9c9b-fcea7e5b3337@denx.de>

> Can this not be implemented by some U-Boot script ?
> I can imagine that reading the first few bytes from the partition (mmc
> read) would permit you to obtain the uImage/fitImage header from the
> partition, from which you can obtain the image size, which is the total
> number of bytes to read (iminfo might help , or fdt header), and then
> read out the entire image and bootm it.

Using this command provides the advantage to reduce code replication &
maintainence by leveraging existing APIs (common_diskboot) which
functionally does the same thing as a uboot script would do read one block,
get size from header, read whole image, and bootm it, while additionally
doing basic checks.



--
Sent from: http://u-boot.10912.n7.nabble.com/

  reply	other threads:[~2021-01-05 18:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20201223195751epcas1p488f3f465492b11d4c8fd328c3b3dc193@epcas1p4.samsung.com>
2020-12-23 19:57 ` [PATCH] cmd: mmc: add mmcboot command Ravik Hasija
2020-12-27 22:58   ` Jaehoon Chung
2021-01-01  9:56     ` Heinrich Schuchardt
2020-12-29  3:32   ` Simon Glass
2021-01-04 18:40   ` [PATCH v2] " Ravik Hasija
2021-01-04 19:56     ` Marek Vasut
2021-01-05 18:21       ` Ravik Hasija [this message]
2021-01-04 23:49     ` Jaehoon Chung
2021-01-07 20:23       ` Ravik Hasija

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=1609870909175-0.post@n7.nabble.com \
    --to=rahasij@linux.microsoft.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox