[U-Boot] Versatile PB compilation problem

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
Any ideas?
I have pulled the tree today from git repository.
Thanks
Regards Himanshu

hi Himanshu,
On Mon, Oct 25, 2010 at 6:46 PM, Himanshu Chauhan hschauhan@nulltrace.orgwrote:
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

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

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
The September archive did the trick for me. I can test my Hypervisor with this image. Since I am not aware of the new U-Boot structure, may be somebody maintaining Versatile PB board, can fix this.
Thanks
Regards Himanshu
participants (2)
-
Himanshu Chauhan
-
sughosh ganu