Date: | 2011-03-08 01:16:42 (13 years 21 days ago) |
---|---|
Author: | kyak |
Commit: | a3a38cabf1e854667d90f49f0b4487e28974a3a6 |
Message: | xburst-tools buffered output patch It solves the problem that the progress bar in reflash_ben.sh is buffered and updated in bigger pieces. With this patch in place, reflash_ben.sh runs nice and smooth |
Files: |
usbboot/src/cmd.c (4 diffs) |
Change Details
usbboot/src/cmd.c | ||
---|---|---|
204 | 204 | " %02x %02x %02x %02x %02x %02x %02x %02x\n", s, |
205 | 205 | obj[s], obj[s+1], obj[s+2], obj[s+3], obj[s+4], obj[s+5], obj[s+6], obj[s+7], |
206 | 206 | obj[s+8], obj[s+9], obj[s+10], obj[s+11], obj[s+12], obj[s+13], obj[s+14], obj[s+15]); |
207 | fflush(NULL); | |
207 | 208 | return 0; |
208 | 209 | } |
209 | 210 | } |
210 | 211 | printf("SUCCESS\n"); |
212 | fflush(NULL); | |
211 | 213 | return 1; |
212 | 214 | } |
213 | 215 | |
... | ... | |
326 | 328 | hand.nand_ps == 4096 && |
327 | 329 | hand.fw_args.cpu_id == 0x4740) { |
328 | 330 | printf(" no check! End at Page: %d\n", cur_page); |
331 | fflush(NULL); | |
329 | 332 | continue; |
330 | 333 | } |
331 | 334 | |
... | ... | |
342 | 345 | } |
343 | 346 | |
344 | 347 | printf(" End at Page: %d\n", cur_page); |
348 | fflush(NULL); | |
345 | 349 | } |
346 | 350 | |
347 | 351 | *start_page = cur_page; |
... | ... | |
470 | 474 | printf(" Size to send %d, transfer_size %d\n", flen, transfer_size); |
471 | 475 | printf(" Image type : %s\n", IMAGE_TYPE[nand_in->option]); |
472 | 476 | printf(" It will cause %d times buffer transfer.\n", j == 0 ? m : m + 1); |
477 | fflush(NULL); | |
473 | 478 | |
474 | 479 | #ifdef CONFIG_NAND_OUT |
475 | 480 | for (i = 0; i < nand_in->max_chip; i++) |