From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in6.apple.com (mail-out6.apple.com [17.151.62.28]) (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 7A7BE81F60 for ; Thu, 9 Feb 2017 08:53:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; d=apple.com; s=mailout2048s; c=relaxed/simple; q=dns/txt; i=@apple.com; t=1486659227; 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=kR7V0kLpyAC3aEWXeCo+ES4XlkZt8C+w1KokgUWVxzY=; b=gKzemXX9C889sT7FkbvQBHbN9RofoHnMyH7kmVau4cqfP5SqfTldjL1WveZ/JwEI fVvlPGwH7KI1D5q+Qa657kvQx7+glGlcOfsL5mWswViP8l7pxU0A4t6+tVgmvTDM dtWySH7lN6OPp4HRu9vCPbtfgoEb5PVOHEa/0LvJqedngJthpIeweHM8AndzCHXT zlEnoc0GYTdCqNqmiI8kPRdeeekA7+vjKt43yOqvQVvR2+SB3GTcXFiaElIPcSH2 TAyujim+AVWoP0GKivy3ILlTLfzNvj56K7fdwQNz/I0Sp1FuFZC4mrtqa5bDc/gs KRZmVVJFEz9TqNWhBtVfiQ==; Received: from relay2.apple.com (relay2.apple.com [17.128.113.67]) by mail-in6.apple.com (Apple Secure Mail Relay) with SMTP id F9.12.09465.B9E9C985; Thu, 9 Feb 2017 08:53:47 -0800 (PST) X-AuditID: 11973e15-360719a0000024f9-d2-589c9e9b7d9b Received: from nwk-mmpp-sz06.apple.com (nwk-mmpp-sz06.apple.com [17.128.115.234]) by relay2.apple.com (Apple SCV relay) with SMTP id DA.AB.11444.A9E9C985; Thu, 9 Feb 2017 08:53:46 -0800 (PST) MIME-version: 1.0 Received: from [17.153.78.199] (unknown [17.153.78.199]) by nwk-mmpp-sz06.apple.com (Oracle Communications Messaging Server 8.0.1.2.0 64bit (built Dec 14 2016)) with ESMTPSA id <0OL400JCK9LLF330@nwk-mmpp-sz06.apple.com>; Thu, 09 Feb 2017 08:53:46 -0800 (PST) Sender: afish@apple.com From: Andrew Fish Message-id: <929A72F9-4A56-45D5-9985-F896413042CB@apple.com> Date: Thu, 09 Feb 2017 08:53:45 -0800 In-reply-to: Cc: Linaro UEFI Mailman List , edk2-devel@lists.01.org, Ronald.Cron@arm.com, Leif Lindholm To: Jun Nie References: X-Mailer: Apple Mail (2.3226) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrDLMWRmVeSWpSXmKPExsUi2FDorDt73pwIg7132S32HDrKbLHkyUN2 i0+797BYnOtbz2yx8f8HVgdWjzXz1jB63Lm2h82je/Y/Fo/b/x4zB7BEcdmkpOZklqUW6dsl cGV8OrOZqaBBs6L90HymBsY9yl2MnBwSAiYSP9fPYO1i5OIQEtjLKDF92Q52mMScnz2sILaQ wCFGiaaHjCA2r4CgxI/J91hAbGaBMInfyz6xQTR3MUn8PfMArEFYQFzi3ZlNzCA2m4CyxIr5 H4CGcgA120h8PZMBUaInceLee7CZLAKqEkdbpzGB2JwCwRK31i9mBJnJLDCdUWJe+3WwZSIC ChJd79qgLp3JKLF10lI2kKESArISs395gcQlBH6zSTz6t4B5AqPQLCTHzkJyLIStJfH9UStQ nAPIlpc4eF4WIqwp8ezeJ3YIW1viybsLrAsY2VYxCuUmZuboZuaZ6SUWFOSk6iXn525iBEXP dDvRHYxnVlkdYhTgYFTi4X1ZMydCiDWxrLgy9xCjNAeLkjivhMnMCCGB9MSS1OzU1ILUovii 0pzU4kOMTBycUg2MuydevRaXd3/+JKcIYQPTixFT3m/uXaW/VHTZucsT3I/t4wksbjB3ulS3 OHpd7pukzes69n61ZnYxMBDtaFhanGNf438mRT5WOWfLYk2BiceZlefq7hE4xmn48feR5w6b Lia9lLgsGFh2eeZbMe89VZHXZrBdlPDgOsfP22+3Wfhnq9aUbWu5lFiKMxINtZiLihMB0c3P V38CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrEIsWRmVeSWpSXmKPExsUi2FD8SnfWvDkRBmu/WFjsOXSU2WLJk4fs Fp9272GxONe3ntli4/8PrA6sHmvmrWH0uHNtD5tH9+x/LB63/z1mDmCJ4rJJSc3JLEst0rdL 4Mr4dGYzU0GDZkX7oflMDYx7lLsYOTkkBEwk5vzsYYWwxSQu3FvPBmILCRxilGh6yAhi8woI SvyYfI8FxGYWCJP4vewTUA0XUE0Xk8TfMw/AmoUFxCXendnEDGKzCShLrJj/gb2LkQOo2Ubi 65kMiBI9iRP33oPNZBFQlTjaOo0JxOYUCJa4tX4xI8hMZoHpjBLz2q+DLRMRUJDoetfGCrFs JqPE1klL2UCGSgjISsz+5TWBUWAWkvtmIbkPwtaS+P6oFSjOAWTLSxw8LwsR1pR4du8TO4St LfHk3QXWBYxsqxgFilJzEiuN9BILCnJS9ZLzczcxgqOg0HkH47FlVocYBTgYlXh4X9TMiRBi TSwrrswFhhEHs5IIr8lMoBBvSmJlVWpRfnxRaU5q8SHGiYxAX05klhJNzgfGaF5JvKGJiYGJ sbGZsbG5iTkthZXEeT32z4gQEkhPLEnNTk0tSC2COYqJg1OqgbH5Y/DN80HHS3+FyJRLfy+e LuvoyvpWOXi51XYZnRtb+8zk/5bunPW12GGe+nUj8zvXq2TvnH3p9fHkxJxTpuUs15VWfRWx OhgTHvo5o8YwTv33t7XrVTVXnT7asZnrQMTRZX82hwhPSL4a93/WWu0Ko02tZw+1L8qIrnPI ePfz15fw8jlTuBmUWIozEg21mIuKEwF4Vrmn9QIAAA== X-Content-Filtered-By: Mailman/MimeDel 2.1.21 Subject: Re: UEFI LinuxLoader app usage X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Feb 2017 16:53:47 -0000 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT > On Feb 9, 2017, at 6:05 AM, Jun Nie wrote: > > 2017-02-09 21:44 GMT+08:00 Jun Nie : >> I am new to UEFI and trying to boot Linux with LinuxLoader app. But I >> cannot find detail information for below questions. Could anyone point >> out where I can find related information or example code? Thanks for >> your time! >> >> 1. How to feed command line to this app so that ProcessAppCommandLine() can >> process it? > I know this app support parsing command line from shell. I am seeking > method to launch this app from BDS directly without shell but cannot > find where to specify value to LoadedImage->LoadOptions so that this > app can get command line from it. > The mechanism in EFI is the NVRAM variable for the boot option. See EFI_LOAD_OPTION. https://github.com/tianocore/edk2/blob/master/MdePkg/Include/Uefi/UefiSpec.h#L2037 The UI to create boot variables is implementation dependent. When we designed it conceptually we thought the OS installer would be the primary entity writing the boot option as it was the entity installing the OS loader. I think there is a shell command to set boot options, I'm not sure if it lets you set the OptionalData in the EFI_LOAD_OPTION. Thanks, Andrew Fish >> >> 2. And how should I generate device path string for raw blockIO >> device with specified offset/size? UEFI 2.6 spec does not provide much >> information in 9.4.5 Media Device Path Rules. >> >> Thank you! >> Jun > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel