Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3221760pxj; Mon, 31 May 2021 23:54:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI5K6MNufalBfpivwYCnRRKZhhe95NUbAE6N4HoQGKYWqktDnp6vBQmjtDX4aZb9sbo+Pi X-Received: by 2002:a6b:7d03:: with SMTP id c3mr20423436ioq.2.1622530482248; Mon, 31 May 2021 23:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622530482; cv=none; d=google.com; s=arc-20160816; b=YGTAlfYkueAR36fmgf+hZjkjrnK9CXp/opCVkMa8j/5UsfRxwvU35ePFuO4gp686W/ cspkuXS3RfwINita5rnNUPpcDxp/bz/8gW6NcUKbabOSqgNj2n/X/sNiOrZQwLnEi+5u +Jv0dHqVPzdcUkS6iUIn8b7dUdH9GIryX6VfnL72gDuao1/YxJzeERfheoWszOmSO5eg WFlBAMnzaUD7eOrSNpCxaluwcG8fBcQXLHGnyB3ijovj3wvN7pqkq2/HU9N281gWvm6E 3HLShEWaox/qUI6kX7Ez7k/zQtGjXvj+V7KTT2uab16dJKpkLxC3bkCVIdksJECZaEaG rJXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=/sX35DY5FIQTwuhezHgLBVM9yvfDuFNN3tlg7N71roM=; b=DOtHp8CzY5w/hmoPSYFuyCq2GLtOyyuG7ATJMwjZOdOTIZF8UE7D907/rZ2krz9u/W 3KkScNJUpkKD9pLhMNtgfrBHi7K5OiOdZ4VEihQQBN1rfrTtGjgUW8XzURUQc0HonXzW BTntC+pC5xYB/RcfGyljv3xF2FsdDDEyu52R82Fr5a3KA1C1SQ0rb9PLamqwZ0dRRq9B EccOWtgTYbB+8oAG17qfuCJ8RUuvjBY5GXXdly+illXj5mUxGYTzZ8eWvW+yWGPgZXO+ XJ+abI/SR8hXsDKdXfzp3yjqhAxu6i47evdhszlS7kqE85e4G+GxD6ijeybDQQhU4XEd bpPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b="YAk5/lco"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si9085957jak.4.2021.05.31.23.54.29; Mon, 31 May 2021 23:54:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@geanix.com header.s=first header.b="YAk5/lco"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=geanix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233180AbhFAGyH (ORCPT + 99 others); Tue, 1 Jun 2021 02:54:07 -0400 Received: from first.geanix.com ([116.203.34.67]:42262 "EHLO first.geanix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232917AbhFAGx5 (ORCPT ); Tue, 1 Jun 2021 02:53:57 -0400 Received: from [192.168.100.10] (unknown [185.233.254.173]) by first.geanix.com (Postfix) with ESMTPSA id A7038464038; Tue, 1 Jun 2021 06:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=geanix.com; s=first; t=1622530333; bh=iIMAOcEHY6wDQ53OPlW7P0eoOlrFgGJqpSGMuFvKKUo=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=YAk5/lco7wGrtaO2GbCJlrB9nzY0aUQv3nfMxhBCNoU9VT4YRZ3bcm7P1b4zQBJ7y EmPJ7tIOZ9FclgB6OSWsWsGBKUAdfwQSA9NmQn1fnul2vAVc3r8agOTwwLSevnZv1t kJaZ6Hjn3TqgrFh36Xxe/be3J6UZGm61AHi4nN0ioFUrNvsVZLgz/jEIjxehX3ua/J bkYUXsWHLL7L+jhfAI32oCBGW1ZhpqAF0b3Mh7ryXNZOfcdbzqi5meNqhdJ9XwyDO5 cbLsC6Yz2rIpBdQ0Uzep+3axEEs91Mt1BVK4t+cUPvotXX2HzJtAuzSFCCrYStHuDL 7oyK+l1xvqg0g== Subject: Re: [RESEND]: Kernel 4.14: UBIFS+SQUASHFS: Device fails to boot after flashing rootfs volume To: Pintu Agarwal Cc: Phillip Lougher , open list , linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org References: <1762403920.6716767.1621029029246@webmail.123-reg.co.uk> <486335206.6969995.1621485014357@webmail.123-reg.co.uk> <1339b24a-b5a5-5c73-7de0-9541455b66af@geanix.com> <4304c082-6fc5-7389-f883-d0adfc95ee86@geanix.com> From: Sean Nyekjaer Message-ID: <8b488dbf-9a2b-4c26-b377-1c150826051e@geanix.com> Date: Tue, 1 Jun 2021 08:52:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.7 required=4.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, URIBL_BLOCKED autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on 93bd6fdb21b5 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31/05/2021 04.54, Pintu Agarwal wrote: > On Tue, 25 May 2021 at 11:07, Sean Nyekjaer wrote: >> We are writing our rootfs with this command: >> ubiupdatevol /dev/ubi0_4 rootfs.squashfs >> >> Please understand the differences between the UBI and UBIFS. UBI(unsorted block image) and UBIFS(UBI File System). >> I think you want to write the squashfs to the UBI(unsorted block image). >> >> Can you try to boot with a initramfs, and then use ubiupdatevol to write the rootfs.squshfs. >> > Dear Sean, thank you so much for this suggestion. > Just a final help I need here. > > For future experiment purposes, I am trying to setup my qemu-arm > environment using ubifs/squashfs and "nandsim" module. > I already have a working setup for qemu-arm with busybox/initramfs. > Now I wanted to prepare ubifs/squashfs based busybox rootfs which I > can use for booting the mainline kernel. > Is it possible ?> Are there already some pre-built ubifs images available which I can > use for my qemu-arm ? > Or, please guide me how to do it ? > > I think it is more convenient to do all experiments with "nandsim" > instead of corrupting the actual NAND hardware. > If you have any other suggestions please let me know. > > > Thanks, > Pintu > Hi, I have not used qemu with nandsim :( I would prefer testing on the actual hardware. We have used Labgrid in the past for that. /Sean