Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp604126pxh; Tue, 9 Nov 2021 16:02:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLqUaQVX3noCfIZznuMNShIlwIC3eHdXQFfKrvxjzjHJq0b+YSGC7BWBX8iiTSLmh1b7oF X-Received: by 2002:a05:6638:16d6:: with SMTP id g22mr8974318jat.19.1636502572929; Tue, 09 Nov 2021 16:02:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636502572; cv=none; d=google.com; s=arc-20160816; b=iGTmjd50F4SrOBx49DGPQsxYGrq+SgWpN0dY2Md1Ar20x84fTapqM8160msxb3TBSr kNkFIWOnkqsq4bLr72Mcyb/7PViIDavjNxZRbUO1KRaMu1+1zeb0MhYN19SG80LSrmvr wTFjrtYMNQTR+34KLumzVjdhcru8M0Aa0r/rNeRrJUqH6BENCxN7HC1ZYmxiYShYL0IN ee7K5e8XYLKmkuRj6s9swbzQOqbYS3EJwp0cGSJrGkg6bjcjs7Rw3g3mI5jXMemC/6wT QvHQHzJl4i1KrJxNd+Xa4rMYEytvJyaCbSnbgTc3aIXROvTWv6uWseY3u1/fhk7bFjpG L4Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=qNKxbY+CJKEKz5I5jfTajE0gm0ARDEZSOX6nNnQ06Ds=; b=gwiN1msf5aFzN6X0/9fS/wZ2aN3Xg6F6Mf9DdXzJsdYuc3UQM5smOckCofjqER/Rt/ 6u8wcT1/65xipoPiMNOto6DVeNTyHtmE+64MsDv5QsBgzTEF+6dVJja2HhxDNEjvftfV QJnDkyFwu0BD3nQZgb/YrJ33vi2xG+hcxXsUuveSwSNCk7AcJ9hM1W+CAixULiOtu/ha 3Oo/oVaS+83At3x/Dwf3IurbTKefFtpqS5kSX4HyItPqxcQHGpmaqc/8cAhCXBpNcsVH nV2WRjpo2D1OH6r702pDNKTZdphUrFQOU44GtPWQn7golkW4wcVyoUBi7WtpB+IPESBv EYZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=TXmn+AUr; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a15si33501573iok.86.2021.11.09.16.02.39; Tue, 09 Nov 2021 16:02:52 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=TXmn+AUr; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236230AbhKIPhv (ORCPT + 97 others); Tue, 9 Nov 2021 10:37:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231176AbhKIPhu (ORCPT ); Tue, 9 Nov 2021 10:37:50 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C34B3C061764; Tue, 9 Nov 2021 07:35:03 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id v11so75916454edc.9; Tue, 09 Nov 2021 07:35:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=qNKxbY+CJKEKz5I5jfTajE0gm0ARDEZSOX6nNnQ06Ds=; b=TXmn+AUrGkmNG6aVTCQ0ceEBQWA2M0tCUS/XInhy1eodftrDVpbDBrlqrZo3ouldi8 NJkXvXRXOaayYgUBC4m23zYND11+H90KgMe/DtN010GUmH+cm1Ca1n7elJHv1GuOq93i jhdYBhtB4KGGjpHGGM7alNugiLoMwZP0z9QLW1x3qBvAr8c+csj5oVu8tUSZqu3SSgZL w7RgWjtzV6oyKMBvdonnmhOCh4vx/Ug1DvwGx8uRM504DeU1cbpsWiKNk0iRbFQEAYoz 88cyNWDPAcDtw5ltRTqLeART8tt8Qzj25UE+9iScIm8svh+kBXJuTXw4GpPKmboPJjPk 57CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=qNKxbY+CJKEKz5I5jfTajE0gm0ARDEZSOX6nNnQ06Ds=; b=dK9V518Oew/iXxYOdSYnVYguWNPR5M22wEdSD410b3R6iGcF9vL+tULQpoQSVKV3/U drTATkWuumYJ/W4ND4v2hAZRamLQFN4nElgOC3zmigBTvKqflc2V/NxbW2sA2vfImoYL hMB3WF7sRS/fcZKtMAdengFgeGkjXM5Fjei9RuvgghVT+x3yboGtr4aERqltLofcAZxJ TfphXh7cDXpiHW1YQ8lfh4gS8Kcdt5LjT6k0X4LycxvkXvsfpmQKtnLP0zY3dhe/zt/S bj10mRDBkisafuEA8xhAe+UhkQcB3EJfDccL4tgVXsjBYPiPbOBnThxwgN2XvYMzQ9Le jyLg== X-Gm-Message-State: AOAM530R0tjHVYtINa+iEdes1tJtljY4v3m3rB7dABFvy8WGkcQlGyTx Nr0mTmbHut03rWPw7MKpF0sgMSQ4J6uQpEzOT6WCHyvkgM4= X-Received: by 2002:a05:6402:3586:: with SMTP id y6mr11479655edc.332.1636472102206; Tue, 09 Nov 2021 07:35:02 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Pintu Agarwal Date: Tue, 9 Nov 2021 21:04:50 +0530 Message-ID: Subject: Re: Kernel-4.14: With ubuntu-18.04 building rootfs images and booting gives SQUASHFS error: xz decompression failed, data probably corrupt To: open list , linux-mtd , linux-fsdevel , dm-devel@redhat.com, Phillip Lougher , Mikulas Patocka , Richard Weinberger , Florian Fainelli , sumit.semwal@linaro.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Nov 2021 at 16:45, Pintu Agarwal wrote: > > Hi, > > On Mon, 8 Nov 2021 at 20:00, Pintu Agarwal wrote: > > > > Hi, > > Here are few details. > > * Linux Kernel: 4.14 > > * Processor: Qualcomm Arm32 Cortex-A7 > > * Storage: NAND 512MB > > * Platform: Simple busybox > > * Filesystem: UBIFS, Squashfs > > * Build system: Linux Ubuntu 18.04 with Yocto build system > > * Consists of nand raw partitions, squashfs ubi volumes. > > > > What we are trying to do: > > We are trying to boot dm-verity enabled rootfs on our system. > > The images for rootfs were generated on Ubuntu 18.04 machine using > > Yocto build system. > > > > Issue: > > Earlier, when we were using Ubuntu 16.04 to generate our images, the > > system was booting fine even with dm-verity enabled. > > Recently we switched to Ubuntu 18.04 build machine, and now with the > > same changes we are seeing the below squashfs error, just after the > > mount. > > Note: with 18.04 also our rootfs is mounting successfully and > > dm-verity is also working fine. > > We only get these squashfs errors flooded in the boot logs: > > {{{ > > .... > > [ 5.153479] device-mapper: init: dm-0 is ready > > [ 5.334282] VFS: Mounted root (squashfs filesystem) readonly on device 253:0. > > .... > > [ 8.954120] SQUASHFS error: xz decompression failed, data probably corrupt > > [ 8.954153] SQUASHFS error: squashfs_read_data failed to read block 0x1106 > > [ 8.970316] SQUASHFS error: Unable to read data cache entry [1106] > > [ 8.970349] SQUASHFS error: Unable to read page, block 1106, size 776c > > [ 8.980298] SQUASHFS error: Unable to read data cache entry [1106] > > [ 8.981911] SQUASHFS error: Unable to read page, block 1106, size 776c > > [ 8.988280] SQUASHFS error: Unable to read data cache entry [1106] > > .... > > }}} > > > Just one question: > Is there any history about these squashfs errors while cross-compiling > images on Ubuntu 18.04 or higher ? > One quick observation: This issue is seen only when we enable dm-verity in our bootloader and cross-building the bootloader/kernel (with Yocto 2.6 toolchain arm-oe-linux-gnueabi-) on Ubuntu 18.04. The issue is *NOT* seen (on the same device) when building the dm-verity enabled kernel on Ubuntu 16.04. Is it something to do with the cross-toolchain difference between Ubuntu 16 and 18 ? Thanks, Pintu