Bug 11967

Summary: creating root file systems using 'elf' failed with error convert_magic 00000000 != a5a5a5a5
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jose Perez C <jose.perez.carranza>
Component: coreAssignee: Saul Wold <sgw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod
Version: 2.4   
Target Milestone: 2.5 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 10745    
Attachments:
Description Flags
elf failure none

Description Jose Perez C 2017-08-23 16:01:29 UTC
Created attachment 3950 [details]
elf failure

"elf" image compression failed 

Steps to reproduce
1. Add the following variables to "conf/local.conf"
IMAGE_FSTYPES += "elf"
2. Compile
$ bitbake core-image-minimal

Expected result:
The compilation process should be performed successfully and the generated compressed image should be at: "~/tmp/deploy/images/machine/"

Actual result:
The compilation image process failed getting the following error message:

Internal error convert_magic 00000000 != a5a5a5a5

Full log attached 

Bug previously opened about elf was Bug 11590
Comment 2 Jose Perez C 2017-12-01 16:53:37 UTC
Test done in current master and the problem is still present 

commit ed48e7b4f0d11bf20e0be44d8403fc16dd6d4411

| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_image_elf
| Internal error convert_magic 00000000 != a5a5a5a5
Comment 3 Saul Wold 2017-12-04 22:43:54 UTC
It's actaully back because the binutils where updated again and the special header code needs to be fixed again.

I will be completely removing the ELF image type as it's be deprecated by the upstream coreboot.
Comment 4 Jose Perez C 2017-12-05 13:30:25 UTC
(In reply to comment #3)
> It's actaully back because the binutils where updated again and the special
> header code needs to be fixed again.
> 
> I will be completely removing the ELF image type as it's be deprecated by
> the upstream coreboot.

Agree.. Test case is using all the available types defined on IMAGE_TYPES, so the ELF type should be removed, after that change the patch [1] with the test can be sent to the list. 


http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=jperez/bug10745-full&id=fc68679515bf0a4f71344074a84f4b8e0e902742
Comment 5 Saul Wold 2017-12-11 00:56:30 UTC
Patches posted to remove ELF Image type!