Hello, community. <br>
<br>
I need your advice.<br>
<br>
I'm porting u-boot to new (not supported by u-boot) 8247A based board.
I began with the previous u-boot, release 1.1.3, and built our project.
Yesterday I moved the project to u-boot release 1.1.4 and since I have
the compilation failure:<br>
<br>
common/libcommon.a(env_flash.o)(.text+0xe8): In function `saveenv':<br>
/home/seva/tools/u-boot-1.1.4/common/env_flash.c:332: undefined reference to `flash_sect_protect'<br>
common/libcommon.a(env_flash.o)(.text+0x108):/home/seva/tools/u-boot-1.1.4/common/env_flash.c:336:
undefined reference to `flash_sect_erase'<br>
common/libcommon.a(env_flash.o)(.text+0x158):/home/seva/tools/u-boot-1.1.4/common/env_flash.c:349:
undefined reference to `flash_sect_protect'<br>
<br>
In the project's header file I've defined CONFIG_COMMANDS as:<br>
<br>
#define CONFIG_COMMANDS
(CFG_CMD_ECHO | CONFIG_CMD_DFL | CONFIG_JFFS2_CMDLINE | CFG_CMD_FLASH)<br>
<br>
During debug I've found that the file cmd_flash.c doesn't compile at
all. Above the meaning code I inserted next lines for test purpose:<br>
<br>
-------------<br>
#include <common.h><br>
#include <command.h><br>
<br>
#if (CONFIG_COMMANDS)<br>
#error<br>
#endif<br>
-------------<br>
<br>
Then I've seen that compilation passed but resulted object: <br>
1. Not empty, `ls` output is:<br>
-rw-r--r-- 1 seva users 17856 2006-01-03 11:18 common/cmd_flash.o<br>
<br>
2. Has not symbols at all, output of `nm` is empty.<br>
<br>
I tried to remove space in "#if (...)" statement, between "if" and<span style="color: gray;"><span style="color: black;"> left bracket</span></span>, but this didn't
affect. I tried also change statement to "#if (CONFIG_COMMANDS != 0)"
but this didn't work too, the compilation passed for the file "successfully".<br>
<br>
Please advice. Where the problem could came from? Where am I wrong?<br>
<br>
More about the compilation environment:<br>
<br>
Toolchain is ELDK version 3.1.1 Build 2005-06-07<br>
Linux is SuSE 9.3 <br>
Project configured as 8260, in the Makefile: <br>
<br>
P110_config: unconfig<br>
@./mkconfig P110 ppc mpc8260 P110<br>
<br>
Compiler's string for the file:<br>
<br>
ppc_82xx-gcc -g -Os -fPIC -ffixed-r14 -meabi
-D__KERNEL__ -DTEXT_BASE=0xFFF00000
-I/home/seva/tools/u-boot-1.1.4/include -fno-builtin -ffreestanding
-nostdinc -isystem
/opt/cross/usr/bin/../lib/gcc-lib/ppc-linux/3.3.3/include -pipe
-DCONFIG_PPC -D__powerpc__ -DCONFIG_8260 -DCONFIG_CPM2 -ffixed-r2
-ffixed-r29 -mstring -mcpu=603e -mmultiple -Wall -Wstrict-prototypes -c
-o cmd_flash.o cmd_flash.c <br>
<br>
Thanks and sorry for my poor English.<br>