From mboxrd@z Thu Jan 1 00:00:00 1970 From: Holger Brunck Date: Wed, 30 Mar 2011 10:20:04 +0200 Subject: [U-Boot] using ${var} with env import Message-ID: <4D92E7B4.9010305@keymile.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi all, I am using env import -t to import environment variables from a textfile. My simple textfile is: fdt_file=${hostname}/${hostname}.dtb I import the file with: => tftp 200000 scripts/my_environ.txt => env import -t 200000 ${filesize} Now when I print the variable I get: => print fdt_file fdt_file=${hostname}/${hostname}.dtb hostname is defined as: => print hostname hostname=mgcoge I see that the ${hostname} for my fdt_file variable is not replaced. If I do this with setenv: => setenv fdt_file_2 ${hostname}/${hostname}.dtb => print fdt_file_2 fdt_file_2=mgcoge/mgcoge.dtb My variable is replaced. Is the usage of ${var} in the textfiles not possible? Or is there a way to solve this problem? I try to use this textfile for different boards and can therfore not specify hostname in advance in the textfile. Best regards Holger Brunck