From: Dave Hylands Date: Mon, 26 Jun 2006 07:18:45 -0700 Subject: [U-Boot-Users] Question about the setenv command In-Reply-To: <20060626091553.B1B93352681@atlas.denx.de> References: <20060626091553.B1B93352681@atlas.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de HI Wolfgang, > Where did you get the sources from? I understand that this is not the > official source tree? It starts out using the official 1.1.4 source and adds a bunch of patches which appear to be specific to the gumstix hardware. > > In version 1.1.2, I was able to use a command like this: > > > > setenv linux "$bootcmd" > > > > and this would make the variable 'linux' have the same value as the > > variable 'bootcmd' > > Yes. Thisis standard use and must work on all systems. It turns out that this does in fact work as before using simple variables. I think that the issue has nothing to do with the 1.1.2 versus 1.1.4 but rather that setenv linux "$bootcmd" doesn't work when bootcmd is set to this (all on one line): setenv bootcmd "icache on;setenv stderr nulldev; setenv stdout nulldev; if mmcinit && fatload mmc 0 a2000000 gumstix-factory.script; then setenv stdout serial; setenv stderr serial; echo Found gumstix-factory script...; autoscr; else setenv stdout serial;setenv stderr serial;fsload && bootm; fi" I get the following output: GUM> setenv linux "$bootcmd" Usage: setenv - set environment variables But if I copy and paste the contents (using my terminal program) then everything works fine. Or if I simplify bootcmd then everything works fine. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/