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

NZG ngustavson at emacinc.com
Mon May 23 15:42:19 CEST 2005


More than likely it's just like the message says:
> 		Error: start and/or end address not on sector boundary
and your not on a sector boundary.

Go into your include/config/"whateveryourboardiscalled.h"
file and edit 

#define CFG_ENV_ADDR		
#define CFG_ENV_SIZE		
#define CFG_ENV_SECT_SIZE   

So that the enviornment starts and ends on a sector that is not inside u-boots 
code space and you should be kewl. It will need to take up a whole sector.

I don't completely know your system's memory map,  but I'd guess

#define CFG_ENV_ADDR		 FE040000
#define CFG_ENV_SECT_SIZE		40000
#define CFG_ENV_SIZE			 CFG_ENV_SECT_SIZE          

NZG.

On Monday 23 May 2005 07:09, v.sudeep at exgate.tek.com wrote:
> 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




More information about the U-Boot mailing list