From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4003:c06::22c; helo=mail-oi0-x22c.google.com; envelope-from=steve.capper@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-oi0-x22c.google.com (mail-oi0-x22c.google.com [IPv6:2607:f8b0:4003:c06::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id ABFEA22620E71 for ; Wed, 11 Apr 2018 09:41:06 -0700 (PDT) Received: by mail-oi0-x22c.google.com with SMTP id c3-v6so2340984oib.5 for ; Wed, 11 Apr 2018 09:41:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=v127VewEfySrt5meCp3dGW8iP8hcKzLAy7LDrblI/Ro=; b=G3mbqFW7DCKIr2RzjQxcY/fV7wtuOtcMWgDPMi37dvk9ElPcNALnTVcAI52UFJgCqT +Xonw8HbTlk69TIJFMhkvJi3qKObiClPIrRSInIvwdGI1wWWNqaetRBrqEKikmrc94// Ym4GMkj8f6vF5iS2/aNvhhx6sDRQbqY+DmBKE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=v127VewEfySrt5meCp3dGW8iP8hcKzLAy7LDrblI/Ro=; b=V7VuhTJtuGBCoWPeNDsoOS28dvNFaGTsrsMNdea8PPlylmU6mEkjvK9USlkfmiCiEd SXzCJ9NSd0xuJyLTtmE/d7VHX2IHscL4sd/bQCJgm6YF3inYiM4MpxwhX4b8UbbgNLDU NYrhCudm2fW7r78Vwgm10ZIbRykBhLjDGR+wTM5pT8EThR1XFwZsRjdg2QaTvjajK6vJ JzOHoBwhwvaK1fouYEVBk0sAgJp0kArdHKHoKzkJ2A8L4mn9/03bzT0S8PsxOvUJyWYZ VXcou5nfxKrH7zvCbr9Zsh3jcQi1IpLMa7abGzLG0SJjtiyPKUeav9r1p2KebzoZciY8 1XlA== X-Gm-Message-State: ALQs6tAeI+XY4XI+gy8dzavWiUCKR5jfKrZv1NnPJ4Mv7mSH8DZNF/0p y8AXy8TPJ9giWMIPHngh5OH/jVnzrQclLX/WxecXoA== X-Google-Smtp-Source: AIpwx4/EWKDrbQj3dEfwVGbSsOY+Y4nnoXrmhwMNv8LPzi+W8n453Ncwa3xYtBGvVBZwAUWB8U1nEwIbCwNE8xO6TUs= X-Received: by 2002:aca:6884:: with SMTP id o4-v6mr3337676oik.93.1523464865765; Wed, 11 Apr 2018 09:41:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:3c2:0:0:0:0:0 with HTTP; Wed, 11 Apr 2018 09:41:05 -0700 (PDT) In-Reply-To: References: From: Steve Capper Date: Wed, 11 Apr 2018 17:41:05 +0100 Message-ID: To: Laszlo Ersek Cc: edk2-devel@lists.01.org, Nariman Poushin , Leif Lindholm , Ard Biesheuvel Subject: Re: Boot failure for ArmVExpress-FVP-AArch64, CpuArch protocol does not appear to be registered X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Apr 2018 16:41:06 -0000 Content-Type: text/plain; charset="UTF-8" On 11 April 2018 at 13:25, Laszlo Ersek wrote: > Hi Steve, Hi Laszlo, [...] > Summary: > (1) introduce a custom GUID for "NorFlashDxe has formatted the variable > store headers for the variable driver to read"; > (2) install the GUID in NorFlashDxe once it's done verifying and/or > formatting the headers; > (3) introduce a custom library instance with an empty constructor > function, and a DEPEX on the GUID; > (4) hook the library instance into > "MdeModulePkg/Universal/Variable/RuntimeDxe/VariableRuntimeDxe.inf" > in all the platform DSC files where the platform build does not > pre-format a varstore template in the FDF file; > (5) replace the BEFORE depex with gEfiCpuArchProtocolGuid. > A *very* big thank you for taking the time to explain this in detail, after a couple of reads (I mainly just build EDK2) I was able to get something booting following the above approach :-). Cheers, -- Steve