oasislinux / oasis

a small statically-linked linux system
Other
2.75k stars 84 forks source link

aarch64 support #47

Open brandonros opened 1 year ago

brandonros commented 1 year ago

so Apple M1/M2 users can run it in QEMU without x86_64 emulation

Eloitor commented 1 year ago

this will allow to use oasis in the pinephone

Silent-Hunter commented 1 year ago

It would be nice to be able to run this on Raspberry Pi 4 as well.

michaelforney commented 1 year ago

It would help if you would share what problems are you running into building for aarch64. Most packages should work (including all essential ones).

I've run oasis on a pinephone before. I haven't tried a Raspberry Pi 4, but I don't see why it wouldn't work.

noocsharp commented 1 year ago

I had oasis running on an RPI 1B (32-bit arm) at one point with changes to only a few packages. RPI4 shouldn't be much harder to get working.

ghost commented 1 year ago

I built for aarch64 on the same ARM system I was targeting. I had to grab the musl package aarch64-linux-musl-native, but the binary bin/aarch64-linux-musl-ar does not exist in the -native musl package, only in the -cross package...so I got errors trying to build oasis. I symlinked the ar binary, and that worked fine. Renaming it would have worked fine too. Not sure if there is a better way to handle that, but that's what worked for me.

And of course, the config.lua needs to be updated with the correct target platform (aarch64-linux-musl) prior to running setup.lua

All went fine after some fiddling

mrdomino commented 2 weeks ago

@michaelforney I'd be interested in a qemu-ish image for aarch64; would that go under this ticket or a separate one?

My end goal would be to be able to download something that I could just import into UTM to try it out.