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

Xavier Drudis Ferran xdrudis at tinet.cat
Fri Jun 3 19:46:26 CEST 2022


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 the SRAM?
>

It was just that I didn't  notice the problem. 

> I'm using the patch I sent yesterday: 
> 
> [PATCH 0/3] arm: rockchip: rk3399: rock-pi-4: power domain driver to boot from MMCSD 
> https://lists.denx.de/pipermail/u-boot/2022-June/485498.html
>

It doesn't matter, it seems it's just me who gets ATF1 at address 0.
  
> It's that the change shouldn't be needed ? Why can one only use the
> first 8K from the 64K INTMEM1 ? Did you find any reason the rest
> shouldn't be writable?
>

Because INTMEM1 is only 8K long in RK3399. 64K is just the length 
of the addressing page it's in, but the SRAM is just 8Kb in size.
INTMEM0 is 192 Kb, but not INTMEM1
 


More information about the U-Boot mailing list