Skip to content

NAND flash issue #269

@simonkbaby

Description

@simonkbaby

Hello,
I am trying boot from NAND with yocto generated files. I am able to flash the images using sam-ba-3.7. I am getting the below error while booting. Can someone help to resolve this issue.

I followed the steps mentioned in the link https://raw.githubusercontent.com/linux4sam/meta-atmel/kirkstone/README.

During bootup it failed. Below is the log.

AT91Bootstrap 4.0.8-rc4 (2023-12-14 13:49:11)
NAND: ONFI flash detected
NAND: Manufacturer ID: 0x2c Chip ID: 0xda
NAND: Page Bytes: 2048, Spare Bytes: 64
NAND: ECC Correctability Bits: 4, ECC Sector Bytes: 512
NAND: Disable On-Die ECC
NAND: Initialize PMECC params, cap: 4, sector: 512
NAND: Image: Copy 0xc0000 bytes from 0x40000 to 0x26f00000

******PMECC: failed to correct corrupted bits!

NAND: Failed to load image******

SAM-BA logs
Applet 'Low-Level' from SAM-BA Applets Framework 3.7 (v3.7-beta1-49-g06f8d322).
Current processor clock: 528 MHz
Clocks are already configured.

Applet 'NAND Flash' from SAM-BA Applets Framework 3.7 (v3.7-beta1-49-g06f8d322).
Initializing NAND ioSet1 Bus Width 8
PMECC configuration: 0xc0902405
Sector size: 512
Sectors per page: 4
Spare size: 64
ECC bits: 4
ECC offset: 36
ECC size: 28
PMECC enabled
Buffer Address: 0x0030a540
Buffer Size: 22528 bytes
NAND applet initialized successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions