Fixed
Created: Jun 30, 2019
Updated: Jan 10, 2020
Resolved Date: Jul 16, 2019
Found In Version: 10.17.41.17
Fix Version: 10.17.41.17
Severity: Standard
Applicable for: Wind River Linux LTS 17
Component/s: Kernel
It seems that this issue was introduced by the following backport:
commit 720dd471267017e62904f5f4c7ba3d9e60973a08
Author: Boris Brezillon <boris.brezillon@bootlin.com>
Date: Mon Feb 12 22:03:09 2018 +0100
mtd: Stop assuming mtd_erase() is asynchronous
commit 884cfd9023ce6afe8bcf181ec988d8516eb32bf0 from upsteram
None of the mtd->_erase() implementations work in an asynchronous manner,
so let's simplify MTD users that call mtd_erase(). All they need to do
is check the value returned by mtd_erase() and assume that != 0 means
failure.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Meng Li <Meng.Li@windriver.com>
...
struct erase_info {
struct mtd_info *mtd;
uint64_t addr;
uint64_t len;
uint64_t fail_addr;
u_long time;
u_long retries;
unsigned dev;
unsigned cell;
- void (*callback) (struct erase_info *self);
- u_long priv;
u_char state;
struct erase_info *next;
};
...
setup.sh --machine intel-socfpga-64b --dl-layers --distro wrlinux --repo-jobs 40
bitbake -c configure virtual/kernel
CONFIG_YAFFS_FS=y
bitbake virtual/kernel