Skip to contentSkip to conversation

mpc85xx changes for v2022.10-rc5

GIT PULL In review Marek Behún 3 participants 6 messages Sep 18, 2022 – Sep 19, 2022 PowerPC

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello Tom,

I am sending some fixes for mpc85xx v2022.10-rc5. The other patches from Pali require some more work, I am working on them.

The following changes since commit 4f2c559b9a2ad86e03dffeef720257ea680707d0:

Merge tag 'u-boot-stm32-20220915' of https://source.denx.de/u-boot/custodians/u-boot-stm (2022-09-15 12:17:49 -0400)

are available in the Git repository at:

https://source.denx.de/u-boot/custodians/u-boot-mpc85xx.git mpc85xx-for-v2022.10-rc5

for you to fetch changes up to 5a428e751044525f95d15f180188cc7433648b82:

mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS (2022-09-16 18:46:14 +0200)

- ---------------------------------------------------------------- Marek Behún (1):
powerpc: mpc85xx: Fix check for CONFIG_SDCARD

Pali Rohár (7):
Makefile: Fix dependency for u-boot-with-dtb.bin
Makefile: Build final mpc85xx non-SPL image in standard file u-boot.bin
Makefile: Reduce usage of custom mpc85xx u-boot.bin target
Makefile: Unify condition for mpc85xx reset vector
mmc: fsl_esdhc_spl: Add support for loading proper U-Boot from unaligned location
powerpc: mpc85xx: Fix loading U-Boot proper from SD card in SPL
mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS

 Makefile                                | 26 +++++++-------------------
 arch/powerpc/Kconfig                    |  2 +-
 arch/powerpc/cpu/mpc85xx/Kconfig        |  2 +-
 arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 12 +++++++++++-
 arch/powerpc/dts/kmcent2-u-boot.dtsi    |  2 +-
 arch/powerpc/dts/u-boot.dtsi            | 10 +++++-----
 board/freescale/p1_p2_rdb_pc/README     |  2 +-
 board/freescale/p2041rdb/README         |  3 ---
 board/freescale/t102xrdb/README         |  2 +-
 board/freescale/t104xrdb/README         |  2 +-
 board/freescale/t208xqds/README         |  2 +-
 board/freescale/t208xrdb/README         |  2 +-
 drivers/mmc/fsl_esdhc_spl.c             | 43 ++++++++++++++++++++++++++++++++++---------
 13 files changed, 65 insertions(+), 45 deletions(-)

-----BEGIN PGP SIGNATURE-----

iQIvBAEBCAAdFiEElcYtIkjuDYpEw9O0Jrz6Bfz2DkwFAmMnH2wACgkQJrz6Bfz2 DkwV0Q/fecVxL8R3agViB3gayu6sYKCkKVKQ2pLrjoqISBmKi5sLkvOREtbTGybn bugpvdVD+ngN77h59ySoG0zoVVgMC4nDveqdCy96PNl4a7VUOMOBdae5pJLnjm8t eAa3VV+7EFQvuih35jZDn0j85+aqU0bz4GBZUdlBPghrh88X+ph3z778aWgHZ9LT YK4RXovkAuJN7nrhdXU0MLO377aYJCzTMawCSE638YET1Frk87bEe22d7TWV1QoS pSvMVJdlWvMwKlmJumNf5LXliffSYtOFfaPlutLpdX/eB5RmZ1wyKbYC+TLbTL98 XDpc6LvZaGF3+x5t1OE5a3McSXLYnl5USyMaWaGYcNMKcG4AUXOKPTTK4nKx+COu Htjvqj7U6uPFfzzPCQzBv50GyfUUyVW1orZHSCigiFs5Ub53tcy8v17i5vsMMjpT nXCAlGE90ERLjXli4fmncc34WmZBGE1/7auypzC6Ke1Q0gFdZztVYbhVQfukzXex yPZ0SsUfDr+3JjM/FiJQriT5NOJT3qui3EAxBBgUaWLjKEmLAwWKqc7t1bO/izRh JlH+f6pqPQFbMvJNf+bDSYZeReThPab4ILlxROcXcamogzlGcAdmeYyhRQUyTvoF aiiZHATS3JTrZKwuXFEtVWdiAT/8Xv1UptFtUPszsh+i5g==
=VECb
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 12 lines · Marek Behún

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hello Tom,

