Date:2011-03-08 01:16:42 (9 years 4 months 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
204204                   " %02x %02x %02x %02x %02x %02x %02x %02x\n", s,
205205                obj[s], obj[s+1], obj[s+2], obj[s+3], obj[s+4], obj[s+5], obj[s+6], obj[s+7],
206206                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);
207208            return 0;
208209        }
209210    }
210211    printf("SUCCESS\n");
212    fflush(NULL);
211213    return 1;
212214}
213215
...... 
326328            hand.nand_ps == 4096 &&
327329            hand.fw_args.cpu_id == 0x4740) {
328330            printf(" no check! End at Page: %d\n", cur_page);
331            fflush(NULL);
329332            continue;
330333        }
331334
...... 
342345        }
343346
344347        printf(" End at Page: %d\n", cur_page);
348        fflush(NULL);
345349    }
346350
347351    *start_page = cur_page;
...... 
470474    printf(" Size to send %d, transfer_size %d\n", flen, transfer_size);
471475    printf(" Image type : %s\n", IMAGE_TYPE[nand_in->option]);
472476    printf(" It will cause %d times buffer transfer.\n", j == 0 ? m : m + 1);
477    fflush(NULL);
473478
474479#ifdef CONFIG_NAND_OUT
475480    for (i = 0; i < nand_in->max_chip; i++)

Archive Download the corresponding diff file



interactive