Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 75C56C54EE9 for ; Mon, 19 Sep 2022 11:23:46 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 12FEE84C3B; Mon, 19 Sep 2022 13:23:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org 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=kernel.org header.i=@kernel.org header.b="W7I9s6IJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2D3B484001; Mon, 19 Sep 2022 13:23:26 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 71FDD84C3A for ; Mon, 19 Sep 2022 13:23:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0EADE6115B; Mon, 19 Sep 2022 11:23:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 50092C433C1; Mon, 19 Sep 2022 11:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1663586601; bh=xLZyiVdG9eWpds2++45rIkEMkCdMgm5cF2pjmsln6rM=; h=Date:From:To:Subject:References:In-Reply-To:From; b=W7I9s6IJqZRja+P5/cwsqXHcPfMIZ+4PGu3ZhdNftv/SrnsLT5f4ZUZnzMKcIzafq iqJkbQqSdUnXD6YenATPfLuwbtEBQ4JxmIvzEIQzz4p3HmxveFZAxDSARWPChnXY4M PTd4wBskg71gSc7hEVvyZNwHd6qNXOkG6hvGyfW/ezJj9ZikUzGXtDWl2gpoyPxTE/ Qq3hAhq9Gy0+B4AtNDx8m0OG1psp9RQgv7o3zGRr5qtKNVvihz80hIxfGIhEVN/Uhe 29yN4D/d0Ue4c7qYJf96A6J4FC/VDh3D7LNH1sjpIh5m4OFLqN7NyKxu80n8OPfDbU TsP4FInfSgjLg== Received: by pali.im (Postfix) id 6E1ED74C; Mon, 19 Sep 2022 13:23:18 +0200 (CEST) Date: Mon, 19 Sep 2022 13:23:18 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Alexander Dahl , u-boot@lists.denx.de Subject: Re: [PATCH 0/9] Nokia RX-51: Small cleanups and UBI boot test case Message-ID: <20220919112318.wu7xyc6snabnowas@pali> References: <20220904012906.17718-1-pali@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean On Monday 19 September 2022 13:12:41 Alexander Dahl wrote: > Hello Pali, > > Am Sun, Sep 04, 2022 at 03:28:57AM +0200 schrieb Pali Rohár: > > Do various small fixup/cleanups and extend test script to boot kernel > > image from UBI volume. This test verifies that U-Boot UBI implementation > > is working and U-Boot can read volume with bootable kernel code > > correctly. And therefore CI prevents UBI breakage. > > > > Note that U-Boot UBIFS code on ARM is currently somehow broken and > > trying to mount UBIFS from UBI volume fails :-( I have already tried to > > debug this issue but I have no idea why it is failing. Function > > check_lpt_crc in unpack_ltab is failing. Volume is for sure correct and > > valid because Linux kernel can successfully mount it. And to make it > > more suspicious, U-Boot UBIFS is working fine on big endian powerpc > > platform. So UBIFS issue is probably endian or arch specific. > > (This is UBIFS related, not UBI related.) > > I had some trouble with UBIFS volumes created by Linux not mountable > by U-Boot myself recently. Problem was Linux gained zstd compression > support for UBIFS with version 5.3 and that was made default with > kernel 5.13. U-Boot does not support zstd compression at least up to > version 2022.04 (did not try later ones), and simply refuses to mount > those volumes. The error message however was different than yours, > but maybe you get an idea what might be wrong. I would certainly > check with what features the UBIFS is created and if U-Boot supports > that. Hello! The issue is not with zstd compression, I'm sure as I'm generating it without it. Plus it is working fine with old 2.6.28 kernel, which does not have any zstd support. The issue is with parsing UBIFS LPT, it looks like that U-Boot is trying to read it from wrong position or maybe wrong LEB. My another idea is that issue could be in u-boot onenand driver used on n900 and in qemu. Maybe it is possible that 'mtd' and 'ubi' commands do not trigger this issue and hence reading it working fine, but is triggered by ubifs code and ubifs reading fails. On powerpc platform where ubifs is working fine is present freescale nand controller / driver, not samsung/onenand. > HTH & Greets > Alex > > > > > Pali Rohár (9): > > Nokia RX-51: Remove label copy_kernel_start from lowlevel_init.S > > Nokia RX-51: Do not clear unknown memory in lowlevel_init.S > > Nokia RX-51: Set default SYS_LOAD_ADDR to 0x80008000 > > Nokia RX-51: Change UBIFS volume size to 1870 LEBs in test script > > Nokia RX-51: Call bootm in test script only when image is valid > > Nokia RX-51: Fix documentation how to enable UBI support > > Nokia RX-51: Do not set useless ARCH= in test script > > Nokia RX-51: Add comment describing kernel image type into test script > > Nokia RX-51: Add booting from UBI into test script > > > > board/nokia/rx51/lowlevel_init.S | 7 +-- > > configs/nokia_rx51_defconfig | 2 +- > > doc/board/nokia/rx51.rst | 3 +- > > test/nokia_rx51_test.sh | 97 +++++++++++++++++++++++++------- > > 4 files changed, 82 insertions(+), 27 deletions(-) > > > > -- > > 2.20.1 > >