From nobody Thu Dec 07 13:29:47 2023 X-Original-To: amd64@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 4SmFW052gRz530QH for ; Thu, 7 Dec 2023 13:29:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SmFW03vzLz3ZdR for ; Thu, 7 Dec 2023 13:29:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1701955788; a=rsa-sha256; cv=none; b=aHLZ+QEtF0JHDrW4LlBn5JVsUTw/qInmD4WgT0hn5BRQl0DYO8yFoR0KDBystCYZ7Qj2vQ LXWM8MqM3c5g+N0Xmdlfu3Gr/UQf2iSKEQB8/Tu8HWMTbP2usYrQxjPrMJylWQHOXHdOp4 j+3m/sT4NMyAD5pyZLXW9v4kbSi0dyxCMRrO6qbyMD5iRhDw4+fyqyuIQNQiIujIrGUzS3 F5VLu+xQyzpnQroy+r+dhRlKfuQVH3m2zZX78GOYj+e2bphiyP3pRjdvPeG5wX6DDEt/D9 9rVDpEfKUFEDntDpX3qzKRXSnKXGTiLUsw3urve2lIBPgEgTO5sm6JsqXtHoRg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1701955788; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+CUUtXbByToK8uhbtj6bTzKmvmJE2/Cphk5sddwe+2o=; b=yL8c2YInnxIKo61X7tdzKQu8RZXLVqk/U1Sg3Z1AqTAgzBEfooSUPYw9Ge44YaWYQBfRs5 Ll5gob3RRWpRXcgUsOkYVNUhTcVdUxtMBtoHz6HVadEnvcfrDovltZ1QEQUhqeFH/VAT0r WcYUSDFTSWfoM9bFVlNFSduX0nyC04KVl/yWa0/maZ+D+tTWbCoRuG4T9zxrIWUaAaHYJE CK3PgIfHCYx0hdXlWl2dzAWfOgzx+f0jNJOVuBINBQTGT6sB2WWC0uJ0GBsD7faM5wTfIb zFujD+5xdWD36tZEr84VbfXXliPmdrvz8rvYr1tQZGjGe9GKqKg3ZGFhQOdeGQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SmFW031DJzfLH for ; Thu, 7 Dec 2023 13:29:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 3B7DTm8f073655 for ; Thu, 7 Dec 2023 13:29:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3B7DTmZg073654 for amd64@FreeBSD.org; Thu, 7 Dec 2023 13:29:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: amd64@FreeBSD.org Subject: [Bug 207940] stand/efi/boot1: Add boot partition selection Date: Thu, 07 Dec 2023 13:29:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: feature, needs-qa, uefi X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: nicolas@deffayet.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: imp@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to the AMD64 platform List-Archive: https://lists.freebsd.org/archives/freebsd-amd64 List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-amd64@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207940 --- Comment #47 from Nicolas --- I don't understand why the partition menu display using boot1.efifat (so FreeBSD 12 way) but not using boot1.efi + manual partition setup (so FreeBS= D 13 and newer way). Since FreeBSD 13.0 and newer, boot1.efifat didn't exist anymore, so I use t= he following to write EFI partition of my disk: # newfs_msdos -F 12 -L EFISYS /dev/p1 ; # mount -t msdosfs /dev/p1 /mnt # mkdir -p /mnt/efi/boot # cp /boot/loader.efi /mnt/efi/boot/BOOTx64.efi # echo "BOOTx64.efi" > /mnt/efi/boot/startup.nsh # umount /mnt But the partition menu is not shown. I use the same newfs_msdos paramaters than https://cgit.freebsd.org/src/plain/stand/efi/boot1/generate-fat.sh?h=3Drele= ng/12.3 used to create boot1.efifat. If I put /boot/boot1.efi from FreeBSD 14.0 into FreeBSD 12.3 system, the partition menu is shown. If I create manually a boot1.efifat on FreeBSD 14.0 (using FreeBSD 12 method from https://cgit.freebsd.org/src/plain/stand/efi/boot1/generate-fat.sh?h=3Drele= ng/12.3 & https://cgit.freebsd.org/src/tree/stand/efi/boot1/Makefile?h=3Dreleng/12.= 3), partition menu works. mkdir /temp/boot1 cd /temp/boot1 dd if=3D/dev/zero of=3Dfat-x64.tmpl bs=3D512 count=3D1600 mdconfig -a -f fat-x64.tmpl newfs_msdos -F 12 -L EFISYS md0 mkdir stub mount -t msdosfs /dev/md0 stub mkdir -p stub/efi/boot echo 'Boot1 START' | dd of=3Dstub/efi/boot/BOOTx64.efi cbs=3D384k count=3D1 conv=3Dblock echo BOOTx64.efi > stub/efi/boot/startup.nsh umount stub mdconfig -d -u md0 rmdir stub xz -f fat-x64.tmpl xz -d -c fat-x64.tmpl.xz > boot1.efifat dd if=3D/boot/boot1.efi of=3Dboot1.efifat seek=3D0x2d conv=3Dnotrunc cp boot1.efifat /boot/boot1.efifat dd if=3D/boot/boot1.efifat of=3D/dev/p1 ; Did you know how get the partition menu working on FreeBSD 14.0 without usi= ng boot1.efifat ? --=20 You are receiving this mail because: You are on the CC list for the bug.=