From patchwork Thu Aug 7 21:29:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laszlo Ersek X-Patchwork-Id: 35070 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 50AEF21137 for ; Thu, 7 Aug 2014 21:30:11 +0000 (UTC) Received: by mail-oi0-f71.google.com with SMTP id e131sf16478727oig.10 for ; Thu, 07 Aug 2014 14:30:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:references:in-reply-to:subject:precedence:reply-to :list-id:list-unsubscribe:list-archive:list-post:list-help :list-subscribe:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type; bh=Punqbu+RXWyCGmmQhKhAfAGuT+ARiEHIXntDB6jQJgI=; b=Ass2JVWNePUU3snU5reZjn2yiO9gbZBdTMtEiTTy5H5Ketqx3kolpG3biR1J/N4NuZ aNsnEpKgwrrXCDffxBKRTZ5JV0oF/+SI9RhlryKiI2BKOJm2TZOKYKSl3MYXZdUZQmXW gGvjlZ98july8Rl1L31Jt7u4BEhmc/jruCscUQoOajmCRJMbTd4WWARSPHGtE36uJlCF G/iah8P1nHO7J1yTtfScezJa9W1ur/wOGixL1l4OE+qKO7QrGTEwsoA5t05bQ5O+OMV4 lfmad6AYb9FXGh7x6fyFLlsbFvByq5gfpZTxDcPBPs0XG+580aNR16SsJknyMcwKK9P5 2aUA== X-Gm-Message-State: ALoCoQkuMxz5MpMryP1DAFRh8wGoJ4tQRZt86NHmDgQxjuv4SLwBpaByIzfYbU4ZGhOJlYwKl9hv X-Received: by 10.50.43.168 with SMTP id x8mr182482igl.4.1407447010833; Thu, 07 Aug 2014 14:30:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.23 with SMTP id v23ls287550qge.51.gmail; Thu, 07 Aug 2014 14:30:10 -0700 (PDT) X-Received: by 10.221.6.201 with SMTP id ol9mr5106216vcb.2.1407447010656; Thu, 07 Aug 2014 14:30:10 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id n4si2224919vda.71.2014.08.07.14.30.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Aug 2014 14:30:10 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so7034895vcb.25 for ; Thu, 07 Aug 2014 14:30:10 -0700 (PDT) X-Received: by 10.52.61.136 with SMTP id p8mr3871032vdr.15.1407447010368; Thu, 07 Aug 2014 14:30:10 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp61139vcb; Thu, 7 Aug 2014 14:30:09 -0700 (PDT) X-Received: by 10.50.119.105 with SMTP id kt9mr407047igb.20.1407447008787; Thu, 07 Aug 2014 14:30:08 -0700 (PDT) Received: from lists.sourceforge.net (lists.sourceforge.net. [216.34.181.88]) by mx.google.com with ESMTPS id h8si12952829icv.33.2014.08.07.14.30.08 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 07 Aug 2014 14:30:08 -0700 (PDT) Received-SPF: pass (google.com: domain of edk2-devel-bounces@lists.sourceforge.net designates 216.34.181.88 as permitted sender) client-ip=216.34.181.88; Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XFVG3-0001fJ-DR; Thu, 07 Aug 2014 21:29:59 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1XFVG0-0001f0-K9 for edk2-devel@lists.sourceforge.net; Thu, 07 Aug 2014 21:29:56 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=lersek@redhat.com; helo=mx1.redhat.com; Received: from mx1.redhat.com ([209.132.183.28]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) id 1XFVFy-0001hW-Kh for edk2-devel@lists.sourceforge.net; Thu, 07 Aug 2014 21:29:56 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s77LTlfK002765 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 7 Aug 2014 17:29:48 -0400 Received: from lacos-laptop-7.usersys.redhat.com (ovpn-116-42.ams2.redhat.com [10.36.116.42]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s77LTkHU019458 for ; Thu, 7 Aug 2014 17:29:47 -0400 Message-ID: <53E3EFCA.2050604@redhat.com> Date: Thu, 07 Aug 2014 23:29:46 +0200 From: Laszlo Ersek User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: edk2-devel@lists.sourceforge.net References: , , , , , , , , , , <53E222E1.80405@redhat.com>, , , , , , <53E292BE.7080107@redhat.com>, , , , , , , , , <84B1D872-06A2-4305-8D3A-F828FB9B6B24@apple.com>, , , , , <53E34705.5070508@redhat.com>, , , , , , , , <53E3B4CD.3080109@redhat.com>, , , , , , <53E3DB77.6060204@redhat.com>, , , , <53E3E21E.1080401@redhat.com>, , <53E3E958.4010807@redhat.com> In-Reply-To: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Spam-Score: -2.2 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain X-Headers-End: 1XFVFy-0001hW-Kh Subject: Re: [edk2] =?utf-8?q?UEFI_Shell_Command_=22ifconfig=22_Error=E2=80=8F?= X-BeenThere: edk2-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: edk2-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: edk2-devel-bounces@lists.sourceforge.net X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lersek@redhat.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 On 08/07/14 23:05, Chris Cuthbert wrote: > This is ARM from edk2. All open source, nothing proprietary. Ah. Yes. I recall that. Actually I have a downstream hack that is related. I'll attach it just as illustration (the other tree patches just increase the convenience). The point is (IIRC!) that ARM BDS does not call BdsConnectAllDrivers() before reaching the boot menu. I guess that's probably the issue. In my case I wanted to auto-generate a boot option (for the boot menu) for whatever disk partition that looked like an EFI System Partition. The disk in question that I had was a virtio-blk disk, and the patch didn't work initially. The reason was that at that point the disk had not been connected yet. So, IMHO you can solve this by inserting a call to BdsConnectAllDrivers() in a strategic point. You should probably find that point yourself; for me it was DefineDefaultBootEntries(). (Note: I haven't tested this patch in a while, but the above was certainly the case when I last run it.) Laszlo ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk >From be53ae2b975685a4a6f665e737fffe5460dc2ce7 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 9 Jan 2014 01:37:44 +0100 Subject: [PATCH 4/4] ArmPlatformPkg: FVP: set boot type to EfiApp, auto-detect boot path Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek --- ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.dsc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.dsc b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.dsc index 7cc4e27..ea20fcc 100644 --- a/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.dsc +++ b/ArmPlatformPkg/ArmVExpressPkg/ArmVExpress-FVP-AArch64.dsc @@ -164,12 +164,11 @@ # ARM OS Loader # # Versatile Express machine type (ARM VERSATILE EXPRESS = 2272) required for ARM Linux: - gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from SemiHosting" - gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/Image" - gArmPlatformTokenSpaceGuid.PcdDefaultBootInitrdPath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/filesystem.cpio.gz" - gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"console=ttyAMA0 earlyprintk=pl011,0x1c090000 debug user_debug=31 loglevel=9" - gArmPlatformTokenSpaceGuid.PcdDefaultBootType|2 - gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)/fdt.dtb" + gArmPlatformTokenSpaceGuid.PcdDefaultBootDescription|L"Linux from first ESP" + gArmPlatformTokenSpaceGuid.PcdDefaultBootDevicePath|L"" + gArmPlatformTokenSpaceGuid.PcdDefaultBootArgument|"" + gArmPlatformTokenSpaceGuid.PcdDefaultBootType|0 + gArmPlatformTokenSpaceGuid.PcdFdtDevicePath|L"" # Use the serial console (ConIn & ConOut) and the Graphic driver (ConOut) gArmPlatformTokenSpaceGuid.PcdDefaultConOutPaths|L"VenHw(D3987D4B-971A-435F-8CAF-4967EB627241)/Uart(38400,8,N,1)/VenPcAnsi();VenHw(407B4008-BF5B-11DF-9547-CF16E0D72085)" -- 1.8.3.1