Skip to contentSkip to conversation

UBI error: nor_erase_prepare: cannot invalidate PEB 76, write returned -5 read returned 2

DISCUSSION Alexander Stein 3 participants 3 messages Dec 1, 2010 – Sep 3, 2012 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

Hello,

I'm observing the given error after starting Linux. ubiattach is called from within the init-script. Currently I'm running v2.6.34. The filesystem is mounted read-only as expected.
It gets curious that afterwards in u-boot the corresponding sector is complety empty, read 0xff. It seems the sector cannot be written, although it is empty. Has anybody an idea about such phenomenon? Oh, before it forget, I use a Numonyx Axcell M29EW NOR-Flash 128MiB.

Best regards
Alexander

#1 lore raw

Hi Alexander,

I am seeing the same behavior with a 512 MiB Numonyx M29EW (PC28F512M29EWH). Did you manage to get to the root of this problem?

Regards,
Pieter

#2 lore raw
In reply to Alexander Stein
Quoted 9 lines · Alexander Stein

Hello,

I'm observing the given error after starting Linux. ubiattach is called from within the init-script. Currently I'm running v2.6.34. The filesystem is mounted read-only as expected.
It gets curious that afterwards in u-boot the corresponding sector is complety empty, read 0xff. It seems the sector cannot be written, although it is empty. Has anybody an idea about such phenomenon? Oh, before it forget, I use a Numonyx Axcell M29EW NOR-Flash 128MiB.

Sorry guys, cannot help, but if you happen to find the root-cause and fix it - patches are welcome :)

Signature · 2 lines
Best Regards,
Artem Bityutskiy