Can ipfire be built for mips64

Hi,

is ipfire buildable for mips64 ?

Hallo @f451

Welcome to the IPFire community.

The answer I am is no I am afraid.

IPFire has x86_64 and aarch64 architectures in actual use.

There is work looking at riscv64 but that still has issues from grub not fully supporting riscv.

ok, thanks for the info.

Technically yes, but I am not aware of any suitable hardware for IPFire, which would make it pointless.

As @bonnietwin said, we currently support x86 and aarch64 and there is an experimental RISC-V port available, but that suffers from the same unavailability of hardware, too.

May I ask why mips64 is interesting for you?

1 Like

It would be for an edgerouter lite 3 (ubiquiti) which has octeon
mips.mips64 chipset.

I’d cross-compile it on x64 in whichever linux ipfire is derived from
but I’d need to know about the required toolchain first, among other things.

Is ipfire able to run with the firewall off? if it works, it would be in a non-nat environment with a /29 ipv4 and a /64 ND and a /48 PD ipv6. So, it would be issuing ipv6 from the /48 to requesting machines which have their own firewalls. the /29 ipv4 is static.

Ah, I don’t know anything about the requirements of such platforms. In the past it has been a large headache for ARM as lots of drivers for hardware on the market were missing in the Linux kernel.

We already support cross-compilation and emulation of compiling the entire distribution on a different architecture:

https://git.ipfire.org/?p=ipfire-2.x.git;a=blob;f=make.sh;h=f13d283bc65f7a114448cc1cc06e72a55d434727;hb=HEAD#l143

Here you would have to configure a couple of things like CFLAGS for your hardware.

https://git.ipfire.org/?p=ipfire-2.x.git;a=blob;f=make.sh;h=f13d283bc65f7a114448cc1cc06e72a55d434727;hb=HEAD#l788

Here you would have to tell it to use QEMU for the emulation.

https://git.ipfire.org/?p=ipfire-2.x.git;a=blob;f=make.sh;h=f13d283bc65f7a114448cc1cc06e72a55d434727;hb=HEAD#l842

And here you would have to configure a couple of things so that the build system finds the emulator for mips64.

You should then be able to build the toolchain with a simple ./make.sh --target=mips64 toolchain.

In how far things will build is a different chapter though :slight_smile:

1 Like

heh

looks like I have a small project today :smiley:

What host os do you suggest? debian/ubuntu/gentoo ?

I personally use Debian, but it should generally work on everything else, too.

ok thanks. I’ll let you know how i get on :wink:

1 Like