Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAND flash issue #269

Open
simonkbaby opened this issue Feb 22, 2024 · 1 comment
Open

NAND flash issue #269

simonkbaby opened this issue Feb 22, 2024 · 1 comment

Comments

@simonkbaby
Copy link

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.

@simonkbaby
Copy link
Author

I am building the image for sama5d3_xplained board. Below is the yocto logs during building.

tdydev@eadlng-build-machine:~/workspace/nic-yocto-build/ecp-nic-test/build$ MACHINE=sama5d3-xplained bitbake microchip-headless-image
Loading cache: 100% |############################################################################################################################################################################| Time: 0:00:00
Loaded 4099 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "2.0.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "universal"
TARGET_SYS = "arm-poky-linux-gnueabi"
MACHINE = "sama5d3-xplained"
DISTRO = "poky-atmel"
DISTRO_VERSION = "4.0.13"
TUNE_FEATURES = "arm vfp cortexa5 thumb callconvention-hard"
TARGET_FPU = "hard"
meta
meta-poky
meta-yocto-bsp = "kirkstone:e51bf557f596c4da38789a948a3228ba11455e3c"
meta-oe
meta-networking
meta-webserver
meta-python
meta-initramfs = "kirkstone:79a6f60dabad9e5b0e041efa91379447ef030482"
meta-atmel = "kirkstone:128bf04cb75902e239a145f0e84f6147aef2ff4b"
meta-multimedia = "kirkstone:79a6f60dabad9e5b0e041efa91379447ef030482"
meta-arm
meta-arm-toolchain = "kirkstone:bafd1d013c2470bcec123ba4eb8232ab879b2660"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant