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 05053C4338F for ; Wed, 18 Aug 2021 16:28:25 +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 ACA0560EFE for ; Wed, 18 Aug 2021 16:28:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org ACA0560EFE 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 95A0382D50; Wed, 18 Aug 2021 18:28:20 +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 F07DE82DA3; Wed, 18 Aug 2021 18:28:18 +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 54E0E80661 for ; Wed, 18 Aug 2021 18:28:14 +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 GOQCmDUFoslQjGOQHm7zpT; Wed, 18 Aug 2021 18:28: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 17IGS36d023428; Wed, 18 Aug 2021 18:28:03 +0200 Received: (from osk@localhost) by server.osk.ch (8.15.2/8.15.2/Submit) id 17IGS26L023427; Wed, 18 Aug 2021 18:28:02 +0200 X-Authentication-Warning: server.osk.ch: osk set sender to armbian@osk.ch using -f Date: Wed, 18 Aug 2021 18:28:02 +0200 From: ChrisO To: Dimitri John Ledkov Cc: U-Boot Mailing List Subject: Re: u-boot & ZFS Message-ID: <20210818162802.GA23328@server> References: <20210817160310.GA19707@server> <20210818003514.GO858@bill-the-cat> <20210818094155.GA22377@server> <20210818122611.756d7634@ktm> <20210818132558.GA22786@server> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 18:28:03 +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 18:28:03 +0200 (CEST) X-CMAE-Envelope: MS4xfABu9qt/OyHOg1i6aaP6i92ZWatuM4u1gmEKGsjnROLBCgdpPOduxMB52PXuMw4rC8FQY7+gHWKBSzbjlykuWLHW2LdzHRLDHyODZe2d0+x6V3yxiXBe vRNUokl50Nn7VkGnuxVEgzZm0FVs1GvgTTYF1C9977QLTQN1MU/GZtng 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 03:12:04PM +0100, Dimitri John Ledkov wrote: > On Wed, Aug 18, 2021 at 2:26 PM 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. > > 4GB of RAM sounds way too little for zfs. Because ... I don't want to keep my ZFS pool in RAM, it contains two disk partitions ~220GB and its usage of memory for its cache, ARC (adaptive replacement cache) is: root@odroidhc4:~# awk '/^size/ { print $1 " " $3 / 1048576 " MB" }' < /proc/spl/kstat/zfs/arcstats size 5.91608 MB I did administer, in another life ;-) large Solaris servers on ZFS only and never had mamory usage problems. Thanks and regards, Chris > > > 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 > > -- > Regards, > > Dimitri.