From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=17.151.62.25; helo=mail-in2.apple.com; envelope-from=afish@apple.com; receiver=edk2-devel@lists.01.org Received: from mail-in2.apple.com (mail-out2.apple.com [17.151.62.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 011F121F85E6B for ; Mon, 26 Mar 2018 22:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1522128538; x=2386042138; h=From:Sender:Reply-To:Subject:Date:Message-id:To:Cc:MIME-version:Content-type: Content-transfer-encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-reply-to:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=5x9PPrvLqykcOV4xO8/fqUQ2NqwBoKQ4VqkKYjmfr+Y=; b=taD35PagW8l2yv/EGLymKSW4xRaZ046VaqAcpfSM5psD955OczvBG0c/3eCLyI0X rEA5D6tpEW42Q6csBnqdqyZGMIJ/uzugP9yESVLNRn3M2k2k2z1eLFtIeKu2Wf9B ZNziPzLtdyjLOqdZoVE8bxXprnl0fIbqPliDWdAEth+DK5DPoizy1Z2aQ6OLjoDf ry66KniuBySHF3DtOJNhO0bYO8J8i5a/cixRwkDB5sgmsSBNh5KPupRJb0cGT53p uyCrmIUtwp4QKT+bXBC/AacqCRGVo9A4qxVFzgkd0B7sNyxYSyoeOJx25/cBW0hm fz7cNew4BXCITL5leky2Zw==; Received: from relay26.apple.com (relay26.apple.com [17.171.128.107]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail-in2.apple.com (Apple Secure Mail Relay) with SMTP id 95.C4.13823.A96D9BA5; Mon, 26 Mar 2018 22:28:58 -0700 (PDT) X-AuditID: 11973e11-853ff700000035ff-b7-5ab9d69a0019 Received: from ma1-mmpp-sz11.apple.com (ma1-mmpp-sz11.apple.com [17.171.128.33]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by relay26.apple.com (Apple SCV relay) with SMTP id 67.80.01050.996D9BA5; Mon, 26 Mar 2018 22:28:58 -0700 (PDT) MIME-version: 1.0 Received: from [17.234.206.49] by ma1-mmpp-sz11.apple.com (Oracle Communications Messaging Server 8.0.2.2.20180130 64bit (built Jan 30 2018)) with ESMTPSA id <0P680087QHW86O20@ma1-mmpp-sz11.apple.com>; Mon, 26 Mar 2018 22:28:57 -0700 (PDT) Sender: afish@apple.com From: Andrew Fish In-reply-to: Date: Mon, 26 Mar 2018 22:28:55 -0700 Cc: "edk2-devel@lists.01.org" Message-id: References: To: david moheban X-Mailer: Apple Mail (2.3445.6.18) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFLMWRmVeSWpSXmKPExsUiuLohW3fWtZ1RBvcWGVvsOXSU2WLW3els DkweO2fdZffonv2PJYApissmJTUnsyy1SN8ugStj4ekXjAVdXBVnNp5kbGDs5uhi5OSQEDCR mPJnDVMXIxeHkMA6Jon5bY0sXYwcYIlNzxUh4huYJD7cf8cE0sArICjxY/I9sBpmAXmJg+dl QcLMAloS3x+1skDUf2WU2LH0HhtIQlhAXOLdmU3MELabxOLJ59hBbDYBZYkV8z+A2ZwCwRLN /8+D2SwCqhJv1m9lgRhqLjHjwheovTYSBx6eAZsjJBAg8fPNVLAaEQF1iU0vvzFDPKMk8X/X EWaQIyQE/rJKPG2ayDiBUXgWkrtnIdw9C8ndCxiZVzEK5SZm5uhm5hnpJRYU5KTqJefnbmIE BfZ0O8EdjMdXWR1iFOBgVOLhncGxM0qINbGsuDL3EKM0B4uSOK977dYoIYH0xJLU7NTUgtSi +KLSnNTiQ4xMHJxSDYzHY5evfMct69Hz2+KjpsfGAHmOxReqlpomWflmKFxq/bWeMbXY6trB BQdstfi9hY/Wpq3XUQ0zO2RXdLy9XIDFSjluofiK9Y5zbkwNExF89Ger1epNM2WnOD48y9p1 6NSe5cvKT/3R5vZJdOdvDPhbtf9hvtR9jw1VpY5HzgZ+E1EMKHGrOqzEUpyRaKjFXFScCACC UAyzTQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHLMWRmVeSWpSXmKPExsUiuLpBUXfWtZ1RBtMuMFnsOXSU2WLW3els DkweO2fdZffonv2PJYApissmJTUnsyy1SN8ugStj4ekXjAVdXBVnNp5kbGDs5uhi5OCQEDCR 2PRcsYuRi0NIYAOTxIf775i6GDk5eAUEJX5MvscCUsMsIC9x8LwsSJhZQEvi+6NWFoj6r4wS O5beYwNJCAuIS7w7s4kZwnaTWDz5HDuIzSagLLFi/gcwm1MgWKL5/3kwm0VAVeLN+q0sEEPN JWZc+AK110biwMMzYHOEBAIkfr6ZClYjIqAusenlN7C4hICSxP9dR5gnMArMQnLqLIRTZyE5 dQEj8ypGwaLUnMRKIzO9xIKCnFS95PzcTYyQUMzewXjyntkhRgEORiUe3hfMO6OEWBPLiitz DzFKcDArifBmLwUK8aYkVlalFuXHF5XmpBYfYpTmYFES5zXgBkoJpCeWpGanphakFsFkmTg4 pRoY8zz9U6blKpiEpad8fDNLrcq55lL9H0PN/ltO6YdanirVWquL/0jPjr+VrHa7VPD9M4NI 8dLrjqzZt7LkZ3aksR313e925rxSnVfp2d3fdJbFXNK5p1JTw3oiQ9PJu+nJTbGjL/gn7I+L 2yMa/Ptt0YIFcf8ZJfJT27YfZZY4wlty0yU4VUSJpTgj0VCLuag4EQC7ano7QQIAAA== Subject: Re: How to make a memory mapped to FV ffs efi program? X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2018 05:22:22 -0000 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII David, I'm not sure what you are asking? Per UEFI Spec boot policy there are well know NVRAM variables that define boot policy. See UEFI Spec 3.3 Globally Defined Variables. Look at BootOrder, BootNext, Boot#### etc. The memory mapped volume part is tricky as there is not a concept of booting from a memory mapped volume. See "3.5 Boot Mechanisms" in the UEFI Spec. If you loaded a RAM Disk driver that produced Simple File System then you could form boot from that. The PI spec also defines how to load something out of the FV, so it is also possible to boot from an FV via a device path, but that is not mentioned in the UEFI Spec, as the PI Spec is not required to implement UEFI. Thanks, Andrew Fish > On Mar 26, 2018, at 8:52 PM, david moheban wrote: > > Hi, > > This question has always been very elusive despite hours of google > searching. Was wondering how it would be possible to convert an efi program > into a memory mapped volume that advertises itself onto your boot menu? For > example to convert shell.efi into a bootable item on my boot menu. > > Thank you > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel