
u-boot-users-bounces@lists.sourceforge.net wrote on :
On Wednesday 05 March 2008, York Sun wrote:
Add flash programming counter. It prints how many KB has been programmed in case you suspect it hangs when programming large files.
[...]
if (!((count - cnt) % (1 << 14)))
}printf("\r\t\t %d KB ", (count - cnt) >> 10);
#endif /* CFG_FLASH_USE_BUFFER_WRITE */ if (cnt == 0) {
What's do other think? Should we add such an "enhancement" to the common CFI driver?
I would appreciate such a progress counter - if it does not slow down flash programming too much.
At a baud rate of 9600 bit/s one "xxxx KB " Message needs about 12,5 ms on the serial line. With a suggested granularity of 2^14 bit (= 16 KiB), programming time for 1 MiB increases about 0,8 s in the worst case. The worst case is, if the UART does not use any FIFO. With a FIFO the added time will only be about 1/10th, thus 0,08 s/MiB. For higher baud rates the additionally needed time will be even lower. So for me it would be OK, to add this featur to the common CFI driver.
Regards, Martin