uboot can't get the correct misc info.
nand_info[0] is the info of mtd in v2016 or more older version.
nand_info[0] hold the pointer of mtd info in v2017.
Change-Id: I6b336efeafeed1e0f4e3224f738e72b83f1e09df
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
char *addr_str;
char *nand_str;
ulong misc_info_size;
- struct mtd_info *nand = &nand_info[0];
+ struct mtd_info *nand = nand_info[0];
if (command == NULL)
return -1;
memset(read_cmd, 0, 128);
char *addr_str;
char *nand_str;
ulong misc_info_size;
- struct mtd_info *nand = &nand_info[0];
+ struct mtd_info *nand = nand_info[0];
if (command == NULL)
return -1;
memset(cmd, 0, 128);
unsigned long off;
unsigned int ok_start;
- nand = &nand_info[nand_curr_device];
+ nand = nand_info[nand_curr_device];
printf("\nDevice %d bad blocks:\n",
nand_curr_device);
{
interface.nand_block_size = 0;
#if defined(CONFIG_FASTBOOT_STORAGE_NAND)
- struct mtd_info *nand = &nand_info[0];
+ struct mtd_info *nand = nand_info[0];
if (nand)
interface.nand_block_size = nand->writesize;
#endif