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.5 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 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 D2AF9C4338F for ; Sun, 1 Aug 2021 21:13:43 +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 5C5B760241 for ; Sun, 1 Aug 2021 21:13:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 5C5B760241 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org 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 DD14A8331D; Sun, 1 Aug 2021 23:13:11 +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="eNe8ffNw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id DF5048331D; Sun, 1 Aug 2021 23:13:09 +0200 (CEST) Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) (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 AB627832FC for ; Sun, 1 Aug 2021 23:13:06 +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-wr1-x431.google.com with SMTP id d8so19013759wrm.4 for ; Sun, 01 Aug 2021 14:13:06 -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=hgoz5VH2dX7TOAdGcpVb/rxqEviwFkggd8YvzEUExBY=; b=eNe8ffNwVkHmnHaw4ESbvrrZQUzdZqLOGNeSslQ6ZF5yifcVq0bnv6P6iEixbYvwzb z3KFsDNVdFRjv9SPfDkEAPUpJLO5ZXjlfwGq6KCf/8+fiUeOYBYuq4ZMpotoa16j/Ww3 5UmDiJEtt+kO+s1tV9GfoXFmLhsXABkSsWlCI= 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=hgoz5VH2dX7TOAdGcpVb/rxqEviwFkggd8YvzEUExBY=; b=cJILwo8zk4oM/DXHPong1cX7a6BgJbQ92YdS1cZolqHXvF94FZ6uzWX2LR8IZj3r6T Mmlf0cUgWm4cBW+RJBeknpVG8TAH4iaqLwn/UbE/sg0M28iQkFHzKYz0BSaiY56C8I2b eireCwMQuSWMz4dnfrkyAZewmc/bUMMWQiHm2PTHs0f6+tHoOEqgGkM1C2EPbmvNmdXe iM18lSvOvyKnwq9UuvRgU3pRMj1JvsJAJyIhhrR/VU0aQ9nF929Mr7pYaKn+1n4LdIF0 Ic5q8MA9UYFtZOnP1BdVUIP8gm8+Xx+0g+PbKgnZWl0f7CP754ODjZzlsI1Sx7EQZUPJ BgoA== X-Gm-Message-State: AOAM532Ebqpx8rRhgddD+HexS3UPN7Ph+6twJQSbw25vsmcD0M4kyFbG w15HkOLwKdD5SB/f+KyLn0q59s1fL/TSUOiVTNreOyy11dotgg== X-Google-Smtp-Source: ABdhPJwqTTyjCoJYV2rroIBfvBC8js+ximkbb37llRJCSyQdUkyv4E0i+zpzxuHjlN31t08xdLPm4NOs8iPrsUZMV0Q= X-Received: by 2002:adf:ec50:: with SMTP id w16mr14302364wrn.56.1627852385960; Sun, 01 Aug 2021 14:13:05 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Simon Glass Date: Sun, 1 Aug 2021 15:12:54 -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 Sat, 26 Jun 2021 at 12:30, Simon Glass wrote: > > 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. Just for the record, this was fixed with the patch: x86: Ensure the e820 map is installed in all cases which is now applied. Regards, Simon