Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Hardware and Performance
»
OPNSense Compilation stuck for generic ARM64
« previous
next »
Print
Pages: [
1
]
Author
Topic: OPNSense Compilation stuck for generic ARM64 (Read 4626 times)
gondox
Newbie
Posts: 30
Karma: 3
OPNSense Compilation stuck for generic ARM64
«
on:
March 22, 2022, 10:19:49 am »
Hi,
i try to set up OPNSense on a DFRobot Routerboard (
https://wiki.dfrobot.com/Compute_Module_4_IoT_Router_Board_Mini_SKU_DFR0767
) using a CM4 Module with onboard eMMC flash.
I flashed the rpi4-uefi onto it (
https://rpi4-uefi.dev/
), because I want to run the generic arm64 version of OPNSense instead of the specific Raspberry Pi 4 version.
That is the reason why I tried to compile "make searial DEVICE=ARM64" in a Freebsd13 VM.
It took me 4 days compilation time to get to this error: "Cannot create repository catalogue"
Any ideas what may have caused this? I did not deviate from the commands here:
https://github.com/opnsense/tools
Logged
franco
Administrator
Hero Member
Posts: 17570
Karma: 1596
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #1 on:
March 22, 2022, 01:34:45 pm »
Wrong pkg version on build host? Install the one from our tree...
Cheers,
Franco
Logged
gondox
Newbie
Posts: 30
Karma: 3
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #2 on:
March 22, 2022, 03:49:38 pm »
any hints how I can install your pkg version?
Maybe there is even a proven VM Image I can use?
EDIT: I checked and freebsd-version is "13.0-RELEASE" while pkg --version is "1.17.5"
«
Last Edit: March 22, 2022, 04:59:50 pm by gondox
»
Logged
franco
Administrator
Hero Member
Posts: 17570
Karma: 1596
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #3 on:
March 22, 2022, 08:37:25 pm »
Yes, you need 1.16.x
# cd /usr/ports/ports-mgmt/pkg && make reinstall
Cheers,
Franco
Logged
gondox
Newbie
Posts: 30
Karma: 3
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #4 on:
March 22, 2022, 09:48:17 pm »
I could downgrade it and restart make, lets see how it works this time :-)
Thanks for the advice!
Logged
franco
Administrator
Hero Member
Posts: 17570
Karma: 1596
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #5 on:
March 23, 2022, 07:26:37 am »
Fingers crossed
Logged
gondox
Newbie
Posts: 30
Karma: 3
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #6 on:
March 25, 2022, 02:50:52 pm »
it took a really long time but sadly didn't work again.
Is there a way to find out what exactly caused the error?
Is it possible to compile faster in any way? The VM already has 8 cores and 12GB of RAM.
Logged
gondox
Newbie
Posts: 30
Karma: 3
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #7 on:
March 25, 2022, 08:09:53 pm »
I installed freebsd 13.0 on a raspberry pi and tried to compile it with "make serial" but I get an error about unknown architecture aarch64. So I guess this is not supported? I am about to cross compile arm64 on a aarch64 system using qemu now with the command "make serial DEVICE=ARM64" which feels weird. Any better way?
Logged
gondox
Newbie
Posts: 30
Karma: 3
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #8 on:
March 29, 2022, 08:54:57 am »
Compilation just doesn't seem to work out for me, I ran into a lua script error about a nil value . . .
Is the some kind of approved VM image for building?
Am I posting in the right sub forum?
Logged
franco
Administrator
Hero Member
Posts: 17570
Karma: 1596
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #9 on:
March 29, 2022, 09:27:03 am »
In your screenshot these are all go-based packages so I assume the go compiler package didn't build. Welcome to our world.
DEVICE is exactly what to use to build the respective device. The default one is a amd64 target.
Not saying the default selection could be improved (there is no logic at the moment), but someone with a little time to tinker on different architectures will have to do provide the change.
Cheers,
Franco
Logged
gondox
Newbie
Posts: 30
Karma: 3
Re: OPNSense Compilation stuck for generic ARM64
«
Reply #10 on:
March 29, 2022, 09:55:12 pm »
the lua script error happened when I tried to compile "make serial DEVICE=ARM64" on a raspberry pi cm4, I guess it didnt even use qemu. I set up a new VM on my AMD64 Host a try to do "make dvd DEVICE=ARM64" this time.
How are the official builds created? Is there a server that continuously builds images and packages?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Hardware and Performance
»
OPNSense Compilation stuck for generic ARM64