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=-7.2 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 82DF5C4338F for ; Wed, 18 Aug 2021 13:53:20 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AF3C260EFE for ; Wed, 18 Aug 2021 13:53:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org AF3C260EFE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6F64182DB0; Wed, 18 Aug 2021 15:53:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="VmZZX12i"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4727982DB0; Wed, 18 Aug 2021 15:53:15 +0200 (CEST) Received: from mail-qt1-x82a.google.com (mail-qt1-x82a.google.com [IPv6:2607:f8b0:4864:20::82a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6A42082DB0 for ; Wed, 18 Aug 2021 15:53:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82a.google.com with SMTP id d5so1583251qtd.3 for ; Wed, 18 Aug 2021 06:53:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=BXrpHVhL2n+Znz9rv6PutLa7XlFFvupbeu2O7S4FvUw=; b=VmZZX12iEVTkyDgEPQGXMDqPvPnQglyfzkc+e/CA2YeOpPx1CXYXSWaqunyWjxuZT3 zLymbYXQo43Y7xX4/cIvryHstsTxmnoXNsnIP3SU0Sdjl2xfYLGQJGWZVPJuxeGiGRuh V2goiFSbah5YtK7zlMCGtwrwMX5xGXFgC9GCw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=BXrpHVhL2n+Znz9rv6PutLa7XlFFvupbeu2O7S4FvUw=; b=OhLbW3OaZClA6dfklSJQhW+VXX8qxr5H+hyCl4JMKT4cfZB54zn+EKk2NdoWm/AqKd hGOwmlxgIbjxZyiqii2Yfh1lavNbiDLUG6vEv/IhesPk/wQQB4C/Y9vu+cgoux6uHG/2 1WbGYMr+xWdOnTav0/d+M5Man7WFIfJ7NklFBcvH4d8ZJ47Sgfo4b/cKDbhCaOutAYeh uyMsV9P+FFeynuxGtOpiDGk+H7THRzWZEOjI/IKSBebj+8Owl069+hDupegfB4rNTKvL 5vbuke9DhPgrFKALDwYRT5q6mJdYwxiujbKYwxYZje8ykOXkCppX3aA8J6wzclF/w7tO VH2A== X-Gm-Message-State: AOAM530itrECy0fsLZ7qIYVhxxZ1VxJPy7G82n5H/HSeyWa9gpK7hJ6w jESF5Ta1WpTKon2BZxrNZCZJlA== X-Google-Smtp-Source: ABdhPJxSp1cK/RHIji57s+Amtzq81dp2h7UcYNQjIXJl2W0dKLYh7ioPKb+xzsOZkv7cG2JkjsG8iQ== X-Received: by 2002:ac8:e02:: with SMTP id a2mr7925060qti.318.1629294789193; Wed, 18 Aug 2021 06:53:09 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-f93a-0b29-d1e6-92fc.res6.spectrum.com. [2603:6081:7b01:cbda:f93a:b29:d1e6:92fc]) by smtp.gmail.com with ESMTPSA id l4sm3570374qkd.77.2021.08.18.06.53.08 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 18 Aug 2021 06:53:08 -0700 (PDT) Date: Wed, 18 Aug 2021 09:53:06 -0400 From: Tom Rini To: ChrisO Cc: Lukasz Majewski , u-boot@lists.denx.de Subject: Re: u-boot & ZFS Message-ID: <20210818135306.GS858@bill-the-cat> References: <20210817160310.GA19707@server> <20210818003514.GO858@bill-the-cat> <20210818094155.GA22377@server> <20210818122611.756d7634@ktm> <20210818132558.GA22786@server> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Meepf39YTKgN3yQx" Content-Disposition: inline In-Reply-To: <20210818132558.GA22786@server> X-Clacks-Overhead: GNU Terry Pratchett User-Agent: Mutt/1.9.4 (2018-02-28) X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean --Meepf39YTKgN3yQx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 18, 2021 at 03:25:58PM +0200, ChrisO wrote: > On Wed, Aug 18, 2021 at 12:26:11PM +0200, Lukasz Majewski wrote: > > Hi ChrisO, > >=20 > > > On Tue, Aug 17, 2021 at 08:35:14PM -0400, Tom Rini wrote: > > > > On Tue, Aug 17, 2021 at 06:03:10PM +0200, ChrisO wrote: > > > > =20 > > > > > Hi > > > > >=20 > > > > > I searched for u-boot ZFS references and all I found was several > > > > > years old, but I suppose u-boot can cope with ZFS. So, my > > > > > question is: is it possible to boot Linux from ZFS or at least > > > > > boot from let's say SD-card with ext4 FS and mount a ZFS volume > > > > > as root filesystem? I had a look at Armbian, installed all > > > > > needed, user-space and kernel modules. After booting from SD card > > > > > I can use ZFS on attached SATA SSD w/o any problem. I also see > > > > > ZFS libs and kernel modules in initrd, so it looks like the > > > > > necessary things are there. Don't know where to start. I would be > > > > > very thankful for any help. =20 > > > >=20 > > > > The general easy answer is to have /boot that is separate from the > > > > rootfs and using a filesystem more commonly supported. > > > >=20 > > > > --=20 > > > > Tom =20 > > >=20 > > > Sounds like: go away kid, play with your old toys ;-) > > > I was doing it the traditional way for long time, now wanted to try > > > something new. Isn't it how we progress? I came to this list hoping > > > to get an answer to my question. I know, most of you on this list > > > have more important things to do. But giving me some advice could > > > possibly result in me giving something back. > > >=20 > >=20 > > Similar question I saw on OpenEmbedded/Yocto ML recenly. The answer > > there was that "ZFS or ZOL is _not_ [*] commonly used on embedded > > systems, so no support was needed"=20 > >=20 > > If find this topic interesting, then the community will try to help > > when you provide any patches for review. > >=20 > > However, considering the above, it may be hard for any _exact_ > > guidelines. > >=20 > >=20 > > Note: > > [*] - Personally, I didn't saw any usage of ZFS on embedded systems. > >=20 > > > Thanks, > > > Chris > >=20 > >=20 > >=20 > >=20 > > Best regards, > >=20 > > Lukasz Majewski > >=20 > > -- > >=20 > > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > > Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de >=20 > Hallo Lukasz >=20 > My system in question is not an embeded one. I just stated to play with a= n Odroid-HC4 and Armbian. > It has two SATA connectors, boots from a SD card. > All computer I use which have more than one disk connected are set-up wit= h software RAID and LVM on top of it. > ZFS has both build-in it's why I asked. > Currently I have on this HC4 two partitions on each disk, the smaller one= s are in RAID1 and host root FS, the bigger ones are in a mirrored Zpool. I= t works OK, it would be nicer to have just one filesystem, though. >=20 > Still not sure, it can or cannot be done? The answer is that yes, today we have zfs support in U-Boot. And it would be great if someone wanted to actively test and maintain it. That I had to double check just now that the patches you mentioned had been merged should also speak to the potential state of the code. --=20 Tom --Meepf39YTKgN3yQx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmEdEL8ACgkQFHw5/5Y0 tyxrngwAoK8mKtcemiK5v1ty/4InOh7OJi7/VbpQ7jX7ZJSeNRi15Chu67fGBJYN Lss6vGpJF5sSUsX4qMzrjDyTTCElTOaFJ5BRJgT4Z1sJMGJZqEngiJ2+4pGZbwOO mJQDtCtJePO+wtUNP6oM4c9d6PmoltveU8LI5iTIJTKWE7TWAP2hvFdn/6oHoySV kukmjqeV3cTZXQDE2ECe4P/YeH5/mfS8ENGdhu3QuWkL9psgNohw8vsS8sm4DZOo zrbq3YXbRsiprooppJu4IEOR+urQEtyLE+UVmuwiVuJOqkyL0g/+ED2obzu9f9mr iSRVMO1vapyEhoWjTkopZKOJHTBwU1DUSYI7Q+r9YAHEA3W1JLIOCf2ruRCJPDCu VrsET6UCtUT2Af8UR50syN8iXNgjtaS/nchOOmZaUlbN0uPIGp2RytBBnzq2EQx9 Yt8KX5ym/AKtLslvhID5A6/UzJwHvj2sh2zO3PWArEGAGU0mRuwsyYP6TRKQBbFk g/nYjIYy =FZjg -----END PGP SIGNATURE----- --Meepf39YTKgN3yQx--