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=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 87E31C49EA5 for ; Sat, 26 Jun 2021 18:32:19 +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 D8F6E61C29 for ; Sat, 26 Jun 2021 18:32:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D8F6E61C29 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5A82E82C7F; Sat, 26 Jun 2021 20:31:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="J2X1oSfR"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6D75282C5B; Sat, 26 Jun 2021 20:30:43 +0200 (CEST) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 90C4582C48 for ; Sat, 26 Jun 2021 20:30:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@google.com Received: by mail-ot1-x32a.google.com with SMTP id v5-20020a0568301bc5b029045c06b14f83so13206972ota.13 for ; Sat, 26 Jun 2021 11:30:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=loZEirM9DEeZHs9OqVZ1LjaxD7tx2hrLiXDEqRqvazY=; b=J2X1oSfRIMqIO1IJ5e+WZ/hdTLgulOZkxeCkz13/B8DII0MGRkxt4WZlRdBwP4nZH+ Resvz9dNDMyUFi4Z0QfCKnt+BJyzwtxwsrDIvvTegzJ7vN1JMg4r5lKHg1e5o7Lh2oWM 22VFCh6PvFdNB2LuphShk3EJSdFlBkD/sGg+U= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=loZEirM9DEeZHs9OqVZ1LjaxD7tx2hrLiXDEqRqvazY=; b=gPzweeaFjyOvFxEhc2yqv8HhCS+OTByXwkNxnW7KR7x0wDgof0799lnB6CmD0e71HV jjKwfa88CgwRYITW+JQgq66Qtyh8EIkOzcBAakogOWoftux+tKfsE3uZqZHKNOpBEaef qoAJh4J30AN0+5H+YwMRzrV+wwmIF2DjMODwQaRACVpkpWk/4O2XfHmRcWYa9+HvZBFV lOd6MZrR8yLD3huWwbpYnVu6iQVp5K8YUcy2haxEQDUPwrJ+ur04lcQlZQ0Re/gXMUwG r3SKiWtOR85ShGpyDmDPOLg/SsCX4jaUUglKC9TwLuF/wHWxaR45yoSbYhbQedLfcrIb vIPg== X-Gm-Message-State: AOAM533TBe/yIZt1ZqiosiELKdbr5dl6mpDHKs11fy3hT1YSTftsXSgK Rg9KFOsL/+9hlMXzW73/0TKIPUISbVDaAftCpLWszH6bQWg= X-Google-Smtp-Source: ABdhPJwKXJlO+YRLpoqtwsL5AxXZCiTX3dlWBS93aoI55wx/l0Xi/ivQ+R14u28iKk1cgkDJMx/97gfsVKhguQhlLb4= X-Received: by 2002:a9d:d42:: with SMTP id 60mr14978045oti.88.1624732238010; Sat, 26 Jun 2021 11:30:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Simon Glass Date: Sat, 26 Jun 2021 12:30:26 -0600 Message-ID: Subject: Re: U-Boot zboot on x86-64 VirtualBox UEFI. To: Christian Melki Cc: U-Boot Mailing List Content-Type: text/plain; charset="UTF-8" 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 Hi Christian, On Fri, 11 Jun 2021 at 23:59, Christian Melki wrote: > > On 6/11/21 3:40 PM, Simon Glass wrote: > > +Heinrich Schuchardt > > > > Hi Christian, > > > > On Fri, 11 Jun 2021 at 07:30, Christian Melki > > wrote: > >> > >> Hi. > >> > >> I have been trying to boot a bzImage with zboot from a VirtualBox UEFI > >> instance -> U-Boot UEFI payload. So far I've been using 2021.07-rc1. I'd > >> like to try a newer rc, but even if built exactly the same with the same > >> .config, newer won't boot as an UEFI payload. So right now, I'm stuck at > >> rc1. > >> > >> Anyway. > >> The kernel in question starts when configured with an EFI stub from the > >> UEFI shell. > >> > >> U-boot fails to boot the bzImage from the console using zboot though. > >> Just freezes after "Starting kernel..." > > > > We don't actually have tests for this in CI at present. > > > > I don't see any changes in the zboot stuff though. There is quite a > > bit in efi_loader. You could perhaps try a bisect. > > I can live with 2021.07-rc1 right now as it atleast starts as an UEFI > payload. > But my big issue is that I can't start the kernel with zboot. > Full debug build isn't that much more informative either. > I was thinking different load offsets, but mine seems pretty much > standard, so I don't know. I've played around a bit with configuration > on both halves, but it doesn't help. > > > > > Heinrich, do you have any ideas? > > > >> > >> zboot 01080000 - 04000000 319c000 > >> Valid Boot Flag > >> Magic signature found > >> Linux kernel version 5.12.0 (ptxdist@ptxdist) #2 SMP PREEMPT > >> 2021-06-01T00:00:00+00:00 > >> Building boot_params at 0x00090000 > >> Loading bzImage at address 100000 (6516096 bytes) > >> Initial RAM disk at linear address 0x04000000, size 52019200 bytes > >> Kernel command line: "console=ttyS0,115200 rw quiet" > >> Kernel loaded at 00100000, setup_base=00090000 > >> > >> Starting kernel ... > >> > >> Any ideas? Can you make sure that U-Boot is not writing out SMBIOS or other tables? It should be letting the kernel use the ones written by UEFI I think. Also start linux with a serial console and early printk or whatever it is called these days. Regards, Simon