From patchwork Tue Aug 14 08:09:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Huang X-Patchwork-Id: 144150 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp4051113ljj; Tue, 14 Aug 2018 01:13:02 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwWFXGa87lKmjoC4aYDNtODqgheMSm48R2Jg5i6jLZA3YzCRSGFfX8KXlNzqOIMe/vJGffL X-Received: by 2002:a63:1262:: with SMTP id 34-v6mr20523557pgs.154.1534234381947; Tue, 14 Aug 2018 01:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534234381; cv=none; d=google.com; s=arc-20160816; b=Na8zMHwGx2o3nAXLbwK8n5MLXExC1oVVuX0XCrcWvbNkJmT12c2UyH1EkKg44588Ua ktB9kX/+ZGLyFkgFJ7JGQYeILoi4YRO08NHXMgFvnU72kMMUfdZPfjYozIcXSaBFrERM YDw1Ri9/lWnlaMPaZR2gZhKOyES5zhvfVLKsE3r1DDweTzSPjGpjMADxi3yLaRlgOvdS 6izlvq9bAMzTYL36Gj05/fISZzj2UgSQJ4AvcgKAc6u6+sBacF0/+VMDnfF4CyG1SAHl J2xxSndiw4aEDmYj/pYDjH87QR76J9vb2pdRUwSIVMSLYt0AIw59Q0C9yvC6hTiGh845 8TEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=9Y9HBNIIcCFvO1wsacyktCcgtbg52HbaAF1t250qX14=; b=H9Q+SaA5ybeOsFv2uLOtc45cfv8cbcl0y/kQf3dPR1OOYHBimne1apkTNb/NpDeB3Q aOSjNJlaO+J0Y/BeZCLIQueowKp7WYwfB7qVVjxcC7JOOFCZkQHjKlv6KlbfPXMPLvF8 kAXv9DOxOpj+MabC7OwmQ7MofbYrMA541crIgUaVf4nyMBS1YgAgXWYF+0MccK/BHMfI LF091hkQ+weeBPDemdHAn0GpKPHrTGcTi6CLUafAjV9WaAIrs67nTYlbcbsTvpJgrY5x EY7gtu1d8dA3QrMqXVPSsctD6kZ0ocLJoQCCwZtGN7JPpkNJqpJ7Q/pE3uGG7b4iNxp8 2h9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kinMCdNr; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [198.145.21.10]) by mx.google.com with ESMTPS id h9-v6si21575792pfh.240.2018.08.14.01.13.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 01:13:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kinMCdNr; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id AC066210F2561; Tue, 14 Aug 2018 01:11:51 -0700 (PDT) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2607:f8b0:4864:20::529; helo=mail-pg1-x529.google.com; envelope-from=ming.huang@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) (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 5923F210F2545 for ; Tue, 14 Aug 2018 01:11:50 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id y4-v6so8780141pgp.9 for ; Tue, 14 Aug 2018 01:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=XJSJZEXX2GiqXqzsQW2eyJkxM0M5Y/J5id1u/wYoqmU=; b=kinMCdNrFDc4fwcSdZtr8iuQpRhmTSyZVf9X+DN0nypFSZFGiGttSlezo1rnC6uOnA uxj+bR/H9Zgiw4F86GGF6Xlcf6sSO6cvrsFUh4O24J6ap5UrelmehrWL8A9nBJmCRBBQ saoG4i5UvHGaBRTP0AYmXISEIRMlWlND6OTUE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XJSJZEXX2GiqXqzsQW2eyJkxM0M5Y/J5id1u/wYoqmU=; b=ohcWbwfI0q89aF4WSfQcMh2XLoCZFLAmbG/DJINv/TFJmxApTR/7UUzsNl2FU7uJGm awk8+N8FL/lTxVhE/fcHQeFqnEcCLyq5vj6T/J3gzoieNnNi7aAEQz91j8QYXkEb1Wd/ 7qqudoUbgqjMMolpKY+KgMtdzq2g/FVHDNpVf7or9s99sNqejri4xuqR5B3h5t7LugWW N7CaqsbxoN/D43Z9RFLEUI7fZIM1SuCzWmHNTTJVPfGIu0KFZMCBZgWl5AS8JKuREyRr O+WIrK+nv1eE9IVAb397XCLhNfmSfiMm5WVtfTChRHqIVd5iM/VDUC14AbCQMKIrxT+w Xptw== X-Gm-Message-State: AOUpUlG5CxDyb7wLAbrnNIZC/U2Y8bK3G8WwyqhgabbXYWcosGO5lu9J y6+Q48qqqPJBHMcbWxm32Q9LHA== X-Received: by 2002:a62:11c4:: with SMTP id 65-v6mr22323905pfr.54.1534234309979; Tue, 14 Aug 2018 01:11:49 -0700 (PDT) Received: from localhost.localdomain ([120.31.149.194]) by smtp.gmail.com with ESMTPSA id h130-v6sm72905670pgc.88.2018.08.14.01.11.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Aug 2018 01:11:49 -0700 (PDT) From: Ming Huang To: leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org, graeme.gregory@linaro.org Date: Tue, 14 Aug 2018 16:09:02 +0800 Message-Id: <20180814080903.50466-43-ming.huang@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180814080903.50466-1-ming.huang@linaro.org> References: <20180814080903.50466-1-ming.huang@linaro.org> Subject: [edk2] [PATCH edk2-platforms v2 42/43] Hisilicon/D06: Add edk2-non-osi Shell components X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: huangming23@huawei.com, xinliang.liu@linaro.org, john.garry@huawei.com, zhangjinsong2@huawei.com, guoheyi@huawei.com, huangdaode@hisilicon.com, michael.d.kinney@intel.com, lersek@redhat.com, wanghuiqiang@huawei.com MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add Hisilicon Oem Shell libraries for some commands,such as biosupdate, getmac, setmac, provision, acpistartos, brdinfo, sfpinfo. biosupdate example: ifconfig -s eth2 static 192.168.2.68 255.255.255.0 192.168.2.1 biosupdate serverIp -u user -p password -f D06.fd -m master acpistartos example: ifconfig -s eth2 static 192.168.2.69 255.255.255.0 192.168.2.1 provision serverIp -u user -p password -f os\Image -a 0x80000 2 provision serverIp -u user -p password -f os\minifs.cpio.gz -a 0x07000000 2 acpistartos Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ming Huang --- Silicon/Hisilicon/HisiPkg.dec | 4 ++++ Platform/Hisilicon/D06/D06.dsc | 2 ++ 2 files changed, 6 insertions(+) -- 2.17.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Hisilicon/HisiPkg.dec b/Silicon/Hisilicon/HisiPkg.dec index 858b840a57..010d501914 100644 --- a/Silicon/Hisilicon/HisiPkg.dec +++ b/Silicon/Hisilicon/HisiPkg.dec @@ -39,6 +39,7 @@ gPlatformSasProtocolGuid = {0x40e9829f, 0x3a2c, 0x479a, {0x9a, 0x93, 0x45, 0x7d, 0x13, 0x50, 0x96, 0x5d}} gHisiPlatformSasProtocolGuid = {0x20e9829f, 0x3a2c, 0x479a, {0x9a, 0x93, 0x45, 0x7d, 0x13, 0x50, 0x96, 0x6d}} gHisiSnpPlatformProtocolGuid = {0x81321f27, 0xff58, 0x4a1d, {0x99, 0x97, 0xd, 0xcc, 0xfa, 0x82, 0xf4, 0x6f}} + gOemNicProtocolGuid = {0xb5903955, 0x31e9, 0x4aaf, {0xb2, 0x83, 0x7, 0x9f, 0x3c, 0xc4, 0x71, 0x66}} [Guids] gHisiTokenSpaceGuid = {0xc8bc553e, 0x12bf, 0x11e6, {0x97, 0x4f, 0x87, 0xf7, 0x7c, 0xfd, 0x52, 0x1d}} @@ -49,6 +50,8 @@ gHisiOemVariableGuid = {0xac62b9a5, 0x9939, 0x41d3, {0xff, 0x5c, 0xc5, 0x80, 0x32, 0x7d, 0x9b, 0x29}} gOemBootVariableGuid = {0xb7784577, 0x5aaf, 0x4557, {0xa1, 0x99, 0xd4, 0xa4, 0x2f, 0x45, 0x06, 0xf8}} gEfiHisiSocControllerGuid = {0xee369cc3, 0xa743, 0x5382, {0x75, 0x64, 0x53, 0xe4, 0x31, 0x19, 0x38, 0x35}} + HisiShellSampleHiiGuid = { 0x43859314, 0x82c1, 0x4592, { 0x8f, 0xf7, 0xc1, 0xbd, 0xf3, 0xb2, 0x0e, 0xd5 }} + HisiPlatformShellSampleHiiGuid = { 0x7924a5de, 0xc600, 0x40d5, { 0x91, 0x10, 0xf9, 0xc3, 0xe7, 0x25, 0x4d, 0x33 }} [LibraryClasses] PlatformSysCtrlLib|Include/Library/PlatformSysCtrlLib.h @@ -101,6 +104,7 @@ gHisiTokenSpaceGuid.PcdSlotPerChannelNum|0x0|UINT32|0x40000004 gHisiTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }|VOID*|0x30006554 + gHisiTokenSpaceGuid.PcdStartOsParameter|L""|VOID*|0x5000000 #FDT File Address gHisiTokenSpaceGuid.FdtFileAddress|0x0|UINT64|0x40000005 diff --git a/Platform/Hisilicon/D06/D06.dsc b/Platform/Hisilicon/D06/D06.dsc index 053ea894d5..544039e450 100644 --- a/Platform/Hisilicon/D06/D06.dsc +++ b/Platform/Hisilicon/D06/D06.dsc @@ -473,6 +473,8 @@ !if $(INCLUDE_DP) == TRUE NULL|ShellPkg/Library/UefiDpLib/UefiDpLib.inf !endif #$(INCLUDE_DP) + NULL|Silicon/Hisilicon/Library/HisiShellCmdLib/HisiShellCmdLib.inf + NULL|Silicon/Hisilicon/Hi1620/Library/HisiD06ShellCmdLib/HisiD06ShellCmdLib.inf gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF