[Buildroot] minnowboard_max_defconfig, changes to build for 32-bit, fails in the end when installing grub

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Aug 28 07:05:45 UTC 2017


Hello,

On Sun, 27 Aug 2017 19:57:48 +0800, Bin Meng wrote:

> I wanted to build a 32-bit rootfs for minnowboard max, so I started by:
> 
> $ make minnowboard_max_defconfig
> $ make menuconfig
> change "Target options" -> "Target Architecture" to i386, save and exit
> $ make
> 
> It fails in the end.
> 
> mkdir -p /buildroot/output/images/
> /buildroot/output/host/bin/grub-mkimage -d
> /buildroot/output/host/lib/grub/i386-pc -O i386-pc -o
> /buildroot/output/images/grub.img -p "(hd0,msdos1)/boot/grub"  boot
> linux ext2 fat squash4 part_msdos part_gpt normal efi_gop
> /buildroot/output/host/bin/grub-mkimage: error: cannot open
> `/buildroot/output/host/lib/grub/i386-pc/efi_gop.mod': No such file or
> directory.
> package/pkg-generic.mk:308: recipe for target
> '/buildroot/output/build/grub2-2.02/.stamp_target_installed' failed
> make: *** [/buildroot/output/build/grub2-2.02/.stamp_target_installed] Error 1
> 
> Am I missing anything?

Yes: you're changing a defconfig to a different configuration, so
obviously, you can get build failures.

By switching to i386, grub2 is no longer configured with
BR2_TARGET_GRUB2_X86_64_EFI (as specified in the defconfig), but with
BR2_TARGET_GRUB2_I386_PC. But BR2_TARGET_GRUB2_BUILTIN_MODULES still
contains efi_gop, which isn't built because you're no longer building
an EFI-capable grub2.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list