[U-Boot-Users] autoscr can't execute script in u-boot 1.2.0

frisky_linux frisky_linux at 163.com
Wed Sep 26 04:25:14 CEST 2007


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






More information about the U-Boot mailing list