title: ubifs eroor ubi0 warning: ubi_io_read: error -74 (ECC error) on imx28
body: <p>there is a problem on the arm imx28 system, i have linux kernel 5.10.50 and i have u-boot with the following boot.scr</p>
  <pre><code>setenv mtdparts &quot;mtdparts=&quot;gpmi-nand:3m(bootloader)ro,512k(environment),512k(redundant-environment),8m(kernel),512k(fdt),8m(ramdisk),120m(filesystem),-(data)&quot;&quot;;
  setenv nandargs &quot;setenv bootargs console=${console_mainline},${baudrate} rootfstype=ubifs ubi.mtd=6 root=ubi0_0 ${mtdparts}&quot;;
  setenv mmcroot &quot;/dev/mmcblk0p3&quot;;
  setenv nandboot &quot;mtdparts default; run nandargs; nand read ${loadaddr} kernel 0x00600000; if test ${boot_fdt} = yes; then nand read ${fdt_addr} fdt 0x00080000; bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = no; then bootz; else echo \&quot;ERROR: Set boot_fdt to yes or no.\&quot;; fi; fi&quot;;
  setenv nandinstall &quot;nand device 0; nand erase.part environment; nand erase.part redundant-environment; run update_nand_firmware_full; run update_nand_fdt; run update_nand_kernel; run update_nand_filesystem;
  setenv -f bootcmd run nandboot; saveenv&quot;;
  run nandinstall; run nandboot
  </code></pre>
  <p>when the kernel boots up I see the following lines:</p>
  <pre><code>8 cmdlinepart partitions found on MTD device gpmi-nand
  Creating 8 MTD partitions on &quot;gpmi-nand&quot;:
  0x000000000000-0x000000300000 : &quot;bootloader&quot;
  0x000000300000-0x000000380000 : &quot;environment&quot;
   0x000000380000-0x000000400000 : &quot;redundant-environment&quot;
  0x000000400000-0x000000c00000 : &quot;kernel&quot;
  0x000000c00000-0x000000c80000 : &quot;fdt&quot;
  0x000000c80000-0x000001480000 : &quot;ramdisk&quot;
  0x000001480000-0x000008c80000 : &quot;filesystem&quot;
  0x000008c80000-0x000010000000 : &quot;data&quot;
  </code></pre>
  <p>that is, the kernel interprets boot parameters correctly</p>
  <p>but a little later I see the following lines repeating endlessly:</p>
  <pre><code>ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry
  </code></pre>
  <p>and so on 4 times and further</p>
  <pre><code>CPU: 0 PID: 1 Comm: swapper Not tainted 5.10.50
  Hardware name: Freescale MXS (Device Tree)
  [&lt;c0010084&gt;] (unwind_backtrace) from [&lt;c000dea4&gt;] (show_stack+0x10/0x14)
   [&lt;c000dea4&gt;] (show_stack) from [&lt;c03ce4fc&gt;] (ubi_io_read+0x110/0x2f0)
  [&lt;c03ce4fc&gt;] (ubi_io_read) from [&lt;c03ce900&gt;] (ubi_io_read_ec_hdr+0x44/0x244)
  </code></pre>
  <p>etc.
  I observe the same situation on the linux kernel 4.14.67. I conclude that the error is not kernel related but u-boot related.</p>
  <p>Please tell me in which direction I need to look for the causes of the error, if there is not enough information, then write what to add. Thank you.</p>