Re: [PATCH] arm64: dts: renesas: rzt2h-n2h-evk: Mark XSPI1 boot partitions read-only

Geert Uytterhoeven <[email protected]>
Newsgroups org.kernel.vger.linux-renesas-soc,org.kernel.vger.linux-devicetree,org.kernel.vger.linux-kernel
Message-ID <CAMuHMdXfeXq7yNH4n-cMyefHfj_x3u-GbQfzv55h1EX9SfTR_Q@mail.gmail.com>
Hi Prabhakar,

On Wed, 26 Aug 2026 at 19:29, Lad, Prabhakar <[email protected]> wrote:
> On Wed, Aug 26, 2026 at 2:47 PM Geert Uytterhoeven <[email protected]> wrote:
> > On Wed, 26 Aug 2026 at 13:28, Prabhakar <[email protected]> wrote:
> > > From: Lad Prabhakar <[email protected]>
> > >
> > > Mark the BL2 and FIP partitions on XSPI1 as read-only to prevent them
> > > from being modified through the MTD partition interface.
> > >
> > > The corresponding boot partitions on XSPI0 are already marked
> > > read-only.
> > >
> > > Signed-off-by: Lad Prabhakar <[email protected]>
> >
> > Thanks for your patch!
> >
> > > --- a/arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi
> > > +++ b/arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi
> > > @@ -825,11 +825,13 @@ partitions {
> > >                         partition@0 {
> > >                                 label = "bl2-1";
> > >                                 reg = <0x00000000 0x00060000>;
> > > +                               read-only;
> > >                         };
> > >
> > >                         partition@60000 {
> > >                                 label = "fip-1";
> > >                                 reg = <0x00060000 0x007a0000>;
> > > +                               read-only;
> > >                         };
> > >
> > >                         partition@800000 {
> >
> > Makes sense. However, what is the recommended interface to update
> > the bootloader in these partitions?
> >
> The BSP supports updates via the flashwriter tool; there is no
> recommended way as such. Are you hinting to allow this to be done via
> Linux?

Exactly. But as you recommend flashwriter, and the two XSPI instances
should be consistent, I'll just take the patch.

Reviewed-by: Geert Uytterhoeven <[email protected]>
i.e. will queue in renesas-devel for v7.4.

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.