From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (NAM02-DM3-obe.outbound.protection.outlook.com [40.107.95.59]) by mx.groups.io with SMTP id smtpd.web09.2498.1631575143219883911 for ; Mon, 13 Sep 2021 16:19:03 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@nvidia.com header.s=selector2 header.b=K6ZN7IO3; spf=permerror, err=parse error for token &{10 18 %{i}._ip.%{h}._ehlo.%{d}._spf.vali.email}: invalid domain name (domain: nvidia.com, ip: 40.107.95.59, mailfrom: jbrasen@nvidia.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ay9HokaF36loKR4E1LVdKFc1g7aT0se9rPxo4VjkgVCDVzaptHxA0VivnuHInjkP35tCFZEGHRmrKVtYvhIgDyc0rI3PkjJ+YHIf6Z8GIiYTrnuqAwjTTRy6XxQhZbS+zwQbeNH8Mr2NUFL5aoymonb2CVMVYUNP9tg5aXRNO/Y8hl5p4sjbRI3Il8HvoMtgf1JaX2JIcTDdMVlf2Y0gYaWnXbBnzoitNI8NabXoHk/ZgN7sVwYF4R9irqhBV6rUQJGCx0btJXN5MIPn9hWKF0tbmKtjsk5KAVoehtDrmUKY1W5lGyY9aG3zRxDPdqtMIH/eBTNV0JnxgmcQPbpCMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DPhBV+zD1OL8BONJz8UhSZVSjsXoLuPwo+adcTe19wE=; b=VtYFpUtvBFtRj9jdHXU5fjebZnKSalMP/H/7gW/o1dHEP47Qn2zNJ+G80cTwSnh7NdKJpAWfA8bZ9bpX/FwxHWpggmxoYsQ0A4y+Uakbfj2qRdEQK+W1xtiW2JEyOPvVGL/tZ4cvIOPQQfjwmdnkz1uiukJN4T0jsAZESL3Wqjopkm/ffDBFp4QoVGwC/N1A6gS38Mvlb2zhVv/x5RdA/w5zbrpRJ3p83Kr9qgYvBAN/uh55fvrtc8fJdv/aSU94o/4qX01XQ8lj6hnGgR0Y6szmBuy6uBlosokRG4w+p8jPbEi8g7+5+AZTqVE0WBZGnxOsKve02dTCTQB213rfvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.35) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DPhBV+zD1OL8BONJz8UhSZVSjsXoLuPwo+adcTe19wE=; b=K6ZN7IO3rh3fPF8/eyOa02LGZhq12UjwKCBHdLX62TQusHIwIU/Gh3Bhoeod4ObB0Ww6ao0esnI57N08GQFNmJ0TKsIQ3wh3SCs9LtqY5lOOu8hbj02WpS5DLur0aK+rusA1jEhyKrxwFKzHLe6kMascvrnl8WKl/xKINcX3ZCKCmZ8lGgP3Hn7T3DdchSI1eLoma8t5W+t0fHvlJKMa8uiCdtvvzLioNelfvQYwHcUmql8Qk+iNHbFd95eb4wC/vu+aVaK2HebOOU7o3TQC9VJeKWYwJrrGOyDgwYtkDgViPUe/TtihSHArh1jTsrdgK+wIXTDMo5xNBSvrX37FHQ== Received: from MW2PR2101CA0008.namprd21.prod.outlook.com (2603:10b6:302:1::21) by DM6PR12MB3339.namprd12.prod.outlook.com (2603:10b6:5:119::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.16; Mon, 13 Sep 2021 23:18:59 +0000 Received: from CO1NAM11FT037.eop-nam11.prod.protection.outlook.com (2603:10b6:302:1:cafe::ed) by MW2PR2101CA0008.outlook.office365.com (2603:10b6:302:1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.1 via Frontend Transport; Mon, 13 Sep 2021 23:18:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.35) smtp.mailfrom=nvidia.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.35 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.35; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.35) by CO1NAM11FT037.mail.protection.outlook.com (10.13.174.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4500.14 via Frontend Transport; Mon, 13 Sep 2021 23:18:59 +0000 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 13 Sep 2021 23:18:58 +0000 Received: from build-jbrasen-20210913T102602203.nvidia.com (172.20.187.5) by mail.nvidia.com (172.20.187.18) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 13 Sep 2021 23:18:58 +0000 From: "Jeff Brasen" To: CC: , , , , Jeff Brasen Subject: [PATCH v3 0/4] AndroidBootImgLib improvements Date: Mon, 13 Sep 2021 23:18:47 +0000 Message-ID: X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-NVConfidentiality: public Return-Path: jbrasen@nvidia.com X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4a198e32-2773-4e36-dd6f-08d9770cddf6 X-MS-TrafficTypeDiagnostic: DM6PR12MB3339: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z06cpStfnhfs0FNfsJL+fcRjbBmerG9NnMuicBJQe018GsOF+k1WhnT0bN6ry5xAnj+duWER9Fiu76MOBlQ069Mz6GrgYXZmey7P5kgB3mTTs1HokYLe3M42hhCWDIIQCo6gFS2n8m6gWlKUctzLtNULLH/yoEc3DKqffED8a3wpYZ687QK6KZhynR53uT7gpjf6SZxzxJES8EYi7EpVgnat0U4+V3+Q3jxx0vkZal2fNfUjGe2p/OsvuY5NLauuLRkCOB+fbeVows7f2V3QpZmgyYPlHx2ZFCAQ2+JKxKaiRMja/jxeCllSxY14mhAP07I7sl4JNhtqhugl6tzrem4PYlLRRI+mEHC9HSMzv3ChbdInYSFf8G3FKWtl1ABB8QZSnO9UfwTvjG6vZXyWPAk2WWCCgKhsrED9BUWjEj4PdQkjQpCiTxIfyNue/y9VtP5bJczwAcovpMsPg8RlH0WuQNAZl8+W/kgaBpn+KUoGE9F28cPpz0jPi2QhH4kMB+dQz+IPlAcqNOJVmB6R6txmYHi8on5MXMeVxbiT0//K67HaysfTLscQ3HDoJDekLMo/OIBhDEyQ1x4Zs3Mn7Rzp0bOEGc5oltm5eA1Bn4QV7eOIO428MhIx2fcYbiQseR5wRryIvxdmB0CYoSwt8zgMPaSGCAw0DIRVkwlBuBKzOTO8GmgjvVXT8eeXNTsNN0ym9KOWOhnNwdue2OxebA== X-Forefront-Antispam-Report: CIP:216.228.112.35;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid04.nvidia.com;CAT:NONE;SFS:(4636009)(39860400002)(136003)(396003)(346002)(376002)(46966006)(36840700001)(8936002)(83380400001)(426003)(36860700001)(7696005)(47076005)(82310400003)(107886003)(6916009)(6666004)(2906002)(186003)(2616005)(82740400003)(36756003)(70586007)(4744005)(336012)(86362001)(356005)(70206006)(316002)(54906003)(7636003)(8676002)(36906005)(26005)(478600001)(5660300002)(4326008);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Sep 2021 23:18:59.5812 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4a198e32-2773-4e36-dd6f-08d9770cddf6 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.35];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT037.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3339 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain Added support for using loadfile2 approach for passing ramdisk to linux. Created patch series for general error handling improvments based on review feedback. If ACPI tables are in system table or PCD is defined the LoadFile2 method of passing initrd will be used. [v3] -Code review cleanup -Removed duplicate header file -Added change to allow FDT to install if UpdateDtb function is not defined -Added specific ACPI check -Moved install functions to subfunctions [v2] -Added review feedback -General improvements to error handling [v1] - Intial revision Jeff Brasen (4): EmbeddedPkg: Remove duplicate libfdt.h include EmbeddedPkg: AndroidBootImgBoot error handling updates EmbeddedPkg: Install FDT if UpdateDtb is not present EmbeddedPkg: Add LoadFile2 for linux initrd EmbeddedPkg/EmbeddedPkg.dec | 1 + .../AndroidBootImgLib/AndroidBootImgLib.inf | 4 + .../AndroidBootImgLib/AndroidBootImgLib.c | 275 +++++++++++++++--- 3 files changed, 233 insertions(+), 47 deletions(-) --=20 2.17.1