[U-Boot] [PATCH 0/2] arm: vf610: Change Vybrid Tower boot memory.

Without the second patch, U-Boot will not boot on the Vybrid tower systems for me. A better mechanism would be to use the SPL to load direct to DDR3. However, the gfxRAM is large enough to fit the current (~400KB) image for initial load. U-Boot is relocated to DDR3 when initialized, so the life in gfxRAM is small.
I also discovered some redundant defines in the same file.
include/configs/vf610twr.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)

Some MTD defines are repeated twice; once with UBI and then with MTD. Remove the duplicate MTD defines from the UBI grouping.
Signed-off-by: Bill Pringlemeir bpringlemeir@nbsps.com --- include/configs/vf610twr.h | 3 --- 1 file changed, 3 deletions(-)
diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h index 6fd0b17..62ffb9e 100644 --- a/include/configs/vf610twr.h +++ b/include/configs/vf610twr.h @@ -60,11 +60,8 @@ /* UBI */ #define CONFIG_CMD_UBI #define CONFIG_CMD_UBIFS -#define CONFIG_CMD_MTDPARTS #define CONFIG_RBTREE #define CONFIG_LZO -#define CONFIG_MTD_DEVICE -#define CONFIG_MTD_PARTITIONS
/* Dynamic MTD partition support */ #define CONFIG_CMD_MTDPARTS

On Wed, Dec 03, 2014 at 01:40:58PM -0500, Bill Pringlemeir wrote:
Some MTD defines are repeated twice; once with UBI and then with MTD. Remove the duplicate MTD defines from the UBI grouping.
Signed-off-by: Bill Pringlemeir bpringlemeir@nbsps.com
Applied to u-boot/master, thanks!

The gfxRAM has no ECC, but it is 512KB in size. The other ECC SRAM comes in two banks of 256K each. The HAB uses parts of the 2nd bank and it seems that loading from the SD card may not exceed a bank size (256k-32k boot offset = 224k). U-boot since v2014.04 are larger than this and do not boot by default.
As U-Boot relocates to DDR3 the gfxRAM is probably reliable enough. However, an SPL framework would be better.
Signed-off-by: Bill Pringlemeir bpringlemeir@nbsps.com --- include/configs/vf610twr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h index 62ffb9e..41ad478 100644 --- a/include/configs/vf610twr.h +++ b/include/configs/vf610twr.h @@ -122,7 +122,7 @@ #define CONFIG_BOOTDELAY 3
#define CONFIG_LOADADDR 0x82000000 -#define CONFIG_SYS_TEXT_BASE 0x3f008000 +#define CONFIG_SYS_TEXT_BASE 0x3f408000
#define CONFIG_EXTRA_ENV_SETTINGS \ "script=boot.scr\0" \

On 2014-12-03 19:40, Bill Pringlemeir wrote:
The gfxRAM has no ECC, but it is 512KB in size. The other ECC SRAM comes in two banks of 256K each. The HAB uses parts of the 2nd bank and it seems that loading from the SD card may not exceed a bank size (256k-32k boot offset = 224k). U-boot since v2014.04 are larger than this and do not boot by default.
As U-Boot relocates to DDR3 the gfxRAM is probably reliable enough. However, an SPL framework would be better.
Signed-off-by: Bill Pringlemeir bpringlemeir@nbsps.com
include/configs/vf610twr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h index 62ffb9e..41ad478 100644 --- a/include/configs/vf610twr.h +++ b/include/configs/vf610twr.h @@ -122,7 +122,7 @@ #define CONFIG_BOOTDELAY 3
#define CONFIG_LOADADDR 0x82000000 -#define CONFIG_SYS_TEXT_BASE 0x3f008000 +#define CONFIG_SYS_TEXT_BASE 0x3f408000
#define CONFIG_EXTRA_ENV_SETTINGS \ "script=boot.scr\0" \
We use gfxRAM since quite some time and it proved working fine, see: http://git.toradex.com/cgit/u-boot-toradex.git/tree/include/configs/colibri_...
Also you can specify the board size limit using CONFIG_BOARD_SIZE_LIMIT.
Acked-by Stefan Agner stefan@agner.ch
-- Stefan
participants (3)
-
Bill Pringlemeir
-
Stefan Agner
-
Tom Rini