arm: vf610: Change Vybrid Tower boot memory.
cover 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(-)
PATCH 1/2 arm: vf610: Remove duplicate MTD defines.
Some MTD defines are repeated twice; once with UBI and then with MTD. Remove the duplicate MTD defines from the UBI grouping.
--- include/configs/vf610twr.h | 3 --- 1 file changed, 3 deletions(-)
include/configs/vf610twr.h +0 -3
@@ -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
Signature · 1 line
1.8.0.2
PATCH 1/2 arm: vf610: Remove duplicate MTD defines.
Quoted 4 lines · Bill Pringlemeir
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 <[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: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150115/17da9096/attachment.pgp>
PATCH 2/2 arm: vf610: Initial load to 1/2MB OC gfxRAM.
In reply to Bill PringlemeirThe 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.
--- include/configs/vf610twr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/configs/vf610twr.h +1 -1
@@ -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" \
Signature · 1 line
1.8.0.2
PATCH 2/2 arm: vf610: Initial load to 1/2MB OC gfxRAM.
Quoted 19 lines · Bill Pringlemeir
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 <[email protected]>--- include/configs/vf610twr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/configs/vf610twr.h +0
-0
include/configs/vf610twr.h line 128
Quoted 8 lines
include/configs/vf610twr.h +1
-1@@ -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_vf.h?h=2014.10-toradex-next#n128
Also you can specify the board size limit using CONFIG_BOARD_SIZE_LIMIT.
Acked-by Stefan Agner <[email protected]>
--
Stefan