I am sending some fixes for mpc85xx v2022.10-rc5. The other patches from Pali require some more work, I am working on them.

The following changes since commit 4f2c559b9a2ad86e03dffeef720257ea680707d0:

Merge tag 'u-boot-stm32-20220915' of https://source.denx.de/u-boot/custodians/u-boot-stm (2022-09-15 12:17:49 -0400)

Quoted 7 lines

are available in the Git repository at:

https://source.denx.de/u-boot/custodians/u-boot-mpc85xx.git mpc85xx-for-v2022.10-rc5

for you to fetch changes up to 5a428e751044525f95d15f180188cc7433648b82:

mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS (2022-09-16 18:46:14 +0200)

For future reference, if you supply a short summary of the changes either in the tag or the email, I put that in the merge commit. With that, applied to u-boot/master, thanks!

Signature · 1 line
Tom
#2 lore raw
In reply to Marek Behún
Quoted 21 lines · On Sunday 18 September 2022 15:38:52 Marek Behún wrote:

Hello Tom,

I am sending some fixes for mpc85xx v2022.10-rc5. The other patches from Pali require some more work, I am working on them.

The following changes since commit 4f2c559b9a2ad86e03dffeef720257ea680707d0:

Merge tag 'u-boot-stm32-20220915' of https://source.denx.de/u-boot/custodians/u-boot-stm (2022-09-15 12:17:49 -0400)

are available in the Git repository at:

https://source.denx.de/u-boot/custodians/u-boot-mpc85xx.git mpc85xx-for-v2022.10-rc5

for you to fetch changes up to 5a428e751044525f95d15f180188cc7433648b82:

mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS (2022-09-16 18:46:14 +0200)

- ---------------------------------------------------------------- Marek Behún (1):
powerpc: mpc85xx: Fix check for CONFIG_SDCARD

Quoted 8 lines

Pali Rohár (7):
Makefile: Fix dependency for u-boot-with-dtb.bin
Makefile: Build final mpc85xx non-SPL image in standard file u-boot.bin
Makefile: Reduce usage of custom mpc85xx u-boot.bin target
Makefile: Unify condition for mpc85xx reset vector
mmc: fsl_esdhc_spl: Add support for loading proper U-Boot from unaligned location
powerpc: mpc85xx: Fix loading U-Boot proper from SD card in SPL
mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS

Hello! This last commit in above git repository is broken and does not match the version which I sent to the list. It uses non-existent U-Boot macros. Please fix it, e.g. by applying my original version which I sent to the list, which is still correct.

Quoted 15 lines
 Makefile                                | 26 +++++++-------------------
 arch/powerpc/Kconfig                    |  2 +-
 arch/powerpc/cpu/mpc85xx/Kconfig        |  2 +-
 arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 12 +++++++++++-
 arch/powerpc/dts/kmcent2-u-boot.dtsi    |  2 +-
 arch/powerpc/dts/u-boot.dtsi            | 10 +++++-----
 board/freescale/p1_p2_rdb_pc/README     |  2 +-
 board/freescale/p2041rdb/README         |  3 ---
 board/freescale/t102xrdb/README         |  2 +-
 board/freescale/t104xrdb/README         |  2 +-
 board/freescale/t208xqds/README         |  2 +-
 board/freescale/t208xrdb/README         |  2 +-
 drivers/mmc/fsl_esdhc_spl.c             | 43 ++++++++++++++++++++++++++++++++++---------
 13 files changed, 65 insertions(+), 45 deletions(-)
#3 lore raw

PATCH 1/1 powerpc: mpc85xx: Fix incorrect application of patch

I messed up application of patch 5a428e751044 ("mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS"). I took it from a work-in-progress branch where I changed usage of
CONFIG_SDCARD to CONFIG_SD_BOOT
and refactored
SYS_MPC85XX_NO_RESETVEC
mess.

But these changes aren't in master yet. Fix the wrong usage of these macros.

Fixes 5a428e751044 ("mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS")

---
Tom, should I send another PR with this fix or do you want to apply it yourself?

BTW sorry about this. It wasn't caught by CI and I wanted to send at least the fixes to master ASAP. I now looked again together with Pali at the rest of the patches and they are fine.

---
 arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds +3 -3
index a36aa1793d..f28826c5d1 100644
@@ -63,8 +63,8 @@ SECTIONS
 	__init_end = .;
 	_end = .;
 
-#ifndef KEEP_RESET_VECTOR
-#if defined(CONFIG_SD_BOOT) && !defined(CONFIG_SYS_MMC_U_BOOT_OFFS)
+#if CONFIG_IS_ENABLED(SYS_MPC85XX_NO_RESETVEC)
+#if defined(CONFIG_SDCARD) && !defined(CONFIG_SYS_MMC_U_BOOT_OFFS)
 	mmc_u_boot_offs = .;
 #endif
 #endif
@@ -101,7 +101,7 @@ SECTIONS
 	.resetvec IMAGE_TEXT_BASE + RESET_VECTOR_OFFSET : {
 		KEEP(*(.resetvec))
 	} = 0xffff
-#if defined(CONFIG_SD_BOOT) && !defined(CONFIG_SYS_MMC_U_BOOT_OFFS)
+#if defined(CONFIG_SDCARD) && !defined(CONFIG_SYS_MMC_U_BOOT_OFFS)
 	mmc_u_boot_offs = .;
 #endif
 #endif
Signature · 1 line
2.35.1
Reviewed-by on v1 1/1
#4 lore raw

Re: [PATCH] powerpc: mpc85xx: Fix incorrect application of patch

Quoted 8 lines · On Monday 19 September 2022 11:32:08 Marek Behún wrote:

I messed up application of patch 5a428e751044 ("mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS"). I took it from a work-in-progress branch where I changed usage of
CONFIG_SDCARD to CONFIG_SD_BOOT
and refactored
SYS_MPC85XX_NO_RESETVEC
mess.

Quoted 5 lines

But these changes aren't in master yet. Fix the wrong usage of these macros.

Fixes 5a428e751044 ("mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS")
Quoted 38 lines

---
Tom, should I send another PR with this fix or do you want to apply it yourself?

BTW sorry about this. It wasn't caught by CI and I wanted to send at least the fixes to master ASAP. I now looked again together with Pali at the rest of the patches and they are fine.

---
 arch/powerpc/cpu/mpc85xx/u-boot-spl.lds | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/powerpc/cpu/mpc85xx/u-boot-spl.lds +3 -3
index a36aa1793d..f28826c5d1 100644
@@ -63,8 +63,8 @@ SECTIONS
 	__init_end = .;
 	_end = .;
 
-#ifndef KEEP_RESET_VECTOR
-#if defined(CONFIG_SD_BOOT) && !defined(CONFIG_SYS_MMC_U_BOOT_OFFS)
+#if CONFIG_IS_ENABLED(SYS_MPC85XX_NO_RESETVEC)
+#if defined(CONFIG_SDCARD) && !defined(CONFIG_SYS_MMC_U_BOOT_OFFS)
 	mmc_u_boot_offs = .;
 #endif
 #endif
@@ -101,7 +101,7 @@ SECTIONS
 	.resetvec IMAGE_TEXT_BASE + RESET_VECTOR_OFFSET : {
 		KEEP(*(.resetvec))
 	} = 0xffff
-#if defined(CONFIG_SD_BOOT) && !defined(CONFIG_SYS_MMC_U_BOOT_OFFS)
+#if defined(CONFIG_SDCARD) && !defined(CONFIG_SYS_MMC_U_BOOT_OFFS)
 	mmc_u_boot_offs = .;
 #endif
 #endif
Signature · 1 line
2.35.1
#5 lore raw

Re: [PATCH] powerpc: mpc85xx: Fix incorrect application of patch

In reply to Marek Behún
Quoted 8 lines · Marek Behún

I messed up application of patch 5a428e751044 ("mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS"). I took it from a work-in-progress branch where I changed usage of
CONFIG_SDCARD to CONFIG_SD_BOOT
and refactored
SYS_MPC85XX_NO_RESETVEC
mess.

Quoted 6 lines

But these changes aren't in master yet. Fix the wrong usage of these macros.

Fixes 5a428e751044 ("mmc: fsl_esdhc_spl: Add support for builds without CONFIG_SYS_MMC_U_BOOT_OFFS")

Applied to u-boot/master, thanks!

Signature · 1 line
Tom