Unfortunately iPhones have locked bootloaders that prohibit installing other operating systems. People have gotten Linux running on iPhones, but it requires jailbreaking and that has gotten much harder over time. And it's not really worth putting effort into developing an OS if nobody is going to be able to install it.