Last active
May 4, 2025 02:37
-
-
Save fensoft/b27368b5588448bbe82eeb63c75edfac to your computer and use it in GitHub Desktop.
install ubuntu 22 64 bits on 32 bits EFI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
copy https://github.com/hirotakaster/baytail-bootia32.efi/blob/master/bootia32.efi to /EFI/BOOT | |
after installing ubuntu: | |
sudo passwd ubuntu | |
sudo apt update | |
sudo apt install openssh-server | |
ssh to your computer, then: | |
sudo mount /dev/mmcblk1p2 /mnt | |
sudo mount --bind /dev /mnt/dev | |
sudo mount -t proc /proc /mnt/proc | |
sudo mount --bind /run /mnt/run | |
sudo mount --bind /sys /mnt/sys | |
sudo modprobe efivars | |
sudo chroot /mnt | |
in chroot: | |
mount -t devpts devpts /dev/pts | |
mkdir -p /boot/efi | |
mount /dev/mmcblk1p1 /boot/efi/ | |
apt update | |
apt-get remove --allow-remove-essential shim-signed | |
apt install grub-efi-ia32 grub-efi-ia32-bin | |
rm -rf /boot/efi/EFI/ubuntu | |
grub-install -v --target=i386-efi --efi-directory=/boot/efi | |
update-grub | |
exit | |
reboot |
could you please post in patch format ? diff -u old new > patch
Almost forgot, easiest part was to boot Ubuntu Server Installer, so rufus do boot USB from ISO and upload UEFI32 files from recents 32bit releases.
could you please post in patch format ?
diff -u old new > patch
Sorry, it was VIM edited live, so original files need to be fetched from dist and so on. More important, that files are in squash and snap, so cant be fixed upfront, it must be edited durting install process. Path and file name are posted, so it should not be an issue to find corresponding place and change correspondingly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have x5-Z8300 with UEFI32 MiniPC, so I wanted to setup Ubuntu 24,04 Server x86_64 ofc. Instead of suggested commands, which worked but installation was half completed, so I was looking for more complete option, What I did: I found where grub-efi got installed, I fixed the code so for amd64 arch scripts install ia32 packages. To be able to edit files, I coplied a folder from snap and mount bind it back. To make sure, I had anough time for all this, I kill -STOP rsync during server install steps, and kill -CONT rsync to resume the process. As a result I have Installation complete!
mount.sh
patch in
curthooks.py
patch in
install_grub.py
I hope idea in general is quite simple and good luck in using old devices for the newer Ubuntu OS