<?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 T1024RDB NAND UIB ECC error in T-Series</title>
    <link>https://community.nxp.com/t5/T-Series/T1024RDB-NAND-UIB-ECC-error/m-p/1039573#M3572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on the T1024RDB and trying to have the root filesystem on the NAND flash (MT29F8G08ABBCAH4).&lt;BR /&gt;I think I have a correct UBI image with an UBIFS as root filesystem. Only the root filesystem is on the NAND, u-boot, kenel and device tree are stored in the NOR flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UBIFS is created with command : mkfs.ubifs -r root-fs/ -m 4096 -e 253952 -c 4227 -o agc-ubifs.img&lt;BR /&gt;The root-fs folder contains the extracted rootfs tarball that has been generated by Yocto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UBI image is created with command : ubinize -v -o agc-ubi.img -m 4096 -p 256KiB ubinize.cfg&lt;BR /&gt;The content of the configuration file ubinize.cfg is as follow :&lt;/P&gt;&lt;P&gt;[rootfs_volume]&lt;BR /&gt;mode=ubi&lt;BR /&gt;image=agc-ubifs.img&lt;BR /&gt;vol_id=0&lt;BR /&gt;vol_type=dynamic&lt;BR /&gt;vol_name=rootfs&lt;BR /&gt;vol_flags=autoresize&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The T1024RDB boots almost correclty (I'm able to log on the system). &lt;BR /&gt;During the startup of the board I see ECC error that can also arise when using the system.&lt;BR /&gt;The error is : &lt;BR /&gt;ubi0 warning: .ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 412:135936, read only 77 bytes, retry&lt;BR /&gt;ubi0 warning: .ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 412:135936, read only 77 bytes, retry&lt;BR /&gt;ubi0 warning: .ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 412:135936, read only 77 bytes, retry&lt;BR /&gt;ubi0 error: .ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 412:135936, read 77 bytes&lt;BR /&gt;CPU: 0 PID: 2152 Comm: rc Not tainted 4.14.122-rt62+ge3aede3681a6 #1&lt;BR /&gt;Call Trace:&lt;BR /&gt;[c00000007c3b35a0] [c000000000a5dfcc] .dump_stack+0xac/0xf0 (unreliable)&lt;BR /&gt;[c00000007c3b3630] [c00000000069523c] .ubi_io_read+0x208/0x448&lt;BR /&gt;[c00000007c3b3710] [c000000000692250] .ubi_eba_read_leb+0xd8/0x5a0&lt;BR /&gt;[c00000007c3b37f0] [c000000000690b8c] .ubi_leb_read+0xcc/0x168&lt;BR /&gt;[c00000007c3b38a0] [c0000000003ffaf8] .ubifs_leb_read+0x44/0xbc&lt;BR /&gt;[c00000007c3b3940] [c000000000401d54] .ubifs_read_node+0xac/0x310&lt;BR /&gt;[c00000007c3b39f0] [c000000000426874] .ubifs_tnc_read_node+0x5c/0x138&lt;BR /&gt;[c00000007c3b3a80] [c000000000404350] .tnc_read_hashed_node+0xd8/0x2a4&lt;BR /&gt;[c00000007c3b3b10] [c0000000004084ac] .ubifs_tnc_next_ent+0x1f0/0x29c&lt;BR /&gt;[c00000007c3b3bd0] [c0000000003f7210] .ubifs_readdir+0x498/0x52c&lt;BR /&gt;[c00000007c3b3cc0] [c00000000022bce0] .iterate_dir+0x90/0x23c&lt;BR /&gt;[c00000007c3b3d70] [c00000000022c94c] .SyS_getdents64+0x8c/0x160&lt;BR /&gt;[c00000007c3b3e30] [c0000000000006b0] system_call+0x60/0x6c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do a reboot of the system, it will never boot back on the NAND, the kernel fails to mount the ubifs of the flash and thus panic on the mount of VFS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done several flashing of the UBI image and I have observed that the ECC error is often raised on PEB 412.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know where to look to investigate this issue, any hint would be welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Here some more information about what I have observe and the complete kernel log is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When erasing the flash u-boot reports 4 bad blocks.&lt;BR /&gt;Skipping bad block at 0x3ff00000 &lt;BR /&gt;Skipping bad block at 0x3ff40000 &lt;BR /&gt;Skipping bad block at 0x3ff80000 &lt;BR /&gt;Skipping bad block at 0x3ffc0000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Startup logs about attaching and mounting nand flash.&lt;BR /&gt;ubi0: attaching mtd1&lt;BR /&gt;ubi0: scanning is finished&lt;BR /&gt;ubi0: volume 0 ("agc-rootfs") re-sized from 2115 to 4012 LEBs&lt;BR /&gt;ubi0: attached mtd1 (name "fff800000.flash", size 1024 MiB)&lt;BR /&gt;ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes&lt;BR /&gt;ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096&lt;BR /&gt;ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192&lt;BR /&gt;ubi0: good PEBs: 4092, bad PEBs: 4, corrupted PEBs: 0&lt;BR /&gt;ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128&lt;BR /&gt;ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1581963432&lt;BR /&gt;ubi0: available PEBs: 0, total reserved PEBs: 4092, PEBs reserved for bad PEB handling: 76&lt;BR /&gt;ubi0: background thread "ubi_bgt0d" started, PID 1692&lt;BR /&gt;rtc-ds1307 0-0068: setting system clock to 2020-04-16 05:35:18 UTC (1587015318)&lt;BR /&gt;ALSA device list:&lt;BR /&gt; No soundcards found.&lt;BR /&gt;Waiting 5 sec before mounting root device...&lt;BR /&gt;UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1695&lt;BR /&gt;UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "agc-rootfs"&lt;BR /&gt;UBIFS (ubi0:0): LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes&lt;BR /&gt;UBIFS (ubi0:0): FS size: 1016315904 bytes (969 MiB, 4002 LEBs), journal size 9404416 bytes (8 MiB, 38 LEBs)&lt;BR /&gt;UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)&lt;BR /&gt;UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 6873C4DA-A87B-44A5-80B8-5C95564B437B, small LPT mode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Apr 2020 06:33:13 GMT</pubDate>
    <dc:creator>rdk</dc:creator>
    <dc:date>2020-04-16T06:33:13Z</dc:date>
    <item>
      <title>T1024RDB NAND UIB ECC error</title>
      <link>https://community.nxp.com/t5/T-Series/T1024RDB-NAND-UIB-ECC-error/m-p/1039573#M3572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm working on the T1024RDB and trying to have the root filesystem on the NAND flash (MT29F8G08ABBCAH4).&lt;BR /&gt;I think I have a correct UBI image with an UBIFS as root filesystem. Only the root filesystem is on the NAND, u-boot, kenel and device tree are stored in the NOR flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UBIFS is created with command : mkfs.ubifs -r root-fs/ -m 4096 -e 253952 -c 4227 -o agc-ubifs.img&lt;BR /&gt;The root-fs folder contains the extracted rootfs tarball that has been generated by Yocto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UBI image is created with command : ubinize -v -o agc-ubi.img -m 4096 -p 256KiB ubinize.cfg&lt;BR /&gt;The content of the configuration file ubinize.cfg is as follow :&lt;/P&gt;&lt;P&gt;[rootfs_volume]&lt;BR /&gt;mode=ubi&lt;BR /&gt;image=agc-ubifs.img&lt;BR /&gt;vol_id=0&lt;BR /&gt;vol_type=dynamic&lt;BR /&gt;vol_name=rootfs&lt;BR /&gt;vol_flags=autoresize&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The T1024RDB boots almost correclty (I'm able to log on the system). &lt;BR /&gt;During the startup of the board I see ECC error that can also arise when using the system.&lt;BR /&gt;The error is : &lt;BR /&gt;ubi0 warning: .ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 412:135936, read only 77 bytes, retry&lt;BR /&gt;ubi0 warning: .ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 412:135936, read only 77 bytes, retry&lt;BR /&gt;ubi0 warning: .ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 412:135936, read only 77 bytes, retry&lt;BR /&gt;ubi0 error: .ubi_io_read: error -74 (ECC error) while reading 77 bytes from PEB 412:135936, read 77 bytes&lt;BR /&gt;CPU: 0 PID: 2152 Comm: rc Not tainted 4.14.122-rt62+ge3aede3681a6 #1&lt;BR /&gt;Call Trace:&lt;BR /&gt;[c00000007c3b35a0] [c000000000a5dfcc] .dump_stack+0xac/0xf0 (unreliable)&lt;BR /&gt;[c00000007c3b3630] [c00000000069523c] .ubi_io_read+0x208/0x448&lt;BR /&gt;[c00000007c3b3710] [c000000000692250] .ubi_eba_read_leb+0xd8/0x5a0&lt;BR /&gt;[c00000007c3b37f0] [c000000000690b8c] .ubi_leb_read+0xcc/0x168&lt;BR /&gt;[c00000007c3b38a0] [c0000000003ffaf8] .ubifs_leb_read+0x44/0xbc&lt;BR /&gt;[c00000007c3b3940] [c000000000401d54] .ubifs_read_node+0xac/0x310&lt;BR /&gt;[c00000007c3b39f0] [c000000000426874] .ubifs_tnc_read_node+0x5c/0x138&lt;BR /&gt;[c00000007c3b3a80] [c000000000404350] .tnc_read_hashed_node+0xd8/0x2a4&lt;BR /&gt;[c00000007c3b3b10] [c0000000004084ac] .ubifs_tnc_next_ent+0x1f0/0x29c&lt;BR /&gt;[c00000007c3b3bd0] [c0000000003f7210] .ubifs_readdir+0x498/0x52c&lt;BR /&gt;[c00000007c3b3cc0] [c00000000022bce0] .iterate_dir+0x90/0x23c&lt;BR /&gt;[c00000007c3b3d70] [c00000000022c94c] .SyS_getdents64+0x8c/0x160&lt;BR /&gt;[c00000007c3b3e30] [c0000000000006b0] system_call+0x60/0x6c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do a reboot of the system, it will never boot back on the NAND, the kernel fails to mount the ubifs of the flash and thus panic on the mount of VFS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done several flashing of the UBI image and I have observed that the ECC error is often raised on PEB 412.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know where to look to investigate this issue, any hint would be welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Here some more information about what I have observe and the complete kernel log is attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When erasing the flash u-boot reports 4 bad blocks.&lt;BR /&gt;Skipping bad block at 0x3ff00000 &lt;BR /&gt;Skipping bad block at 0x3ff40000 &lt;BR /&gt;Skipping bad block at 0x3ff80000 &lt;BR /&gt;Skipping bad block at 0x3ffc0000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Startup logs about attaching and mounting nand flash.&lt;BR /&gt;ubi0: attaching mtd1&lt;BR /&gt;ubi0: scanning is finished&lt;BR /&gt;ubi0: volume 0 ("agc-rootfs") re-sized from 2115 to 4012 LEBs&lt;BR /&gt;ubi0: attached mtd1 (name "fff800000.flash", size 1024 MiB)&lt;BR /&gt;ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes&lt;BR /&gt;ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096&lt;BR /&gt;ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192&lt;BR /&gt;ubi0: good PEBs: 4092, bad PEBs: 4, corrupted PEBs: 0&lt;BR /&gt;ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128&lt;BR /&gt;ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1581963432&lt;BR /&gt;ubi0: available PEBs: 0, total reserved PEBs: 4092, PEBs reserved for bad PEB handling: 76&lt;BR /&gt;ubi0: background thread "ubi_bgt0d" started, PID 1692&lt;BR /&gt;rtc-ds1307 0-0068: setting system clock to 2020-04-16 05:35:18 UTC (1587015318)&lt;BR /&gt;ALSA device list:&lt;BR /&gt; No soundcards found.&lt;BR /&gt;Waiting 5 sec before mounting root device...&lt;BR /&gt;UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1695&lt;BR /&gt;UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "agc-rootfs"&lt;BR /&gt;UBIFS (ubi0:0): LEB size: 253952 bytes (248 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes&lt;BR /&gt;UBIFS (ubi0:0): FS size: 1016315904 bytes (969 MiB, 4002 LEBs), journal size 9404416 bytes (8 MiB, 38 LEBs)&lt;BR /&gt;UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)&lt;BR /&gt;UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 6873C4DA-A87B-44A5-80B8-5C95564B437B, small LPT mode&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2020 06:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/T1024RDB-NAND-UIB-ECC-error/m-p/1039573#M3572</guid>
      <dc:creator>rdk</dc:creator>
      <dc:date>2020-04-16T06:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: T1024RDB NAND UIB ECC error</title>
      <link>https://community.nxp.com/t5/T-Series/T1024RDB-NAND-UIB-ECC-error/m-p/1039574#M3573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 10.0pt;"&gt; Please refer to Linux Kernel configuration.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Device Drivers ---&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;*&amp;gt; Memory Technology Device (MTD) support&amp;nbsp; ---&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt; &amp;gt; Parallel port support&amp;nbsp; ---&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;*&amp;gt; Enable UBI - Unsorted block images&amp;nbsp; ---&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;*&amp;gt; NAND Device Support&amp;nbsp; ---&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;File systems&amp;nbsp; ---&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*] Miscellaneous filesystems&amp;nbsp; ---&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*] Network File Systems&amp;nbsp; ---&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;*&amp;gt; UBIFS file system support&lt;BR /&gt; &lt;BR /&gt; 2. Please erase the&amp;nbsp; MTD device.&lt;BR /&gt; #&amp;nbsp;flash_eraseall /dev/mtdNum&lt;BR /&gt; #&amp;nbsp;ubiformat /dev/mtdNum -y&lt;BR /&gt; &lt;BR /&gt; 3. Capture the parameter of ubifs and then create the rootfs.ubi.&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# ubiattach /dev/ubi_ctrl -m 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: attaching mtd4 to ubi0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: scanning is finished&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: attached mtd4 (name "NAND Compressed RFS Image", size 500 MiB) to ubi0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: VID header offset: 2048 (aligned 2048), data offset: 4096&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: good PEBs: 3996, bad PEBs: 4, corrupted PEBs: 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: user volume: 0, internal volumes: 1, max. volumes count: 128&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 590956223&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: available PEBs: 3916, total reserved PEBs: 80, PEBs reserved for bad PEB handling: 76&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI: background thread "ubi_bgt0d" started, PID 1235&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;UBI device number 0, total 3996 LEBs (507396096 bytes, 483.9 MiB), available 3916 LEBs (497238016 bytes, 474.2 MiB), LEB size 126976 bytes (124.0 KiB)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;gt;mkfs.ubifs -q -r rootfs/ -m 2048 -e 126976 -c 4000 -o ubifs.img&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;gt;ubinize -o ubi.img -m 2048 -p 128KiB -s 2048 ubinize.cfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Where the ubinize.cfg, here is the e.g:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;###################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;[ubifs]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;mode=ubi&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;image=ubifs.img&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;vol_id=0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;vol_size=200MiB&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;vol_type=dynamic&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;vol_name=rootfs&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;####################&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;For the value of the parameters listed above can be got the info:&lt;BR /&gt; -m smallest flash I/O unit&lt;BR /&gt; -e logical eraseblock size( &amp;nbsp;&amp;nbsp;May be "logical erase block size + 1k (or 2k) = physical eraseblock size ")&lt;BR /&gt; -c available LEBs&lt;BR /&gt; -p physical eraseblock size&lt;BR /&gt; -s -sub-page-size=&amp;lt;bytes&amp;gt;&amp;nbsp; minimum input/output unit used for UBI headers,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; e.g. sub-page size in case of NAND flash&amp;nbsp;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (equivalent to the minimum input/output&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; unit size by default)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;4. Detach the ubi device, then format the rootfs into the MTD block and re-attach the UBI&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# ubidetach /dev/ubi_ctrl -m 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# ubiformat /dev/mtd4 -f ./ubi.img&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# ubiattach /dev/ubi_ctrl -m 4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# mount -t ubifs ubi0_0 /mnt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;# ls /mnt/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;=&amp;gt;setenv bootargs ubi.mtd=&amp;lt;MTD_num&amp;gt;&amp;nbsp; root=ubi0_0 rw rootfstype=ubifs&amp;nbsp; console=ttyS0,115200&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2020 04:19:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/T1024RDB-NAND-UIB-ECC-error/m-p/1039574#M3573</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2020-04-17T04:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: T1024RDB NAND UIB ECC error</title>
      <link>https://community.nxp.com/t5/T-Series/T1024RDB-NAND-UIB-ECC-error/m-p/1039575#M3574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yiping,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My kernel config&amp;nbsp;is ok regarding you comment and the parameters passed to mkfs.ubifs are also ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My configuration for ubinize had no "vol_size" entry, is this entry mandatory ?&lt;BR /&gt;Also I had the entry "vol_flags=autoresize", does this entry could lead to some instabilities ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difference between your procedure and mine is that you are flashing the image with ubiformat while &lt;BR /&gt;I'm doing it with u-boot (nand write command). I don't know if ubiformat is doing more (or less) things then &lt;BR /&gt;directly writing the ubi image to the flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After running your procedure, the systems seems to work and being stable :-)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Renaud&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2020 11:48:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/T-Series/T1024RDB-NAND-UIB-ECC-error/m-p/1039575#M3574</guid>
      <dc:creator>rdk</dc:creator>
      <dc:date>2020-04-19T11:48:03Z</dc:date>
    </item>
  </channel>
</rss>

