arm: am57xx: Keep environment in eMMC
PATCH 1/1 arm: am57xx: Keep environment in eMMC
Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment.
--- include/configs/am57xx_evm.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
include/configs/am57xx_evm.h +9 -5
@@ -13,6 +13,7 @@#define __CONFIG_AM57XX_EVM_H#include <environment/ti/dfu.h> +#include <linux/sizes.h> #ifdef CONFIG_SPL_BUILD #define CONFIG_IODELAY_RECALIBRATION
@@ -20,11 +21,14 @@#define CONFIG_NR_DRAM_BANKS 2 -#define CONFIG_ENV_SIZE (64 << 10) -#define CONFIG_ENV_IS_IN_FAT -#define FAT_ENV_INTERFACE "mmc" -#define FAT_ENV_DEVICE_AND_PART "0:1" -#define FAT_ENV_FILE "uboot.env" +/* MMC ENV related defines */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 1/* eMMC */ +#define CONFIG_SYS_MMC_ENV_PART 0 +#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_OFFSET 0x260000 +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT #define CONSOLEDEV "ttyO2"#define CONFIG_SYS_NS16550_COM1 UART1_BASE/* Base EVM has UART0 */
Signature · 1 line
2.11.0
PATCH 1/1 arm: am57xx: Keep environment in eMMC
Quoted 27 lines · Sam Protsenko
Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment.
Signed-off-by Sam Protsenko <[email protected]>--- include/configs/am57xx_evm.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)include/configs/am57xx_evm.h +1
-3@@ -13,6 +13,7 @@#define __CONFIG_AM57XX_EVM_H#include <environment/ti/dfu.h> +#include <linux/sizes.h> #ifdef CONFIG_SPL_BUILD #define CONFIG_IODELAY_RECALIBRATION @@ -20,11 +21,14 @@#define CONFIG_NR_DRAM_BANKS 2 -#define CONFIG_ENV_SIZE (64 << 10) -#define CONFIG_ENV_IS_IN_FAT -#define FAT_ENV_INTERFACE "mmc"
include/configs/am57xx_evm.h line 31
Quoted 10 lines
include/configs/am57xx_evm.h +8
-2-#define FAT_ENV_DEVICE_AND_PART "0:1" -#define FAT_ENV_FILE "uboot.env" +/* MMC ENV related defines */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 1/* eMMC */ +#define CONFIG_SYS_MMC_ENV_PART 0 +#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_OFFSET 0x260000 +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
Why are we doing this?
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170609/ce9b66c0/attachment.sig>
PATCH 1/1 arm: am57xx: Keep environment in eMMC
Quoted 26 lines · Tom Rini
Quoted 24 lines · Sam Protsenko
Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment.
Signed-off-by Sam Protsenko <[email protected]>--- include/configs/am57xx_evm.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)include/configs/am57xx_evm.h +1
-0@@ -13,6 +13,7 @@#define __CONFIG_AM57XX_EVM_H#include <environment/ti/dfu.h> +#include <linux/sizes.h> #ifdef CONFIG_SPL_BUILD #define CONFIG_IODELAY_RECALIBRATION @@ -20,11 +21,14 @@#define CONFIG_NR_DRAM_BANKS 2
Quoted 16 lines
include/configs/am57xx_evm.h line 31
Quoted 13 lines
include/configs/am57xx_evm.h +8
-5-#define CONFIG_ENV_SIZE (64 << 10) -#define CONFIG_ENV_IS_IN_FAT -#define FAT_ENV_INTERFACE "mmc" -#define FAT_ENV_DEVICE_AND_PART "0:1" -#define FAT_ENV_FILE "uboot.env" +/* MMC ENV related defines */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 1/* eMMC */ +#define CONFIG_SYS_MMC_ENV_PART 0 +#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_OFFSET 0x260000 +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT Why are we doing this?
This is exactly how it's done for DRA7 EVM board. And since those two boards are basically the same family, we should stick to one way of doing things here. And we agreed with Praneeth that this policy is booting Android from eMMC.
Quoted 2 lines
--
Tom
PATCH 1/1 arm: am57xx: Keep environment in eMMC
Quoted 43 lines · Sam Protsenko
Quoted 26 lines · Tom Rini
Quoted 24 lines · Sam Protsenko
Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment.
Signed-off-by Sam Protsenko <[email protected]>--- include/configs/am57xx_evm.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)include/configs/am57xx_evm.h +1
-0@@ -13,6 +13,7 @@#define __CONFIG_AM57XX_EVM_H#include <environment/ti/dfu.h> +#include <linux/sizes.h> #ifdef CONFIG_SPL_BUILD #define CONFIG_IODELAY_RECALIBRATION @@ -20,11 +21,14 @@#define CONFIG_NR_DRAM_BANKS 2Quoted 15 lines
include/configs/am57xx_evm.h line 31
Quoted 13 lines
include/configs/am57xx_evm.h +8
-5-#define CONFIG_ENV_SIZE (64 << 10) -#define CONFIG_ENV_IS_IN_FAT -#define FAT_ENV_INTERFACE "mmc" -#define FAT_ENV_DEVICE_AND_PART "0:1" -#define FAT_ENV_FILE "uboot.env" +/* MMC ENV related defines */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 1/* eMMC */ +#define CONFIG_SYS_MMC_ENV_PART 0 +#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_OFFSET 0x260000 +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT Why are we doing this?
Quoted 4 lines
This is exactly how it's done for DRA7 EVM board. And since those two boards are basically the same family, we should stick to one way of doing things here. And we agreed with Praneeth that this policy is booting Android from eMMC.
Right, but Android isn't the only use-case here. If Lokesh acks it, I'm fine with it. But, to be clear, are there am57xx_evm targets that lack eMMC? I don't want to get into the case we used to have on am335x_evm where we assume NAND for env, and run on many targets without NAND.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170609/2d2153f2/attachment.sig>
PATCH 1/1 arm: am57xx: Keep environment in eMMC
Quoted 49 lines · Tom Rini
Quoted 43 lines · Sam Protsenko
Quoted 26 lines · Tom Rini
Quoted 24 lines · Sam Protsenko
Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment.
Signed-off-by Sam Protsenko <[email protected]>--- include/configs/am57xx_evm.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)include/configs/am57xx_evm.h +1
-0@@ -13,6 +13,7 @@#define __CONFIG_AM57XX_EVM_H#include <environment/ti/dfu.h> +#include <linux/sizes.h> #ifdef CONFIG_SPL_BUILD #define CONFIG_IODELAY_RECALIBRATION @@ -20,11 +21,14 @@#define CONFIG_NR_DRAM_BANKS 2Quoted 15 lines
include/configs/am57xx_evm.h line 31
Quoted 13 lines
include/configs/am57xx_evm.h +8
-5-#define CONFIG_ENV_SIZE (64 << 10) -#define CONFIG_ENV_IS_IN_FAT -#define FAT_ENV_INTERFACE "mmc" -#define FAT_ENV_DEVICE_AND_PART "0:1" -#define FAT_ENV_FILE "uboot.env" +/* MMC ENV related defines */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 1/* eMMC */ +#define CONFIG_SYS_MMC_ENV_PART 0 +#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_OFFSET 0x260000 +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT Why are we doing this?
Quoted 4 lines
This is exactly how it's done for DRA7 EVM board. And since those two boards are basically the same family, we should stick to one way of doing things here. And we agreed with Praneeth that this policy is booting Android from eMMC.
Quoted 5 lines
Right, but Android isn't the only use-case here. If Lokesh acks it, I'm fine with it. But, to be clear, are there
am57xx_evmtargets that lack eMMC? I don't want to get into the case we used to have onam335x_evmwhere we assume NAND for env, and run on many targets without NAND.
No, I don't think so. All AM57x EVM / X15 boards I've seen up to this point do have eMMC on board. So there shouldn't be any problems here.
Quoted 2 lines
--
Tom
PATCH 1/1 arm: am57xx: Keep environment in eMMC
In reply to Tom RiniQuoted 49 lines · Tom Rini
Quoted 43 lines · Sam Protsenko
Quoted 26 lines · Tom Rini
Quoted 24 lines · Sam Protsenko
Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment.
Signed-off-by Sam Protsenko <[email protected]>--- include/configs/am57xx_evm.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)include/configs/am57xx_evm.h +1
-0@@ -13,6 +13,7 @@#define __CONFIG_AM57XX_EVM_H#include <environment/ti/dfu.h> +#include <linux/sizes.h> #ifdef CONFIG_SPL_BUILD #define CONFIG_IODELAY_RECALIBRATION @@ -20,11 +21,14 @@#define CONFIG_NR_DRAM_BANKS 2Quoted 15 lines
include/configs/am57xx_evm.h line 31
Quoted 13 lines
include/configs/am57xx_evm.h +8
-5-#define CONFIG_ENV_SIZE (64 << 10) -#define CONFIG_ENV_IS_IN_FAT -#define FAT_ENV_INTERFACE "mmc" -#define FAT_ENV_DEVICE_AND_PART "0:1" -#define FAT_ENV_FILE "uboot.env" +/* MMC ENV related defines */ +#define CONFIG_ENV_IS_IN_MMC +#define CONFIG_SYS_MMC_ENV_DEV 1/* eMMC */ +#define CONFIG_SYS_MMC_ENV_PART 0 +#define CONFIG_ENV_SIZE SZ_128K +#define CONFIG_ENV_OFFSET 0x260000 +#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) +#define CONFIG_SYS_REDUNDAND_ENVIRONMENT Why are we doing this?
Quoted 4 lines
This is exactly how it's done for DRA7 EVM board. And since those two boards are basically the same family, we should stick to one way of doing things here. And we agreed with Praneeth that this policy is booting Android from eMMC.
Quoted 5 lines
Right, but Android isn't the only use-case here. If Lokesh acks it, I'm fine with it. But, to be clear, are there
am57xx_evmtargets that lack eMMC? I don't want to get into the case we used to have onam335x_evmwhere we assume NAND for env, and run on many targets without NAND.
Yeah, I really like to keep env in FAT partition but because of android usecases we will have to keep it in eMMC(I am still trying to find a strong reason for not using it in eMMC and stick to FAT ;) ). As of now, all am57x boards(am572-evm, beagle-x15, am572-idk, am571-idk has eMMC.)
Anyways,
Thanks and regards,
Lokesh
Quoted 5 lines · Semen Protsenko
Use eMMC (instead of SD card) to store U-Boot environment. Use "reserved" partition for U-Boot environment.
Signed-off-by Sam Protsenko <[email protected]>Reviewed-by Lokesh Vutla <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170612/020bede7/attachment.sig>