
On Mon, Oct 25, 2010 at 7:55 PM, sughosh ganu urwithsughosh@gmail.com wrote:
hi Himanshu,
On Mon, Oct 25, 2010 at 6:46 PM, Himanshu Chauhan hschauhan@nulltrace.org wrote:
I am compiling u-boot for ARM versatile-PB board. But the compilation fails with this error:
board.c: In function ‘__dram_init_banksize’: board.c:459: error: ‘CONFIG_SYS_SDRAM_BASE’ undeclared (first use in this function) board.c:459: error: (Each undeclared identifier is reported only once board.c:459: error: for each function it appears in.) board.c: In function ‘board_init_f’: board.c:505: error: ‘CONFIG_SYS_INIT_SP_ADDR’ undeclared (first use in this function) board.c:538: error: ‘CONFIG_SYS_SDRAM_BASE’ undeclared (first use in this function) make[1]: *** [board.o] Error 1 make[1]: Leaving directory `/home/hchauhan/xvisor/u-boot/arch/arm/lib' make: *** [arch/arm/lib/libarm.a] Error 2
Looks like the board you are compiling does not have support for the ARM relocation added recently. You would need to add valid entries to the board config file.
Check this patch as an example http://www.mail-archive.com/u-boot@lists.denx.de/msg36109.html
-sughosh
Thanks Sughosh.
Let me check.
- Himanshu