-
Notifications
You must be signed in to change notification settings - Fork 148
Description
The jffs2 file system over the ast2400 fmc driver is working fine on the dev-4.3 branch 35d2cfb . But the file system is spewing pr_warn in the dev-4.4 branch 1500e26 .
The spew is from fs/jffs2/scan.c line 671. The whole scan.c file has not changed between revisions. A quick web search shows this is likely due to either file system corruption or a bad driver. After scanning file system for tens of minutes the file system typically reports an error. Returning to a previous 4.3 kernel build the flash is able to be read.
The error could be caused by flash partition alignment, by flash driver, or by something elsewhere in the kernel.
I did a very quick web search and found plenty of hits the first few I looked at were recovered with erasing and formating the whole partition. I did a git diff on the file and there have been zero changes since Febuary 2012 in kernel v3.4-rc1. I did a git diff between drivers/mtd/spi-nor/ and see changes including moving the struct mtd around, but no obvious errors on first scan.
It has been suggested a bisect be attempted, but that will require cherry picking each aspeed support patch stack for each rev (outside the add support options). I feel an attempt to recreate on an existing mtd platform in qemu or similar be attempted first, and/or logging the IO to the flash to compare the pattern.