[U-Boot-Users] cp.b question

quick question...
To ensure everything is copied to flash properly when I download a tftp image, I have to add one to the reported tftp download size before executing the cp.b command. Is this normal?
It looks like the cp.b is working properly: =========================== BOOT> help cp
cp [.b, .w, .l] source target count - copy memory
BOOT> md.b 0x0 0x20
00000000: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................ 00000010: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ................
BOOT> cp.b 0x00 0x10 0x08
BOOT> md.b 0x0 0x20
00000000: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f ................ 00000010: 00 01 02 03 04 05 06 07 ff ff ff ff ff ff ff ff ................
=======================================

In message 6.1.1.1.0.20040921063706.01e1e5d8@wheresmymailserver.com you wrote:
To ensure everything is copied to flash properly when I download a tftp image, I have to add one to the reported tftp download size before executing the cp.b command. Is this normal?
No, this is not normal.
It looks like the cp.b is working properly:
Indeed.
What makes you think it might be different with downloaded images?
Which board are you talking about? 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.
Best regards,
Wolfgang Denk
participants (2)
-
Robin Getz
-
Wolfgang Denk