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=-5.2 required=3.0 tests=BAYES_00, 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 21188C4338F for ; Wed, 18 Aug 2021 17:23:34 +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 D2F03610CF for ; Wed, 18 Aug 2021 17:23:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org D2F03610CF Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=osk.ch 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 813CB82D50; Wed, 18 Aug 2021 19:23:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=osk.ch Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 5F74782DA7; Wed, 18 Aug 2021 19:23:28 +0200 (CEST) Received: from vimdzmsp-nwas02.bluewin.ch (vimdzmsp-nwas02.bluewin.ch [195.186.228.50]) (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 33EE3807F3 for ; Wed, 18 Aug 2021 19:23:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=osk.ch Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=armbian@osk.ch Received: from mail.osk.ch ([85.5.40.34]) by vimdzmsp-nwas02.bluewin.ch Swisscom AG with ESMTP id GPHamDdozslQjGPHfm80zc; Wed, 18 Aug 2021 19:23:23 +0200 Received: from server.osk.ch (localhost [127.0.0.1]) by mail.osk.ch (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTP id 17IHND8H023584; Wed, 18 Aug 2021 19:23:13 +0200 Received: (from osk@localhost) by server.osk.ch (8.15.2/8.15.2/Submit) id 17IHNCl0023583; Wed, 18 Aug 2021 19:23:12 +0200 X-Authentication-Warning: server.osk.ch: osk set sender to armbian@osk.ch using -f Date: Wed, 18 Aug 2021 19:23:12 +0200 From: ChrisO To: Tom Rini Cc: U-Boot Mailing List Subject: Re: u-boot & ZFS Message-ID: <20210818172312.GB23328@server> References: <20210817160310.GA19707@server> <20210818003514.GO858@bill-the-cat> <20210818094155.GA22377@server> <20210818122611.756d7634@ktm> <20210818132558.GA22786@server> <20210818135306.GS858@bill-the-cat> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210818135306.GS858@bill-the-cat> X-message-flag: Using Microsoft software might be a security risk User-Agent: Mutt/1.10.1 (2018-07-13) X-Greylist: inspected by milter-greylist-4.5.11 (mail.osk.ch [127.0.0.1]); Wed, 18 Aug 2021 19:23:13 +0200 (CEST) for IP:'127.0.0.1' DOMAIN:'localhost' HELO:'server.osk.ch' FROM:'armbian@osk.ch' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.11 (mail.osk.ch [127.0.0.1]); Wed, 18 Aug 2021 19:23:13 +0200 (CEST) X-CMAE-Envelope: MS4xfM+1h0Fp4Gz22coeUk4f/HxP62yhZRWipM3Sf2XqkCZMJ7ScFAi+ygF1595VF/Lo2B69u0sLIpVOWyD4dUyvxkZmJH3UQjdtifRbgDCzrBjhM5saDIUW HoamRjgltwYX+tGFLAO5Q0booW8zEO1jf7X5P/A15hQyxMWuwQTEN919 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 On Wed, Aug 18, 2021 at 09:53:06AM -0400, Tom Rini wrote: > 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, > > > > > > > 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: > > > > > > > > > > > Hi > > > > > > > > > > > > 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. > > > > > > > > > > The general easy answer is to have /boot that is separate from the > > > > > rootfs and using a filesystem more commonly supported. > > > > > > > > > > -- > > > > > Tom > > > > > > > > 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. > > > > > > > > > > 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" > > > > > > If find this topic interesting, then the community will try to help > > > when you provide any patches for review. > > > > > > However, considering the above, it may be hard for any _exact_ > > > guidelines. > > > > > > > > > Note: > > > [*] - Personally, I didn't saw any usage of ZFS on embedded systems. > > > > > > > Thanks, > > > > Chris > > > > > > > > > > > > > > > Best regards, > > > > > > Lukasz Majewski > > > > > > -- > > > > > > 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 > > > > Hallo Lukasz > > > > My system in question is not an embeded one. I just stated to play with an 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 with 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 ones are in RAID1 and host root FS, the bigger ones are in a mirrored Zpool. It works OK, it would be nicer to have just one filesystem, though. > > > > 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. > > -- > Tom Hi Tom This is a great news! I am a very old, retired Solaris/Linux admin I don't think I would be still able to dive into u-boot development. Other than this, I would try to do my best to help. Regards, Chris