Skip to content

Unable to build unified kernel on Ubuntu 20.10 aarch64 #1

@zmanji

Description

@zmanji

On the latest Ubuntu release (20.10) I did the following:

  1. Install all of the build dependencies.
  2. Built the boot stub by running:
cmake -GNinja -DLOADER_TARGET=aarch64 ..
ninja
  1. Tried to build the image with build_image like this:
./zloader/build/tools/build_image -o foo-unsigned.efi -s ./zloader/build/zloaderaa64.efi.stub -l /boot/vmlinux-5.13.0-19-generic -i /boot/initrd.img-5.13.0-19-generic -c ./cmdline.txt -O /etc/os-release 

The above step fails with:

build_image: /root/zloader/tools/build_image.c:468: int main(int, char **): Assertion `filesize < mem.size' failed.

The following files are located in the attached zips for your reference:

  • The built zloaderaa64.efi.stub
  • The kernel image vmlinux-5.13.0-19-generic
  • The initrd initrd.img-5.13.0-19-generic
  • The cmdline cmdline.txt
  • The os-release file os-release

rest.zip
kernel.zip
initrd.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions