<div dir="ltr"><div>Hi Michael,</div><div><br></div><div>I am working on two packaging issues with Fedora and CKI that I am hoping you can give me some guidance on.</div><div><br></div><div>1 - Fedora has always packaged an eu-strip'd vmlinux file for powerpc.  The other arches we support used native compressed images.  I was looking into using powerpc's zImage (pseries) binary to remove the powerpc workarounds in our rpm spec file.  <br></div><div><br></div><div>However, the rpmbuild fails because it can't find a build-id with eu-readelf -n zImage.  Sure enough the build-id is found in vmlinux and vmlinux.stripped but disappears with vmlinux.stripped.gz.  I had hoped arch/powerpc/boot/addnote would stick it back in but it doesn't (I am ignorant of how addnote works).</div><div><br></div><div>eu-readelf -n  data</div><div>vmlinux:<br><br>Displaying notes found in: .notes<br>  Owner                Data size        Description<br>  GNU                  0x00000014       NT_GNU_BUILD_ID (unique build ID bitstring)<br>    Build ID: b4c026d72ead7b4316a221cddb7f2b10d75fb313<br>  Linux                0x00000004       func<br>   description data: 00 00 00 00<br>  Linux                0x00000001       OPEN<br>   description data: 00<br>  PowerPC              0x00000004       NT_VERSION (version)<br>   description data: 01 00 00 00<br><br>zImage:<br><br>Displaying notes found at file offset 0x00000158 with length 0x0000002c:<br>  Owner                Data size        Description<br>  PowerPC              0x00000018       Unknown note type: (0x00001275)<br>   description data: ff ff ff ff 02 00 00 00 ff ff ff ff ff ff ff ff ff ff ff ff 00 00 40 00<br><br>Displaying notes found at file offset 0x00000184 with length 0x00000044:<br>  Owner                Data size        Description<br>  IBM,RPA-Client-[...] 0x00000020       Unknown note type: (0x12759999)<br>   description data: 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 28 00 00 00 01 ff ff ff ff 00 00 00 00 00 00 00 01</div><div><br></div><div>Is this something that can be addressed?  Or should I/we expect the build-id to never make it into the zImage and just continue with our current vmlinux process?</div><div><br></div><div><br></div><div>2 - CKI builds kernels using 'make targz-pkg'.  The arches we support (x86_64, s390, aarch64) provide compressed binaries to package using KBUILD_IMAGE or a specific entry in scripts/package/buildtar.  As a result, because powerpc doesn't have a KBUILD_IMAGE variable defined, the script builds vmlinx and cp's that to vmlinux-kbuild.  The problem with powerpc is that vmlinux for us is huge ( >256MB) and cp'ing that to vmlinux-kbuild occupies > 512MB of /boot and our distro runs out of disk space on that partition.</div><div><br></div><div>I was hoping to add a patch to arch/powerpc/Makefile that defines KBUILD_IMAGE:=$(boot)/zImage (mimicing arch/s390), which I believe would solve our problem.  However, that circles back to our first problem above.</div><div><br></div><div>Thoughts?  Help?</div><div><br></div><div>Cheers,</div><div>Don</div><div><br></div><div><br></div><div><br></div><div><br></div></div>