All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] autoscr can't execute script in u-boot 1.2.0
@ 2007-09-26  2:25 frisky_linux
  2007-09-26  7:29 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: frisky_linux @ 2007-09-26  2:25 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-26  9:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-26  2:25 [U-Boot-Users] autoscr can't execute script in u-boot 1.2.0 frisky_linux
2007-09-26  7:29 ` Wolfgang Denk
2007-09-26  8:25   ` frisky_linux
2007-09-26  9:01     ` Wolfgang Denk

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.