From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 203ECC4338F for ; Tue, 27 Jul 2021 12:10:38 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4054C61A38 for ; Tue, 27 Jul 2021 12:10:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4054C61A38 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DAFED8345D; Tue, 27 Jul 2021 14:10:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Tu+JBg+H"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F18CD8333B; Tue, 27 Jul 2021 09:45:32 +0200 (CEST) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6FE348333B for ; Tue, 27 Jul 2021 09:45:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ivriabtsov@gmail.com Received: by mail-lj1-x229.google.com with SMTP id b21so14710355ljo.13 for ; Tue, 27 Jul 2021 00:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=R1tFlydxNgNShwwBDNrAcRyRfxt8T+uIZ5giC4FDmVA=; b=Tu+JBg+Hr4BEMTgHDmy8FlFm7yHWF+E2sJCTv8Y2WocnLon2tDKUCtIZBoPHCWoFjY SDInnIaDizmYHH/2TE306w7GRFHRdnx9fM/vSklZ5uyumgxFhDBHj0NordliNBBJDfio UhwLMWbMPa6V/5fz/HAsmew3s8YfAbdfqfhZ0A/+huB5Vk+MFN/Wdrd38bGnNrY+fXIr D+Mnk4AiLV7dHU+phbFTjha5Rsd8MVFD+mq0TcXJj+sjVjhcvW7ld55DnCV1vlL9AQ1U FIrUCbl12AM4+hYftQOlLWhME9FdV8qHO1bhCIhAMPVIz9y0cApdYZ02TvnIE1g/Tckz Kl/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=R1tFlydxNgNShwwBDNrAcRyRfxt8T+uIZ5giC4FDmVA=; b=gMl8Fq/ACzbeMD38zI48VBzxNCGMWqRkTsLtdiw8NBV486EX9wQZo+1K61wjMKDohg 7oBFgysqOJN0gOMgekE5PS/YRSZAy3jn/KHuMbjwiu8IIq+VWUShlD+0NIASi20Bi9xK EzlcjGcDU0VZ6sxIi1DfEg8FGuYd1m4Dtali9KrNthus9+qQ0v6V4mcSMBftG/9dIVUT BfY2XajaYjsgQfhDqCVC1Tk8k0xgo587MNmv7PJNzvFRf8+8eBRrYXjLJjENClM6l3aC TZ+j8DuRtGQIdkgIYA9zXOc9NNHo6lNQxdOeGTh5hWKjwXQ791nncbxyZMfwmcoQpX8W Jciw== X-Gm-Message-State: AOAM533QKewkvMiuq4NxPLY77T8zG0IC9tFtAYfIcT5fvv9/LMhbafdV leOnZRWvWOse9wM3J8q9GzTG/2tNGKQ4+25y2+M9F3J5TgM6OE0H X-Google-Smtp-Source: ABdhPJwUdie3+82ZFUoYeCe0gSX4hgmAXCc7FnXw98vPyFqoh2y8vxEc4vwdWiNQBdy1yfWUECX2m0EObauafQ1auZM= X-Received: by 2002:a2e:82cf:: with SMTP id n15mr14738292ljh.294.1627371928616; Tue, 27 Jul 2021 00:45:28 -0700 (PDT) MIME-Version: 1.0 From: Ivan Riabtsov Date: Tue, 27 Jul 2021 10:45:18 +0300 Message-ID: Subject: ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read only 64 bytes, retry To: u-boot@lists.denx.de Content-Type: text/plain; charset="UTF-8" X-Mailman-Approved-At: Tue, 27 Jul 2021 14:10:20 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Hi everyone. I have a boot problem on the imx28 board, the problem repeats with kernels 4.14.67 and 5.10.50, so I decided to ask on the u-boot mailing list as I think the problem is not kernel related, but related to u-boot variables. i have the following u-boot variables in boot.scr: setenv mtdparts "mtdparts="gpmi-nand:3m(bootloader)ro,512k(environment),512k(redundant-environment),8m(kernel),512k(fdt),8m(ramdisk),120m(filesystem),-(data)""; setenv nandargs "setenv bootargs console=${console_mainline},${baudrate} rootfstype=ubifs ubi.mtd=6 root=ubi0_0 ${mtdparts}"; setenv mmcroot "/dev/mmcblk0p3"; setenv nandboot "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 \"ERROR: Set boot_fdt to yes or no.\"; fi; fi"; setenv nandinstall "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"; run nandinstall; run nandboot i have the following message from kernel: [ 0.844421] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda [ 0.850905] nand: Micron MT29F2G08ABAGAWP [ 0.855105] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 128 [ 0.864171] Scanning device for bad blocks [ 0.869121] Bad eraseblock 1 at 0x000000020000 [ 0.874013] Bad eraseblock 2 at 0x000000040000 [ 0.878902] Bad eraseblock 3 at 0x000000060000 [ 1.467707] 8 cmdlinepart partitions found on MTD device gpmi-nand [ 1.474039] Creating 8 MTD partitions on "gpmi-nand": [ 1.479226] 0x000000000000-0x000000300000 : "bootloader" [ 1.487702] 0x000000300000-0x000000380000 : "environment" [ 1.496007] 0x000000380000-0x000000400000 : "redundant-environment" [ 1.505268] 0x000000400000-0x000000c00000 : "kernel" [ 1.513550] 0x000000c00000-0x000000c80000 : "fdt" [ 1.521245] 0x000000c80000-0x000001480000 : "ramdisk" [ 1.529673] 0x000001480000-0x000008c80000 : "filesystem" [ 1.544252] 0x000008c80000-0x000010000000 : "data" [ 1.558113] gpmi-nand 8000c000.gpmi-nand: driver registered. On the basis of which, I conclude that the parameters are passed to the kernel correctly. Bad blocks are not a problem, they are declared by the manufacturer. and i have the following error from kernel: [ 2.059793] ubi0: attaching mtd6 [ 2.102255] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 0:0, read 64 bytes [ 2.112325] CPU: 0 PID: 1 Comm: swapper Not tainted 5.10.50 #1 [ 2.118272] Hardware name: Freescale MXS (Device Tree) [ 2.123582] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 2.131485] [] (show_stack) from [] (ubi_io_read+0x110/0x2f0) [ 2.139122] [] (ubi_io_read) from [] (ubi_io_read_ec_hdr+0x44/0x244) Please, tell me in which direction to look for the causes of the error, thank you very much.