poplar: save environment at a different offset
PATCH 1/1 poplar: save environment at a different offset
From: Alex Elder <[email protected]>
Change CONFIG_ENV_OFFSET for Poplar to be 1MB further into the eMMC than before. This puts it immediately prior to the space we are reserving offset 0x200000-0x400000 for UEFI to save its persistent data. Define CONFIG_ENV_SIZE as a product of env_mmc_nblks and the sector size, like CONFIG_ENV_OFFSET is.
--- include/configs/poplar.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
include/configs/poplar.h +3 -3
@@ -44,7 +44,7 @@#define CONFIG_EXTRA_ENV_SETTINGS \ "loader_mmc_blknum=0x0\0" \ "loader_mmc_nblks=0x780\0" \ - "env_mmc_blknum=0x780\0" \ + "env_mmc_blknum=0xf80\0" \ "env_mmc_nblks=0x80\0" \ "kernel_addr_r=0x30000000\0" \ "pxefile_addr_r=0x32000000\0" \
@@ -57,8 +57,8 @@/* Command line configuration */ #define CONFIG_SYS_MMC_ENV_DEV 0 -#define CONFIG_ENV_OFFSET (0x780 * 512)/* env_mmc_blknum */ -#define CONFIG_ENV_SIZE 0x10000/* env_mmc_nblks bytes */ +#define CONFIG_ENV_OFFSET (0xf80 * 512)/* env_mmc_blknum bytes */ +#define CONFIG_ENV_SIZE (0x80 * 512)/* env_mmc_nblks bytes */ /* Monitor Command Prompt */ #define CONFIG_SYS_CBSIZE 512
Signature · 1 line
2.18.0
PATCH 1/1 poplar: save environment at a different offset
Quoted 10 lines · Shawn Guo
From: Alex Elder <[email protected]>
Change
CONFIG_ENV_OFFSETfor Poplar to be 1MB further into the eMMC than before. This puts it immediately prior to the space we are reserving offset 0x200000-0x400000 for UEFI to save its persistent data. DefineCONFIG_ENV_SIZEas a product ofenv_mmc_nblksand the sector size, likeCONFIG_ENV_OFFSETis.Signed-off-by Alex Elder <[email protected]>Signed-off-by Shawn Guo <[email protected]>
And acked now as well... This was done last year some time. Thanks Shawn.
-Alex
Quoted 29 lines
--- include/configs/poplar.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/configs/poplar.h +3
-3@@ -44,7 +44,7 @@#define CONFIG_EXTRA_ENV_SETTINGS \ "loader_mmc_blknum=0x0\0" \ "loader_mmc_nblks=0x780\0" \ - "env_mmc_blknum=0x780\0" \ + "env_mmc_blknum=0xf80\0" \ "env_mmc_nblks=0x80\0" \ "kernel_addr_r=0x30000000\0" \ "pxefile_addr_r=0x32000000\0" \@@ -57,8 +57,8 @@/* Command line configuration */ #define CONFIG_SYS_MMC_ENV_DEV 0 -#define CONFIG_ENV_OFFSET (0x780 * 512)/* env_mmc_blknum */ -#define CONFIG_ENV_SIZE 0x10000/* env_mmc_nblks bytes */ +#define CONFIG_ENV_OFFSET (0xf80 * 512)/* env_mmc_blknum bytes */ +#define CONFIG_ENV_SIZE (0x80 * 512)/* env_mmc_nblks bytes */ /* Monitor Command Prompt */ #define CONFIG_SYS_CBSIZE 512
PATCH 1/1 poplar: save environment at a different offset
In reply to Shawn GuoHi Tom,
Can you please help apply the patch if it looks fine?
Shawn
Quoted 45 lines · Shawn Guo
From: Alex Elder <[email protected]>
Change
CONFIG_ENV_OFFSETfor Poplar to be 1MB further into the eMMC than before. This puts it immediately prior to the space we are reserving offset 0x200000-0x400000 for UEFI to save its persistent data. DefineCONFIG_ENV_SIZEas a product ofenv_mmc_nblksand the sector size, likeCONFIG_ENV_OFFSETis.Signed-off-by Alex Elder <[email protected]>Signed-off-by Shawn Guo <[email protected]>--- include/configs/poplar.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)include/configs/poplar.h +3
-3@@ -44,7 +44,7 @@#define CONFIG_EXTRA_ENV_SETTINGS \ "loader_mmc_blknum=0x0\0" \ "loader_mmc_nblks=0x780\0" \ - "env_mmc_blknum=0x780\0" \ + "env_mmc_blknum=0xf80\0" \ "env_mmc_nblks=0x80\0" \ "kernel_addr_r=0x30000000\0" \ "pxefile_addr_r=0x32000000\0" \@@ -57,8 +57,8 @@/* Command line configuration */ #define CONFIG_SYS_MMC_ENV_DEV 0 -#define CONFIG_ENV_OFFSET (0x780 * 512)/* env_mmc_blknum */ -#define CONFIG_ENV_SIZE 0x10000/* env_mmc_nblks bytes */ +#define CONFIG_ENV_OFFSET (0xf80 * 512)/* env_mmc_blknum bytes */ +#define CONFIG_ENV_SIZE (0x80 * 512)/* env_mmc_nblks bytes */ /* Monitor Command Prompt */ #define CONFIG_SYS_CBSIZE 512Signature · 6 lines
2.18.0 _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de https://lists.denx.de/listinfo/u-boot
Quoted 10 lines · Shawn Guo
From: Alex Elder <[email protected]>
Change
CONFIG_ENV_OFFSETfor Poplar to be 1MB further into the eMMC than before. This puts it immediately prior to the space we are reserving offset 0x200000-0x400000 for UEFI to save its persistent data. DefineCONFIG_ENV_SIZEas a product ofenv_mmc_nblksand the sector size, likeCONFIG_ENV_OFFSETis.Signed-off-by Alex Elder <[email protected]>Signed-off-by Shawn Guo <[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/20190114/25f468cb/attachment.sig>