Adjust at91 boards config offset for all boards
cover Adjust at91 boards config offset for all boards
We have a new demo layout of our sama5 boards for the NAND Flash memory.
According to this new layout, adjust the mtdparts variable in bootargs and config offsets in the board include files.
The map is available at :
http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_map
We have already aligned the sama5 mtdparts to new map with commit:
"72281cbcf" : configs: at91: sama5: updated mtdparts variable in bootargs
This series will fix the other at91 boards w.r.t. mtdparts and all the at91 boards w.r.t. CONFIG_ENV_OFFSET.
All the boards will be aligned with the same flash memory map linked above.
Thanks!
Eugen Hristev (1):
configs: at91sam9x5ek: updated mtdparts variable in bootargs
Nicolas Ferre (2):
configs: at91: sama5_common: Adjust CONFIG_ENV_OFFSET to match block
alignment
configs: at91: Adjust CONFIG_ENV_OFFSET to match sama5 address
configs/at91sam9x5ek_dataflash_defconfig | 2 +- configs/at91sam9x5ek_nandflash_defconfig | 2 +- configs/at91sam9x5ek_spiflash_defconfig | 2 +- include/configs/at91-sama5_common.h | 2 +- include/configs/at91sam9260ek.h | 2 +- include/configs/at91sam9261ek.h | 2 +- include/configs/at91sam9263ek.h | 2 +- include/configs/at91sam9m10g45ek.h | 2 +- include/configs/at91sam9n12ek.h | 2 +- include/configs/at91sam9rlek.h | 2 +- include/configs/at91sam9x5ek.h | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-)
Signature · 1 line
2.7.4
PATCH 1/3 configs: at91: sama5_common: Adjust CONFIG_ENV_OFFSET to match block alignment
From: Nicolas Ferre <[email protected]>
Fix the unaligned environment address.
This address matches our NAND flash map available at:
http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_map
--- include/configs/at91-sama5_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/at91-sama5_common.h +1 -1
@@ -57,7 +57,7 @@#ifdef CONFIG_NAND_BOOT /* u-boot env in nand flash */ -#define CONFIG_ENV_OFFSET 0xc0000 +#define CONFIG_ENV_OFFSET 0x140000#define CONFIG_ENV_OFFSET_REDUND 0x100000#define CONFIG_ENV_SIZE 0x20000#define CONFIG_BOOTCOMMAND "nand read 0x21000000 0x180000 0x80000;" \
Signature · 1 line
2.7.4
PATCH 1/3 configs: at91: sama5_common: Adjust CONFIG_ENV_OFFSET to match block alignment
Quoted 9 lines · Eugen Hristev
From: Nicolas Ferre <[email protected]>
Fix the unaligned environment address.
This address matches our NAND flash map available at:
http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_mapSigned-off-by Nicolas Ferre <[email protected]>[eugen.hristev at microchip.com: rework on latest version of u-boot]Signed-off-by Eugen Hristev <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180524/f9b664d3/attachment.sig>
PATCH 2/3 configs: at91: Adjust CONFIG_ENV_OFFSET to match sama5 address
In reply to Eugen HristevFrom: Nicolas Ferre <[email protected]>
In order to have a single ENV_OFFSET to manage, use the same as the sama5 one. This address matches our NAND flash map available at:
http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_map
--- include/configs/at91sam9260ek.h | 2 +- include/configs/at91sam9261ek.h | 2 +- include/configs/at91sam9263ek.h | 2 +- include/configs/at91sam9m10g45ek.h | 2 +- include/configs/at91sam9n12ek.h | 2 +- include/configs/at91sam9rlek.h | 2 +- include/configs/at91sam9x5ek.h | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
include/configs/at91sam9260ek.h +1 -1
@@ -138,7 +138,7 @@#elif defined(CONFIG_SYS_USE_NANDFLASH )/* bootstrap + u-boot + env + linux in nandflash */ -#define CONFIG_ENV_OFFSET 0x120000 +#define CONFIG_ENV_OFFSET 0x140000#define CONFIG_ENV_OFFSET_REDUND 0x100000#define CONFIG_ENV_SIZE 0x20000/* 1 sector = 128 kB */ #define CONFIG_BOOTCOMMAND "nand read 0x22000000 0x200000 0x300000; bootm"
include/configs/at91sam9261ek.h +1 -1
@@ -125,7 +125,7 @@#else /* CONFIG_SYS_USE_NANDFLASH */ /* bootstrap + u-boot + env + linux in nandflash */ -#define CONFIG_ENV_OFFSET 0x120000 +#define CONFIG_ENV_OFFSET 0x140000#define CONFIG_ENV_OFFSET_REDUND 0x100000#define CONFIG_ENV_SIZE 0x20000/* 1 sector = 128 kB */ #define CONFIG_BOOTCOMMAND "nand read 0x22000000 0x200000 0x300000; bootm"
include/configs/at91sam9263ek.h +1 -1
@@ -234,7 +234,7 @@#elif CONFIG_SYS_USE_NANDFLASH /* bootstrap + u-boot + env + linux in nandflash */ -#define CONFIG_ENV_OFFSET 0x120000 +#define CONFIG_ENV_OFFSET 0x140000#define CONFIG_ENV_OFFSET_REDUND 0x100000#define CONFIG_ENV_SIZE 0x20000/* 1 sector = 128 kB */ #define CONFIG_BOOTCOMMAND "nand read 0x22000000 0x200000 0x300000; bootm"
include/configs/at91sam9m10g45ek.h +1 -1
@@ -76,7 +76,7 @@#ifdef CONFIG_NAND_BOOT /* bootstrap + u-boot + env in nandflash */ -#define CONFIG_ENV_OFFSET 0x120000 +#define CONFIG_ENV_OFFSET 0x140000#define CONFIG_ENV_OFFSET_REDUND 0x100000#define CONFIG_ENV_SIZE 0x20000
include/configs/at91sam9n12ek.h +1 -1
@@ -110,7 +110,7 @@#elif defined(CONFIG_NAND_BOOT )/* bootstrap + u-boot + env + linux in nandflash */ -#define CONFIG_ENV_OFFSET 0x120000 +#define CONFIG_ENV_OFFSET 0x140000#define CONFIG_ENV_OFFSET_REDUND 0x100000#define CONFIG_ENV_SIZE 0x20000/* 1 sector = 128 kB */ #define CONFIG_BOOTCOMMAND \
include/configs/at91sam9rlek.h +1 -1
@@ -86,7 +86,7 @@#elif CONFIG_SYS_USE_NANDFLASH /* bootstrap + u-boot + env + linux in nandflash */ -#define CONFIG_ENV_OFFSET 0x120000 +#define CONFIG_ENV_OFFSET 0x140000#define CONFIG_ENV_OFFSET_REDUND 0x100000#define CONFIG_ENV_SIZE 0x20000/* 1 sector = 128 kB */ #define CONFIG_BOOTCOMMAND "nand read 0x22000000 0x200000 0x600000; " \
include/configs/at91sam9x5ek.h +1 -1
@@ -86,7 +86,7 @@#ifdef CONFIG_NAND_BOOT /* bootstrap + u-boot + env + linux in nandflash */ -#define CONFIG_ENV_OFFSET 0x120000 +#define CONFIG_ENV_OFFSET 0x140000#define CONFIG_ENV_OFFSET_REDUND 0x100000#define CONFIG_ENV_SIZE 0x20000/* 1 sector = 128 kB */ #define CONFIG_BOOTCOMMAND "nand read " \
Signature · 1 line
2.7.4
PATCH 2/3 configs: at91: Adjust CONFIG_ENV_OFFSET to match sama5 address
Quoted 9 lines · Eugen Hristev
From: Nicolas Ferre <[email protected]>
In order to have a single
ENV_OFFSETto manage, use the same as the sama5 one. This address matches our NAND flash map available at:
http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_mapSigned-off-by Nicolas Ferre <[email protected]>[eugen.hristev at microchip.com: rework on latest version of u-boot]Signed-off-by Eugen Hristev <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180524/68b7c4d1/attachment.sig>
PATCH 3/3 configs: at91sam9x5ek: updated mtdparts variable in bootargs
In reply to Eugen HristevWe have a new demo layout of our sama5 boards for the NAND Flash memory.
According to this new layout, adjust the mtdparts variable in bootargs to align with this, which is available at :
http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_map,
Based on original work by Wenyou Yang
--- configs/at91sam9x5ek_dataflash_defconfig | 2 +- configs/at91sam9x5ek_nandflash_defconfig | 2 +- configs/at91sam9x5ek_spiflash_defconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
configs/at91sam9x5ek_dataflash_defconfig +1 -1
@@ -8,7 +8,7 @@ CONFIG_DEBUG_UART=y CONFIG_SYS_EXTRA_OPTIONS="SYS_USE_DATAFLASH" CONFIG_BOOTDELAY=3 CONFIG_USE_BOOTARGS=y -CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=7 root=ubi0:rootfs rw" +CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=6 root=ubi0:rootfs rw" # CONFIG_CONSOLE_MUX is not set CONFIG_SYS_CONSOLE_IS_IN_ENV=y # CONFIG_DISPLAY_BOARDINFO is not set
configs/at91sam9x5ek_nandflash_defconfig +1 -1
@@ -8,7 +8,7 @@ CONFIG_DEBUG_UART=y CONFIG_NAND_BOOT=y CONFIG_BOOTDELAY=3 CONFIG_USE_BOOTARGS=y -CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=7 root=ubi0:rootfs rw" +CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=6 root=ubi0:rootfs rw" # CONFIG_CONSOLE_MUX is not set CONFIG_SYS_CONSOLE_IS_IN_ENV=y # CONFIG_DISPLAY_BOARDINFO is not set
configs/at91sam9x5ek_spiflash_defconfig +1 -1
@@ -8,7 +8,7 @@ CONFIG_DEBUG_UART=y CONFIG_SPI_BOOT=y CONFIG_BOOTDELAY=3 CONFIG_USE_BOOTARGS=y -CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,512k(uboot)ro,256k(env),256k(env_redundant),256k(spare),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=7 root=ubi0:rootfs rw" +CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env_redundant),256k(env),512k(dtb),6M(kernel)ro,-(rootfs) rootfstype=ubifs ubi.mtd=6 root=ubi0:rootfs rw" # CONFIG_CONSOLE_MUX is not set CONFIG_SYS_CONSOLE_IS_IN_ENV=y # CONFIG_DISPLAY_BOARDINFO is not set
Signature · 1 line
2.7.4
PATCH 3/3 configs: at91sam9x5ek: updated mtdparts variable in bootargs
Quoted 9 lines · Eugen Hristev
We have a new demo layout of our sama5 boards for the NAND Flash memory.
According to this new layout, adjust the mtdparts variable in bootargs to align with this, which is available at :
http://www.at91.com/linux4sam/bin/view/Linux4SAM/Sama5d3XplainedMainPage#NAND_Flash_demo_Memory_map,Based on original work by Wenyou Yang
Signed-off-by Eugen Hristev <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180524/6acd8b19/attachment.sig>