[U-Boot] uboot nor xip support

Hi, I need some help resolving system hang when booting from NOR flash (XIP boot).
On our system we have CFI NOR flash sitting at base 0x08000000. with CONFIG_SYS_MONITOR_BASE and TEXT_BASE being set at the flash base address in board config file. But the system hangs when we actually try to boot from flash. earlier we verified that the flash works fine when booting from RAM.
with uboot code and env occupying first two sector in flash (0x08000000 + 2 * 128KB), I think the hang could arise from the fact that Monitor stack, Board info data and malloc arena growing downward and crossing flash boundaries. Our ROM bootcode is configured to jump at flash base so I couldn't really write uboot code at some other offset in NOR flash.
Regards Amol

Hi Amol
On Wed, Aug 8, 2012 at 12:57 PM, Amol Bhise amolbhise3@gmail.com wrote:
Hi, I need some help resolving system hang when booting from NOR flash (XIP boot).
On our system we have CFI NOR flash sitting at base 0x08000000. with CONFIG_SYS_MONITOR_BASE and TEXT_BASE being set at the flash base address in board config file. But the system hangs when we actually try to boot from flash. earlier we verified that the flash works fine when booting from RAM.
with uboot code and env occupying first two sector in flash (0x08000000 + 2
- 128KB), I think the hang could arise from the fact that Monitor stack,
Board info data and malloc arena growing downward and crossing flash boundaries. Our ROM bootcode is configured to jump at flash base so I couldn't really write uboot code at some other offset in NOR flash.
More info needed - specifically, what board and what version of U-Boot
Regards,
Graeme

Hi Graeme, We are using TI's 8148 EVM board, which is bit modified for NOR booting and the uboot version is 'U-Boot 2010.06'. On board flash is CFi compliant (16bit x 16bit) 64Mib. The flash works all fine when we boot from RAM as normal.
Regards Amol
On Wed, Aug 8, 2012 at 2:36 AM, Graeme Russ graeme.russ@gmail.com wrote:
Hi Amol
On Wed, Aug 8, 2012 at 12:57 PM, Amol Bhise amolbhise3@gmail.com wrote:
Hi, I need some help resolving system hang when booting from NOR flash (XIP boot).
On our system we have CFI NOR flash sitting at base 0x08000000. with CONFIG_SYS_MONITOR_BASE and TEXT_BASE being set at the flash base address in board config file. But the system hangs when we actually try to boot from flash. earlier we verified that the flash works fine when booting from RAM.
with uboot code and env occupying first two sector in flash (0x08000000
- 2
- 128KB), I think the hang could arise from the fact that Monitor stack,
Board info data and malloc arena growing downward and crossing flash boundaries. Our ROM bootcode is configured to jump at flash base so I couldn't really write uboot code at some other offset in NOR flash.
More info needed - specifically, what board and what version of U-Boot
participants (2)
-
Amol Bhise
-
Graeme Russ