[U-Boot-Users] Can not saving environment to Flash...

Jacob Chan jacob_chan at so-net.net.tw
Tue Jul 1 06:12:25 CEST 2003


Dear all,
This is my first time to use u-boot in my target board (Intel DBPXA255
Lubbock), but I have some problem when saving environment to Flash and
the Ethernet device(SMSC LAN91C96) is not work. Your reply and support
will be highly appreciated.

Thank you for your time and attention

Jacob Chan
Jacob.chan at so-net.net.tw

U-Boot 0.4.0 (Jul  1 2003 - 02:31:21)

U-Boot code: A3000000 -> A3019B58  BSS: -> A301DCC0
DRAM Configuration:
Bank #0: a0000000 64 MB
Bank #1: a4000000  0 kB
Bank #2: a8000000  0 kB
Bank #3: ac000000  0 kB
Flash: 64 MB
*** Warning - bad CRC, using default environment

[LCD] Initializing LCD frambuffer at 00000000
palette_mem_size = 0x00000200
Configuring PXA LCD
vid: vl_col=640 hslen=40 lm=56 rm=56
vid: vl_row=480 vslen=20 um=8 bm=8
fbi->dmadesc_fblow = 0x4cdd0
fbi->dmadesc_fbhigh = 0x4cde0
fbi->dmadesc_palette = 0x4cdf0
fbi->dmadesc_fblow->fdadr = 0xffffffff
fbi->dmadesc_fbhigh->fdadr = 0xffffffff
fbi->dmadesc_palette->fdadr = 0xffffffff
fbi->dmadesc_fblow->fsadr = 0xffffffff
fbi->dmadesc_fbhigh->fsadr = 0xffffffff
fbi->dmadesc_palette->fsadr = 0xffffffff
fbi->dmadesc_fblow->ldcmd = 0xffffffff
fbi->dmadesc_fbhigh->ldcmd = 0xffffffff
fbi->dmadesc_palette->ldcmd = 0xffffffff
Setting GPIO for 16 bit data
Enabling LCD controller
FDADR0 = 0x0004cdf0
FDADR1 = 0x0004cdd0
LCCR0 = 0x003008f8
LCCR1 = 0x37379e7f
LCCR2 = 0x08084ddf
LCCR3 = 0x0300ff01
setcolreg: reg  0 @ 0004ce00: R=00 G=00 B=00 => FFFF
setcolreg: reg  1 @ 0004ce02: R=FF G=00 B=00 => FFFF
setcolreg: reg  2 @ 0004ce04: R=00 G=FF B=00 => FFFF
setcolreg: reg  3 @ 0004ce06: R=FF G=FF B=00 => FFFF
setcolreg: reg  4 @ 0004ce08: R=00 G=00 B=FF => FFFF
setcolreg: reg  5 @ 0004ce0a: R=FF G=00 B=FF => FFFF
setcolreg: reg  6 @ 0004ce0c: R=00 G=FF B=FF => FFFF
setcolreg: reg 14 @ 0004ce1c: R=AA G=AA B=AA => FFFF
setcolreg: reg 15 @ 0004ce1e: R=FF G=FF B=FF => FFFF
[LCD] Test Pattern: 640 x 480 [214 x 240]
[LCD] Drawing the logo...
Hit any key to stop autoboot:  0 
## Booting image at 00040000 ...
Bad Magic Number
$ printenv
bootargs=root=/dev/mtdblock2 rootfstype=cramfs console=ttyS0,115200
bootcmd=bootm 40000
bootdelay=3
baudrate=115200
ethaddr=00:02:B3:00:8D:F9
ipaddr=192.168.101.229
serverip=192.168.101.168
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial

Environment size: 253/16380 bytes
$ flinfo

Bank # 1: INTEL 28F128J3A
  Size: 32 MB in 128 Sectors
  Sector Start Addresses:
    00000000 (RO) 00040000      00080000      000C0000      00100000

    00140000      00180000      001C0000      00200000      00240000

    00280000      002C0000      00300000      00340000      00380000

    003C0000      00400000      00440000      00480000      004C0000

    00500000      00540000      00580000      005C0000      00600000

    00640000      00680000      006C0000      00700000      00740000

    00780000      007C0000      00800000      00840000      00880000

    008C0000      00900000      00940000      00980000      009C0000

    00A00000      00A40000      00A80000      00AC0000      00B00000

    00B40000      00B80000      00BC0000      00C00000      00C40000

    00C80000      00CC0000      00D00000      00D40000      00D80000

    00DC0000      00E00000      00E40000      00E80000      00EC0000

    00F00000      00F40000      00F80000      00FC0000      01000000

    01040000      01080000      010C0000      01100000      01140000

    01180000      011C0000      01200000      01240000      01280000

    012C0000      01300000      01340000      01380000      013C0000

    01400000      01440000      01480000      014C0000      01500000

    01540000      01580000      015C0000      01600000      01640000

    01680000      016C0000      01700000      01740000      01780000

    017C0000      01800000      01840000      01880000      018C0000

    01900000      01940000      01980000      019C0000      01A00000

    01A40000      01A80000      01AC0000      01B00000      01B40000

    01B80000      01BC0000      01C00000      01C40000      01C80000

    01CC0000      01D00000      01D40000      01D80000      01DC0000

    01E00000      01E40000      01E80000      01EC0000      01F00000

    01F40000      01F80000      01FC0000     

Bank # 2: INTEL 28F128J3A
  Size: 32 MB in 128 Sectors
  Sector Start Addresses:
    04000000      04040000      04080000      040C0000      04100000

    04140000      04180000      041C0000      04200000      04240000

    04280000      042C0000      04300000      04340000      04380000

    043C0000      04400000      04440000      04480000      044C0000

    04500000      04540000      04580000      045C0000      04600000

    04640000      04680000      046C0000      04700000      04740000

    04780000      047C0000      04800000      04840000      04880000

    048C0000      04900000      04940000      04980000      049C0000

    04A00000      04A40000      04A80000      04AC0000      04B00000

    04B40000      04B80000      04BC0000      04C00000      04C40000

    04C80000      04CC0000      04D00000      04D40000      04D80000

    04DC0000      04E00000      04E40000      04E80000      04EC0000

    04F00000      04F40000      04F80000      04FC0000      05000000

    05040000      05080000      050C0000      05100000      05140000

    05180000      051C0000      05200000      05240000      05280000

    052C0000      05300000      05340000      05380000      053C0000

    05400000      05440000      05480000      054C0000      05500000

    05540000      05580000      055C0000      05600000      05640000

    05680000      056C0000      05700000      05740000      05780000

    057C0000      05800000      05840000      05880000      058C0000

    05900000      05940000      05980000      059C0000      05A00000

    05A40000      05A80000      05AC0000      05B00000      05B40000

    05B80000      05BC0000      05C00000      05C40000      05C80000

    05CC0000      05D00000      05D40000      05D80000      05DC0000

    05E00000      05E40000      05E80000      05EC0000      05F00000

    05F40000      05F80000      05FC0000     
$ setenv ipaddr 192.168.101.228
$ saveenv
Saving Environment to Flash...
Error: start and/or end address not on sector boundary
$






More information about the U-Boot mailing list