From: frisky_linux <frisky_linux@163.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] autoscr can't execute script in u-boot 1.2.0
Date: Wed, 26 Sep 2007 10:25:14 +0800 [thread overview]
Message-ID: <200709261025129335711@163.com> (raw)
Hi all,
I have tested the autoscr command and found that autoscr can't execute script in u-boot 1.2.0.
The steps follow here:
1. Generate autos.img
1) echo "printenv serverip" >>test.txt
2) mkimage
[frisky at FC6 test]$ mkimage -A ppc -O linux -T script -C none -a 0 -e 0 -n "auto script example" -d test.txt autos.img && rm -rf /tftpboot/coreblade/autos.img && cp autos.img /tftpboot/coreblade/
Image Name: auto script example
Created: Wed Sep 26 10:17:46 2007
Image Type: PowerPC Linux Script (uncompressed)
Data Size: 27 Bytes = 0.03 kB = 0.00 MB
Load Address: 0x00000000
Entry Point: 0x00000000
Contents:
Image 0: 19 Bytes = 0 kB = 0 MB
2. In u-boot command shell, download autos.img,check it and run.
1) tftp 200000 coreblade/autos.img
coreblade => tftp 200000 coreblade/autos.img
Waiting for PHY auto negotiation to complete.. done
ENET Speed is 100 Mbps - FULL duplex connection (EMAC1)
Using ppc_4xx_eth1 device
TFTP from server 10.3.8.66; our IP address is 10.4.40.1; sending through gateway 10.4.0.254
Filename 'coreblade/autos.img'.
Load address: 0x200000
Loading: #
done
Bytes transferred = 91 (5b hex)
2) Check this image
coreblade => iminfo 200000
## Checking Image at 00200000 ...
Image Name: auto script example
Image Type: PowerPC Linux Script (uncompressed)
Data Size: 27 Bytes = 0 kB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
3) Run it!!
coreblade => autoscr 200000
## Executing script at 00200000
" not definedrverip
4) But I can see the serverip defined.
coreblade => printe serverip
serverip=10.3.8.66
I don't know what's the problem. Could you please help me? Thank you very much!
Frisky
next reply other threads:[~2007-09-26 2:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-26 2:25 frisky_linux [this message]
2007-09-26 7:29 ` [U-Boot-Users] autoscr can't execute script in u-boot 1.2.0 Wolfgang Denk
2007-09-26 8:25 ` frisky_linux
2007-09-26 9:01 ` Wolfgang Denk
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=200709261025129335711@163.com \
--to=frisky_linux@163.com \
--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.