[PATCH 2/3] bootstd: rauc: Fix segfault occurring during private struct access

2025-07-14 Thread Martin Schwan
Fix a potential segmentation fault, by not accessing the member of a null pointer to a private slot's name field. Signed-off-by: Martin Schwan --- boot/bootmeth_rauc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/bootmeth_rauc.c b/boot/bootmeth_rauc.c

[PATCH 3/3] bootstd: rauc: Only scan all partitions instead of boot files

2025-07-14 Thread Martin Schwan
that case, scanning for a non-existence boot script would result in an error (and thus not booting anything), which was different behavior compared to the legacy RAUC boot. Signed-off-by: Martin Schwan --- boot/bootmeth_rauc.c | 30 +++--- 1 file changed, 15 insertions

[PATCH 1/3] bootstd: rauc: Fix potential memory leak

2025-07-14 Thread Martin Schwan
Fix a potential memory leak, by checking the return value of realloc first, before assigning it to the private list of slots. Signed-off-by: Martin Schwan --- boot/bootmeth_rauc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/boot/bootmeth_rauc.c b/boot

[PATCH 0/3] bootstd: rauc: Small fixes

2025-07-14 Thread Martin Schwan
Fix some small bugs that I noticed during testing. Signed-off-by: Martin Schwan --- Martin Schwan (3): bootstd: rauc: Fix potential memory leak bootstd: rauc: Fix segfault occurring during private struct access bootstd: rauc: Only scan all partitions instead of boot files

Re: [PATCH v3 0/2] bootstd: New bootmeth for RAUC A/B systems

2025-06-26 Thread Martin Schwan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi everyone, On Fri, 2025-06-06 at 06:59 +, Martin Schwan wrote: > Hi Simon, > > On Thu, 2025-06-05 at 11:29 -0600, Simon Glass wrote: > > Hi Martin, > > > > On Wed, 4 Jun 2025 at 06:16, Martin Schwan > >

Re: [PATCH v3 0/2] bootstd: New bootmeth for RAUC A/B systems

2025-06-26 Thread Martin Schwan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Tom, On Fri, 2025-06-06 at 07:50 -0600, Tom Rini wrote: > On Fri, Jun 06, 2025 at 06:59:05AM +0000, Martin Schwan wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA512 > > > > Hi Simon, > > > > O

Re: [PATCH v3 0/2] bootstd: New bootmeth for RAUC A/B systems

2025-06-06 Thread Martin Schwan
inaro.org wrote: > > > Hi, > > > > > > On 04/06/2025 14:15, Martin Schwan wrote: > > > > This series implements a new bootmeth for RAUC A/B systems. > > > > RAUC (Robust > > > > Auto Update Controller) is a lightweight update client, >

Re: [PATCH v3 0/2] bootstd: New bootmeth for RAUC A/B systems

