Giter Site home page Giter Site logo

Comments (3)

mikolasan avatar mikolasan commented on June 29, 2024

@xuguozhen , Have you compiled the kernel as an UEFI image enabling CONFIG_EFI_STUB (so called The EFI Boot Stub)?

from pesign.

flaming-toast avatar flaming-toast commented on June 29, 2024

Hi, I have also encountered this same error with pesign on arm64. It seems that pesign is not able to handle the gzip compressed version of the vmlinuz image on arm64. Kernel was indeed compiled with CONFIG_EFI_STUB=y.

# file vmlinuz
vmlinuz: gzip compressed data, was "Image", last modified: Wed Sep 15 13:47:17 2021, max compression, from Unix, original size 73983984
# /usr/bin/pesign -P -h -i vmlinuz
pesign: could not parse signature list in EFI binary
# mv vmlinuz vmlinuz.gz # placate gunzip from complaining about lack of .gz extension
# gunzip vmlinuz.gz
# file vmlinuz
vmlinuz: MS-DOS executable
# /usr/bin/pesign -P -h -i vmlinuz
vmlinuz 0821930c2b81956d7396bd8fac51eadb937a484a018f4654c386f267505aa525

If I'm reading arch/arm64/Makefile correctly, it appears the arm64 kernel Image is gzip compressed by default, and the resulting compressed Image.gz is installed as vmlinuz. The pesign command only works when the kernel is decompressed, and we get the "pesign: could not parse signature list in EFI binary" when we pass in the gzip compressed vmlinuz image. I do wonder why it has no problem with the x86 vmlinuz image though..

from pesign.

frozencemetery avatar frozencemetery commented on June 29, 2024

#64 (comment) is correct about what's going on here.

from pesign.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.