[U-Boot-Users] Using CFG_NO_FLASH and CFG_ENV_IS_NOWHERE

Hi, i am using the commands CFG_NO_FLASH and CFG_ENV_IS_NOWHERE to configure u-boot 1.1.1 . But I always get the following error on compiling:
cc --end-group \ -Map u-boot.map -o u-boot common/libcommon.a(cmd_nvedit.o)(.text+0x954): In function o_saveenv': /home/hagejoha/ppc-projects/u-boot/u-boot-1.1.1/common/cmd_nvedit.c:535: undefined reference to aveenv' common/libcommon.a(cmd_nvedit.o)(.got2+0x50): In function o_printenv': /home/hagejoha/ppc-projects/u-boot/u-boot-1.1.1/common/cmd_nvedit.c:119: undefined reference to nv_name_spec' make: *** [u-boot] Fehler 1
I used the following command to configure the commands:
#define REMOVE_COMMANDS ( CFG_CMD_AUTOSCRIPT | \ CFG_CMD_LOADS | \ CFG_CMD_ENV | \ CFG_CMD_FLASH )
#define CONFIG_COMMANDS ( (CONFIG_CMD_DFL & ~REMOVE_COMMANDS) )
Has anybody an idea what I am doing wrong?
Best regards, Johannes

In message 2D9AB865A49FD511914700105A0EF679016C493A@morse.smart.lfk.eads.net you wrote:
i am using the commands CFG_NO_FLASH and CFG_ENV_IS_NOWHERE to configure u-boot 1.1.1 .
Why are you doing this? This is not a good idea since there is flash on your board. Find out what needs to be done to support it. Porting U-Boot without environment support is like castrating your favorite stallion - nobody wants to do that.
cc --end-group \ -Map u-boot.map -o u-boot common/libcommon.a(cmd_nvedit.o)(.text+0x954): In function \x04o_saveenv': /home/hagejoha/ppc-projects/u-boot/u-boot-1.1.1/common/cmd_nvedit.c:535: undefined reference to \x13aveenv' common/libcommon.a(cmd_nvedit.o)(.got2+0x50): In function \x04o_printenv': /home/hagejoha/ppc-projects/u-boot/u-boot-1.1.1/common/cmd_nvedit.c:119: undefined reference to \x05nv_name_spec'
You have funny special characters there in your error message. Are you sure that the source code is OK? Looks a bit corrupted to me.
Also, when starting a new project you should use the top of tree from CVS, not an older version.
Best regards,
Wolfgang Denk
participants (2)
-
Hager, Johannes, HRD/AB
-
Wolfgang Denk