From: Hannes Schmelzer <hannes@schmelzer.or.at>
To: u-boot@lists.denx.de
Subject: [U-Boot] net.c: question regarding commit: fd3056337e6fcc140f400e11edd33f6f1cb37de1
Date: Wed, 15 Jul 2015 21:18:34 +0200 [thread overview]
Message-ID: <55A6B20A.60500@schmelzer.or.at> (raw)
In-Reply-To: <14874.213.33.116.118.1434975811.squirrel@petermaier.org>
hi joe,
maybe my email got lost ...
best regards,
Hannes
On 2015-06-22 14:23, Hannes Schmelzer wrote:
> Hi joe,
>
> you did introduce callbacks on setting up ip,dns, ... in net.c
>
> Why it did become necessary to do following ?
>
> if (flags & H_PROGRAMMATIC)
> return 0;
>
> I have actually trouble with this, because my code in
> board/BuR/kwb/board.c doesn't work anymore as expected.
>
> /* setup default IP, in case if there is nothing in environment */
> if (!getenv("ipaddr")) {
> setenv("ipaddr", "192.168.60.1");
> setenv("netmask", "255.255.255.0");
> setenv("serverip", "192.168.60.254");
> setenv("gatewayip", "192.168.60.254");
> puts("net: had no IP! made default setup.\n");
> }
>
> Purpose of this was/is to setup a default ip-address if nothing in
> environment has been set yet.
>
> do you (or somebody else) have an idea how to work around this ?
>
> many thanks and best regards,
> Hannes
>
next parent reply other threads:[~2015-07-15 19:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <14874.213.33.116.118.1434975811.squirrel@petermaier.org>
2015-07-15 19:18 ` Hannes Schmelzer [this message]
2015-06-22 12:23 [U-Boot] net.c: question regarding commit: fd3056337e6fcc140f400e11edd33f6f1cb37de1 Hannes Schmelzer
2015-06-22 21:54 ` Joe Hershberger
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=55A6B20A.60500@schmelzer.or.at \
--to=hannes@schmelzer.or.at \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox