Environment variable expansion in boot.scr

I'm trying to use environment variables in my boot.scr file but they
aren't getting expanded. Is this something that is supported, or do I
have the syntax wrong. Here is an excerpt from my boot.scr and the
resulting output:

----- boot.scr [snip] -----
echo buddy ${buddy}
echo buddy $(buddy)
echo buddy $[buddy]
echo buddy $buddy
echo buddy "${buddy}"
echo buddy '${buddy}'
setenv bootargs "console=${console} androidboot.console=ttyS2 mem=256M
root=${mmcroot} rootfstype=${mmcrootfstype} rootdelay=1 init=/init
ip=off mpurate=720 omap_vout.vid1_static_vrfb_alloc=y buddy=${buddy}"
printenv
----- boot.scr [end]

----- u-boot output [start] -----
buddy
buddy
buddy 0
buddy
buddy
buddy
bootcmd=if mmc init; then if run loadbootscript; then run bootscript;
else if run loaduimage; then run mmcboot; else run nandboot; fi; fi;
else run nandboot;
fi
baudrate=115200
loadaddr=0x82000000
usbtty=cdc_acm
console=ttyS2,115200n8
vram=12M
dvimode=1024x768MR-16@60
defaultdisplay=dvi
mmcroot=/dev/mmcblk0p2 rw
mmcrootfstype=ext3 rootwait
nandroot=/dev/mtdblock4 rw
nandrootfstype=jffs2
nandargs=setenv bootargs console=${console} mpurate=${mpurate} vram=$
{vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay}
root=${nandroot} roo
tfstype=${nandrootfstype}
loadbootscript=fatload mmc 0 ${loadaddr} boot.scr
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
loaduimage=fatload mmc 0 ${loadaddr} uImage
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
nandboot=echo Booting from nand ...; run nandargs; nand read $
{loadaddr} 280000 400000; bootm ${loadaddr}
dieid#=7d9c000300000000040323091000a00b
bootdelay=3
buddy=msbv2_mantis
mmcargs=setenv bootargs console=${console} mpurate=${mpurate} vram=$
{vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay}
root=${mmcroot} rootf
stype=${mmcrootfstype} buddy=${buddy}
stdin=serial
stdout=serial
stderr=serial
mpurate=600
filesize=28DD28
bootargs=console= androidboot.console=ttyS2 mem=256M root= rootfstype=
rootdelay=1 init=/init ip=off mpurate=720
omap_vout.vid1_static_vrfb_alloc=y buddy=
----- u-boot output [end] -----

When your using ${var} drop the "'s.

setenv bootargs console=${console}.....buddy=${buddy}

Then it'll work from the boot.scr

Regards,

Figured out my own issue, and sorry I didn't post everything. What
was going on is I was using the mkbootscr that is provided in the
TI_Android_GingerBread_2_3_DevKit_1_0/Tools/mkbootscr, and the script
was doing string substitution before mkimage could run. I simply made
the bood.cmd file and ran mkimage on that instead of the script
provided below:

#!/bin/sh
cat <<EOF > boot.cmd
if fatload mmc 0 80200000 uImage
then
echo ***** Kernel: /dev/mmcblk0p1/uImage *****
fi
echo ***** RootFS: /dev/mmcblk0p2 *****
setenv bootargs "console=${console} androidboot.console=ttyS2 mem=256M
root=${mmcroot} rootfstype=${mmcrootfstype} rootdelay=1 init=/init
ip=off mpurate=720 omap_vout.vid1_static_vrfb_alloc=y buddy=${buddy}"
printenv

bootm 0x80200000
EOF

mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute
uImage' -d boot.cmd boot.scr