Skip to contentSkip to conversation

facing problem in cmd_flash.c

U-Boot-Users Subhransu Prusty 1 participant 1 message Sep 19, 2006

lore
Share & tools
lore
#0 lore raw

while compiling for my lsi(arm7tdmi based) board i am getting some undefined references in cmd_flash.c like flash_print_info, flash_erase.
i have included common.h(which includes flash.h) in the cmd_flash.c and in the flash.c also.

in flash.c i have given the definition for flash_print_info and flash_erase. Here in the following i am giving the snippets of the code where i am getting the error.

in cmd_flash.c -
#include <common.h>
....
flash_print_info (&flash_info[bank]); //here at this point i am getting undefined reference error

.......

in flash.h -
.....
extern void flash_print_info (flash_info_t *);

in /board/flash.c -

void flash_print_info (flash_info_t *info)

{
	int i;
               ......
}

can anybody please solve this problem

Signature · 3 lines
thanks & regards
Subhransu Sekhar Prusty
+91-9885212073