<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic imx8mq android mount spi flash error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx8mq-android-mount-spi-flash-error/m-p/1692949#M209709</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Release: android_p11.0.0_2.6.0&lt;/P&gt;&lt;P&gt;Board: i.MX8MQ based custom board&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently debugging SPI FLASH and there is already a device file in the file system:&lt;/P&gt;&lt;P&gt;evk_8mq:/ #&lt;/P&gt;&lt;P&gt;evk_8mq:/ # ls /dev/mtd*&lt;/P&gt;&lt;P&gt;/dev/mtd0&amp;nbsp; /dev/mtd0ro&lt;/P&gt;&lt;P&gt;evk_8mq:/ #&lt;/P&gt;&lt;P&gt;And the block device has already been registered:&lt;/P&gt;&lt;P&gt;evk_8mq:/ #&lt;/P&gt;&lt;P&gt;evk_8mq:/ # ls /dev/block/mtdblock0&lt;/P&gt;&lt;P&gt;/dev/block/mtdblock0&lt;/P&gt;&lt;P&gt;evk_8mq:/ #&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My steps:&lt;/P&gt;&lt;P&gt;Step 1: Create jffs2.img&lt;/P&gt;&lt;P&gt;Using the command on ubuntu to create jffs2.img:&lt;/P&gt;&lt;P&gt;sudo mkfs.jffs2- s 0x100 -e 0x10000 -p 0x1AF0000 -d jffs2_rootfs/ -o jffs2.img&lt;/P&gt;&lt;P&gt;The SPI flash model I am using is MT25QL256ABA1EW7, with a block size of 64K and a page size of 256 bytes&lt;/P&gt;&lt;P&gt;Then transfer jffs2.img to the path of Android:&lt;/P&gt;&lt;P&gt;adb push jffs2.img/data&lt;/P&gt;&lt;P&gt;step 2&lt;SPAN&gt;：&lt;/SPAN&gt;convert /dev/mtd0 to jff2&lt;/P&gt;&lt;P&gt;./busybox flash_eraseall -j /dev/mtd0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pyh0603_0-1690364542953.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233686iD16BB306CC7B6E1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pyh0603_0-1690364542953.png" alt="pyh0603_0-1690364542953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Step 4: Mount/dev/block/mtdblock0 to /mnt/mtd&lt;/P&gt;&lt;P&gt;mount - t jffs2 /dev/block/mtdblock0 /mnt/mtd&lt;/P&gt;&lt;P&gt;But the error is as follows:&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.113521][ T1757] jffs2: Further such events for this erase block will not be printed&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.122219][ T1757] jffs2: Node at 0x00069fdc with length 0x00000144 would run over the end of the erase block&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.132251][ T1757] jffs2: Perhaps the file system was created with the wrong erase size?&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.140520][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a000: 0x1901 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.150725][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a004: 0x0008 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.160923][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a008: 0x3000 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.171129][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a00c: 0x0100 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.181325][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a010: 0x0100 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.191526][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a018: 0xf87e instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.201719][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a01c: 0x5a76 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.211927][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a020: 0x7db3 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.222121][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a024: 0xe979 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.232466][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a028: 0x21dd instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.242665][ T1757] jffs2: Further such events for this erase block will not be printed&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.251374][ T1757] jffs2: Node at 0x0006af0c with length 0x00000144 would run over the end of the erase block&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.261401][ T1757] jffs2: Perhaps the file system was created with the wrong erase size?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pyh0603_1-1690364560006.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233687i00F411125FDB94F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pyh0603_1-1690364560006.png" alt="pyh0603_1-1690364560006.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I solve the problem of mounting errors?&lt;BR /&gt;Also: I noticed that there is a tool called mtd utils, but it is only available in the Linux version. Is there an Android version available for use? I have been unable to use Makefile after successful cross compilation.&lt;BR /&gt;git://git.infradead.org/mtd-utils.git&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2023 09:44:35 GMT</pubDate>
    <dc:creator>pyh0603</dc:creator>
    <dc:date>2023-07-26T09:44:35Z</dc:date>
    <item>
      <title>imx8mq android mount spi flash error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mq-android-mount-spi-flash-error/m-p/1692949#M209709</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Release: android_p11.0.0_2.6.0&lt;/P&gt;&lt;P&gt;Board: i.MX8MQ based custom board&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currently debugging SPI FLASH and there is already a device file in the file system:&lt;/P&gt;&lt;P&gt;evk_8mq:/ #&lt;/P&gt;&lt;P&gt;evk_8mq:/ # ls /dev/mtd*&lt;/P&gt;&lt;P&gt;/dev/mtd0&amp;nbsp; /dev/mtd0ro&lt;/P&gt;&lt;P&gt;evk_8mq:/ #&lt;/P&gt;&lt;P&gt;And the block device has already been registered:&lt;/P&gt;&lt;P&gt;evk_8mq:/ #&lt;/P&gt;&lt;P&gt;evk_8mq:/ # ls /dev/block/mtdblock0&lt;/P&gt;&lt;P&gt;/dev/block/mtdblock0&lt;/P&gt;&lt;P&gt;evk_8mq:/ #&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My steps:&lt;/P&gt;&lt;P&gt;Step 1: Create jffs2.img&lt;/P&gt;&lt;P&gt;Using the command on ubuntu to create jffs2.img:&lt;/P&gt;&lt;P&gt;sudo mkfs.jffs2- s 0x100 -e 0x10000 -p 0x1AF0000 -d jffs2_rootfs/ -o jffs2.img&lt;/P&gt;&lt;P&gt;The SPI flash model I am using is MT25QL256ABA1EW7, with a block size of 64K and a page size of 256 bytes&lt;/P&gt;&lt;P&gt;Then transfer jffs2.img to the path of Android:&lt;/P&gt;&lt;P&gt;adb push jffs2.img/data&lt;/P&gt;&lt;P&gt;step 2&lt;SPAN&gt;：&lt;/SPAN&gt;convert /dev/mtd0 to jff2&lt;/P&gt;&lt;P&gt;./busybox flash_eraseall -j /dev/mtd0&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pyh0603_0-1690364542953.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233686iD16BB306CC7B6E1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pyh0603_0-1690364542953.png" alt="pyh0603_0-1690364542953.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Step 4: Mount/dev/block/mtdblock0 to /mnt/mtd&lt;/P&gt;&lt;P&gt;mount - t jffs2 /dev/block/mtdblock0 /mnt/mtd&lt;/P&gt;&lt;P&gt;But the error is as follows:&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.113521][ T1757] jffs2: Further such events for this erase block will not be printed&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.122219][ T1757] jffs2: Node at 0x00069fdc with length 0x00000144 would run over the end of the erase block&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.132251][ T1757] jffs2: Perhaps the file system was created with the wrong erase size?&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.140520][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a000: 0x1901 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.150725][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a004: 0x0008 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.160923][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a008: 0x3000 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.171129][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a00c: 0x0100 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.181325][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a010: 0x0100 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.191526][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a018: 0xf87e instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.201719][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a01c: 0x5a76 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.211927][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a020: 0x7db3 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.222121][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a024: 0xe979 instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.232466][ T1757] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0006a028: 0x21dd instead&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.242665][ T1757] jffs2: Further such events for this erase block will not be printed&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.251374][ T1757] jffs2: Node at 0x0006af0c with length 0x00000144 would run over the end of the erase block&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 474.261401][ T1757] jffs2: Perhaps the file system was created with the wrong erase size?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pyh0603_1-1690364560006.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/233687i00F411125FDB94F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pyh0603_1-1690364560006.png" alt="pyh0603_1-1690364560006.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I solve the problem of mounting errors?&lt;BR /&gt;Also: I noticed that there is a tool called mtd utils, but it is only available in the Linux version. Is there an Android version available for use? I have been unable to use Makefile after successful cross compilation.&lt;BR /&gt;git://git.infradead.org/mtd-utils.git&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 09:44:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mq-android-mount-spi-flash-error/m-p/1692949#M209709</guid>
      <dc:creator>pyh0603</dc:creator>
      <dc:date>2023-07-26T09:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: imx8mq android mount spi flash error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx8mq-android-mount-spi-flash-error/m-p/1695808#M209948</link>
      <description>&lt;DIV&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181620"&gt;@pyh0603&lt;/a&gt;,&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I hope you are doing well&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;These filesystem-related errors might cause due to several reasons.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;-&amp;gt;The issue occurs because the JFFS2 filesystem is configured with an incorrect erase block size.&lt;/DIV&gt;
&lt;DIV&gt;-&amp;gt;The issue could be due to a buggy driver which&amp;nbsp;reads trash instead of valid data.&lt;/DIV&gt;
&lt;DIV&gt;-&amp;gt;There are chances that the issue is in the JFFS2 image.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;For the query related to mtd-utils, kindly try the same on Android 13 and share the result.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&amp;nbsp;&amp;amp; Regards,&lt;BR /&gt;Sanket Parekh&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Jul 2023 09:56:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx8mq-android-mount-spi-flash-error/m-p/1695808#M209948</guid>
      <dc:creator>Sanket_Parekh</dc:creator>
      <dc:date>2023-07-31T09:56:07Z</dc:date>
    </item>
  </channel>
</rss>

