Re: [v1] spl: nand: allow partial nand page reads during nand_spl_load_image

2022-12-05 Thread Colin Foster
On Tue, Nov 29, 2022 at 10:00:19AM +0100, Dario Binacchi wrote: > Hi Colinn > > On Fri, Nov 18, 2022 at 1:08 PM Dario Binacchi > wrote: > > > > Hi Colin, > > > > On Tue, Nov 15, 2022 at 5:35 PM Colin Foster > > wrote: > > > > > > The nand_spl_load_image function was guaranteed to read an entire

Re: [v1] spl: nand: allow partial nand page reads during nand_spl_load_image

2022-11-29 Thread Dario Binacchi
Hi Colinn On Fri, Nov 18, 2022 at 1:08 PM Dario Binacchi wrote: > > Hi Colin, > > On Tue, Nov 15, 2022 at 5:35 PM Colin Foster > wrote: > > > > The nand_spl_load_image function was guaranteed to read an entire block > > into RAM, regardless of how many bytes were to be read. This is > > particul

Re: [v1] spl: nand: allow partial nand page reads during nand_spl_load_image

2022-11-18 Thread Dario Binacchi
Hi Colin, On Tue, Nov 15, 2022 at 5:35 PM Colin Foster wrote: > > The nand_spl_load_image function was guaranteed to read an entire block > into RAM, regardless of how many bytes were to be read. This is > particularly problematic when spl_load_legacy_image is called, as this > function attempts

[v1] spl: nand: allow partial nand page reads during nand_spl_load_image

2022-11-15 Thread Colin Foster
The nand_spl_load_image function was guaranteed to read an entire block into RAM, regardless of how many bytes were to be read. This is particularly problematic when spl_load_legacy_image is called, as this function attempts to load a struct image_header but gets surprised with a full flash sector.