Skip to content

Problems building grub2 bootloader for Zephyr #31289

@jaslob

Description

@jaslob

I want to use Zephyr as a User VM in ACRN. Therefore I followed the tutorials in https://projectacrn.github.io/latest/tutorials/using_zephyr_as_uos.html
I followed the zephyr getting started guide on my Ubuntu and when I want to build the grub2 bootloader image in step 2 I get the following message:

jas@ubuntu:~/zephyrproject/zephyr$ ./boards/x86/common/scripts/build_grub.sh x86_64
~/zephyrproject/zephyr/boards/x86/common/scripts/grub ~/zephyrproject/zephyr
~/zephyrproject/zephyr/boards/x86/common/scripts/grub/src ~/zephyrproject/zephyr/boards/x86/common/scripts/grub ~/zephyrproject/zephyr
HEAD is now at 2a2e10c1b Release 2.04
Removing INSTALL.grub
Removing build-aux/
~/zephyrproject/zephyr/boards/x86/common/scripts/grub ~/zephyrproject/zephyr
~/zephyrproject/zephyr/boards/x86/common/scripts/grub/src ~/zephyrproject/zephyr/boards/x86/common/scripts/grub ~/zephyrproject/zephyr
./bootstrap: 470: autoconf: not found
./bootstrap: Error: 'autoconf' not found
./bootstrap: 470: automake: not found
./bootstrap: Error: 'automake' not found

./bootstrap: Please install the prerequisite programs
Gnulib not yet bootstrapped; run ./bootstrap instead.
./boards/x86/common/scripts/build_grub.sh: line 37: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
./boards/x86/common/scripts/build_grub.sh: line 41: ./grub-mkimage: No such file or directory
~/zephyrproject/zephyr/boards/x86/common/scripts/grub ~/zephyrproject/zephyr
cp: cannot stat 'src/grub_x86_64.efi': No such file or directory

I'd be thankful for help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions