From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ravik Hasija Date: Tue, 5 Jan 2021 11:21:49 -0700 (MST) Subject: [PATCH v2] cmd: mmc: add mmcboot command In-Reply-To: References: <1608753437-5004-1-git-send-email-rahasij@linux.microsoft.com> <1609785656-6472-1-git-send-email-rahasij@linux.microsoft.com> Message-ID: <1609870909175-0.post@n7.nabble.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.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/