All of lore.kernel.org
 help / color / mirror / Atom feed
From: Igor Marnat <marny@rambler.ru>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] netconsole doesn't work if $(serverip) is assigned to ncip instead of hardcoded value
Date: Tue, 27 Mar 2007 15:15:29 +0400	[thread overview]
Message-ID: <15015754812.20070327151529@rambler.ru> (raw)
In-Reply-To: <20070327084001.D08A635261B@atlas.denx.de>

Hello Wolfgang,

WD> You must be doing something wrong. "ncip" and "serverip" are
WD> completely unrelated.

Sure. I just thought that it's possible to use environment variables
to assign values to all other variables. That is to say, if assignment

addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off panic=1

works ok (it uses $(serverip)), why can't I use

ncip=$(serverip)?

See below the full environment. The only difference between two scenarious
is that it works if ncip=10.0.0.55 and it doesn't if ncip=$(serverip).


=> printenv baudrate=115200
loads_echo=1
eth1addr=00:50:c2:1e:af:fd
netdev=eth0
ethaddr=00:50:c2:1e:af:f1
kernel_flash_addr=ffe04000
kernel_flash_end=fffbffff
kernel_flash_space=$(kernel_flash_addr) $(kernel_flash_end)
poff=protect off $(kernel_flash_addr) $(kernel_flash_end)
erase_kernel=era $(kernel_flash_addr) $(kernel_flash_end)
upd_kernel=tftpboot; run poff; run erase_kernel; cp.b $(fileaddr) $(kernel_flash_addr) $(filesize)
flash_nfs=run nfsargs addip addcons;bootm $(kernel_flash_addr)
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) rootpath=$(rootpath)
addip=setenv bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):$(netdev):off panic=1
addcons=setenv bootargs $(bootargs) console=ttyS0,$(baudrate)
nfs26=/home/igor/tz-64/ppc/tz_64_nfs
rootpath=/home/igor/tz-64/ppc/tz_64_nfs
addmem=setenv bootargs $(bootargs) mem=16M
filesize=ebe75
fileaddr=200000
netmask=255.255.255.0
serverip=10.0.0.55
bootargs=root=/dev/nfs rw nfsroot=90.0.0.55:/home/igor/tz-64/ppc/tz_64_nfs rootpath=/home/igor/tz-64/ppc/tz_64_nfs
ip=90.0.0.137:90.0.0.55::255.255.255.0::eth0:off panic=1
net_nfs=tftp 200000 $(bootfile);run nfsargs addip addcons addmem;bootm
mtd_args=setenv bootargs root=/dev/mtdblock0 rw rootfstype=jffs2
net_mtd=tftp 200000 $(bootfile);run mtd_args addip addcons addmem;bootm
ipaddr=10.0.0.239
bootfilesaved=uImage26
bootcmdsaved=run net_mtd
bootfile=uImage26nandconsole
nc=setenv stdout nc;setenv stdin nc
ncip=10.0.0.55
ethact=ppc_4xx_eth0
com_eth_go=run echo_sleep; run nc; run echo_sleep; run net_nfs
bootcmd=run com_eth_go
echo_sleep=echo "I am sleeping, press CTRL-C to stop";sleep 4;
bootdelay=2
stdin=serial
stdout=serial
stderr=serial


-- 
Best regards,
Igor Marnat
mailto:marny at rambler.ru

  reply	other threads:[~2007-03-27 11:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-27  8:24 [U-Boot-Users] netconsole doesn't work if $(serverip) is assigned to ncip instead of hardcoded value Igor Marnat
2007-03-27  8:40 ` Wolfgang Denk
2007-03-27 11:15   ` Igor Marnat [this message]
2007-03-27 14:58     ` Wolfgang Denk
2007-03-28  5:03       ` Igor Marnat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15015754812.20070327151529@rambler.ru \
    --to=marny@rambler.ru \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.