From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f54.google.com (mail-pj1-f54.google.com [209.85.216.54]) by mx.groups.io with SMTP id smtpd.web08.2624.1630697661488410298 for ; Fri, 03 Sep 2021 12:34:21 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@newmexicoconsortium-org.20150623.gappssmtp.com header.s=20150623 header.b=nTlcLBcI; spf=none, err=SPF record not found (domain: newmexicoconsortium.org, ip: 209.85.216.54, mailfrom: dbautista@newmexicoconsortium.org) Received: by mail-pj1-f54.google.com with SMTP id mj9-20020a17090b368900b001965618d019so227137pjb.4 for ; Fri, 03 Sep 2021 12:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=newmexicoconsortium-org.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=wPx7YBP53BtwZ+Oe+D+9/7FM31M9qftrCfXuWre4F5M=; b=nTlcLBcId/fTt3ofDLLNxj8pytwWmlura41tGqTsTblpb8mJHhPse9WWTQypPHD/8E vpb7WjbcRrZORxfD2ve+oBFlxeDB10EwMXcu0hCx5DufwXRBQKoDIBASg7rwG/R8RB1A xtYBbgd19JgnZkrOWld/Mb7oR8enAirhs9/KYGsJyYGyHknw1+APRq4D1MHnHTMMoqli +V09/uO+5N6GI42X48AYsdx8q3dwz3LoEuspS/IFbsjmEF0IKCHHJt3IOHkeGFdeRRlj 7f0TMmiBb/1yKVL8JrluYBFuCNRC5nDZ6bfhHN8athBVNrsM4gVp/O0Pv3kFJxgu36x1 lZHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wPx7YBP53BtwZ+Oe+D+9/7FM31M9qftrCfXuWre4F5M=; b=fRd5UEWUwtLTLYEdRVGn/mlD/oeoSquiJlN0XO889HjuRclR5MHGQ4xVT0cRCc5XeD fMzF6Jb+04VRLFv5uODoKFrWXWs4nJs51S8Gidx6ABKISbhkiAMdpZlOrYznWqOXNVpI /Eu9On0Gj8NRJFRz5uyfzgwVX4AtCKg/GXZ29JwXWPh/e//isd8ncLdt0vTZVTIfE0bI ya95dNNYOgeipDeySg6KTg2dGVLgVLdbZuzmX+Doly9FD6C/nb66HVfLgkw7hFGXOwhq 1XPVaWSCMVDgkjC2nQ1vY8DZ2HL9MJu6AZzUfaFs/0Fs6coSb1oAYdVx0SUYN7AFnPJW 5pRA== X-Gm-Message-State: AOAM531YnjImFhNyX3gllaCo4CejLyBhYEmhoSWt5bRiR651RmRgOZ1w mc5VwW1MPxPNcwT34HS/gcHiog== X-Google-Smtp-Source: ABdhPJznMOr6rJDoLt2tS8HjEcSnmYGMhHU8jac6PtJhDMUgRKh1PGs6e9ubFbycfuEGorgVi/7DZA== X-Received: by 2002:a17:90a:bd08:: with SMTP id y8mr449688pjr.123.1630697660633; Fri, 03 Sep 2021 12:34:20 -0700 (PDT) Return-Path: Received: from [192.168.3.111] (c-73-48-255-158.hsd1.ca.comcast.net. [73.48.255.158]) by smtp.gmail.com with ESMTPSA id v17sm183937pff.6.2021.09.03.12.34.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 03 Sep 2021 12:34:20 -0700 (PDT) Subject: Re: [PATCH v2 1/1] OvmfPkg: Introduce 16MiB flash size for (primarily) Linuxboot To: Gerd Hoffmann Cc: devel@edk2.groups.io, Ard Biesheuvel , Jiewen Yao , Jordan Justen References: <20210903052620.30638-1-dbautista@newmexicoconsortium.org> <20210903052620.30638-2-dbautista@newmexicoconsortium.org> <20210903071722.ebm4vc4tzsa3sdlu@sirius.home.kraxel.org> From: "Devon Bautista" Message-ID: <4c475545-4dd2-309c-8c03-b351decfc3d0@newmexicoconsortium.org> Date: Fri, 3 Sep 2021 12:35:56 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210903071722.ebm4vc4tzsa3sdlu@sirius.home.kraxel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit On 9/3/21 12:17 AM, Gerd Hoffmann wrote: > On Fri, Sep 03, 2021 at 05:26:20AM +0000, Devon Bautista wrote: >> The largest size flash image currently available for OVMF builds, 4MiB, >> is too small to insert a Linux kernel and initramfs into the DXEFV, and >> is thus insufficient for testing Linuxboot builds via OVMF. > >> FVMAIN_COMPACT uncompressed 3360 -> 15648 (+12288) >> FV FFS file LZMA compressed >> PEIFV uncompressed 896 -> 896 ( +0) >> individual PEI uncompressed >> modules >> DXEFV uncompressed 12288 -> 12288 ( +0) >> individual DXE uncompressed >> modules > > Patch looks sane to me. > > Reviewed-by: Gerd Hoffmann > Thank you for your review. > How you are going to use the extra space you got? > Do you add kernel + initrd as ffs files to FVMAIN_COMPACT? > > take care, > Gerd > The kernel + initrd are added as an application in DXEFV, and a "linuxboot" DXE driver is added that dispatches the bzImage. The Linuxboot build system tries to remove some of the DXE drivers that are redundant to Linux drivers, but even after this there is still not enough room to insert the kernel + initrd with the 4MiB build target, even with XZ kernel and initrd compression. Best, Devon