From: nreddy at netenrich.com Date: Wed, 8 Mar 2006 02:00:17 -0800 (PST) Subject: [U-Boot-Users] 'Need help to Port Wget to U-boot' In-Reply-To: <20060308090634.44724353631@atlas.denx.de> References: Your message of "Tue, 07 Mar 2006 23:59:36 PST." <34182.61.95.208.2.1141804776.squirrel@61.95.208.2> <20060308090634.44724353631@atlas.denx.de> Message-ID: <1704.61.95.208.2.1141812017.squirrel@61.95.208.2> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Thanks for your valuable suggestion. Regards, Nagi > In message <34182.61.95.208.2.1141804776.squirrel@61.95.208.2> you wrote: >> >> My requirement is before Linux boots up i should be able to use wget >> from the U-boot. > > As mentioned before: is this is really what you want to do, then it > it easier to boot up Linux. Provide a minimal Linux image (probably > based on busybox and it's builtin version of wget) which does not get > overwritten in the field. Then never overwrite this emergency image. > > Alternatively consider switching protocols. Instead of using wget, > uyoiu could use NFS which is available in U-Boot. > >> This requirement is to implement FAIL-SAFE condition in the u-boot >> itself. >> Because we are going to update Linux related frirmware in the field >> except u-boot. Suppose if power goes off while copying to FLASH then we >> can't make the device up and running. > > So far this is a standard requirement which is common with many other > embedded systems. > >> To avoid this problem we have planned to implement wget, so that u-boot > > This decision was wrong, as it requires a lot of stuff that is not > available in U-Boot. And it makes no sense to put such stuff in > U-Boot, as this is a boot loader and not an OS. If you need wget, use > an OS. It's trivial to do. > > You should reconsider your requirements and decisions. > >> itself can pick the firmeware from our support site and program the >> device. > > Change the protocol. Use NFS. > > Best regards, > > Wolfgang Denk > > -- > Software Engineering: Embedded and Realtime Systems, Embedded Linux > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de > For every complex problem, there is a solution that is simple, neat, > and wrong. - Mark Twain >