From owner-freebsd-arm@freebsd.org Sun May 2 22:21:54 2021 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 42D835FC65A for ; Sun, 2 May 2021 22:21:54 +0000 (UTC) (envelope-from hiroo@oikumene.net) Received: from barleycorn.oikumene.net (tk2-231-25124.vs.sakura.ne.jp [160.16.110.128]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FYLDl5v22z3PPM for ; Sun, 2 May 2021 22:21:43 +0000 (UTC) (envelope-from hiroo@oikumene.net) Received: from nowhere.oikumene.ukehi.net (148.17.178.217.shared.user.transix.jp [217.178.17.148]) by barleycorn.oikumene.net (Postfix) with ESMTPSA id 76EB961FAE; Mon, 3 May 2021 07:21:33 +0900 (JST) Received: from localhost (nowhere.oikumene.ukehi.net [192.168.8.24]) by nowhere.oikumene.ukehi.net (8.16.1/8.16.1) with ESMTPS id 142MNFrf089863 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 3 May 2021 07:23:22 +0900 (JST) (envelope-from hiroo@oikumene.net) X-Authentication-Warning: nowhere.oikumene.ukehi.net: Host nowhere.oikumene.ukehi.net [192.168.8.24] claimed to be localhost From: Hiroo Ono To: Greg V Cc: Subject: Re: loader.efi does not boot on Lenovo Yoga C630 Date: Mon, 03 May 2021 07:23:15 +0900 MIME-Version: 1.0 Message-ID: <6fbe3662-d8f6-48ac-b4de-80bcc3f16a39@oikumene.net> In-Reply-To: References: User-Agent: Trojita/0.7; Qt/5.15.2; xcb; AnyBSD4.4FreeBSD; Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4FYLDl5v22z3PPM X-Spamd-Bar: / X-Spamd-Result: default: False [-0.25 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_DNSFAIL(0.00)[temporary DNS error]; TO_DN_SOME(0.00)[]; HAS_XAW(0.00)[]; HFILTER_HELO_IP_A(1.00)[barleycorn.oikumene.net]; HFILTER_HELO_NORES_A_OR_MX(0.30)[barleycorn.oikumene.net]; HFILTER_FROMHOST_NORESOLVE_MX(0.50)[barleycorn.oikumene.net]; RCVD_COUNT_THREE(0.00)[3]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[160.16.110.128:from]; ASN(0.00)[asn:9370, ipnet:160.16.0.0/17, country:JP]; R_DKIM_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.969]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.02)[0.019]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; SPAMHAUS_ZRD(0.00)[160.16.110.128:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_DNSFAIL(0.00)[oikumene.net : query timed out]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2021 22:21:54 -0000 Thank you. On 2021=E5=B9=B45=E6=9C=881=E6=97=A5=E5=9C=9F=E6=9B=9C=E6=97=A5 17=E6=99=8213= =E5=88=8632=E7=A7=92 JST, Greg V wrote: > > On May 1, 2021 3:32:04 AM UTC, Hiroo Ono wrote: >> Hello, >>=20 >> I am trying to install FreeBSD/aarch64 to Lenovo Yoga C630 (81JL0012JP). >> It has Snapdragon 850 as the processor. >>=20 >> I tried the 13.0R image, the UEFI BIOS recognizes the EFI partition, >> but loader.efi does not start at all. The screen stays blank. >> I added the following code to efi_main(), but still there is no text >> output. > > Qualcomm firmware has an alignment requirement, see > > https://lists.gnu.org/archive/html/grub-devel/2018-12/msg00055.html > https://github.com/tianocore/edk2/commit/de3c440e8a54c201c527b85da7b89d5848= 6ece4d > I understand what needs to be done, but I still do not know how to do it. I changed the following: in stand/defs.mk: CFLAGS.clang +=3D -mcmodel=3Dsmall in stand/efi/loader/Makefile: LDFLAGS+=3D =20 -Wl,-T${LDSCRIPT},-Bsymbolic,-znotext,-zcommon-page-size=3D0x1000 -pie But resulting loader_lua.efi and boot1.efi did not run. What else should I do?