From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Mon, 25 Jun 2007 18:12:30 -0500 Subject: [U-Boot-Users] environment settings question In-Reply-To: <7ee1596c0706251605k5b093945o4164d19830c4de9@mail.gmail.com> References: <7ee1596c0706251605k5b093945o4164d19830c4de9@mail.gmail.com> Message-ID: <46804BDE.8040404@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de sapirf fersht wrote: > For a ixp425 cpu how should the environment value > #define CFG_ENV_IS_IN_FLASH be set? > > #define CFG_ENV_IS_IN_FLASH > > OR > > #define CFG_ENV_IS_IN_FLASH 1 The code that uses these macros should support both methods, but personally I prefer that the macros themselves be defined using the first method. IMHO, you should define a macro to contain a value only if that value has some inherent significance. For example, does "1" really mean something that "2" doesn't? In this case, no. -- Timur Tabi Linux Kernel Developer @ Freescale >From "abiyani at unix dot telasic dot com" at unix.telasic.com Tue Jun 26 02:30:36 2007 From: "abiyani at unix dot telasic dot com" at unix.telasic.com (Arun Biyani) Date: Mon, 25 Jun 2007 17:30:36 -0700 Subject: [U-Boot-Users] U-Boot 1.2 - Cannot run hello_world In-Reply-To: <200706192208.PAA23857@unix.telasic.com> References: <4677E737.2070507@alum.mit.edu> <200706192208.PAA23857@unix.telasic.com> Message-ID: <200706260030.RAA15449@unix.telasic.com> Arun Biyani wrote: > When I add CFG_CMD_ELF to the configuration, I get the error below. > Maybe the CFG_CMD_ELF needs > to be coupled with some other configuration option. Please help. > > My current definition is - > > #define CONFIG_COMMANDS ( \ > CONFIG_CMD_DFL | \ > CFG_CMD_ELF | \ > CFG_CMD_MII | \ > CFG_CMD_JFFS2 | \ > CFG_CMD_NET | \ > CFG_CMD_DHCP | \ > CFG_CMD_PING \ > ) > > The error I get is - (dcache_status & dcache_disable missing): > > /home/local/bin/../lib/gcc/m68k-uclinux/4.1.1/m5307/msep-data -lgcc \ > -Map u-boot.map -o u-boot > common/libcommon.a(cmd_elf.o): In function `do_bootelf': > /home/abiyani/wrk/u-boot-1.2.0/common/cmd_elf.c:62: undefined reference > to `dcache_status' > /home/abiyani/wrk/u-boot-1.2.0/common/cmd_elf.c:63: undefined reference > to `dcache_disable' > make: *** [u-boot] Error 1 > [u-boot-1.2.0$:1046] > I get this error above if I add elf file support to u-boot for Coldfire processor. Looks like cmd_elf.c expects dcache_disable and dcache_status functions. Which library provides these symbol values?