[U-Boot] POST WORD for socfpga platform

Abhishek Madhyastha abhishek046 at gmail.com
Wed Mar 23 09:28:16 CET 2016


Hi,

I'm working on enabling the POST feature for the socfpga cyclone v platform
but I'm unable to define a proper address for the post word.

>From what I've read, I believe this word needs to point to a location on
the on chip RAM, especially for ARM based architectures.
Ref: http://lists.denx.de/pipermail/u-boot/2011-September/100138.html

While referring to other architectures/implementations, I see that a
particular space on the on chip RAM is reserved for the POST word.

On the socfpga platform, in ./include/configs/socfpga_common.h

CONFIG_SYS_INIT_RAM_ADDR points to 0xFFFF0000

CONFIG_SYS_INIT_RAM_SIZE points to (0x10000 - 0x100)       where 0x100
is space reserved at back of scratch RAM for debug info.

CONFIG_SYS_INIT_SP_ADDR points to (CONFIG_SYS_INIT_RAM_ADDR +
CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)


So, the stack pointer resides at this address. I tried modifying this by
changing


CONFIG_SYS_INIT_RAM_SIZE to (0x10000 - 0x104)        and defining

CONFIG_SYS_POST_WORD_ADDR as   (CONFIG_SYS_INIT_RAM_ADDR +
CONFIG_SYS_INIT_RAM_SIZE + 0x100)

so that the space at the end would be reserved for the post word.


However, doing this makes uboot to get stuck at board_init_f which means it
doesn't go past the relocate_code.

Could someone explain how I can implement this feature?


Thanks,
Abhishek


More information about the U-Boot mailing list