[U-Boot] enbw_cmc, da850evm_direct_nor, and calimain vectors table misaligned (was: [PATCH] arm: fix a build error with CONFIG_USE_IRQ)

Christian Riesch christian.riesch at omicron.at
Mon Jul 7 10:55:46 CEST 2014


Hi again,

On Mon, Jul 7, 2014 at 9:15 AM, Christian Riesch
<christian.riesch at omicron.at> wrote:
> [...] As a result, __image_copy_start points to
> 0x60000000 (CONFIG_SYS_TEXT_BASE) and _start points is 0x60000004. The
> relocation code in arch/arm/lib/relocate.S calculates its relocation
> offset based on __image_copy_start. However, arch/arm/lib/board.c
> calculates the offset as
>
> gd->reloc_off = addr - (ulong)&_start;

I just noticed that I did my test without CONFIG_SYS_GENERIC_BOARD.
Adding CONFIG_SYS_GENERIC_BOARD solves that problem, as the relocation
offset calculation in common/board_f.c is based on
CONFIG_SYS_TEXT_BASE.

So adding the missing #include in vectors.S and adding
CONFIG_SYS_GENERIC_BOARD (patch is already in u-boot-arm/master) fixes
the calimain board.

I'll post a patch for the missing include.

Christian


More information about the U-Boot mailing list