Yes!
Did it. Thanks to the previous efforts of many people who thought of this before me, I was able to piece together several tutorials to get it working.
All of this is assuming MacOS is removed or RAM based operation with Tiny Core, i wasn't interested in a dual boot set up.
These old Macbooks have a 32bit EFI but the CPU is 64bits, so a 32bit bootloader is needed to load a 64bit OS.
First, how to set up a EFI USB and download the bootia32.efi file:
https://mesom.de/efi32boot/index.htmlIn a nutshell, create a MBR disk with a primary fat32 partition with the folder structure.
I made my partition 100MB just to load Tiny Core but you can make another partition in EXT to hold any other distro.
./efi
./efi/boot
./efi/boot/bootia32.efi
./boot
./boot/grub
./boot/grub/grub.cfg
./core
./core/corepure64.gz
./core/vmlinuz64
grub.cfg content, replace the UUID placeholder for the actual partition's UUID
insmod part_gpt
insmod part_msdos
insmod fat
insmod ext2
terminal_output console
menuentry "tc12x64" {
search --no-floppy --fs-uuid --set=root "UUID"
linux /core/vmlinuz64 loglevel=3 video=vesafb:ywrap,mtrr:3 waitusb=5:UUID="UUID"
initrd /core/corepure64.gz
}
Inside the 'core' folder place the kernel and initramfs. Reboot while holding down the 'alt' (also called "option") key. The usb should show up.
I did not like to use rEFInd since it wasn't working for me or I was not able to make it work. Well, I did use to deactivate 'system protection' or something like that and remove the OSX boot entry from the bootloader selection. I used the rEFInd premade iso and dd it to a usb.
When turning off the efi loader/bios or whatever loader Apple puts in these machines ends up in a 'unstable' state and the laptop will not power back up unless you hold down the power button for 20 seconds, I timed that. Any less and the laptop will refuse to boot again until al parasitic current leaves the main board.
This particular Macbook2,1 takes 3GB ram max. The battery is dead so the laptop will throttle and there is no way around that since the charger can't provide enough power.
Since the bootloader is GRUB (a beta version) you can chainload any other ISOs and distros but I haven't tried that, I only cared about Tiny Core.
GRUB can only show up in text mode, any graphics will corrupt the EFI frame buffer.
It gets very hot if you close the lid for the model I've got the air vent is underneath the keyboard and the exhaust is blowing all the hot air to the LCD base, sustain load will reduce its lifespan for sure.
Useful links:
Guided me with the grub.cfg
https://forum.tinycorelinux.net/index.php/topic,22848.msg143377.html#msg143377Wifi issues post, my chipset worked with the ath driver. Just in case.
https://forum.tinycorelinux.net/index.php?topic=21096.0Booting up in a Macbook Air
https://forum.tinycorelinux.net/index.php/topic,23414.0.htmlInstall libreboot. I may test this later on.
https://libreboot.org/docs/install/macbook21.htmlbootia32 file
https://github.com/jfwells/linux-asus-t100ta/blob/master/boot/bootia32.efiyeah, solved.
Edit:
Once you have your set up just dd a copy of your usb for future use just the beginning of the drive. It will be easier if the USB fails. I did.
dd if=/dev/sdx of=my_mac-image.img bs=1048576 count=128
btw, you can also load dCore this way. Just give time for everything to load, even with just the small vmlinuz and initramfs it takes about 2-3 minutes to load.