[#5061] spi u-boot 2008.10 on bf537/bf533 with 25P64V6G, "saveenv" fails to work

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

[#5061] spi u-boot 2008.10 on bf537/bf533 with 25P64V6G, "saveenv" fails to work

Submitted By: Vivi Li

Open Date

2009-04-09 03:50:48     Close Date

2009-06-12 06:54:16

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

STAMP     Processor:

BF537

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: spi u-boot 2008.10 on bf537/bf533 with 25P64V6G, "saveenv" fails to work

Details:

 

For u-boot 2008.10 spi mode, on bf537-stamp/bf533-stamp with 25P64V6G, saveenv and then reset u-boot, nothing is saved.

 

--

U-Boot 2008.10-svn1805 (ADI-2009R1-pre) (Apr  7 2009 - 13:21:40)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (spi flash boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

SF: Got idcode 20 20 17

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   F3:03:F3:03:F3:03

Hit any key to stop autoboot:  0

bfin>

bfin> printenv

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

ipaddr=192.168.0.15

serverip=192.168.0.2

autoload=no

rootpath=/romfs

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf537-stamp

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write $(loadaddr) 0 $(filesize)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

stdin=serial

stdout=serial

stderr=serial

ethact=Blackfin EMAC

ethaddr=F3:03:F3:03:F3:03

 

Environment size: 973/8188 bytes

bfin> set serverip 10.100.4.174

bfin> set ipaddr 10.100.4.50

bfin> set gatewayip 10.100.4.174

bfin> set ethaddr 00:E0:FE:34:00:1B

bfin> saveenv

Saving Environment to SPI Flash...

Erasing SPI flash...bfin>

bfin> printenv

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

netmask=255.255.255.0

hostname=bf537-stamp

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write $(loadaddr) 0 $(filesize)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

stdin=serial

stdout=serial

stderr=serial

ethact=Blackfin EMAC

serverip=10.100.4.174

ipaddr=10.100.4.50

gatewayip=10.100.4.174

ethaddr=00:E0:FE:34:00:1B

 

Environment size: 974/8188 bytes

bfin> reset þ

 

U-Boot 2008.10-svn1805 (ADI-2009R1-pre) (Apr  7 2009 - 13:21:40)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (spi flash boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

SF: Got idcode 20 20 17

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   F3:03:F3:03:F3:03

Hit any key to stop autoboot:  0

bfin>

bfin> printenv

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

ipaddr=192.168.0.15

serverip=192.168.0.2

autoload=no

rootpath=/romfs

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf537-stamp

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write $(loadaddr) 0 $(filesize)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

stdin=serial

stdout=serial

stderr=serial

ethact=Blackfin EMAC

ethaddr=F3:03:F3:03:F3:03

 

Environment size: 973/8188 bytes

bfin>

--

 

Follow-ups

 

--- Mike Frysinger                                           2009-04-09 04:57:58

did you properly configure the env settings ?  in other words, what changes to

the u-boot board config did you make ?  i'm pretty sure the default settings in

there for spi flash will not work with a M25P64.

 

--- Vivi Li                                                  2009-04-09 07:23:29

It should be chip 25P64V6G. This spi card worked before in 08r1.5 release.

I only define CONFIG_BFIN_BOOT_MODE to BFIN_BOOT_SPI_MASTER in

include/configs/bf537-stamp.h.

What other changes should be made to the config?

 

--- Mike Frysinger                                           2009-04-09 07:27:37

whether it worked in 2008R1.5 is irrelevant as that used the eeprom layer.  the

new release uses the sf layer.

 

you'll need to change these to match whatever flash is hooked up:

CONFIG_ENV_OFFSET

CONFIG_ENV_SIZE

CONFIG_ENV_SECT_SIZE

 

the default settings for boards which have a dedicated spi flash (bf548-ezkit,

bf527-ezkit, etc...) dont need changing, but for all the other boards, the spi

flash can change

 

--- Mike Frysinger                                           2009-04-09 07:28:41

i imagine the SIZE/SECT_SIZE should be 0x10000 (65k sector size), but i dont

have a M25P64 available atm to check

 

--- Vivi Li                                                  2009-04-13 22:52:56

I changed SIZE/SECT_SIZE to 0x10000, and it did not help.

 

===================================================================

--- include/configs/bf537-stamp.h       (revision 1836)

+++ include/configs/bf537-stamp.h       (working copy)

@@ -12,7 +12,7 @@

  * Processor Settings

  */

#define CONFIG_BFIN_CPU             bf537-0.2

-#define CONFIG_BFIN_BOOT_MODE       BFIN_BOOT_BYPASS

+#define CONFIG_BFIN_BOOT_MODE       BFIN_BOOT_SPI_MASTER

 

/*

@@ -89,8 +89,8 @@

#if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER)

#define CONFIG_ENV_IS_IN_SPI_FLASH

#define CONFIG_ENV_OFFSET      0x4000

-#define CONFIG_ENV_SIZE                0x2000

-#define CONFIG_ENV_SECT_SIZE   0x2000

+#define CONFIG_ENV_SIZE                0x10000

+#define CONFIG_ENV_SECT_SIZE   0x10000

#else

#define        CONFIG_ENV_IS_IN_FLASH

#define CONFIG_ENV_OFFSET      0x4000

 

 

--

U-Boot 2008.10-svn1836 (ADI-2009R1-pre) (Apr 14 2009 - 11:19:24)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (spi flash boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

SF: Got idcode 20 20 17

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   F1:6F:F1:6F:F1:6F

Hit any key to stop autoboot:  0

bfin>

bfin> set serverip 10.100.4.174

bfin>

bfin> set ipaddr 10.100.4.50

bfin> set ethaddr 00:E0:FE:A9:B5:96

bfin> saveenv

Saving Environment to SPI Flash...

Erasing SPI flash...bfin>

bfin> reset þ

 

U-Boot 2008.10-svn1836 (ADI-2009R1-pre) (Apr 14 2009 - 11:19:24)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (spi flash boot)

Board: ADI BF537 stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz

RAM:   64 MB

Flash:  4 MB

SF: Got idcode 20 20 17

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   F1:6F:F1:6F:F1:6F

Hit any key to stop autoboot:  0

bfin> printenv

bootargs=root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart0,57600 console=ttyBF0,57600

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

ipaddr=192.168.0.15

serverip=192.168.0.2

autoload=no

rootpath=/romfs

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf537-stamp

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);sf probe 1;sf erase 0 0x40000;sf write

$(loadaddr) 0 $(filesize)

addip=set bootargs $(bootargs)

ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=25000000

earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) uImage;run ramargs;run addip;bootm

nfsargs=set bootargs root=/dev/nfs rw

nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) vmImage;run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

stdin=serial

stdout=serial

stderr=serial

ethact=Blackfin EMAC

ethaddr=F1:6F:F1:6F:F1:6F

 

Environment size: 973/65532 bytes

bfin>

--

 

--- Mike Frysinger                                           2009-04-14 08:39:29

i dont think that will work.  the env cannot cross sector boundaries, nor does

it make much sense to have an env that large.  just use a size of 0x2000.

 

--- Vivi Li                                                  2009-06-10 05:54:12

The default env size is 0x2000 already. It still doesn't work.

 

--

#define CONFIG_ENV_SIZE                0x2000

#define CONFIG_ENV_SECT_SIZE           0x2000

--

 

--- Mike Frysinger                                           2009-06-10 14:06:37

enable debugging in the relevant driver (probably drivers/mtd/spi/stmicro.c)

 

--- Vivi Li                                                  2009-06-10 23:37:40

I enable debugging for all the files in drivers/mtd/spi, and get the bellow

result.

 

--

U-Boot 2008.10-svn1908 (ADI-2009R1-rc1) (Jun 11 2009 - 11:42:44)

 

CPU:   ADSP bf533-0.3 (Detected Rev: 0.3) (spi flash boot)

Board: ADI BF533 Stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 99.532 MHz

RAM:   128 MB

Flash:  4 MB

SF: Got idcode 20 20 17

SF: Detected M25P64 with page size 256, total 8388608 bytes

In:    serial

Out:   serial

Err:   serial

Net:   Hit any key to stop autoboot:  0

bfin> set ipaddr 10.100.4.50

bfin> saveenv

Saving Environment to SPI Flash...

Erasing SPI flash...SF: Erase offset/length not multiple of sector size

bfin>

--

 

--- Vivi Li                                                  2009-06-11 00:31:10

I changed ENV_OFFSET and ENV_SECT_SIZE to 0x10000, and ENV_SIZE remains 0x2000.

Then saveenv can work.

Is this kind of setting right? I'm not very sure about their meanings.

 

Bellow are the logs.

--

-#define CONFIG_ENV_OFFSET      0x4000

+#define CONFIG_ENV_OFFSET      0x10000

#define CONFIG_ENV_SIZE                0x2000

-#define CONFIG_ENV_SECT_SIZE   0x2000

+#define CONFIG_ENV_SECT_SIZE   0x10000

--

 

--

U-Boot 2008.10-svn1908 (ADI-2009R1-rc1) (Jun 11 2009 - 12:34:58)

 

CPU:   ADSP bf533-0.3 (Detected Rev: 0.3) (spi flash boot)

Board: ADI BF533 Stamp board

       Support: http://blackfin.uclinux.org/

Clock: VCO: 497.664 MHz, Core: 497.664 MHz, System: 99.532 MHz

RAM:   128 MB

Flash:  4 MB

SF: Got idcode 20 20 17

SF: Detected M25P64 with page size 256, total 8388608 bytes

In:    serial

Out:   serial

Err:   serial

Net:   MAC:   BA:5F:37:C8:87:B3

Hit any key to stop autoboot:  0

bfin> saveenv

Saving Environment to SPI Flash...

Erasing SPI flash...SF: STMicro: Successfully erased 65536 bytes @ 0x10000

Writing to SPI flash...PP: 0x07f60008 => cmd = { 0x02 0x010000 } chunk_len =

256

PP: 0x07f60108 => cmd = { 0x02 0x010100 } chunk_len = 256

PP: 0x07f60208 => cmd = { 0x02 0x010200 } chunk_len = 256

PP: 0x07f60308 => cmd = { 0x02 0x010300 } chunk_len = 256

PP: 0x07f60408 => cmd = { 0x02 0x010400 } chunk_len = 256

PP: 0x07f60508 => cmd = { 0x02 0x010500 } chunk_len = 256

PP: 0x07f60608 => cmd = { 0x02 0x010600 } chunk_len = 256

PP: 0x07f60708 => cmd = { 0x02 0x010700 } chunk_len = 256

PP: 0x07f60808 => cmd = { 0x02 0x010800 } chunk_len = 256

PP: 0x07f60908 => cmd = { 0x02 0x010900 } chunk_len = 256

PP: 0x07f60a08 => cmd = { 0x02 0x010a00 } chunk_len = 256

PP: 0x07f60b08 => cmd = { 0x02 0x010b00 } chunk_len = 256

PP: 0x07f60c08 => cmd = { 0x02 0x010c00 } chunk_len = 256

PP: 0x07f60d08 => cmd = { 0x02 0x010d00 } chunk_len = 256

PP: 0x07f60e08 => cmd = { 0x02 0x010e00 } chunk_len = 256

PP: 0x07f60f08 => cmd = { 0x02 0x010f00 } chunk_len = 256

PP: 0x07f61008 => cmd = { 0x02 0x011000 } chunk_len = 256

PP: 0x07f61108 => cmd = { 0x02 0x011100 } chunk_len = 256

PP: 0x07f61208 => cmd = { 0x02 0x011200 } chunk_len = 256

PP: 0x07f61308 => cmd = { 0x02 0x011300 } chunk_len = 256

PP: 0x07f61408 => cmd = { 0x02 0x011400 } chunk_len = 256

PP: 0x07f61508 => cmd = { 0x02 0x011500 } chunk_len = 256

PP: 0x07f61608 => cmd = { 0x02 0x011600 } chunk_len = 256

PP: 0x07f61708 => cmd = { 0x02 0x011700 } chunk_len = 256

PP: 0x07f61808 => cmd = { 0x02 0x011800 } chunk_len = 256

PP: 0x07f61908 => cmd = { 0x02 0x011900 } chunk_len = 256

PP: 0x07f61a08 => cmd = { 0x02 0x011a00 } chunk_len = 256

PP: 0x07f61b08 => cmd = { 0x02 0x011b00 } chunk_len = 256

PP: 0x07f61c08 => cmd = { 0x02 0x011c00 } chunk_len = 256

PP: 0x07f61d08 => cmd = { 0x02 0x011d00 } chunk_len = 256

PP: 0x07f61e08 => cmd = { 0x02 0x011e00 } chunk_len = 256

PP: 0x07f61f08 => cmd = { 0x02 0x011f00 } chunk_len = 256

SF: STMicro: Successfully programmed 8192 bytes @ 0x10000

PP: 0x07f62120 => cmd = { 0x02 0x012000 } chunk_len = 256

PP: 0x07f62220 => cmd = { 0x02 0x012100 } chunk_len = 256

PP: 0x07f62320 => cmd = { 0x02 0x012200 } chunk_len = 256

PP: 0x07f62420 => cmd = { 0x02 0x012300 } chunk_len = 256

PP: 0x07f62520 => cmd = { 0x02 0x012400 } chunk_len = 256

PP: 0x07f62620 => cmd = { 0x02 0x012500 } chunk_len = 256

PP: 0x07f62720 => cmd = { 0x02 0x012600 } chunk_len = 256

PP: 0x07f62820 => cmd = { 0x02 0x012700 } chunk_len = 256

PP: 0x07f62920 => cmd = { 0x02 0x012800 } chunk_len = 256

PP: 0x07f62a20 => cmd = { 0x02 0x012900 } chunk_len = 256

PP: 0x07f62b20 => cmd = { 0x02 0x012a00 } chunk_len = 256

PP: 0x07f62c20 => cmd = { 0x02 0x012b00 } chunk_len = 256

PP: 0x07f62d20 => cmd = { 0x02 0x012c00 } chunk_len = 256

PP: 0x07f62e20 => cmd = { 0x02 0x012d00 } chunk_len = 256

PP: 0x07f62f20 => cmd = { 0x02 0x012e00 } chunk_len = 256

PP: 0x07f63020 => cmd = { 0x02 0x012f00 } chunk_len = 256

PP: 0x07f63120 => cmd = { 0x02 0x013000 } chunk_len = 256

PP: 0x07f63220 => cmd = { 0x02 0x013100 } chunk_len = 256

PP: 0x07f63320 => cmd = { 0x02 0x013200 } chunk_len = 256

PP: 0x07f63420 => cmd = { 0x02 0x013300 } chunk_len = 256

PP: 0x07f63520 => cmd = { 0x02 0x013400 } chunk_len = 256

PP: 0x07f63620 => cmd = { 0x02 0x013500 } chunk_len = 256

PP: 0x07f63720 => cmd = { 0x02 0x013600 } chunk_len = 256

PP: 0x07f63820 => cmd = { 0x02 0x013700 } chunk_len = 256

PP: 0x07f63920 => cmd = { 0x02 0x013800 } chunk_len = 256

PP: 0x07f63a20 => cmd = { 0x02 0x013900 } chunk_len = 256

PP: 0x07f63b20 => cmd = { 0x02 0x013a00 } chunk_len = 256

PP: 0x07f63c20 => cmd = { 0x02 0x013b00 } chunk_len = 256

PP: 0x07f63d20 => cmd = { 0x02 0x013c00 } chunk_len = 256

PP: 0x07f63e20 => cmd = { 0x02 0x013d00 } chunk_len = 256

PP: 0x07f63f20 => cmd = { 0x02 0x013e00 } chunk_len = 256

PP: 0x07f64020 => cmd = { 0x02 0x013f00 } chunk_len = 256

PP: 0x07f64120 => cmd = { 0x02 0x014000 } chunk_len = 256

PP: 0x07f64220 => cmd = { 0x02 0x014100 } chunk_len = 256

PP: 0x07f64320 => cmd = { 0x02 0x014200 } chunk_len = 256

PP: 0x07f64420 => cmd = { 0x02 0x014300 } chunk_len = 256

PP: 0x07f64520 => cmd = { 0x02 0x014400 } chunk_len = 256

PP: 0x07f64620 => cmd = { 0x02 0x014500 } chunk_len = 256

PP: 0x07f64720 => cmd = { 0x02 0x014600 } chunk_len = 256

PP: 0x07f64820 => cmd = { 0x02 0x014700 } chunk_len = 256

PP: 0x07f64920 => cmd = { 0x02 0x014800 } chunk_len = 256

PP: 0x07f64a20 => cmd = { 0x02 0x014900 } chunk_len = 256

PP: 0x07f64b20 => cmd = { 0x02 0x014a00 } chunk_len = 256

PP: 0x07f64c20 => cmd = { 0x02 0x014b00 } chunk_len = 256

PP: 0x07f64d20 => cmd = { 0x02 0x014c00 } chunk_len = 256

PP: 0x07f64e20 => cmd = { 0x02 0x014d00 } chunk_len = 256

PP: 0x07f64f20 => cmd = { 0x02 0x014e00 } chunk_len = 256

PP: 0x07f65020 => cmd = { 0x02 0x014f00 } chunk_len = 256

PP: 0x07f65120 => cmd = { 0x02 0x015000 } chunk_len = 256

PP: 0x07f65220 => cmd = { 0x02 0x015100 } chunk_len = 256

PP: 0x07f65320 => cmd = { 0x02 0x015200 } chunk_len = 256

PP: 0x07f65420 => cmd = { 0x02 0x015300 } chunk_len = 256

PP: 0x07f65520 => cmd = { 0x02 0x015400 } chunk_len = 256

PP: 0x07f65620 => cmd = { 0x02 0x015500 } chunk_len = 256

PP: 0x07f65720 => cmd = { 0x02 0x015600 } chunk_len = 256

PP: 0x07f65820 => cmd = { 0x02 0x015700 } chunk_len = 256

PP: 0x07f65920 => cmd = { 0x02 0x015800 } chunk_len = 256

PP: 0x07f65a20 => cmd = { 0x02 0x015900 } chunk_len = 256

PP: 0x07f65b20 => cmd = { 0x02 0x015a00 } chunk_len = 256

PP: 0x07f65c20 => cmd = { 0x02 0x015b00 } chunk_len = 256

PP: 0x07f65d20 => cmd = { 0x02 0x015c00 } chunk_len = 256

PP: 0x07f65e20 => cmd = { 0x02 0x015d00 } chunk_len = 256

PP: 0x07f65f20 => cmd = { 0x02 0x015e00 } chunk_len = 256

PP: 0x07f66020 => cmd = { 0x02 0x015f00 } chunk_len = 256

PP: 0x07f66120 => cmd = { 0x02 0x016000 } chunk_len = 256

PP: 0x07f66220 => cmd = { 0x02 0x016100 } chunk_len = 256

PP: 0x07f66320 => cmd = { 0x02 0x016200 } chunk_len = 256

PP: 0x07f66420 => cmd = { 0x02 0x016300 } chunk_len = 256

PP: 0x07f66520 => cmd = { 0x02 0x016400 } chunk_len = 256

PP: 0x07f66620 => cmd = { 0x02 0x016500 } chunk_len = 256

PP: 0x07f66720 => cmd = { 0x02 0x016600 } chunk_len = 256

PP: 0x07f66820 => cmd = { 0x02 0x016700 } chunk_len = 256

PP: 0x07f66920 => cmd = { 0x02 0x016800 } chunk_len = 256

PP: 0x07f66a20 => cmd = { 0x02 0x016900 } chunk_len = 256

PP: 0x07f66b20 => cmd = { 0x02 0x016a00 } chunk_len = 256

PP: 0x07f66c20 => cmd = { 0x02 0x016b00 } chunk_len = 256

PP: 0x07f66d20 => cmd = { 0x02 0x016c00 } chunk_len = 256

PP: 0x07f66e20 => cmd = { 0x02 0x016d00 } chunk_len = 256

PP: 0x07f66f20 => cmd = { 0x02 0x016e00 } chunk_len = 256

PP: 0x07f67020 => cmd = { 0x02 0x016f00 } chunk_len = 256

PP: 0x07f67120 => cmd = { 0x02 0x017000 } chunk_len = 256

PP: 0x07f67220 => cmd = { 0x02 0x017100 } chunk_len = 256

PP: 0x07f67320 => cmd = { 0x02 0x017200 } chunk_len = 256

PP: 0x07f67420 => cmd = { 0x02 0x017300 } chunk_len = 256

PP: 0x07f67520 => cmd = { 0x02 0x017400 } chunk_len = 256

PP: 0x07f67620 => cmd = { 0x02 0x017500 } chunk_len = 256

PP: 0x07f67720 => cmd = { 0x02 0x017600 } chunk_len = 256

PP: 0x07f67820 => cmd = { 0x02 0x017700 } chunk_len = 256

PP: 0x07f67920 => cmd = { 0x02 0x017800 } chunk_len = 256

PP: 0x07f67a20 => cmd = { 0x02 0x017900 } chunk_len = 256

PP: 0x07f67b20 => cmd = { 0x02 0x017a00 } chunk_len = 256

PP: 0x07f67c20 => cmd = { 0x02 0x017b00 } chunk_len = 256

PP: 0x07f67d20 => cmd = { 0x02 0x017c00 } chunk_len = 256

PP: 0x07f67e20 => cmd = { 0x02 0x017d00 } chunk_len = 256

PP: 0x07f67f20 => cmd = { 0x02 0x017e00 } chunk_len = 256

PP: 0x07f68020 => cmd = { 0x02 0x017f00 } chunk_len = 256

PP: 0x07f68120 => cmd = { 0x02 0x018000 } chunk_len = 256

PP: 0x07f68220 => cmd = { 0x02 0x018100 } chunk_len = 256

PP: 0x07f68320 => cmd = { 0x02 0x018200 } chunk_len = 256

PP: 0x07f68420 => cmd = { 0x02 0x018300 } chunk_len = 256

PP: 0x07f68520 => cmd = { 0x02 0x018400 } chunk_len = 256

PP: 0x07f68620 => cmd = { 0x02 0x018500 } chunk_len = 256

PP: 0x07f68720 => cmd = { 0x02 0x018600 } chunk_len = 256

PP: 0x07f68820 => cmd = { 0x02 0x018700 } chunk_len = 256

PP: 0x07f68920 => cmd = { 0x02 0x018800 } chunk_len = 256

PP: 0x07f68a20 => cmd = { 0x02 0x018900 } chunk_len = 256

PP: 0x07f68b20 => cmd = { 0x02 0x018a00 } chunk_len = 256

PP: 0x07f68c20 => cmd = { 0x02 0x018b00 } chunk_len = 256

PP: 0x07f68d20 => cmd = { 0x02 0x018c00 } chunk_len = 256

PP: 0x07f68e20 => cmd = { 0x02 0x018d00 } chunk_len = 256

PP: 0x07f68f20 => cmd = { 0x02 0x018e00 } chunk_len = 256

PP: 0x07f69020 => cmd = { 0x02 0x018f00 } chunk_len = 256

PP: 0x07f69120 => cmd = { 0x02 0x019000 } chunk_len = 256

PP: 0x07f69220 => cmd = { 0x02 0x019100 } chunk_len = 256

PP: 0x07f69320 => cmd = { 0x02 0x019200 } chunk_len = 256

PP: 0x07f69420 => cmd = { 0x02 0x019300 } chunk_len = 256

PP: 0x07f69520 => cmd = { 0x02 0x019400 } chunk_len = 256

PP: 0x07f69620 => cmd = { 0x02 0x019500 } chunk_len = 256

PP: 0x07f69720 => cmd = { 0x02 0x019600 } chunk_len = 256

PP: 0x07f69820 => cmd = { 0x02 0x019700 } chunk_len = 256

PP: 0x07f69920 => cmd = { 0x02 0x019800 } chunk_len = 256

PP: 0x07f69a20 => cmd = { 0x02 0x019900 } chunk_len = 256

PP: 0x07f69b20 => cmd = { 0x02 0x019a00 } chunk_len = 256

PP: 0x07f69c20 => cmd = { 0x02 0x019b00 } chunk_len = 256

PP: 0x07f69d20 => cmd = { 0x02 0x019c00 } chunk_len = 256

PP: 0x07f69e20 => cmd = { 0x02 0x019d00 } chunk_len = 256

PP: 0x07f69f20 => cmd = { 0x02 0x019e00 } chunk_len = 256

PP: 0x07f6a020 => cmd = { 0x02 0x019f00 } chunk_len = 256

PP: 0x07f6a120 => cmd = { 0x02 0x01a000 } chunk_len = 256

PP: 0x07f6a220 => cmd = { 0x02 0x01a100 } chunk_len = 256

PP: 0x07f6a320 => cmd = { 0x02 0x01a200 } chunk_len = 256

PP: 0x07f6a420 => cmd = { 0x02 0x01a300 } chunk_len = 256

PP: 0x07f6a520 => cmd = { 0x02 0x01a400 } chunk_len = 256

PP: 0x07f6a620 => cmd = { 0x02 0x01a500 } chunk_len = 256

PP: 0x07f6a720 => cmd = { 0x02 0x01a600 } chunk_len = 256

PP: 0x07f6a820 => cmd = { 0x02 0x01a700 } chunk_len = 256

PP: 0x07f6a920 => cmd = { 0x02 0x01a800 } chunk_len = 256

PP: 0x07f6aa20 => cmd = { 0x02 0x01a900 } chunk_len = 256

PP: 0x07f6ab20 => cmd = { 0x02 0x01aa00 } chunk_len = 256

PP: 0x07f6ac20 => cmd = { 0x02 0x01ab00 } chunk_len = 256

PP: 0x07f6ad20 => cmd = { 0x02 0x01ac00 } chunk_len = 256

PP: 0x07f6ae20 => cmd = { 0x02 0x01ad00 } chunk_len = 256

PP: 0x07f6af20 => cmd = { 0x02 0x01ae00 } chunk_len = 256

PP: 0x07f6b020 => cmd = { 0x02 0x01af00 } chunk_len = 256

PP: 0x07f6b120 => cmd = { 0x02 0x01b000 } chunk_len = 256

PP: 0x07f6b220 => cmd = { 0x02 0x01b100 } chunk_len = 256

PP: 0x07f6b320 => cmd = { 0x02 0x01b200 } chunk_len = 256

PP: 0x07f6b420 => cmd = { 0x02 0x01b300 } chunk_len = 256

PP: 0x07f6b520 => cmd = { 0x02 0x01b400 } chunk_len = 256

PP: 0x07f6b620 => cmd = { 0x02 0x01b500 } chunk_len = 256

PP: 0x07f6b720 => cmd = { 0x02 0x01b600 } chunk_len = 256

PP: 0x07f6b820 => cmd = { 0x02 0x01b700 } chunk_len = 256

PP: 0x07f6b920 => cmd = { 0x02 0x01b800 } chunk_len = 256

PP: 0x07f6ba20 => cmd = { 0x02 0x01b900 } chunk_len = 256

PP: 0x07f6bb20 => cmd = { 0x02 0x01ba00 } chunk_len = 256

PP: 0x07f6bc20 => cmd = { 0x02 0x01bb00 } chunk_len = 256

PP: 0x07f6bd20 => cmd = { 0x02 0x01bc00 } chunk_len = 256

PP: 0x07f6be20 => cmd = { 0x02 0x01bd00 } chunk_len = 256

PP: 0x07f6bf20 => cmd = { 0x02 0x01be00 } chunk_len = 256

PP: 0x07f6c020 => cmd = { 0x02 0x01bf00 } chunk_len = 256

PP: 0x07f6c120 => cmd = { 0x02 0x01c000 } chunk_len = 256

PP: 0x07f6c220 => cmd = { 0x02 0x01c100 } chunk_len = 256

PP: 0x07f6c320 => cmd = { 0x02 0x01c200 } chunk_len = 256

PP: 0x07f6c420 => cmd = { 0x02 0x01c300 } chunk_len = 256

PP: 0x07f6c520 => cmd = { 0x02 0x01c400 } chunk_len = 256

PP: 0x07f6c620 => cmd = { 0x02 0x01c500 } chunk_len = 256

PP: 0x07f6c720 => cmd = { 0x02 0x01c600 } chunk_len = 256

PP: 0x07f6c820 => cmd = { 0x02 0x01c700 } chunk_len = 256

PP: 0x07f6c920 => cmd = { 0x02 0x01c800 } chunk_len = 256

PP: 0x07f6ca20 => cmd = { 0x02 0x01c900 } chunk_len = 256

PP: 0x07f6cb20 => cmd = { 0x02 0x01ca00 } chunk_len = 256

PP: 0x07f6cc20 => cmd = { 0x02 0x01cb00 } chunk_len = 256

PP: 0x07f6cd20 => cmd = { 0x02 0x01cc00 } chunk_len = 256

PP: 0x07f6ce20 => cmd = { 0x02 0x01cd00 } chunk_len = 256

PP: 0x07f6cf20 => cmd = { 0x02 0x01ce00 } chunk_len = 256

PP: 0x07f6d020 => cmd = { 0x02 0x01cf00 } chunk_len = 256

PP: 0x07f6d120 => cmd = { 0x02 0x01d000 } chunk_len = 256

PP: 0x07f6d220 => cmd = { 0x02 0x01d100 } chunk_len = 256

PP: 0x07f6d320 => cmd = { 0x02 0x01d200 } chunk_len = 256

PP: 0x07f6d420 => cmd = { 0x02 0x01d300 } chunk_len = 256

PP: 0x07f6d520 => cmd = { 0x02 0x01d400 } chunk_len = 256

PP: 0x07f6d620 => cmd = { 0x02 0x01d500 } chunk_len = 256

PP: 0x07f6d720 => cmd = { 0x02 0x01d600 } chunk_len = 256

PP: 0x07f6d820 => cmd = { 0x02 0x01d700 } chunk_len = 256

PP: 0x07f6d920 => cmd = { 0x02 0x01d800 } chunk_len = 256

PP: 0x07f6da20 => cmd = { 0x02 0x01d900 } chunk_len = 256

PP: 0x07f6db20 => cmd = { 0x02 0x01da00 } chunk_len = 256

PP: 0x07f6dc20 => cmd = { 0x02 0x01db00 } chunk_len = 256

PP: 0x07f6dd20 => cmd = { 0x02 0x01dc00 } chunk_len = 256

PP: 0x07f6de20 => cmd = { 0x02 0x01dd00 } chunk_len = 256

PP: 0x07f6df20 => cmd = { 0x02 0x01de00 } chunk_len = 256

PP: 0x07f6e020 => cmd = { 0x02 0x01df00 } chunk_len = 256

PP: 0x07f6e120 => cmd = { 0x02 0x01e000 } chunk_len = 256

PP: 0x07f6e220 => cmd = { 0x02 0x01e100 } chunk_len = 256

PP: 0x07f6e320 => cmd = { 0x02 0x01e200 } chunk_len = 256

PP: 0x07f6e420 => cmd = { 0x02 0x01e300 } chunk_len = 256

PP: 0x07f6e520 => cmd = { 0x02 0x01e400 } chunk_len = 256

PP: 0x07f6e620 => cmd = { 0x02 0x01e500 } chunk_len = 256

PP: 0x07f6e720 => cmd = { 0x02 0x01e600 } chunk_len = 256

PP: 0x07f6e820 => cmd = { 0x02 0x01e700 } chunk_len = 256

PP: 0x07f6e920 => cmd = { 0x02 0x01e800 } chunk_len = 256

PP: 0x07f6ea20 => cmd = { 0x02 0x01e900 } chunk_len = 256

PP: 0x07f6eb20 => cmd = { 0x02 0x01ea00 } chunk_len = 256

PP: 0x07f6ec20 => cmd = { 0x02 0x01eb00 } chunk_len = 256

PP: 0x07f6ed20 => cmd = { 0x02 0x01ec00 } chunk_len = 256

PP: 0x07f6ee20 => cmd = { 0x02 0x01ed00 } chunk_len = 256

PP: 0x07f6ef20 => cmd = { 0x02 0x01ee00 } chunk_len = 256

PP: 0x07f6f020 => cmd = { 0x02 0x01ef00 } chunk_len = 256

PP: 0x07f6f120 => cmd = { 0x02 0x01f000 } chunk_len = 256

PP: 0x07f6f220 => cmd = { 0x02 0x01f100 } chunk_len = 256

PP: 0x07f6f320 => cmd = { 0x02 0x01f200 } chunk_len = 256

PP: 0x07f6f420 => cmd = { 0x02 0x01f300 } chunk_len = 256

PP: 0x07f6f520 => cmd = { 0x02 0x01f400 } chunk_len = 256

PP: 0x07f6f620 => cmd = { 0x02 0x01f500 } chunk_len = 256

PP: 0x07f6f720 => cmd = { 0x02 0x01f600 } chunk_len = 256

PP: 0x07f6f820 => cmd = { 0x02 0x01f700 } chunk_len = 256

PP: 0x07f6f920 => cmd = { 0x02 0x01f800 } chunk_len = 256

PP: 0x07f6fa20 => cmd = { 0x02 0x01f900 } chunk_len = 256

PP: 0x07f6fb20 => cmd = { 0x02 0x01fa00 } chunk_len = 256

PP: 0x07f6fc20 => cmd = { 0x02 0x01fb00 } chunk_len = 256

PP: 0x07f6fd20 => cmd = { 0x02 0x01fc00 } chunk_len = 256

PP: 0x07f6fe20 => cmd = { 0x02 0x01fd00 } chunk_len = 256

PP: 0x07f6ff20 => cmd = { 0x02 0x01fe00 } chunk_len = 256

PP: 0x07f70020 => cmd = { 0x02 0x01ff00 } chunk_len = 256

SF: STMicro: Successfully programmed 57344 bytes @ 0x12000

done

bfin>

--

 

--- Mike Frysinger                                           2009-06-11 01:15:22

the spi offset needs to be page aligned as well, so your new settings are

correct

 

--- Vivi Li                                                  2009-06-12 06:54:16

Change is committed in both 09r1 branch and trunk.

Close this bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes