From: Felix Radensky <felix@embedded-sol.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH v2] mx31ads: fix loadaddr environment variable define
Date: Mon, 28 Apr 2008 11:10:23 +0300 [thread overview]
Message-ID: <1209370223.3101.7.camel@felix.lan> (raw)
In-Reply-To: <Pine.LNX.4.64.0804280014100.6246@axis700.grange>
Hi,
I've verified that both problems I've reported are fixed by this
patch. Thanks a lot !
I'm sorry for not reporting this in the first place, but it
looks like ^C cannot be used to interrupt some blocking operations,
like, e.g. sending BOOTP requests.
Another problem I've noticed is that I had to manually set
ethaddr environment variable in order for DHCP/BOOTP to work.
In Redboot this worked out of the box.
Felix.
On Mon, 2008-04-28 at 00:25 +0200, Guennadi Liakhovetski wrote:
> Arithmetic expressions do not get evaluated under stringification. Remove
> default network configuration, add DHCP command support. Thanks to Felix
> Radensky for reporting.
>
> Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
>
> ---
>
> On Sun, 27 Apr 2008, Wolfgang Denk wrote:
>
> > In message <Pine.LNX.4.64.0804272210370.6246@axis700.grange> you wrote:
> > >
> > > > 2. dhcp command is undefined, only bootp is available.
> > >
> > > It wasn't needed in the environment the configuration has been programmed
> > > for. Patches are welcome:-)
> >
> > Please add it. It's default...
>
> Hm, but it isn't in
>
> #include <config_cmd_default.h>
>
> ?
>
> > > diff --git a/include/configs/mx31ads.h b/include/configs/mx31ads.h
> > > index 5286e1f..301afd5 100644
> > > --- a/include/configs/mx31ads.h
> > > +++ b/include/configs/mx31ads.h
> > > @@ -87,7 +87,7 @@
> > > #define CONFIG_NETMASK 255.255.255.0
> > > #define CONFIG_IPADDR 192.168.23.168
> > > #define CONFIG_SERVERIP 192.168.23.2
> > > -#define CONFIG_LOADADDR (CSD0_BASE + 0x800000) /* loadaddr env var */
> > > +#define CONFIG_LOADADDR 0x80800000 /* loadaddr env var */
> >
> > And while we are at it: Please remove all these default network
> > settings. I don't like these at all.
>
> Is this one better?
>
> diff --git a/include/configs/mx31ads.h b/include/configs/mx31ads.h
> index 5286e1f..7614b95 100644
> --- a/include/configs/mx31ads.h
> +++ b/include/configs/mx31ads.h
> @@ -79,15 +79,13 @@
> #include <config_cmd_default.h>
>
> #define CONFIG_CMD_PING
> +#define CONFIG_CMD_DHCP
> #define CONFIG_CMD_SPI
> #define CONFIG_CMD_DATE
>
> #define CONFIG_BOOTDELAY 3
>
> -#define CONFIG_NETMASK 255.255.255.0
> -#define CONFIG_IPADDR 192.168.23.168
> -#define CONFIG_SERVERIP 192.168.23.2
> -#define CONFIG_LOADADDR (CSD0_BASE + 0x800000) /* loadaddr env var */
> +#define CONFIG_LOADADDR 0x80800000 /* loadaddr env var */
>
> #define CONFIG_EXTRA_ENV_SETTINGS \
> "netdev=eth0\0" \
next prev parent reply other threads:[~2008-04-28 8:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-26 21:06 [U-Boot-Users] Problems with 1.3.3-rc1 on i.MX31ADS Felix Radensky
2008-04-27 20:14 ` [U-Boot-Users] [PATCH] mx31ads: fix loadaddr environment variable define Guennadi Liakhovetski
2008-04-27 21:44 ` Wolfgang Denk
2008-04-27 22:25 ` [U-Boot-Users] [PATCH v2] " Guennadi Liakhovetski
2008-04-28 8:10 ` Felix Radensky [this message]
2008-04-28 9:10 ` Wolfgang Denk
2008-04-29 20:55 ` [U-Boot-Users] Problems with 1.3.3-rc1 on i.MX31ADS Robert Schwebel
2008-04-30 6:52 ` Felix Radensky
2008-04-30 20:55 ` Robert Schwebel
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=1209370223.3101.7.camel@felix.lan \
--to=felix@embedded-sol.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.