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.7 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 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 D171EC3E8AB for ; Sat, 5 Oct 2019 08:43:46 +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 9F36A2133F for ; Sat, 5 Oct 2019 08:43:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="IIvz8fLv"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="PENwrixX" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9F36A2133F 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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CJ6yMpKqcx/75QXfr4tqYtNN11hvBIAmHA869oKhqPk=; b=IIvz8fLvYtpRfY B3//nmFuplQWMNiY/7sYsXpMiDY6n0ZSuGwx1t5UiTkHpWvWtKZ+jlGtiYm3YCrSA2TGweK/ff7km nI/qEjH9Ut5HOoXY4UQ95OnqWJzJMj944OUB9oMNcPU9A5gfdrbdIAxQZo1oJPOUXSnqv3lHldPgg w4jtgpymHF7AQdgd2AVTukFNdZv1qnkKH34iw42c58JspTlgFmw5Ami171k3mvIKdZw6hOjGbgDJ0 gfgxaC2MPlgz+UIUdrObmVyZ8zEcGYhb0hB0tPtgwxUAJ07Grm0keXhJseqiQteJttOZQsCEAhtbe wz+G176RKgs5Uatc6o6Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iGffE-0001ZE-ID; Sat, 05 Oct 2019 08:43:44 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iGffC-0001Yf-7W for linux-mtd@lists.infradead.org; Sat, 05 Oct 2019 08:43:43 +0000 Received: by mail-wr1-x430.google.com with SMTP id j18so8916355wrq.10 for ; Sat, 05 Oct 2019 01:43:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=37UXcbQIlNncCXdyWpbuxMNPBtvj2/m5zhE2g7AzDio=; b=PENwrixXghN5Z0yaXmJqUEK7xhiaFDMz6yT9qz2r69nsT9zugs65ibWi5ke6Fc3snZ 7WRFfcY59kZWtDeHlo3h8JbJemsi3aOmY+PmPar5FcCYtNd9+ZGbCpI6jJNVj7daF1eY vDBq3v0yCR3XXHswbmdBpuXjw0cix+3A1t99l/1KedqbFxvPaVJVBRheYjcKrYDJSGSM qlATe05dbrtDtTXHcDibD6NiYNe6ON9eTyXXa4b7xyjdbeM+s6ftmUFc3XJV9pTuqfrS oJER93mD3BwdQ84K+GyTXeXHijGb9xfs0dx80DmsP277bidvqXo5hudWe2np4MOaLirA vN1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=37UXcbQIlNncCXdyWpbuxMNPBtvj2/m5zhE2g7AzDio=; b=BS5I52/V09FHNiOO3V/UQ3kr6WvM2/lH20RvH9OHKBi6jl0PVOXkOYEP4/J9vcc5cF VYsMdORQlx8sJewG6fjnwkbvUVtBUmEKcnSNVeLHnh9ANBIrZSmuAMNLQFpmsQV5G6sS G/4ROc78fSrrFyUusXKEGX8HcI1nC4hl95vgFiFYYh9B8fckXCq3qot7tuPwmydJM5Kc xBQQJ3ElRKKAGm0pUPMw0ABXhUCoY65bln5cdPdb4V1eewJKxMVzpkmW/3GQ4tyW450m 0abGTRBV4PGFlGVpObgC0iFHLiHofiGHaGMAExB33eRGxysP1C2fpXUCU2HijYTiGqCi C96w== X-Gm-Message-State: APjAAAXJ5aAbwS82BZWBrEjISfz97uHcLobKSJkc325+wbdbq2UOu7QZ wdpylZG1EJpJsqiyoyIy98LK/HdEPFtE/I3FaCc= X-Google-Smtp-Source: APXvYqyG3XTbScC1PJjqUjukuvhLZ/fbvvumwen/etAsaHTm+UkxDcS3CKvRf4aN1+BvcHoKTLIbTzrbw3EyDKGOTtk= X-Received: by 2002:a5d:45c6:: with SMTP id b6mr13640139wrs.4.1570265020116; Sat, 05 Oct 2019 01:43:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Richard Weinberger Date: Sat, 5 Oct 2019 10:43:29 +0200 Message-ID: Subject: Re: Where to define multiple volumes sizes in one MTD rootfs partition? To: JH X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191005_014342_271979_0507763B X-CRM114-Status: UNSURE ( 8.04 ) 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: , Cc: linux-mtd 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 On Sat, Oct 5, 2019 at 2:51 AM JH wrote: > Recently, one of my device is broken failed to boot up, I still don't > know what was the cause by hardware problem or software, to be > precaution in the future meltdown, I am going to separate all writing > data from ubi0 to to another ubi volume ubi1, to keep the rootfs in > ubi0 read only. How can I define the ubi0 volume size to 160 MB and > the ubi1 volume size to 30 MB? Don't setup multiple UBI instances on the same chip. The wear leveling domain should be as large as possible. If you want to have multiple UBIFS filesystems, just create more UBI volumes. -- Thanks, //richard ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/