From: Patrick DELAUNAY Date: Wed, 21 Oct 2020 13:44:04 +0000 Subject: [PATCH] stm32mp: stm32prog: accept device without partition In-Reply-To: <20201015122817.18234-1-patrick.delaunay@st.com> References: <20201015122817.18234-1-patrick.delaunay@st.com> Message-ID: <80ffb1a8518c4ee1baa358985e4978bb@SFHDAG2NODE3.st.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, > From: Patrick DELAUNAY > Sent: jeudi 15 octobre 2020 14:28 > > When partitions are not available on a device the command stm32prog raises an > error but a device can have no partition to check in init_device() and the command > need to continue to the next part_id. > > This patch correct an issue for ram0 target, when block_dev and mtd are NULL. > > For example with the simple flashlayout file: > > Opt Part Name Type Device Offset Binary > - 0x01 fsbl Binary none 0x0 tf-a-serialboot.stm32 > - 0x03 ssbl Binary none 0x0 u-boot.stm32 > P 0x10 kernel System ram0 0xC2000000 uImage.bin > P 0x11 dtb FileSytem ram0 0xC4000000 stm32mp157f- > ev1.dtb > > Fixes: ffc405e63b94 ("stm32mp: stm32prog: add upport of partial update") > Signed-off-by: Patrick Delaunay > --- > > arch/arm/mach-stm32mp/cmd_stm32prog/stm32prog.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > Applied to u-boot-stm/master, thanks! Regards Patrick