TI E2E Community
Digital Signal Processors (DSP)
OMAP-L13x, AM1x and C674x Processors Forum
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x4af8 instead
Dear Forum Members,
We are trying to setup u-boot and Linux for a custom board based on Sitara am1808 processor. We are using u-boot from arago-project (version v2009.11_DAVINCIPSP_03.20.00.14) and Linux kernel from arago project (version v2.6.37_DAVINCIPSP_03.21.00.04).We are using a NAND flash from Micron - MT29F2G16ABAEAWP-IT, which is a 16 bit NAND chipInitially we faced some issues in u-boot to work with the 16bit NAND flash. We made some modifications in u-boot NAND driver (davinci_nand.c) to set nand->option as NAND_BUSWIDTH_16 and also modified the ECC layout structure in NAND driver. initial ECC layout structure was: 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,And we modified to 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, Now u-boot is working fine with this NAND driver and it copies and extracts the kernel from NAND to RAM and boots up the kernel. Currently we are facing some issues in mounting jffs2 filesystem from NAND flash. The detailed error report is shown below. From the error it seems the magic bitmask 1985 is not found in some locations where it is expected, that is there are some miss alignment of data stored in NAND. The ECC layout structure change we have done for u-boot is also done in Linux NAND driver. Does anyone have an idea what the root cause could be?
Thank you in advance.
I guess it is either a problem at the MTD level or at the file system (like the way it was created):
I think that the below E2E post could help:http://e2e.ti.com/support/embedded/linux/f/354/t/93058.aspxhttp://e2e.ti.com/support/embedded/linux/f/354/t/133397.aspx
Also the Critical link forum and wiki do give information on the procdure to follow to create a jffs2 filesystem for AM180x/OMAP-L138:http://support.criticallink.com/redmine/boards/10/topics/1023
hope it helps.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.