From mboxrd@z Thu Jan 1 00:00:00 1970 Subject: Problem with decompression on EDK2 To: devel@edk2.groups.io From: "Loh, Tien Hock" X-Originating-Location: MY (192.198.146.173) X-Originating-Platform: Windows Chrome 76 User-Agent: GROUPS.IO Web Poster MIME-Version: 1.0 Date: Thu, 26 Sep 2019 02:30:46 -0700 Message-ID: <11938.1569490246605675975@groups.io> Content-Type: multipart/alternative; boundary="UR7h1zR933sD2r3cle0f" --UR7h1zR933sD2r3cle0f Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi I have an issue while porting a new platform to EDK2. After porting the St= ratix 10 platform (ARM) to EDK2 it works correctly. However, when I tried t= o add more INF to the FDF file, it failed to decompress the image during bo= ot 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 bui= lt 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/bui= ld/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! --UR7h1zR933sD2r3cle0f Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable

Hi

 

I have an issue while porting a new platform to = EDK2. After porting the Stratix 10 platform (ARM) to EDK2 it works correctl= y. However, when I tried to add more INF to the FDF file, it failed to deco= mpress the image during boot time, log as below

INFO: &n= bsp;  DDR: DRAM calibration success.

INFO: &n= bsp;  Scrubbing ECC

INFO: &n= bsp;  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: &n= bsp;  BL2: Doing platform setup

INFO: &n= bsp;  BL2: Loading image id 3

INFO: &n= bsp;  Loading image id=3D3 at address 0xffe1c000

INFO: &n= bsp;  Image id=3D3 loaded: 0xffe1c000 - 0xffe22019

INFO: &n= bsp;  BL2: Loading image id 5

INFO: &n= bsp;  Loading image id=3D5 at address 0x50000

INFO: &n= bsp;  Image id=3D5 loaded: 0x50000 - 0x150000

NOTICE: = BL2: Booting BL31

INFO: &n= bsp;  Entry point address =3D 0xffe1c000

INFO: &n= bsp;  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 buil= t 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/build/edk2/ArmPlatformPkg/PrePi/PrePi.c(151): !EFI_E= RROR (Status)

 

This happens if I add more items to the image, a= nd 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 migh= t've gone wrong?

I traced the decompression to LzmaDecode, and go= t lost in the code there.

 

Thanks!

 

--UR7h1zR933sD2r3cle0f--