for (j = 0; j < flash_info[i].sector_count; j++) { flash_info[i].start[j] = flashbase + j * MAIN_SECT_SIZE; }
修改flash_print_info函数
switch (info->flash_id & FLASH_VENDMASK) { case (AMD_MANUFACT & FLASH_VENDMASK): printf ("AMD: "); break; case (SST_MANUFACT & FLASH_VENDMASK): //添加SST39VF1601 printf ("SST: "); break; default: printf ("Unknown Vendor "); break; } switch (info->flash_id & FLASH_TYPEMASK) { case (AMD_ID_LV400B & FLASH_TYPEMASK): printf ("1x Amd29LV400BB (4Mbit)\n"); break; case (AMD_ID_LV800B & FLASH_TYPEMASK): printf ("1x Amd29LV800BB (8Mbit)\n"); break; case (SST_ID_xF1601 & FLASH_TYPEMASK): //添加SST39VF1601的 printf ("1x SST39VF1610 (16Mbit)\n"); break; default: printf ("Unknown Chip Type\n"); goto Done; break; }