b/drivers/mtd/nand/sunxi_nand_spl.c
@@ -486,17 +486,24 @@ static int nand_detect_config(struct nfc_config
*conf, u32 offs, void *dest)
static int nand_read_buffer(struct nfc_config *conf, uint32_t offs,
unsigned int size, void *dest)
{
- int first_seed, page, ret;
+ int first_seed = 0, page, ret;
size = ALIGN(size, conf->page_size);
page = offs / conf->page_size;
- first_seed = page % conf->nseeds;
+ if (conf->randomize)
+ first_seed = page % conf->nseeds;
With that fix, I could boot U-Boot through the U-Boot SPL, fully from
NAND on an A13-Olinuxino-WiFi board with 8192/640.
Regards,
Leon.
> From patchwork Mon Jan 23 13:46:43 2017
> Content-Type: text/plain; charset="utf-8"
> MIME-Version: 1.0