Re: [U-Boot-Users] cp.b question

Wolfgang Denk wrote:
Which board are you talking about?
The Blackfin STAMP - a work in progress - (not yet submitted as a patch, because of bugs like this).
Maybe you want to try your "cp.b" test with different sizes, using a copy count of "4*N+i" with arbitrary N and i=0, 1, 2, and 3. Maybe your board's flash driver has a problem handling unaligned tail bytes.
Good idea -
lets see:
BOOT> md.b 0 0x20
00000000: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................ 00000010: 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f ................ BOOT> erase all
Erase Flash Bank # 1 Erasing flash, Please Wait
BOOT> md.b 0x20000000 0x20
20000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 20000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
BOOT> cp.b 0x0 0x20000000 1
BOOT> md.b 0x20000000 0x20
20000000: 00 01 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................ 20000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
Doh... back to flash.c Thanks for the pointer. Will be adding this to the test scripts.
participants (1)
-
Robin Getz