On Friday 05 August 2022 10:47:31 Tom Rini wrote: > On Fri, Aug 05, 2022 at 04:21:24PM +0200, Pali Rohár wrote: > > On Wednesday 03 August 2022 12:13:18 Tom Rini wrote: > > > On Wed, Aug 03, 2022 at 06:00:13PM +0200, Pali Rohár wrote: > > > > On Tuesday 02 August 2022 06:58:26 Tom Rini wrote: > > > > > On Tue, Aug 02, 2022 at 11:13:38AM +0200, Pali Rohár wrote: > > > > > > > > > > > Hello Tom! > > > > > > > > > > > > Your commit de47ff536363289f92f85ed1e4901724d238432d ("Convert > > > > > > CONFIG_SYS_MPC85XX_NO_RESETVEC to Kconfig") seems to be broken. > > > > > > > > > > I thought I had managed to mirror the TPL/SPL/full usage that was > > > > > there > > > > > prior, but apparently some got missed. > > > > > > > > Yea, conversion to Kconfig seems that was incorrect. > > > > > > As the config files were just unclear, but you seem to understand what > > > it's supposed to be, a patch to clean it up would be most appreciated, > > > thanks. > > > > > > -- > > > Tom > > > > Broken is also commit d433c74eecdce1e4952ef4e8c712a9289c0dfcc2. Seems > > that all kconfig migration changes done after that commit are broken. > > > > I really do not have energy to investigate what and how was broken due > > to incorrect kconfig migration. > > > > > > I did simple test. Applied following change: > > > > diff --git a/include/configs/p1_p2_rdb_pc.h b/include/configs/p1_p2_rdb_pc.h > > index a6523753d5ca..489f24df0ab1 100644 > > --- a/include/configs/p1_p2_rdb_pc.h > > +++ b/include/configs/p1_p2_rdb_pc.h > > @@ -624,3 +624,7 @@ __stringify(__PCIE_RST_CMD)"\0" > > "bootm $norbootaddr - $norfdtaddr" > > > > #endif /* __CONFIG_H */ > > + > > +#ifdef CONFIG_SDCARD > > +#error > > +#endif > > > > And then called: > > > > make CROSS_COMPILE=powerpc-linux-gnuspe- P2020RDB-PC_defconfig u-boot.bin > > > > And it failed, even when this defconfig file is not SD card builds. > > Where is PBL in that case even then?
P2020 (and older) are pre-PBL boards, they do not support NXP PBL header. In case of parallel NOR and parallel NAND booting there is no BootROM, no preboot environment, nothing. CPU does execute-in-place, maps the last page and starts execution of the last instruction on that page. It is U-Boot code which just does branch to _start symbol (which is also in the last page). For NOR booting (P2020RDB-PC_defconfig) there is no SPL involved. In case of SPI NOR or SD card booting, there is some trivial BootROM which takes pre-PBL header and it can be either generated by external NXP tool or now also U-Boot too (IIRC my patch for this was merged).