New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FreeBSD/Arm Static Build? #53
Comments
Yeah, that would be nice. Unfortunately, cross-compiling on FreeBSD is stupid hard it seems... at least a lot harder than on most Linux distros. Anyways, if you know how to cross compile on FreeBSD or how to get Qemu working on MacOS with FreeBSD/ARM that would help a lot. Otherwise, honestly, this issue probably going to just sit here. |
http://matrossi.blogspot.com/2011/08/cross-compiling-ports-for-arm-under.html https://github.com/freebsd/freebsd-src But need a larger VM since ran out of disk space running |
managed to cross compile freebsd 12.2 arm64 via qemu! followed: freebsd qemu wiki # terminal 1
$ brew install qemu telnet
$ qemu-system-aarch64 -m 4096M -cpu cortex-a57 -M virt \
-bios edk2-aarch64-code.fd -serial telnet::4444,server -nographic \
-drive if=none,file=~/Downloads/FreeBSD-12.2-RELEASE-arm64-aarch64.qcow2,id=hd0 \
-device virtio-blk,drive=hd0 \
-device virtio-net,netdev=net0 \
-netdev user,id=net0 # terminal 2
$ telnet localhost 4444
$ pkg install git gmake libpcap go
$ git clone https://github.com/synfinatic/udp-proxy-2020.git
$ cd udp-proxy-2020
$ CGO_ENABLED=1
$ go build -o udp-proxy-2020 cmd/*.go
$ scp udp-proxy-2020 root@router.ip thanks for this great project! |
Neat. Thank you @jrc2139 . I'll see if I can take this and make regular FreeBSD/arm releases. |
thanks! i did come across some docker qemu options.. but i had already spent so much time trying other things, i just wanted to get it working 😅 |
@jrc2139: Would you please post your binary so I can try it? |
|
@jrc2139: Thank you! |
@jrc2139: Unfortunately I'm getting "./udp-proxy-2020: Exec format error. Binary file not executable" I'm trying it on a Netgate SG-3100 running pfSense+ 21.05-RELEASE (arm) on an ARM Cortex-A9 r4p1 running FreeBSD 12.2-STABLE. The ARM Cortex-A9 is a 32 bit processor, so that's the problem. Could you generate a 32-bit build? |
did you give my instructions a try? just download the arm flavor of freebsd 12.2 |
@jrc2139 : I'm not able to do that. I'd need somebody to build it for 32 bit ARM. Here is the link for qemu recipies for armv7 |
oh that's a bummer that there's no vm-image for arm |
The binaries from this comment have been deleted. Please download from the official releases tab on github. |
Add support for building FreeBSD binaries targeting: - ARM64 (aarch64) - ARMv6 - ARMv7 Fixes: #53
Aaron:
Great! Thank you!!! I will try out armv7 for you!
Regards,
*B
From: Aaron Turner ***@***.***>
Sent: Wednesday, September 29, 2021 7:49 AM
To: synfinatic/udp-proxy-2020 ***@***.***>
Cc: Bradley Feldman ***@***.***>; Author ***@***.***>
Subject: {Disarmed} Re: [synfinatic/udp-proxy-2020] FreeBSD/Arm Static Build? (#53)
Okay, I have some binaries for testing:
* arm64 <https://synfin.net/misc/udp-proxy-2020-0.0.7-freebsd-arm64-static>
* armv6 <https://synfin.net/misc/udp-proxy-2020-0.0.7-freebsd-armv6-static>
* armv7 <https://synfin.net/misc/udp-proxy-2020-0.0.7-freebsd-armv7-static>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#53 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAE5YAWPEBOSEYNKUSDFAMLUEL4KHANCNFSM4XTQJSTA> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> . <https://s3.amazonaws.com/msv5/images/spacer.gif>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#53 (comment)", "url": "#53 (comment)", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
--
This message has been scanned for viruses and
dangerous content by <http://www.mailscanner.info/> MailScanner, and is
believed to be clean.
…--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
|
Add support for building FreeBSD binaries targeting: - ARM64 (aarch64) - ARMv6 - ARMv7 Fixes: #53
The armv7 binary is running on Netgate SG-3100 (ARM Cortex-A9 ) FreeBSD 12.2-STABLE pfsenxe 21.05.1-RELEASE
THANK YOU!
*B
From: Aaron Turner ***@***.***>
Sent: Wednesday, September 29, 2021 7:49 AM
To: synfinatic/udp-proxy-2020 ***@***.***>
Cc: Bradley Feldman ***@***.***>; Author ***@***.***>
Subject: {Disarmed} Re: [synfinatic/udp-proxy-2020] FreeBSD/Arm Static Build? (#53)
Okay, I have some binaries for testing:
* arm64 <https://synfin.net/misc/udp-proxy-2020-0.0.7-freebsd-arm64-static>
* armv6 <https://synfin.net/misc/udp-proxy-2020-0.0.7-freebsd-armv6-static>
* armv7 <https://synfin.net/misc/udp-proxy-2020-0.0.7-freebsd-armv7-static>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#53 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAE5YAWPEBOSEYNKUSDFAMLUEL4KHANCNFSM4XTQJSTA> .
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub> . <https://s3.amazonaws.com/msv5/images/spacer.gif>
[ { ***@***.***": "http://schema.org", ***@***.***": "EmailMessage", "potentialAction": { ***@***.***": "ViewAction", "target": "#53 (comment)", "url": "#53 (comment)", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { ***@***.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
--
This message has been scanned for viruses and
dangerous content by <http://www.mailscanner.info/> MailScanner, and is
believed to be clean.
…--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
|
glad to hear it! |
Looking to make this work on a Netgate SG-3100
[https://store.netgate.com/SG-3100.aspx]
The text was updated successfully, but these errors were encountered: