From: Wolfgang Denk Date: Thu, 29 Jul 2004 12:33:13 +0200 Subject: R: [U-Boot-Users] DHCP/BOOTP with CONFIG_NET_MULTI In-Reply-To: Your message of "Thu, 29 Jul 2004 11:43:52 +0200." <000f01c47550$8fb7fe10$4a50848a@settimo.italtel.it> Message-ID: <20040729103318.A3FA3C109F@atlas.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de In message <000f01c47550$8fb7fe10$4a50848a@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@gadget.cscaper.com>