[U-Boot-Users] Unable to store environment variables

v.sudeep at exgate.tek.com v.sudeep at exgate.tek.com
Mon May 23 14:09:36 CEST 2005


Hello,

I am a newbie to U-Boot. 

I am in the process of trying to load linux on the MPC8266ADS-PCI board. I
compiled the u-boot code and flashed it in. The U-Boot comes up. But I am
unable to save any of the environmental variables.

What should I be looking for ?? And what are the changes that I should be
doing. Please suggest.

Details are as below.

- S u d e e p    V
A system of morality which is based on relative emotional values is a mere
illusion, a thoroughly vulgar conception which has nothing sound in it and
nothing true. 
-Socrates. 



After power on the initial u-boot prompt looks like this: 
		=> reset
	

		U-Boot 1.1.2 (May 23 2005 - 14:24:36)
	

		MPC8260 Reset Status: Check Stop, External Soft, External
Hard
	

		MPC8260 Clock Configuration
		 - Bus-to-Core Mult 3x, VCO Div 2, 60x Bus Freq  33-100,
Core Freq 100-300
		 - dfbrg 0, corecnf 0x08, busdf 3, cpmdf 1, plldf 0, pllmf 1
		 - vco_out  264000000, scc_clk   66000000, brg_clk
66000000
		 - cpu_clk  198000000, cpm_clk  132000000, bus_clk
66000000
		 - pci_clk   66000000
	

		CPU:   MPC8260 (HiP4 Rev 14, Mask A.0(A) 2K25A) at 198 MHz
		Board: Motorola MPC8266ADS
		I2C:   ready
		DRAM:  SDRAM configuration read from SPD
		        Size per side = 16MB
		        Organization: 1 sides, 2 banks, 9 Columns, 11 Rows,
Data width = 64 bits        Refresh rate = 33, CAS latency = 2, Using Bank
Based Interleave
		        Total size: 16 MB
		FLASH:  8 MB
		*** Warning - bad CRC, using default environment
	

		In:    serial
		Out:   serial
		Err:   serial
		Net:   FCC2 ETHERNET
		Hit any key to stop autoboot:  0
	

		U-Boot 1.1.2 (May 23 2005 - 14:24:36)
	

		*** ERROR: `ethaddr' not set
		## Booting image at 00100000 ...
		Bad Magic Number

Now 
		=> bdinfo
		memstart    = 0x00000000
		memsize     = 0x01000000
		flashstart  = 0xFE000000
		flashsize   = 0x00800000
		flashoffset = 0x00000000
		sramstart   = 0x00000000
		sramsize    = 0x00000000
		immr_base   = 0xF0000000
		bootflags   = 0x00000001
		vco         =    264 MHz
		sccfreq     =     66 MHz
		brgfreq     =     66 MHz
		intfreq     =    198 MHz
		cpmfreq     =    132 MHz
		busfreq     =     66 MHz
		ethaddr     = 00:00:00:00:00:00
		IP addr     = 0.0.0.0
		baudrate    = 115200 bps

		=> flinfo

		Bank # 1: Sharp 28F016SC (16 Mbit, 32 x 64K)
		  Size: 8 MB in 32 Sectors
		  Sector Start Addresses:
		    FE000000      FE040000      FE080000      FE0C0000
FE100000
		    FE140000      FE180000      FE1C0000      FE200000
FE240000
		    FE280000      FE2C0000      FE300000      FE340000
FE380000
		    FE3C0000      FE400000      FE440000      FE480000
FE4C0000
		    FE500000      FE540000      FE580000      FE5C0000
FE600000
		    FE640000      FE680000      FE6C0000      FE700000
FE740000
		    FE780000      FE7C0000

		=> printenv
		bootcmd=version;echo;bootp;setenv bootargs root=/dev/nfs rw
nfsroot=$(serverip)mbootdelay=5
		baudrate=115200
		stdin=serial
		stdout=serial
		stderr=serial
		ethact=FCC2 ETHERNET

		Environment size: 254/262140 bytes

		=> saveenv
		Saving Environment to Flash...
		Error: start and/or end address not on sector boundary




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20050523/49180f49/attachment.htm 


More information about the U-Boot mailing list