From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.88, mailfrom: tien.hock.loh@intel.com) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by groups.io with SMTP; Thu, 26 Sep 2019 02:32:58 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Sep 2019 02:32:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,551,1559545200"; d="scan'208";a="191639435" Received: from pgsmsx111.gar.corp.intel.com ([10.108.55.200]) by orsmga003.jf.intel.com with ESMTP; 26 Sep 2019 02:32:51 -0700 Received: from pgsmsx110.gar.corp.intel.com ([169.254.13.150]) by PGSMSX111.gar.corp.intel.com ([169.254.2.128]) with mapi id 14.03.0439.000; Thu, 26 Sep 2019 17:27:30 +0800 From: "Loh, Tien Hock" To: "devel@edk2.groups.io" CC: "leif.lindholm@linaro.org" , "ard.biesheuvel@linaro.org" Subject: Problem with decompression on EDK2 Thread-Topic: Problem with decompression on EDK2 Thread-Index: AdV0S5mpp5W0swP1RrKeWWLNWUXC7A== Date: Thu, 26 Sep 2019 09:27:29 +0000 Message-ID: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiNzc0ZGI4ODctOGI0YS00Mjc2LTgyMGQtYmRlMWU2YjUwNGYyIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiT1Vqc3h1VG9zWk5iVDUyWTNtZnNDaGNaaXhHTDNSSXhTXC9wYytFc1lVNlwvVVNwSmdITkY3bnBGVU9hMTFYa3FsIn0= x-originating-ip: [172.30.20.205] MIME-Version: 1.0 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi I have an issue while porting a new platform to EDK2. After porting the Str= atix 10 platform (ARM) to EDK2 it works correctly. However, when I tried to= add more INF to the FDF file, it failed to decompress the image during boo= t time, log as below INFO: DDR: DRAM calibration success. INFO: Scrubbing ECC INFO: Init HPS NOC's DDR Scheduler. NOTICE: BL2: v2.1(debug):v2.1-15-g5880144-dirty NOTICE: BL2: Built : 14:02:01, Aug 22 2019 INFO: BL2: Doing platform setup INFO: BL2: Loading image id 3 INFO: Loading image id=3D3 at address 0xffe1c000 INFO: Image id=3D3 loaded: 0xffe1c000 - 0xffe22019 INFO: BL2: Loading image id 5 INFO: Loading image id=3D5 at address 0x50000 INFO: Image id=3D5 loaded: 0x50000 - 0x150000 NOTICE: BL2: Booting BL31 INFO: Entry point address =3D 0xffe1c000 INFO: SPSR =3D 0x3cd NOTICE: BL31: v2.1(release):v2.1-604-g3441952 NOTICE: BL31: Built : 15:32:55, Sep 25 2019 UEFI firmware (version 1.0 built at 15:15:26 on Sep 26 2019) Decompress Failed - Invalid Parameter ASSERT_EFI_ERROR (Status =3D Not Found) ASSERT [ArmPlatformPrePiUniCore] /nfs/png/disks/swuser_work_thloh/push/buil= d/edk2/ArmPlatformPkg/PrePi/PrePi.c(151): !EFI_ERROR (Status) This happens if I add more items to the image, and if I reduce the size of = the image, it works correctly again. This could be a clue to what could've = gone wrong. Does anyone have any ideas what might've gone wrong? I traced the decompression to LzmaDecode, and got lost in the code there. Thanks!