Skip to content

Instantly share code, notes, and snippets.

@fensoft
Last active May 4, 2025 02:37
Show Gist options
  • Save fensoft/b27368b5588448bbe82eeb63c75edfac to your computer and use it in GitHub Desktop.
Save fensoft/b27368b5588448bbe82eeb63c75edfac to your computer and use it in GitHub Desktop.
install ubuntu 22 64 bits on 32 bits EFI
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
@fensoft
Copy link
Author

fensoft commented May 3, 2025

could you please post in patch format ? diff -u old new > patch

@mkostrikin
Copy link

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.

@mkostrikin
Copy link

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