1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-12-23 13:30:48 +02:00

[flash tool] add error output info

This commit is contained in:
xiangfu 2009-06-24 08:55:04 +00:00
parent f0ad579de0
commit e0c61da4fd

View File

@ -93,6 +93,8 @@ int check_dump_cfg(struct hand *hand)
/* check NAND */
if ( hand->nand_ps < 2048 && hand->nand_os > 16 ) {
printf("\n PAGESIZE or OOBSIZE setting invalid!");
printf("\n PAGESIZE is %d,\t OOBSIZE is %d",
hand->nand_ps, hand->nand_os);
return 0;
}
if ( hand->nand_ps < 2048 && hand->nand_ppb > 32 ) {
@ -102,6 +104,8 @@ int check_dump_cfg(struct hand *hand)
if ( hand->nand_ps > 512 && hand->nand_os <= 16 ) {
printf("\n PAGESIZE or OOBSIZE setting invalid!");
printf("\n PAGESIZE is %d,\t OOBSIZE is %d",
hand->nand_ps, hand->nand_os);
return 0;
}
if ( hand->nand_ps > 512 && hand->nand_ppb < 64 ) {