2009-09-03 19:07:26     U-Boot 2009.06-svn2024: cp.b (size bigger than 0xFFFF)

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

2009-09-03 19:07:26     U-Boot 2009.06-svn2024: cp.b (size bigger than 0xFFFF)

Andreas Neubacher (AUSTRIA)

Message: 79583   

 

hi,

 

when i try to copy (cp.b) a block bigger than 0xFFFF the destination-content (flash) ends up in 0xFF

 

Q: is this a known behaviour ?

 

 

 

 

 

 

 

U-Boot 2009.06-svn2024 (ADI-2009R2-pre) (Sep 02 2009 - 20:56:31)

 

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2) (bypass boot)

Board: Bluetechnix CM-BF537E board

       Support: http://www.bluetechnix.at/

Clock: VCO: 525 MHz, Core: 525 MHz, System: 131.250 MHz

RAM:   32 MB

Flash:  4 MB

In:    serial

Out:   serial

Err:   serial

Warning: Generating 'random' MAC address

Net:   Blackfin EMAC

MAC:   32:0b:0b:a8:b5:f0

Hit any key to stop autoboot:  0

 

 

bfin> tftp 0x1000000 uImage

Using Blackfin EMAC device

TFTP from server 10.0.0.2; our IP address is 10.0.0.66

Filename 'uImage'.

Load address: 0x1000000

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

done

Bytes transferred = 1887206 (1ccbe6 hex)

bfin> protect off all

Un-Protect Flash Bank # 1

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

bfin> erase 0x20100000 0x203fffff

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

bfin> cp.b 0x1000000 0x20100000 0x1ccbe6

Copy to Flash... done

bfin> protect on all

Protect Flash Bank # 1

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

bfin> md 0x1000000 0xff

01000000: 56190527 bbbae82f af1ea04a a6cb1c00    '..V/...J.......

01000010: 00100000 7c700f00 e52935ea 01021005    ......p|.5).....

01000020: 33356662 2e322d37 30332e36 412d352e    bf537-2.6.30.5-A

01000030: 322d4944 52303130 72702d31 6e694d65    DI-2010R1-preMin

01000040: 00088b1f 4aa01eaf fdcc0302 d514780d    .......J.....x..

01000050: df8e38f5 eccbecd9 c3664932 42c84ec2    .8......2If..N.B

01000060: 13605136 288cb981 0bcc17c1 d90235d1    6Q`....(.....5..

01000070: 2c188084 0240909d 156f8306 2821ad5b    ...,..@...o.[.!(

01000080: 659ab5a0 76da82b5 05a29413 b56a0ddd    ...e...v......j.

 

bfin> md 0x20100000 0xff

20100000: ffffffff ffffffff ffffffff ffffffff    ................

20100010: ffffffff ffffffff ffffffff ffffffff    ................

20100020: ffffffff ffffffff ffffffff ffffffff    ................

20100030: ffffffff ffffffff ffffffff ffffffff    ................

20100040: ffffffff ffffffff ffffffff ffffffff    ................

20100050: ffffffff ffffffff ffffffff ffffffff    ................

20100060: ffffffff ffffffff ffffffff ffffffff    ................

20100070: ffffffff ffffffff ffffffff ffffffff    ................

QuoteReplyEditDelete

 

 

2009-09-03 20:13:02     Re: U-Boot 2009.06-svn2024: cp.b (size bigger than 0xFFFF)

Mike Frysinger (UNITED STATES)

Message: 79586   

 

you arent reading the flash.  use the flread command.

Attachments

    Outcomes