Do we know if this works on the UDMP?
Thank you so much, this worked wonderfully on my EdgeRouterX. The only change I had to make was to install a newer version of Golang GO because 1.15 was installed when following this guide.
Hey Guys if your having issues and want to do this for the UDMP then some information that may be of help.
If you are building a Go application for a Quad-core ARM® Cortex®-A57 architecture, you can set the GOARCH
environment variable accordingly. The appropriate value for ARM architecture would be arm64
for 64-bit ARM architecture. Here’s how you can modify the commands:
export GOOS=linux
export GOARCH=arm64 # Set to arm64 for Quad-core ARM® Cortex®-A57
make
This assumes that your Go toolchain is configured to cross-compile for ARM64. Make sure that you have the necessary toolchain installed for ARM64 compilation.
These commands instruct Go to build the application for the Linux operating system (GOOS=linux
) and the ARM64 architecture (GOARCH=arm64
). The resulting binary can then be executed on a system with a Quad-core ARM® Cortex®-A57 processor.
Make sure to adjust the commands based on your specific requirements and the toolchain available on your development machine.
To set up the Go toolchain for cross-compiling to ARM64, you’ll generally need to make sure that you have the appropriate Go environment variables and, if necessary, the required ARM64 toolchain. Below are the general steps:
- Install ARM64 Toolchain (if not already installed):
- On Linux, you may need to install the ARM64 cross-compiler toolchain. For example, on Ubuntu, you can install it with:
sudo apt-get update
sudo apt-get install gcc-aarch64-linux-gnu
- Set Environment Variables:
- Set the
GOOS
andGOARCH
environment variables to specify the target operating system and architecture. For ARM64, you would set:
export GOOS=linux
export GOARCH=arm64
Locking issue as stale and there is multiple answers on how to achieve it