Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is the source code? #2

Open
Sturwandan opened this issue Jan 7, 2022 · 2 comments
Open

Where is the source code? #2

Sturwandan opened this issue Jan 7, 2022 · 2 comments

Comments

@Sturwandan
Copy link

It's quite strange to see a binary file inside a github repo without explanation.

Anyway, I have tried to take grub2 binary from some 32-bit distro and renamed it to bootia32.efi and it also worked, as far a I remember, so what is this built from anyway?

@uncledulgaria
Copy link

I too have been trying to establish the origins of this - one explanation I have seen is this :-
https://www.exefiles.com/en/efi/bootia32-efi/
If these explanations are correct, then it is proprietary code.

@goldstar611
Copy link

goldstar611 commented Aug 2, 2022

I don't know about the source for the binary here but I did find a blog with steps to compile grub for 32-bit booting. Check Doing it the hard way section of https://sturmflut.github.io/linux/ubuntu/2015/02/04/installing-ubuntu-on-baytrail-tablets-version-2/

[2024 edit]: In a Debian 12 slim image:

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  

sudo apt install gawk
sudo apt purge mawk

git clone git://git.savannah.gnu.org/grub.git --depth=1

./bootstrap
./configure --with-platform=efi --target=i386 --program-prefix=""
make
cd grub-core

mkdir -p /usr/local/share/locale
grub-mkstandalone --directory . -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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants