board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot
PATCH v2 1/1 board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot
This patch adjusts memory map for images on LS2080ARDB, LS2080AQDS as per below memory map for NOR flash:
Image Flash Offset
RCW+PBI 0x00000000
Boot firmware (U-Boot) 0x00100000
Boot firmware Environment 0x00300000
PPA firmware 0x00400000
PHY firmware 0x00980000
DPAA2 MC 0x00A00000
DPAA2 DPL 0x00D00000
DPAA2 DPC 0x00E00000
Kernel.itb 0x01000000
---
Changes for v2:
1. Rebase on the top of Priyanka's QSPI patch
https://patchwork.ozlabs.org/patch/756222/
arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 2 +- board/freescale/ls2080aqds/README | 12 ++++++++++++ board/freescale/ls2080ardb/README | 13 +++++++++++++ include/configs/ls2080a_common.h | 8 ++++---- include/configs/ls2080aqds.h | 8 ++++---- include/configs/ls2080ardb.h | 12 ++++++------ 6 files changed, 40 insertions(+), 15 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +1 -1
@@ -162,7 +162,7 @@ config SYS_LS_PPA_FW_ADDR depends on FSL_LS_PPA default 0x20400000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT && ARCH_LS2080A default 0x40500000 if SYS_LS_PPA_FW_IN_XIP && QSPI_BOOT - default 0x580a00000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A + default 0x580400000 if SYS_LS_PPA_FW_IN_XIP && ARCH_LS2080A default 0x60500000 if SYS_LS_PPA_FW_IN_XIP default 0x500000 if SYS_LS_PPA_FW_IN_MMC default 0x500000 if SYS_LS_PPA_FW_IN_NAND
board/freescale/ls2080aqds/README +12 -0
@@ -89,6 +89,18 @@ c) NAND boot d) SD boot e) QSPI boot +Memory map for NOR boot +------------------------- +Image Flash Offset +RCW+PBI 0x00000000 +Boot firmware (U-Boot) 0x00100000 +Boot firmware Environment 0x00300000 +PPA firmware 0x00400000 +DPAA2 MC 0x00A00000 +DPAA2 DPL 0x00D00000 +DPAA2 DPC 0x00E00000 +Kernel.itb 0x01000000 + Environment Variables --------------------- - mcboottimeout: MC boot timeout in milliseconds. If this variable is not defined
board/freescale/ls2080ardb/README +13 -0
@@ -71,6 +71,19 @@ a) NOR boot b) NAND boot c) QSPI boot +Memory map for NOR boot +------------------------- +Image Flash Offset +RCW+PBI 0x00000000 +Boot firmware (U-Boot) 0x00100000 +Boot firmware Environment 0x00300000 +PPA firmware 0x00400000 +Cortina PHY firmware 0x00980000 +DPAA2 MC 0x00A00000 +DPAA2 DPL 0x00D00000 +DPAA2 DPC 0x00E00000 +Kernel.itb 0x01000000 + cfg_rcw_src switches needs to be changed for booting from different option. Refer to board documentation for correct switch setting.
include/configs/ls2080a_common.h +4 -4
@@ -193,18 +193,18 @@ unsigned long long get_qixis_addr(void);"ramdisk_size=0x2000000\0" \"fdt_high=0xa0000000\0" \"initrd_high=0xffffffffffffffff\0" \ -"kernel_start=0x581200000\0" \ +"kernel_start=0x581000000\0" \"kernel_load=0xa0000000\0" \"kernel_size=0x2800000\0" \"console=ttyAMA0,38400n8\0" \ -"mcinitcmd=fsl_mc start mc 0x580300000" \ - " 0x580800000 \0" +"mcinitcmd=fsl_mc start mc 0x580a00000" \ + " 0x580e00000 \0"#define CONFIG_BOOTARGS "console=ttyS0,115200 root=/dev/ram0 " \ "earlycon=uart8250,mmio,0x21c0500 " \ "ramdisk_size=0x2000000 default_hugepagesz=2m" \ " hugepagesz=2m hugepages=256" -#define CONFIG_BOOTCOMMAND "fsl_mc apply dpl 0x580700000 &&" \ +#define CONFIG_BOOTCOMMAND "fsl_mc apply dpl 0x580d00000 &&" \ " cp.b $kernel_start $kernel_load" \ " $kernel_size && bootm $kernel_load"
include/configs/ls2080aqds.h +4 -4
@@ -274,7 +274,7 @@ unsigned long get_board_ddr_clk(void);#ifndef CONFIG_QSPI_BOOT #define CONFIG_ENV_IS_IN_FLASH -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x200000) +#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x300000)#define CONFIG_ENV_SECT_SIZE 0x20000#define CONFIG_ENV_SIZE 0x2000#endif
@@ -386,12 +386,12 @@ unsigned long get_board_ddr_clk(void);"ramdisk_size=0x2000000\0" \"fdt_high=0xa0000000\0" \"initrd_high=0xffffffffffffffff\0" \ -"kernel_start=0x581100000\0" \ +"kernel_start=0x581000000\0" \"kernel_load=0xa0000000\0" \"kernel_size=0x2800000\0" \"mcmemsize=0x40000000\0" \ -"mcinitcmd=fsl_mc start mc 0x580300000" \ - " 0x580800000 \0" +"mcinitcmd=fsl_mc start mc 0x580a00000" \ + " 0x580e00000 \0"#endif /* CONFIG_SECURE_BOOT */
include/configs/ls2080ardb.h +6 -6
@@ -248,7 +248,7 @@ unsigned long get_board_sys_clk(void);#define CONFIG_SYS_CS2_FTIM3 CONFIG_SYS_NAND_FTIM3#define CONFIG_ENV_IS_IN_FLASH -#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x200000) +#define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x300000)#define CONFIG_ENV_SECT_SIZE 0x20000#define CONFIG_ENV_SIZE 0x2000#endif
@@ -392,13 +392,13 @@ unsigned long get_board_sys_clk(void);"ramdisk_size=0x2000000\0" \"fdt_high=0xa0000000\0" \"initrd_high=0xffffffffffffffff\0" \ -"kernel_start=0x581100000\0" \ +"kernel_start=0x581000000\0" \"kernel_load=0xa0000000\0" \"kernel_size=0x2800000\0" \"mcmemsize=0x40000000\0" \"fdtfile=fsl-ls2080a-rdb.dtb\0" \ -"mcinitcmd=fsl_mc start mc 0x580300000" \ -" 0x580800000 \0" \ +"mcinitcmd=fsl_mc start mc 0x580a00000" \ +" 0x580e00000 \0" \ BOOTENV#endif #endif
@@ -418,7 +418,7 @@ unsigned long get_board_sys_clk(void); " || run distro_bootcmd"#else /* Try to boot an on-NOR kernel first, then do normal distro boot */ -#define CONFIG_BOOTCOMMAND "run mcinitcmd && fsl_mc lazyapply dpl 0x580700000" \ +#define CONFIG_BOOTCOMMAND "run mcinitcmd && fsl_mc lazyapply dpl 0x580d00000" \ " && cp.b $kernel_start $kernel_load $kernel_size" \ " && bootm $kernel_load" \ " || run distro_bootcmd"
@@ -434,7 +434,7 @@ unsigned long get_board_sys_clk(void);#ifdef CONFIG_QSPI_BOOT #define CONFIG_CORTINA_FW_ADDR 0x20980000#else -#define CONFIG_CORTINA_FW_ADDR 0x581000000 +#define CONFIG_CORTINA_FW_ADDR 0x580980000#endif #define CONFIG_CORTINA_FW_LENGTH 0x40000
Signature · 1 line
1.9.1
PATCH v2 1/1 board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot
Quoted 4 lines · Santan Kumar
This patch adjusts memory map for images on LS2080ARDB, LS2080AQDS as per below memory map for NOR flash:
Image Flash Offset
RCW+PBI0x00000000
Quoted 8 lines
Boot firmware (U-Boot)
0x00100000
Boot firmware Environment0x00300000
PPA firmware0x00400000
PHY firmware0x00980000
DPAA2 MC0x00A00000
DPAA2 DPL0x00D00000
DPAA2 DPC0x00E00000
Kernel.itb0x01000000
How about secure boot header files?
York
PATCH v2 1/1 board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot
Quoted 24 lines
-----Original Message-----
From: York Sun [mailto:york.sun at nxp.com]
Sent: Friday, April 28, 2017 9:25 PM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: Re: [PATCH][v2] board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-bootQuoted 4 lines · Santan Kumar
This patch adjusts memory map for images on LS2080ARDB, LS2080AQDS as per below memory map for NOR flash:
Image Flash Offset
RCW+PBI0x00000000Quoted 8 lines
Boot firmware (U-Boot)
0x00100000
Boot firmware Environment0x00300000
PPA firmware0x00400000
PHY firmware0x00980000
DPAA2 MC0x00A00000
DPAA2 DPL0x00D00000
DPAA2 DPC0x00E00000
Kernel.itb0x01000000
Quoted 3 lines
How about secure boot header files?
York
Secure header is expected at 0x600000 offset.
Secure boot team will send additional patch on top of this for secure header related change. Priyanka
PATCH v2 1/1 board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot
Quoted 33 lines
-----Original Message-----
From: Priyanka Jain
Sent: Monday, May 01, 2017 11:00 AM
To: york sun <[email protected]>; Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Sumit Garg <[email protected]>
Subject: RE: [PATCH][v2] board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-bootQuoted 22 lines
-----Original Message-----
From: York Sun [mailto:york.sun at nxp.com]
Sent: Friday, April 28, 2017 9:25 PM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: Re: [PATCH][v2] board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-bootQuoted 12 lines · Santan Kumar
This patch adjusts memory map for images on LS2080ARDB, LS2080AQDS as per below memory map for NOR flash:
Image Flash Offset
RCW+PBI0x00000000
Boot firmware (U-Boot)0x00100000
Boot firmware Environment0x00300000
PPA firmware0x00400000
PHY firmware0x00980000
DPAA2 MC0x00A00000
DPAA2 DPL0x00D00000
DPAA2 DPC0x00E00000
Kernel.itb0x01000000
Quoted 7 lines
Quoted 3 lines
How about secure boot header files?
York
Secure header is expected at
0x600000offset.
Secure boot team will send additional patch on top of this for secure header related change.
Priyanka
Can you please add Secure boot headers at 0x600000 offset as part of this patch only? As space at 0x600000 offset is reserved for Secure boot headers as per new memory map.
Sumit
PATCH v2 1/1 board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot
-----Original Message-----
From: Sumit Garg
Sent: Monday, May 01, 2017 11:23 AM
To: Priyanka Jain <[email protected]>; u-boot at lists.denx.de
Cc: york sun <[email protected]>; Santan Kumar <[email protected]>
Subject: RE: [PATCH][v2] board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot
Quoted 33 lines
-----Original Message-----
From: Priyanka Jain
Sent: Monday, May 01, 2017 11:00 AM
To: york sun <[email protected]>; Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Sumit Garg <[email protected]>
Subject: RE: [PATCH][v2] board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-bootQuoted 22 lines
-----Original Message-----
From: York Sun [mailto:york.sun at nxp.com]
Sent: Friday, April 28, 2017 9:25 PM
To: Santan Kumar <[email protected]>; u-boot at lists.denx.de
Cc: Priyanka Jain <[email protected]>
Subject: Re: [PATCH][v2] board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-bootQuoted 12 lines · Santan Kumar
This patch adjusts memory map for images on LS2080ARDB, LS2080AQDS as per below memory map for NOR flash:
Image Flash Offset
RCW+PBI0x00000000
Boot firmware (U-Boot)0x00100000
Boot firmware Environment0x00300000
PPA firmware0x00400000
PHY firmware0x00980000
DPAA2 MC0x00A00000
DPAA2 DPL0x00D00000
DPAA2 DPC0x00E00000
Kernel.itb0x01000000
Quoted 7 lines
Quoted 3 lines
How about secure boot header files?
York
Secure header is expected at
0x600000offset.
Secure boot team will send additional patch on top of this for secure header related change.
Priyanka
Can you please add Secure boot headers at 0x600000 offset as part of this patch only? As space at 0x600000 offset is reserved for Secure boot headers as per new memory map. Sumit
Secure header has been added by secure boot team with a follow up patch.
https://patchwork.ozlabs.org/patch/757572/
Santan
york sun
AppliedPATCH v2 1/1 board: ls2080ardb, ls2080aqds: Adjust memory map for NOR-boot
In reply to Santan KumarQuoted 13 lines · Santan Kumar
This patch adjusts memory map for images on LS2080ARDB, LS2080AQDS as per below memory map for NOR flash:
Image Flash Offset
RCW+PBI0x00000000
Boot firmware (U-Boot)0x00100000
Boot firmware Environment0x00300000
PPA firmware0x00400000
PHY firmware0x00980000
DPAA2 MC0x00A00000
DPAA2 DPL0x00D00000
DPAA2 DPC0x00E00000
Kernel.itb0x01000000
Quoted 6 lines
Signed-off-by Santan Kumar <[email protected]>Signed-off-by Priyanka Jain <[email protected]>---
Changes for v2:
1. Rebase on the top of Priyanka's QSPI patchhttps://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpatchwork.ozlabs.org%2Fpatch%2F756222%2F&data=01%7C01%7Cyork.sun%40nxp.com%7Cf48a7f1714bf492e3b7708d48e064619%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0&sdata=HiqkWpMouHRUJJGF%2BQ%2F27yQ2tkoaGGJkiGcfiJFHrxI%3D&reserved=0
Applied to fsl-qoriq master, awaiting upstream. Thanks.
York