2025-06-05 Thread Martin Schwan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hi Simon, On Thu, 2025-06-05 at 11:29 -0600, Simon Glass wrote: > Hi Martin, > > On Wed, 4 Jun 2025 at 06:16, Martin Schwan > wrote: > > > > This series implements a new bootmeth for RAUC A/B systems. RAUC > > (Rob

[PATCH v3 2/2] doc: Add description for bootmeth rauc

2025-06-04 Thread Martin Schwan
Add documentation for the bootmeth "rauc", which boots an A/B system with RAUC from MMC. Signed-off-by: Martin Schwan --- doc/develop/bootstd/index.rst| 1 + doc/develop/bootstd/overview.rst | 1 + doc/develop/bootstd/rauc.rst | 56 +++

[PATCH v3 1/2] bootstd: Add implementation for bootmeth rauc

2025-06-04 Thread Martin Schwan
Add a bootmeth driver which supports booting A/B system with RAUC as their update client. Signed-off-by: Martin Schwan --- boot/Kconfig | 51 ++ boot/Makefile| 1 + boot/bootmeth_rauc.c | 432 +++ 3 files changed, 484

[PATCH v3 0/2] bootstd: New bootmeth for RAUC A/B systems

2025-06-04 Thread Martin Schwan
to be in line with "distro_bootpart". - Change the bootmeth flag to "global", as the rauc bootmeth does not work for individual partitions. - Update documentation accordingly. - Link to v1: https://lore.kernel.org/r/20250129-wip-bootmeth-rauc-v1-0-6308e732f...@phytec.de -

[PATCH v2 1/2] bootstd: Add implementation for bootmeth rauc

2025-06-02 Thread Martin Schwan
Add a bootmeth driver which supports booting A/B system with RAUC as their update client. Signed-off-by: Martin Schwan --- boot/Kconfig | 51 ++ boot/Makefile| 1 + boot/bootmeth_rauc.c | 432 +++ 3 files changed, 484

[PATCH v2 2/2] doc: Add description for bootmeth rauc

2025-06-02 Thread Martin Schwan
Add documentation for the bootmeth "rauc", which boots an A/B system with RAUC from MMC. Signed-off-by: Martin Schwan --- doc/develop/bootstd/index.rst| 1 + doc/develop/bootstd/overview.rst | 1 + doc/develop/bootstd/rauc.rst | 56 +++

[PATCH v2 0/2] bootstd: New bootmeth for RAUC A/B systems

2025-06-02 Thread Martin Schwan
"mmcroot" to "distro_rootpart", to be in line with "distro_bootpart". - Change the bootmeth flag to "global", as the rauc bootmeth does not work for individual partitions. - Update documentation accordingly. - Link to v1: https://lore.kernel.org/r/20250

Re: [PATCH 1/2] bootstd: Add implementation for bootmeth rauc

2025-04-28 Thread Martin Schwan
0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Thu, 24 Apr 2025 at 12:49, Tom Rini > > > > wrote: > > > > > > > > > > On Thu, Apr 24, 2025 at 12:31:38PM -0600, Simon Glass wrote: > > > > > > Hi

Re: [PATCH 1/2] bootstd: Add implementation for bootmeth rauc

2025-04-24 Thread Martin Schwan
Hi Simon, thanks for the review and sorry for my delayed reply. On Mon, 2025-04-14 at 05:32 -0600, Simon Glass wrote: > Hi Martin, > > On Wed, 29 Jan 2025 at 07:25, Martin Schwan > wrote: > > > > Add a bootmeth driver which supports booting A/B system with RAUC > &

Re: [PATCH 1/2] bootstd: Add implementation for bootmeth rauc

2025-01-30 Thread Martin Schwan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Wed, 2025-01-29 at 10:03 -0600, Tom Rini wrote: > On Wed, Jan 29, 2025 at 03:25:25PM +0100, Martin Schwan wrote: > > Add a bootmeth driver which supports booting A/B system with RAUC > > as > > their update client. > >

[PATCH 1/2] bootstd: Add implementation for bootmeth rauc

2025-01-29 Thread Martin Schwan
Add a bootmeth driver which supports booting A/B system with RAUC as their update client. Signed-off-by: Martin Schwan --- boot/Kconfig | 11 ++ boot/Makefile| 1 + boot/bootmeth_rauc.c | 408 +++ 3 files changed, 420 insertions

[PATCH 2/2] doc: Add description for bootmeth rauc

2025-01-29 Thread Martin Schwan
Add documentation for the bootmeth "rauc", which boots an A/B system with RAUC from MMC. Signed-off-by: Martin Schwan --- doc/develop/bootstd/index.rst| 1 + doc/develop/bootstd/overview.rst | 1 + doc/develop/bootstd/rauc.rst | 55 +++

[PATCH 0/2] bootstd: New bootmeth for RAUC A/B systems

2025-01-29 Thread Martin Schwan
eu/en/produkte/single-board-computer/phyboard-pollux/ [2]: https://download.phytec.de/Software/Linux/BSP-Yocto-i.MX8MP/BSP-Yocto-Ampliphy-i.MX8MP-PD24.1.2/ --- Martin Schwan (2): bootstd: Add implementation for bootmeth rauc doc: Add description for bootmeth rauc boot/Kconfig