public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: da850evm: Split MTDPARTS into SPL and u-boot
@ 2019-07-26 22:53 Adam Ford
  2019-08-01  3:36 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Ford @ 2019-07-26 22:53 UTC (permalink / raw)
  To: u-boot

The MTDPARTS currently lists just u-boot.ais as 512k in size.
This works when loading the ais file via serial port, but if one
wanted to update just the u-boot portion, it's not really possible.
This patch splits the MTDPARTS into a 32k SPL partiion and a 480k
u-boot partition which allows u-boot.img to be burned to the u-boot
partition.  The remaining partitions are left with the same sizes
and offsets to not break backwards compatibility.

Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig
index f7c679d3b5..234bc2c8cb 100644
--- a/configs/da850evm_defconfig
+++ b/configs/da850evm_defconfig
@@ -36,7 +36,7 @@ CONFIG_CMD_DM=y
 CONFIG_CMD_FS_UUID=y
 CONFIG_CMD_MTDPARTS=y
 CONFIG_MTDIDS_DEFAULT="nor0=spi0.0"
-CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:512k(u-boot.ais),64k(u-boot-env),7552k(kernel-spare),64k(MAC-Address)"
+CONFIG_MTDPARTS_DEFAULT="mtdparts=spi0.0:32k(SPL),480k(u-boot),64k(u-boot-env),7552k(kernel-spare),64k(MAC-Address)"
 CONFIG_CMD_DIAG=y
 CONFIG_OF_CONTROL=y
 CONFIG_SPL_OF_CONTROL=y
@@ -75,4 +75,3 @@ CONFIG_DM_USB=y
 CONFIG_USB_OHCI_HCD=y
 CONFIG_USB_OHCI_DA8XX=y
 # CONFIG_FAT_WRITE is not set
-CONFIG_USE_TINY_PRINTF=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] ARM: da850evm: Split MTDPARTS into SPL and u-boot
  2019-07-26 22:53 [U-Boot] [PATCH] ARM: da850evm: Split MTDPARTS into SPL and u-boot Adam Ford
@ 2019-08-01  3:36 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2019-08-01  3:36 UTC (permalink / raw)
  To: u-boot

On Fri, Jul 26, 2019 at 05:53:45PM -0500, Adam Ford wrote:

> The MTDPARTS currently lists just u-boot.ais as 512k in size.
> This works when loading the ais file via serial port, but if one
> wanted to update just the u-boot portion, it's not really possible.
> This patch splits the MTDPARTS into a 32k SPL partiion and a 480k
> u-boot partition which allows u-boot.img to be burned to the u-boot
> partition.  The remaining partitions are left with the same sizes
> and offsets to not break backwards compatibility.
> 
> Signed-off-by: Adam Ford <aford173@gmail.com>
> 
> diff --git a/configs/da850evm_defconfig b/configs/da850evm_defconfig
> index f7c679d3b5..234bc2c8cb 100644

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190731/6b12dee8/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-01  3:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-26 22:53 [U-Boot] [PATCH] ARM: da850evm: Split MTDPARTS into SPL and u-boot Adam Ford
2019-08-01  3:36 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox