From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4010:c07::229; helo=mail-lf0-x229.google.com; envelope-from=namechi.kao@gmail.com; receiver=edk2-devel@lists.01.org Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 6C07B222DDBE7 for ; Sun, 14 Jan 2018 17:47:38 -0800 (PST) Received: by mail-lf0-x229.google.com with SMTP id f3so11527323lfe.4 for ; Sun, 14 Jan 2018 17:52:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=V8mAdMrNB2nIVZpb1GP64NLPfDftftDTaGddxQgulDw=; b=j+1o5xMenUFOG1bJXDltGFW+Vfx2k2xSiJ90GArbw7wUtH8/ma3wM95ykUSo3rcjHt rjfAzh35FR5zig6mpq+YoLNNt03CjhvUAUyh8xaoVzKaSO/qdFVS3prO9kreufK7oGw9 iTWvWDFKfJrclFJvOU1E4CG2aUoPNRzvFef2EasIUy8rNPPIy5nnqqBJjIUFjZTGr0Vd XCRkeODikE3YNHKZUnDfuiiTsJ5GGIZeD+MpGQIxcMBjjecUVAf7xKUmKJdgQsLTuhSL 8AKIVu+YyX41stmHbxC4tXe3j+hMojpfHxaPUwfUNPR5brC06tMl64OnRgInj7X+nJJ3 CMuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=V8mAdMrNB2nIVZpb1GP64NLPfDftftDTaGddxQgulDw=; b=BavGmKU+tFrZMiZ1EHEGXMQlT0Ao4+9zMTofT6xMfBJIAFCvooSv82PYet03VVxZ4S rXoTP0yL+LAaAPJBWb6EEiYLqgO4Kx5o3xMv1xaPv8250P7TNZcqJ8thH9IzNehHbpdd GLUtzn1KSlimbEQSyjghGSC/clEBB32mkLplMOpTEvt2zaL6XfCpUPmAJydlbWW9GBFU Ry0t5ltiO7tovyu8X87AKtyWEIRmEod10LXxTHf/kcrJXRE/N2NIKOImj1ZxcctLlXIt /OzHM3r5flkkgUbgNNa7kxrBPE3nKJEtWTiLE5OpOBMTX0W5uH1X+f1fadT43nunf79m If4Q== X-Gm-Message-State: AKwxytfDHbWmAaCRzn2itsjJpEz5U1y8P5CdFykbiHVTFk9urPVh35qj NU3HC38ddLvtVI+Q2S0Ecn+CCxUJw5tiIZd5ZPjYhw== X-Google-Smtp-Source: ACJfBosPfeV2mLmYQ1HsQokS1AgY8cQJSzXhWFhZXHwJgP4P5JjMIoZntyOOnQSmot9jnNh6SjYlpgLT13GPWBRar4g= X-Received: by 10.25.86.17 with SMTP id k17mr17982382lfb.67.1515981173770; Sun, 14 Jan 2018 17:52:53 -0800 (PST) MIME-Version: 1.0 Received: by 10.179.7.130 with HTTP; Sun, 14 Jan 2018 17:52:53 -0800 (PST) From: =?UTF-8?B?6auY5b+15oWI?= Date: Mon, 15 Jan 2018 09:52:53 +0800 Message-ID: To: edk2-devel@lists.01.org X-Content-Filtered-By: Mailman/MimeDel 2.1.23 Subject: Question about merge efi application into BIOS X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 01:47:39 -0000 Content-Type: text/plain; charset="UTF-8" Hello I write an efi tool and try to merge to BIOS, then execute from BIOS. My idea as follow, but i don't know my concept is right or not 1. write .inf file to produce firmware volume(FV) 2. Copy FV to memory (load image ?) 3. start image to execute my efi tool [On step1] , my efi tool could be found in FV after compiling [On step2], My load image parameter as follow *typedef* *EFI_STATUS* *(EFIAPI *EFI_IMAGE_LOAD) (* *IN BOOLEAN **BootPolicy,* *IN EFI_HANDLE **ParentImageHandle,* *IN EFI_DEVICE_PATH_PROTOCOL ***DevicePath,* *IN VOID ***SourceBuffer **OPTIONAL,* *IN UINTN **SourceSize,* *OUT EFI_HANDLE ***ImageHandle* *);* [BootPolicy] False [ParentImageHandle] i don't understand the meaning of spec? it say "EFI_HANDLE is defined in the EFI_BOOT_SERVICES.InstallProtocolInterface function description" [Device path] use VENDOR_DEVICE_PATH [Source buffer] Use *EFI_FIRMWARE_VOLUME_PROTOCOL. ReadSection()* *to load FV from flash part and save to buffer ?*