All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] environment settings question
Date: Mon, 25 Jun 2007 18:12:30 -0500	[thread overview]
Message-ID: <46804BDE.8040404@freescale.com> (raw)
In-Reply-To: <7ee1596c0706251605k5b093945o4164d19830c4de9@mail.gmail.com>

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: <mailman.29221.1182256330.29999.u-boot-users@lists.sourceforge.net>	<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?

  reply	other threads:[~2007-06-25 23:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-25 23:05 [U-Boot-Users] environment settings question sapirf fersht
2007-06-25 23:12 ` Timur Tabi [this message]
2007-06-26  7:40   ` nicky geerts
     [not found]     ` <7ee1596c0706260521x1355a083q8176f1728a9b4a02@mail.gmail.com>
2007-06-26 12:34       ` nicky geerts
     [not found]         ` <7ee1596c0706260608g31385db9o59fec2d7255e70a@mail.gmail.com>
2007-06-26 13:38           ` nicky geerts
     [not found]             ` <7ee1596c0706260650h730766d4ye8fe893d0a29023d@mail.gmail.com>
2007-06-26 13:54               ` nicky geerts
     [not found]                 ` <7ee1596c0706260704o6ed69b4cj4c4a3177a0f20655@mail.gmail.com>
2007-06-26 14:13                   ` nicky geerts
2007-06-26 16:01                 ` sapirf fersht

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46804BDE.8040404@freescale.com \
    --to=timur@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.