<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2658.2">
<TITLE>Unable to store environment variables</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I am a newbie to U-Boot. </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">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.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">What should I be looking for ?? And what are the changes that I should be doing. Please suggest.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Details are as below.</FONT>
</P>
<P><U><B><FONT COLOR="#808080" FACE="Monotype Corsiva">- S u d e e p V</FONT></B></U>
<BR><I><FONT COLOR="#008000" FACE="Times New Roman">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.<BR>
</FONT></I><FONT COLOR="#008000" FACE="Times New Roman">-</FONT><FONT COLOR="#008000" SIZE=2 FACE="Times New Roman">Socrates.</FONT><FONT COLOR="#008000" FACE="Times New Roman"></FONT>
</P>
<BR>
<BR>
<P><FONT SIZE=2 FACE="Arial">After power on the initial u-boot prompt looks like this: </FONT>
<UL><UL>
<P><FONT SIZE=1 FACE="Arial">=> reset</FONT>
<BR><FONT SIZE=1 FACE="Arial"> </FONT>
<BR><FONT SIZE=1 FACE="Arial">U-Boot 1.1.2 (May 23 2005 - 14:24:36)</FONT>
<BR><FONT SIZE=1 FACE="Arial"> </FONT>
<BR><FONT SIZE=1 FACE="Arial">MPC8260 Reset Status: Check Stop, External Soft, External Hard</FONT>
<BR><FONT SIZE=1 FACE="Arial"> </FONT>
<BR><FONT SIZE=1 FACE="Arial">MPC8260 Clock Configuration</FONT>
<BR><FONT SIZE=1 FACE="Arial"> - Bus-to-Core Mult 3x, VCO Div 2, 60x Bus Freq 33-100, Core Freq 100-300</FONT>
<BR><FONT SIZE=1 FACE="Arial"> - dfbrg 0, corecnf 0x08, busdf 3, cpmdf 1, plldf 0, pllmf 1</FONT>
<BR><FONT SIZE=1 FACE="Arial"> - vco_out 264000000, scc_clk 66000000, brg_clk 66000000</FONT>
<BR><FONT SIZE=1 FACE="Arial"> - cpu_clk 198000000, cpm_clk 132000000, bus_clk 66000000</FONT>
<BR><FONT SIZE=1 FACE="Arial"> - pci_clk 66000000</FONT>
<BR><FONT SIZE=1 FACE="Arial"> </FONT>
<BR><FONT SIZE=1 FACE="Arial">CPU: MPC8260 (HiP4 Rev 14, Mask A.0(A) 2K25A) at 198 MHz</FONT>
<BR><FONT SIZE=1 FACE="Arial">Board: Motorola MPC8266ADS</FONT>
<BR><FONT SIZE=1 FACE="Arial">I2C: ready</FONT>
<BR><FONT SIZE=1 FACE="Arial">DRAM: SDRAM configuration read from SPD</FONT>
<BR><FONT SIZE=1 FACE="Arial"> Size per side = 16MB</FONT>
<BR><FONT SIZE=1 FACE="Arial"> Organization: 1 sides, 2 banks, 9 Columns, 11 Rows, Data width = 64 bits Refresh rate = 33, CAS latency = 2, Using Bank Based Interleave</FONT></P>
<P><FONT SIZE=1 FACE="Arial"> Total size: 16 MB</FONT>
<BR><FONT SIZE=1 FACE="Arial">FLASH: 8 MB</FONT>
<BR><FONT SIZE=1 FACE="Arial">*** Warning - bad CRC, using default environment</FONT>
<BR><FONT SIZE=1 FACE="Arial"> </FONT>
<BR><FONT SIZE=1 FACE="Arial">In: serial</FONT>
<BR><FONT SIZE=1 FACE="Arial">Out: serial</FONT>
<BR><FONT SIZE=1 FACE="Arial">Err: serial</FONT>
<BR><FONT SIZE=1 FACE="Arial">Net: FCC2 ETHERNET</FONT>
<BR><FONT SIZE=1 FACE="Arial">Hit any key to stop autoboot: 0</FONT>
<BR><FONT SIZE=1 FACE="Arial"> </FONT>
<BR><FONT SIZE=1 FACE="Arial">U-Boot 1.1.2 (May 23 2005 - 14:24:36)</FONT>
<BR><FONT SIZE=1 FACE="Arial"> </FONT>
<BR><FONT SIZE=1 FACE="Arial">*** ERROR: `ethaddr' not set</FONT>
<BR><FONT SIZE=1 FACE="Arial">## Booting image at 00100000 ...</FONT>
<BR><FONT SIZE=1 FACE="Arial">Bad Magic Number</FONT>
</P>
</UL></UL>
<P><FONT SIZE=2 FACE="Arial">Now </FONT>
<UL><UL>
<P><FONT SIZE=1 FACE="Arial">=> bdinfo</FONT>
<BR><FONT SIZE=1 FACE="Arial">memstart = 0x00000000</FONT>
<BR><FONT SIZE=1 FACE="Arial">memsize = 0x01000000</FONT>
<BR><FONT SIZE=1 FACE="Arial">flashstart = 0xFE000000</FONT>
<BR><FONT SIZE=1 FACE="Arial">flashsize = 0x00800000</FONT>
<BR><FONT SIZE=1 FACE="Arial">flashoffset = 0x00000000</FONT>
<BR><FONT SIZE=1 FACE="Arial">sramstart = 0x00000000</FONT>
<BR><FONT SIZE=1 FACE="Arial">sramsize = 0x00000000</FONT>
<BR><FONT SIZE=1 FACE="Arial">immr_base = 0xF0000000</FONT>
<BR><FONT SIZE=1 FACE="Arial">bootflags = 0x00000001</FONT>
<BR><FONT SIZE=1 FACE="Arial">vco = 264 MHz</FONT>
<BR><FONT SIZE=1 FACE="Arial">sccfreq = 66 MHz</FONT>
<BR><FONT SIZE=1 FACE="Arial">brgfreq = 66 MHz</FONT>
<BR><FONT SIZE=1 FACE="Arial">intfreq = 198 MHz</FONT>
<BR><FONT SIZE=1 FACE="Arial">cpmfreq = 132 MHz</FONT>
<BR><FONT SIZE=1 FACE="Arial">busfreq = 66 MHz</FONT>
<BR><FONT SIZE=1 FACE="Arial">ethaddr = 00:00:00:00:00:00</FONT>
<BR><FONT SIZE=1 FACE="Arial">IP addr = 0.0.0.0</FONT>
<BR><FONT SIZE=1 FACE="Arial">baudrate = 115200 bps</FONT>
</P>
<P><FONT SIZE=1 FACE="Arial">=> flinfo</FONT>
</P>
<P><FONT SIZE=1 FACE="Arial">Bank # 1: Sharp 28F016SC (16 Mbit, 32 x 64K)</FONT>
<BR><FONT SIZE=1 FACE="Arial"> Size: 8 MB in 32 Sectors</FONT>
<BR><FONT SIZE=1 FACE="Arial"> Sector Start Addresses:</FONT>
<BR><FONT SIZE=1 FACE="Arial"> FE000000 FE040000 FE080000 FE0C0000 FE100000</FONT>
<BR><FONT SIZE=1 FACE="Arial"> FE140000 FE180000 FE1C0000 FE200000 FE240000</FONT>
<BR><FONT SIZE=1 FACE="Arial"> FE280000 FE2C0000 FE300000 FE340000 FE380000</FONT>
<BR><FONT SIZE=1 FACE="Arial"> FE3C0000 FE400000 FE440000 FE480000 FE4C0000</FONT>
<BR><FONT SIZE=1 FACE="Arial"> FE500000 FE540000 FE580000 FE5C0000 FE600000</FONT>
<BR><FONT SIZE=1 FACE="Arial"> FE640000 FE680000 FE6C0000 FE700000 FE740000</FONT>
<BR><FONT SIZE=1 FACE="Arial"> FE780000 FE7C0000</FONT>
</P>
<P><FONT SIZE=1 FACE="Arial">=> printenv</FONT>
<BR><FONT SIZE=1 FACE="Arial">bootcmd=version;echo;bootp;setenv bootargs root=/dev/nfs rw nfsroot=$(serverip)mbootdelay=5</FONT>
<BR><FONT SIZE=1 FACE="Arial">baudrate=115200</FONT>
<BR><FONT SIZE=1 FACE="Arial">stdin=serial</FONT>
<BR><FONT SIZE=1 FACE="Arial">stdout=serial</FONT>
<BR><FONT SIZE=1 FACE="Arial">stderr=serial</FONT>
<BR><FONT SIZE=1 FACE="Arial">ethact=FCC2 ETHERNET</FONT>
</P>
<P><FONT SIZE=1 FACE="Arial">Environment size: 254/262140 bytes</FONT>
</P>
<P><FONT SIZE=1 FACE="Arial">=> saveenv</FONT>
<BR><FONT SIZE=1 FACE="Arial">Saving Environment to Flash...</FONT>
<BR><FONT SIZE=1 FACE="Arial">Error: start and/or end address not on sector boundary</FONT>
</P>
<BR>
<BR>
<BR>
</UL></UL>
</BODY>
</HTML>