From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qt1-x82e.google.com ([2607:f8b0:4864:20::82e]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBhrG-0003Zr-If for barebox@lists.infradead.org; Wed, 03 Apr 2019 15:31:24 +0000 Received: by mail-qt1-x82e.google.com with SMTP id k2so20087381qtm.1 for ; Wed, 03 Apr 2019 08:31:21 -0700 (PDT) MIME-Version: 1.0 From: Mihaita Ivascu Date: Wed, 3 Apr 2019 17:31:09 +0200 Message-ID: Content-Type: multipart/mixed; boundary="00000000000005626c0585a1f2d0" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: ECC nand 74 code error in barebox 2018.04.10 To: barebox@lists.infradead.org --00000000000005626c0585a1f2d0 Content-Type: text/plain; charset="UTF-8" Hello, I have the following situation: I use imx6ul platforms. kernel 4.9.11 from NXP barebox 2018.04.10 I create and update an FIT image(*.itb) using ubiformat/ubiattach/ubimkvol/ubiupdatevol commands I also do this operation from Linux once the kernel was booted. Everything worked for a while but at some point the FITIMAGE size increased over 50 MB and I adapted the nand table in device tree sources. Now the image update from barebox is still working, I update, the kernel loads and then at the next reboot the target boots correctly. But if do the the FIt image update from linux, the update is finished without warnings but at the next reboot, the barebox will complained as listed in the attachment and the target won't boot from nand anymore. Then i have to do the update again but only from barebox. nand partition table is the same in kernel and barebox dts. But for images larger than 50 MB somehow if I update from linux, the barebox will complain about ECC code 74. I have enabled the other ECC options(software with/without BCH, hardware) both in barebox and linux but no change. I don't know if/how should I play with the PEB settings. Does anybody know how could I get around this issue or how to continue with my investigation? Thanks in advance, Mihaita Ivascu --00000000000005626c0585a1f2d0 Content-Type: text/plain; charset="US-ASCII"; name="NAND_ECC.txt" Content-Disposition: attachment; filename="NAND_ECC.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_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ICAgICAw DQogICAgICAgIHVwZF9tYXJrZXIgICAgICAwDQogICAgICAgIG5hbWVfbGVuICAgICAgICAwDQog ICAgICAgIG5hbWUgICAgICAgICAgICBOVUxMDQp1YmkwIGVycm9yOiB2dGJsX2NoZWNrOiBiYWQg Q1JDIGF0IHJlY29yZCAyOiAweGYxMTZjMzZiLCBub3QgMHgwMDAwMDANClZvbHVtZSB0YWJsZSBy ZWNvcmQgMiBkdW1wOg0KICAgICAgICByZXNlcnZlZF9wZWJzICAgMA0KICAgICAgICBhbGlnbm1l bnQgICAgICAgMA0KICAgICAgICBkYXRhX3BhZCAgICAgICAgMA0KICAgICAgICB2b2xfdHlwZSAg ICAgICAgMA0KICAgICAgICB1cGRfbWFya2VyICAgICAgMA0KICAgICAgICBuYW1lX2xlbiAgICAg ICAgMA0KICAgICAgICBuYW1lICAgICAgICAgICAgTlVMTA0KdWJpMCBlcnJvcjogcHJvY2Vzc19s dm9sOiBib3RoIHZvbHVtZSB0YWJsZXMgYXJlIGNvcnJ1cHRlZA0KdWJpMCBlcnJvcjogdWJpX2F0 dGFjaF9tdGRfZGV2OiBmYWlsZWQgdG8gYXR0YWNoIG10ZDAsIGVycm9yIC0yMg0K --00000000000005626c0585a1f2d0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox --00000000000005626c0585a1f2d0--