From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-x231.google.com (mail-wr0-x231.google.com [IPv6:2a00:1450:400c:c0c::231]) (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 415BD81F52 for ; Thu, 9 Feb 2017 06:58:57 -0800 (PST) Received: by mail-wr0-x231.google.com with SMTP id i10so85604292wrb.0 for ; Thu, 09 Feb 2017 06:58:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=40YtvPuO9uy5eSBTaFDq6gNH2Qhb+wUOMnpIClos/Q8=; b=eNxGlUrlVgSUCT1uGZJAo/klqC82SSnF/LDTUPoFezC/3/eVLIs66coE3MT4gd1vBI aKCGRasOvmy2jULAEU136mhZBS0t+pOo9pEy4b4KZYvw6uOmkUSJzskAm86XMarbDtU4 swJt0CpcMSsGSREjKL1a89uwR4v0F12vBz6pw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=40YtvPuO9uy5eSBTaFDq6gNH2Qhb+wUOMnpIClos/Q8=; b=Bo8EmGzA2XS0MaQIfbDWs9y4neOj/TIgNvDSHVVti4cHj9gcRgoqs385+EktIFz0dt gjiUiJwtE9HVQZ49JIZyqKcZILUPqawCgxw96ipLU59auytfCSb83d4Pic+YCl8bpoc9 mTDc4yuf5c985XP0HZp9t1srRZfnPL3T3P5wnFVhgwhKRWp4kIo6fshp+GPFp/5suP7F z9xdS8FAyfEP0+4bb2TTspsI5Oi7taNUsePpiKMn7TZtlOn+xSugshq9TbAtFkruuraS 6swAidEnNgqh6oLFajrGA7cQhN5dc5xhWc8+1u+jkC+xsDNBkZCHlYpYQX9zU5JX1qCd m0Hw== X-Gm-Message-State: AMke39lhGATP7hLQ9BWOL1BNd3IbcvsvlKvZ2U/f0bS6tWfiv1M3vj3tGrjcExgGx/Lua/9y X-Received: by 10.223.155.152 with SMTP id d24mr3239086wrc.17.1486652335478; Thu, 09 Feb 2017 06:58:55 -0800 (PST) Received: from bivouac.eciton.net (bivouac.eciton.net. [2a00:1098:0:86:1000:23:0:2]) by smtp.gmail.com with ESMTPSA id q12sm9277080wmd.8.2017.02.09.06.58.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Feb 2017 06:58:54 -0800 (PST) Date: Thu, 9 Feb 2017 14:58:53 +0000 From: Leif Lindholm To: Jun Nie Cc: linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, Ronald.Cron@arm.com Message-ID: <20170209145853.GD16034@bivouac.eciton.net> References: MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) 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 14:58:57 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Jun, On Thu, Feb 09, 2017 at 10:05:50PM +0800, 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 LinuxLoader was a severely unreliable non-UEFI-compliant component which was deleted from the edk2 repository in November last year. Unless your Linux kernel is older than version 3.16 (64-bit) or 4.5 (32-bit), there is no reason to use it. And if it is, it is worth looking for alternative solutions. > > 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. You say raw blockIO device - what does this mean? If the system produces a raw block device from something like an eMMC, then I would recommend putting a partition table on it, and finding the desired offset from this. Best Regards, Leif