Skip to content

Instantly share code, notes, and snippets.

@goldstar611
Last active January 3, 2026 16:53
Show Gist options
  • Select an option

  • Save goldstar611/e591800e97d35b0a6c59bf060860f5e8 to your computer and use it in GitHub Desktop.

Select an option

Save goldstar611/e591800e97d35b0a6c59bf060860f5e8 to your computer and use it in GitHub Desktop.
Compiling grub2 for Intel Bay Trail devices (bootia32.efi)
# https://github.com/hirotakaster/baytail-bootia32.efi/issues/2
sudo apt install git bison libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev flex libfont-freetype-perl automake autotools-dev libfreetype6-dev texinfo
sudo apt install make autopoint pkg-config libtool-bin gettext wget python3 autoconf-archive
sudo apt install gawk
sudo apt purge mawk
git clone git://git.savannah.gnu.org/grub.git --depth=1
export LC_ALL=C.UTF-8
./bootstrap
./configure --with-platform=efi --target=i686-linux-gnu --host=aarch64-unknown-linux-gnu --program-prefix=""
make
mkdir -p /usr/local/share/locale
./grub-mkstandalone --directory=./grub-core -O i386-efi -o bootia32.efi
ls -alh bootia32.efi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment