[prev in list] [next in list] [prev in thread] [next in thread]
List: u-boot
Subject: R: [U-Boot-Users] DHCP/BOOTP with CONFIG_NET_MULTI
From: wd () denx ! de (Wolfgang Denk)
Date: 2004-07-29 10:33:13
Message-ID: 20040729103318.A3FA3C109F () atlas ! denx ! de
[Download RAW message or body]
In message <000f01c47550$8fb7fe10$4a50848a at settimo.italtel.it> you wrote:
>
> > The BOOTP/DHCP code just uses the value stored in the "NetOurEther"
> > variable. To me this looks OK.
> yes, I see it and it's OK.
Fine.
> Yes, You are right, I made some confusion with this define.
> Looking better the code seems all OK.
> Sorry for my mistake.
Don't worry; we all have our blind spots.
> My intention is to launch dhcp and tftp in a function that control the
> result; in case of failure the boot process will be aborted sending
> a communication over IPMI using a proprietari SMS interface based on SCC.
> I looked the code for see if with CONFIG_NET_MULTI the dhcp process return
> an error code or loop until ^C is pressed.
> From the code seems that after all the interface configured, netRestartWrap
> go to 1, so a return of -1 is made bacause NetState assume the NETLOOP_FAIL
> value.
> This is exactly all I wanted.
Don't waste your time writing new code for such functionality. Just
enable the hush shell as parser and implement it as a shell command /
script, for example something like that
run dhcp_cmd || run tftp_cmd || run ipmi_cmd
You have the power of shell programming available for free - use it!
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
You young'uns. That was *long* before AltaVista, DejaNews, or even
(gasp) the *Web*! In fact, we typed that thread on steam-powered card
punchers, and shipped it around via Pony Express.
-- Randal Schwartz in <8cwww1cd0d.fsf at gadget.cscaper.com>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic