Skip to contentSkip to conversation

armv8: fsl-layerscape: Fix early MMU table for nand boot

PATCH Superseded York Sun 1 participant 2 messages Nov 26, 2015 – Nov 30, 2015 Arm (32-bit)

lore
Share & tools
lore

York Sun

author
#0 lore raw

PATCH v2 1/1 armv8: fsl-layerscape: Fix early MMU table for nand boot

The early MMU table doesn't enable all addresses. Unused addresses are marked as invalid, as introduced by commit 9979922. An entry was missing for NAND flash space, causing nand boot failure.

CC Alison Wang <[email protected]>
CC Prabhakar Kushwaha <[email protected]>

---

Changes in v2:
Reduce the IFC mapped for early MMU, up to NOR flash base to avoid conflict
Tested on LS2085AQDS

 arch/arm/include/asm/arch-fsl-layerscape/cpu.h |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/include/asm/arch-fsl-layerscape/cpu.h +4 -0
index 727fd24..4544094 100644
@@ -130,6 +130,10 @@ static const struct sys_mmu_table early_mmu_table[] = {
 	  CONFIG_SYS_FSL_IFC_SIZE1, MT_DEVICE_NGNRNE, PMD_SECT_NON_SHARE },
 	{ CONFIG_SYS_FSL_DRAM_BASE1, CONFIG_SYS_FSL_DRAM_BASE1,
 	  CONFIG_SYS_FSL_DRAM_SIZE1, MT_NORMAL, PMD_SECT_OUTER_SHARE },
+	/* Map IFC region #2 up to CONFIG_SYS_FLASH_BASE for NAND boot */
+	{ CONFIG_SYS_FSL_IFC_BASE2, CONFIG_SYS_FSL_IFC_BASE2,
+	  CONFIG_SYS_FLASH_BASE - CONFIG_SYS_FSL_IFC_BASE2,
+	  MT_DEVICE_NGNRNE, PMD_SECT_NON_SHARE },
 	{ CONFIG_SYS_FSL_DCSR_BASE, CONFIG_SYS_FSL_DCSR_BASE,
 	  CONFIG_SYS_FSL_DCSR_SIZE, MT_DEVICE_NGNRNE,
 	  PMD_SECT_NON_SHARE | PMD_SECT_PXN | PMD_SECT_UXN },
Signature · 1 line
1.7.9.5
author Applied
#1 lore raw

PATCH v2 1/1 armv8: fsl-layerscape: Fix early MMU table for nand boot

Quoted 10 lines · York Sun

The early MMU table doesn't enable all addresses. Unused addresses are marked as invalid, as introduced by commit 9979922. An entry was missing for NAND flash space, causing nand boot failure.

CC Alison Wang <[email protected]>
CC Prabhakar Kushwaha <[email protected]>

---

Quoted 7 lines

Changes in v2:
Reduce the IFC mapped for early MMU, up to NOR flash base to avoid conflict
Tested on LS2085AQDS

 arch/arm/include/asm/arch-fsl-layerscape/cpu.h |    4 ++++
 1 file changed, 4 insertions(+)

Applied to fsl-qoriq master.

York