Re: [SPAM] RockPi4B: spl_load_fit_image() writing past end of buffer & MMC errors

2022-06-03 Thread Xavier Drudis Ferran
Sorry for the noise. El Fri, Jun 03, 2022 at 04:58:38PM +0200, Xavier Drudis Ferran deia: > > In my Rock Pi 4B this does not happen. It happily writes the 17 blocks. > Or it's just that I'm not noticing the problem ? Does it hang or give you > an error, or do you just find it out by reading th

Re: [SPAM] RockPi4B: spl_load_fit_image() writing past end of buffer & MMC errors

2022-06-03 Thread Jerome Forissier
Hi Xavier, On 6/3/22 16:58, Xavier Drudis Ferran wrote: > El Fri, Jun 03, 2022 at 03:17:05PM +0200, Jerome Forissier deia: >> First, I noticed that spl_load_fit_image() may write memory outside the range >> given in the image node. For example on RockPi 4B I have the following FIT >> (irrelevant p

Re: [SPAM] RockPi4B: spl_load_fit_image() writing past end of buffer & MMC errors

2022-06-03 Thread Xavier Drudis Ferran
El Fri, Jun 03, 2022 at 03:17:05PM +0200, Jerome Forissier deia: > First, I noticed that spl_load_fit_image() may write memory outside the range > given in the image node. For example on RockPi 4B I have the following FIT > (irrelevant parts omitted): > > / { > images { > atf_2

RockPi4B: spl_load_fit_image() writing past end of buffer & MMC errors

2022-06-03 Thread Jerome Forissier
Hi, I am trying to enable FIT image verification by SPL on Rockchip 4B (U-Boot v2022.04) and I hit a couple of issues. First, I noticed that spl_load_fit_image() may write memory outside the range given in the image node. For example on RockPi 4B I have the following FIT (irrelevant parts omitted