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=-0.5 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 C266AC433DF for ; Thu, 14 May 2020 11:37:38 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 829F42065F for ; Thu, 14 May 2020 11:37:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="dUOq4IIm"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b3EHUDXW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 829F42065F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=O9RCsDqaRlTinxjdkfZPDY8JGk1N1bXyucjusutNJD0=; b=dUO q4IImKiteqMXL5Q7CEy8zAO0GNFfAA03k+JT88UAfmc41m4PC8B/J+qJN9zsHDhrWIs9x26wrHuX4 l5RjhiXjzqv671K3EBf/a3M0u8I+bzppaPFdLpu6t40ct3pO4Y87IaVW67+XVIetq2sVBZnUldS/J bsEoNF3WuIx9er06eYEEwsXTCPHMvx/YbNmvINLoemNfOtTNrrYb9a1fgvmAWN4JcY1dRhT9xwRJ9 gf5Tu9ynUYua0W890Sw2XjNw/M05axHBEz+QhV3OcvL70+B1Xb51OhiPoHjDtxdj2NEZ/84NWf9kF pCC4RFxpHrOPJZnLR6ktdeXIXRWWueg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZCB5-0004Cr-Ag; Thu, 14 May 2020 11:37:27 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jZCB2-0004Bo-15 for linux-mtd@lists.infradead.org; Thu, 14 May 2020 11:37:25 +0000 Received: by mail-ej1-x630.google.com with SMTP id o10so2475617ejn.10 for ; Thu, 14 May 2020 04:37:22 -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=YKsV+lpXBLw7UdohT6iRD4vENKpR8u+Fq3734/Ni1hE=; b=b3EHUDXWHZ8kGGUE6r64j4QPHLdDW/56x0LwSk4YHe0ciTGxUr/g1OvjLEJrAY67XU 0Iv82ADPvHRLLcuVSRCZGqxneRYh3UIFVZqwKSuxySLUbd6NfbQ4y6rGAW++ZcpaMLdu //qTfWwaPtp67ZASY8bHsNfFh3vX8zo9VhTpszOuxA7Sn0iVHhHUWVg9f46P2Nzx+9ET CF5y4HBy8EjkqJsiVfUQdvJhJLcN9RBxHz0FpMMCs2oQZ7lR4pIOEgzAmMOyz1NR3wGo sr8BBRI/qvVtb5iRmJL7tYCapt/hijQGsCgZpcqFsnYuU7X+9ScTNGSm2HkeW7F6P7KO KopQ== 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=YKsV+lpXBLw7UdohT6iRD4vENKpR8u+Fq3734/Ni1hE=; b=CNib8rzeRkdsZMvvWFBd5oYWY2KjiDuw2sBS8ERDfb7XzrpTSKqoVeBX3R/5c2xot3 c+SrujeqdgTQUGSF+yNdI0f57W9pqAepIpasMHt2M2oXioAPsVmy8v+ltC9VCs0uk4SM UafoGrK+pNgZ0fG+8C2sjr2De8jFTa7hq+2hwPp99UrlMs/XzJ1vQMtsmM5FW2B4J4mV R0pEqKn/tX0FmxDLIeqB5nxSRn5k83luPzn2bOXveAB6wz4ikOZZlnQ4JN0lN+RlaujI wQWVwqKG7j8gGSM4XQv3SsMOoY4GykUpxo/7ReXaYWe4h6JlYs7CnbmyqEZbNlHin9pB YrVw== X-Gm-Message-State: AOAM532Ft1dseOEhHwXtJU7cBojsYSt04Ng8mdyAHkAt+ZijTsTPaGEb zu4NUB8YasKQC8ItQLM7HB9OS8lcOLaa+PpAenKZigWH X-Google-Smtp-Source: ABdhPJxbQWKvFvFy8XnUoaUJXXbpbY4pqw46j19NPVuT64kS6miyS+o7s//J5mdCdAD6OCZNgSTuqPEWNo+TdFBpDdA= X-Received: by 2002:a17:907:364:: with SMTP id rs4mr3291471ejb.311.1589456241453; Thu, 14 May 2020 04:37:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:ab4:a881:0:0:0:0:0 with HTTP; Thu, 14 May 2020 04:37:20 -0700 (PDT) From: Jupiter Date: Thu, 14 May 2020 21:37:20 +1000 Message-ID: Subject: Any UBIFS volume image installation command with selective ECC (DTB) in Linux? To: linux-mtd X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200514_043724_070308_A02DF25A X-CRM114-Status: UNSURE ( 6.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org Hi, I used ubinize to build a UBIFS image ubi.img, the image has three volumes, dtb-volume (imx6ulz.dtb), kernel-volume and rootfs-volume. To install u-boot and root UBIFS image to iMX6ULL NAND, I used a zImage-initramfs to install the u-boot to u-boot mtd partition first, then to install ubi.img in UBIFS partition by running following commands: flash_erase /dev/mtd2 0 0 ubiformat /dev/mtd2 -f /tmp/ubi.img It was all fine, but after the installation, it cannot run ubi part in u-boot: ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 3 83:0, read 64 bytes ubi0 error: ubi_io_read: error -74 (ECC error) while reading 2048 bytes from PEB 383:2048, read 2048 bytes The problem was that u-boot installation requires a higher bit ECC, so that zImage-initramfs was started with imx6ulz-kobs.dtb, if I change to start zImage-initramfs with a low bit ECC imx6ulz.dtb, that ECC error gone away, but then I could not flash u-boot to NAND. Are there any way or mtd / ubi command to flash ubi.img to NAND based on a specific ECC / dtb? Appreciate any your kind advice. Thank you. Kind regards, - jupiter -- "A man can fail many times, but he isn't a failure until he begins to blame somebody else." -- John Burroughs ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/