From nobody Mon Dec 5 21:11:06 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NQx7v4wXmz4jYc6 for ; Mon, 5 Dec 2022 21:12:11 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NQx7t6zwdz3qdh for ; Mon, 5 Dec 2022 21:12:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=SQ6oFnwI; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::62f) smtp.mailfrom=wlosh@bsdimp.com; dmarc=none Received: by mail-ej1-x62f.google.com with SMTP id gu23so1492625ejb.10 for ; Mon, 05 Dec 2022 13:12:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7vlnNZ0N+S4kJuD6cENk53/MZJZTcthWdRALpRir2z4=; b=SQ6oFnwIK2TmEasgOFUcMYPyxlQd/1cGAty81I20UoRiWhOqG9olZ1fBod7lxkwsop pWoJ4v2s+babl2BwvsFqDtG4Vw0Ix4rQ4kXgLGW7DZYMv20yg5GxChduGg3yH7FbQSSh Kg8K/WLVB3YKmMfsLFLyGLW1yOOeDUht2fwDJqUrq4ut3LObo8QHyRngSPk6SX4G6DH8 SkVQz9XvJLa4fyquTgaiIMt44Mcxhr+JU2LPH37opP7vy4AxWY8LL0R7OPDhqH8r5VQh vBm/DRtbt+OKSAasfgZyZAMLmo3wyiVZBAnM5XFNZ3z+ANDM/z/WlKUflH9Xym/FyPi2 0LWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7vlnNZ0N+S4kJuD6cENk53/MZJZTcthWdRALpRir2z4=; b=Ponn3Y4SEo7y94h73j9GvBbeuckQFAFZoxtEUC6oVJq01GKCw6bj+qedFwXq6LhVCf qWtrATbxFYtk/6jk41+dcShsYFjLFXzGChqUEkT0ELjqEra3cHhYN84bRgi/0x45nSNP jfUJkHppYvqvRGVqssNYelGrFbLmUXU1ta6Q8hEY/dftujqBXUxwj9vIvkcx5Oc61W7F FIQu5ueUzbSZqFQKuJYMmgiSO1/hafxjeZv+i92ZsVUoEz2Xi0rKK9IyBIGlJnGTSE3F umQoKp65TLiVyhSUrPf7jKYsnUpY0n4uj3MN3/rLS0Jf5iYT85IO0Xf0DTvgIyOTs/Oy gorA== X-Gm-Message-State: ANoB5plZBQiw89n1PB1AUNBlZhMmKGxHGij1EgJHnfDjO4335s9TTM0s KYvKXffOp0Mcgn/OfbdsXJgRKAdurPMzklB5QDRr2g== X-Google-Smtp-Source: AA0mqf7H0xpfbQ7YMqlorzG1cftc1894J0hsI4HvrwFMa0aUvyfH5/jTkBXYxlqfPV0+z7BHNeo1JmzP35EVuRXMiMA= X-Received: by 2002:a17:906:29c3:b0:7c0:e0db:f136 with SMTP id y3-20020a17090629c300b007c0e0dbf136mr7895951eje.333.1670274728660; Mon, 05 Dec 2022 13:12:08 -0800 (PST) List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Mon, 5 Dec 2022 14:11:06 -0700 Message-ID: Subject: Re: Succeeded to boot on Lenovo Yoga C630 To: hiroo.ono+freebsd@gmail.com Cc: "freebsd-arm@freebsd.org" Content-Type: multipart/alternative; boundary="000000000000e12dfa05ef1b23a9" X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FREEMAIL_TO(0.00)[gmail.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TO_DN_EQ_ADDR_SOME(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_TLS_LAST(0.00)[]; R_SPF_NA(0.00)[no SPF record]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62f:from]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TAGGED_RCPT(0.00)[freebsd]; DMARC_NA(0.00)[bsdimp.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4NQx7t6zwdz3qdh X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --000000000000e12dfa05ef1b23a9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Dec 5, 2022, 10:40 AM Hiroo Ono (=E5=B0=8F=E9=87=8E=E5=AF=9B=E7=94= =9F) wrote: > Hello, > > I cannot find the original mail in my mailbox, but it is continued > from this mail. > > https://freebsd-arm.freebsd.narkive.com/dBBAi0yX/loader-efi-does-not-boot= -on-lenovo-yoga-c630 > > FreeBSD's bootaa64.efi that is distributed officially does not boot on > Lenovo Yoga C630. > OpenBSD 7.2's bootaa64.efi booted fine on Yoga C630, so I merged > OpenBSD's start.S and ldscript.arm64. > boot1.efi booted fine, but loader_lua.efi still needed to be tweaked. > > It seems that probing on serial console freezes the loader. > Commenting out serialconsole made the loader_lua.efi to boot the kernel. > And then, the kernel stopped and complained that it cannot find the > device tree blob. > > So my questions are: > 1. Can I disable loader from probing comconsole by some configuration? > (without tweaking the source.) > 2. How should I make the loader or kernel to find the dtb file? > There are some BIOSes that hate our serial code. So far it has just been in the cloud. But I'd just disable serial to confirm it's the same problem. Also, the kernel is weird with both DTB and ACPI right now. You have to pick one and it defaults to dtb... and I have systems that require manually setting this to ACPI. Warner Thank you. > > Hiroo Ono > > --000000000000e12dfa05ef1b23a9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Mon, Dec 5, 2022, 10:40 AM Hiroo Ono (=E5=B0=8F=E9= =87=8E=E5=AF=9B=E7=94=9F) <hiroo.ono+freebsd@gmail.com> wrote:
Hello,

I cannot find the original mail in my mailbox, but it is continued
from this mail.
https://freebsd-arm.freebsd.narkive.com/dBBAi0yX/loader-efi-does-not-bo= ot-on-lenovo-yoga-c630

FreeBSD's bootaa64.efi that is distributed officially does not boot on<= br> Lenovo Yoga C630.
OpenBSD 7.2's bootaa64.efi booted fine on Yoga C630, so I merged
OpenBSD's start.S and ldscript.arm64.
boot1.efi booted fine, but loader_lua.efi still needed to be tweaked.

It seems that probing on serial console freezes the loader.
Commenting out serialconsole made the loader_lua.efi to boot the kernel. And then, the kernel stopped and complained that it cannot find the
device tree blob.

So my questions are:
1. Can I disable loader from probing comconsole by some configuration?
(without tweaking the source.)
2. How should I make the loader or kernel to find the dtb file?

There are so= me BIOSes that hate our serial code. So far it has just been in the cloud. = But I'd just disable serial to confirm it's the same problem.
=

Also, the kernel is weird wit= h both DTB and ACPI right now. You have to pick one and it defaults to dtb.= .. and I have systems that require manually setting this to ACPI.

Warner=C2=A0

Thank you.

Hiroo Ono

--000000000000e12dfa05ef1b23a9--