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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, 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 7A95FC4338F for ; Wed, 18 Aug 2021 13:26:23 +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 5B99A600CC for ; Wed, 18 Aug 2021 13:26:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5B99A600CC 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 E926382D50; Wed, 18 Aug 2021 15:26:19 +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 BD14E82D50; Wed, 18 Aug 2021 15:26:17 +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 3041682DA3 for ; Wed, 18 Aug 2021 15:26:15 +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 GLa5mCtfWslQjGLaAm7v3P; Wed, 18 Aug 2021 15:26:14 +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 17IDPwn4023052; Wed, 18 Aug 2021 15:25:58 +0200 Received: (from osk@localhost) by server.osk.ch (8.15.2/8.15.2/Submit) id 17IDPwcG023051; Wed, 18 Aug 2021 15:25:58 +0200 X-Authentication-Warning: server.osk.ch: osk set sender to armbian@osk.ch using -f Date: Wed, 18 Aug 2021 15:25:58 +0200 From: ChrisO To: Lukasz Majewski Cc: ChrisO , u-boot@lists.denx.de, Tom Rini Subject: Re: u-boot & ZFS Message-ID: <20210818132558.GA22786@server> References: <20210817160310.GA19707@server> <20210818003514.GO858@bill-the-cat> <20210818094155.GA22377@server> <20210818122611.756d7634@ktm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210818122611.756d7634@ktm> 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 15:25:58 +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 15:25:58 +0200 (CEST) X-CMAE-Envelope: MS4xfAA7Xre//v0n89AJauqNqJiIBtwnN5K2hlIyJX9AFWlvMUnyMYId2PF6c3+KhDGFuVsyyKbCOJm9jmMB5qgq8j1X5pkmT3ykTqOITeLgCbOw/IIPknxW n5vnTQz2Wo/pUpxRxD6g8ILAZdcag4hbrPmNKzm+/mwfTDJNHBRfsQwb 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 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? Thanks and regards, Chris