[#4884] copy to address larger than 0x20080000 on bf526 would make uboot fail to reset

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

[#4884] copy to address larger than 0x20080000 on bf526 would make uboot fail to reset

Submitted By: Mingquan Pan

Open Date

2009-02-10 22:43:51    

Priority:

Medium     Assignee:

Mike Frysinger

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Open

Board:

N/A     Processor:

BF526

Silicon Revision:

    Resolution:

Assigned (Not Start)

Is the bug repeatable?:

N/A     

Summary: copy to address larger than 0x20080000 on bf526 would make uboot fail to reset

Details:

 

copy to 20040000 on bf526 would make uboot fail to reset.

 

U-Boot 2008.10-svn1651 (ADI-2009R1-pre) (Feb  6 2009 - 17:24:34)

 

CPU:   ADSP bf526-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF526 EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   66:54:23:71:41:47

Hit any key to stop autoboot:  0

bfin>

bfin> print

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

bootcmd=run ramboot

bootdelay=5

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

gatewayip=192.168.0.1

netmask=255.255.255.0

hostname=bf526-ezbrd

loadaddr=0x1000000

ubootfile=u-boot.ldr

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 0x2003FFFF;erase 0x20000000 0x2003FFFF;cp.b $(loadaddr) 0x20000000 $(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,uart1,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

ethact=Blackfin EMAC

ethaddr=66:54:23:71:41:47

ipaddr=10.100.4.50

serverip=10.100.4.174

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 1010/8188 bytes

bfin>                                                                                                                                                     

bfin> tftp 0x1000000 vmImage

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'vmImage'.

Load address: 0x1000000

Loading: #################################################################

         ##

done

Bytes transferred = 972976 (ed8b0 hex)

bfin> protect off 20040000 201fffff

............................ done

Un-Protected 28 sectors

bfin> erase 20040000 201fffff

 

............................ done

Erased 28 sectors

bfin> cp.b 0x1000000 20040000  0xed8b0

Copy to Flash... done

bfin> reset

 

And stuck here no reset.

 

And if not do copy and stop at erase, reset is fine.

 

 

The used u-boot.ldr does not exceed 0x40000.

U-Boot 2008.10-svn1651 (ADI-2009R1-pre) (Feb  6 2009 - 17:24:34)

 

CPU:   ADSP bf526-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF526 EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   66:54:23:71:41:47

Hit any key to stop autoboot:  0

bfin> tftp 0x2000000 u-boot.ldr

Using Blackfin EMAC device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'u-boot.ldr'.

Load address: 0x2000000

Loading: ##########

done

Bytes transferred = 146728 (23d28 hex)

 

 

Follow-ups

 

--- Sonic Zhang                                              2009-04-02 06:08:56

This bug occurs only when cp any data to address larger than 0x20080000.

 

--- Mike Frysinger                                           2009-05-06 23:19:56

seems very odd ... i'm inclined to blame the hardware.  reading addresses at

0x20080000+ works fine, but as soon as any gets written, the flash goes into a

weird state.

 

bfin> md.b 20000000 10

20000000: 01 50 fe ad 00 00 a0 ff 00 00 00 00 90 cf 02 00    .P..............

 

bfin> cp.b 0 2007ffff 1

Copy to Flash... done

bfin> md.b 20000000

20000000: 01 50 fe ad 00 00 a0 ff 00 00 00 00 90 cf 02 00    .P..............

 

bfin> cp.b 0 20080000 1

Copy to Flash... done

bfin> md.b 20000000

20000000: 80 00 80 00 80 00 80 00 80 00 80 00 80 00 80 00    ................

 

bfin> cp.b 0 2007ffff 1

Copy to Flash... done

bfin> md.b 20000000

20000000: 01 50 fe ad 00 00 a0 ff 00 00 00 00 90 cf 02 00    .P..............

 

bfin> cp.b 0 20100000 1

Copy to Flash... done

bfin> md.b 20000000

20000000: 80 00 80 00 80 00 80 00 80 00 80 00 80 00 80 00    ................

 

bfin> cp.b 0 2007ffff 1

Copy to Flash... done

bfin> md.b 20000000

20000000: 01 50 fe ad 00 00 a0 ff 00 00 00 00 90 cf 02 00    .P..............

 

--- Graf Yang                                                2009-05-21 03:23:36

My side seems OK, the u-boot not stuck.

 

U-Boot 2008.10-svn1873 (ADI-2009R1-rc1) (May 21 2009 - 14:40:29)

 

CPU:   ADSP bf526-0.0 (Detected Rev: 0.0) (parallel flash boot)

Board: ADI BF526 EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   8A:96:81:20:2C:2F

Hit any key to stop autoboot:  0

bfin> flinfo

 

Bank # 1: CFI conformant FLASH (16 x 16)  Size: 4 MB in 71 Sectors

  Intel Standard command set, Manufacturer ID: 0x20, Device ID: 0x15

  Erase timeout: 4096 ms, write timeout: 1 ms

 

  Sector Start Addresses:

  20000000   RO   20002000   RO   20004000   RO   20006000   RO   20008000   RO

 

  2000A000   RO   2000C000   RO   2000E000   RO   20010000   RO   20020000   RO

 

  20030000   RO   20040000   RO   20050000   RO   20060000   RO   20070000   RO

 

  20080000        20090000        200A0000        200B0000        200C0000    

 

  200D0000        200E0000        200F0000        20100000        20110000    

 

  20120000        20130000        20140000        20150000        20160000    

 

  20170000        20180000        20190000        201A0000        201B0000    

 

  201C0000        201D0000        201E0000        201F0000        20200000    

 

  20210000        20220000        20230000        20240000        20250000    

 

  20260000        20270000        20280000        20290000        202A0000    

 

  202B0000        202C0000        202D0000        202E0000        202F0000    

 

  20300000        20310000        20320000        20330000        20340000    

 

  20350000        20360000        20370000        20380000        20390000    

 

  203A0000        203B0000        203C0000        203D0000        203E0000    

 

  203F0000     

bfin> protect off 20040000 201fffff

............................ done

Un-Protected 28 sectors

bfin> md.b 0x20080000

20080000: 01 50 fe ad 00 00 a0 ff 00 00 00 00 90 cf 02 00    .P..............

20080010: 01 08 c4 ad 00 00 a0 ff 1c 01 00 00 ef be ad de    ................

20080020: 68 05 4c 01 67 01 4a e1 c0 ff 46 6f 0a e1 14 0a    h.L.g.J...Fo....

20080030: 10 95 00 48 03 14 05 60 10 20 4a e1 c0 ff 0a e1    ...H...`. J.....

bfin> erase 20040000 201fffff

 

............................ done

Erased 28 sectors

bfin> md.b 0x20080000                

20080000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

20080010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

20080020: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

20080030: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................

bfin> cp.b 0x1000000 0x20040000 0xed8b0

Copy to Flash... done

bfin> flinfo

 

Bank # 1: CFI conformant FLASH (16 x 16)  Size: 4 MB in 71 Sectors

  Intel Standard command set, Manufacturer ID: 0x20, Device ID: 0x15

  Erase timeout: 4096 ms, write timeout: 1 ms

 

  Sector Start Addresses:

  20000000   RO   20002000   RO   20004000   RO   20006000   RO   20008000   RO

 

  2000A000   RO   2000C000   RO   2000E000   RO   20010000   RO   20020000   RO

 

  20030000   RO   20040000        20050000        20060000        20070000    

 

  20080000        20090000        200A0000        200B0000        200C0000    

 

  200D0000        200E0000        200F0000        20100000        20110000    

 

  20120000        20130000        20140000        20150000        20160000    

 

  20170000        20180000        20190000        201A0000        201B0000    

 

  201C0000        201D0000        201E0000        201F0000        20200000    

 

  20210000        20220000        20230000        20240000        20250000    

 

  20260000        20270000        20280000        20290000        202A0000    

 

  202B0000        202C0000        202D0000        202E0000        202F0000    

 

  20300000        20310000        20320000        20330000        20340000    

 

  20350000        20360000        20370000        20380000        20390000    

 

  203A0000        203B0000        203C0000        203D0000        203E0000    

 

  203F0000     

bfin> md.b 0x20080000

20080000: 25 7e 58 bb 66 ca eb 97 43 5b a9 ed db 4e a2 66    %~X.f...C[...N.f

20080010: cf 9e dd 7e 7f 39 9c 7f 8b d3 e4 33 cb e8 3f e2    ...~.9.....3..?.

20080020: d7 02 ca 8b 7f d5 27 8a 6e 2d a2 a9 d9 a5 e6 35    ......'.n-.....5

20080030: 08 23 a5 45 bb e7 a0 1e 2f e4 f2 92 9a 9b 04 b9    .#.E..../.......

bfin> reset

 

U-Boot 2008.10-svn1816 (ADI-2009R1-pre) (Apr  9 2009 - 14:54:55)

 

CPU:   ADSP bf526-0.0 (Detected Rev: 0.0) (spi flash boot)

Board: ADI BF526 EZ-Board board

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

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   64 MB

Flash:  4 MB

SF: Got idcode bf 25 04

In:    serial

Out:   serial

Err:   serial

Net:   Blackfin EMAC

MAC:   00:E0:FE:B8:A6:C0

Hit any key to stop autoboot:  0

bfin>

 

--- Graf Yang                                                2009-05-21 03:52:30

Sorry, when I burn my u-boot.ldr into flash, I can duplicate Grace's bug.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes