yuanwb1984
yuanwb1984
aarch64_cortex-a53
在同一块orangepi zero plus上,先刷armbian,安装golang1.2后可以go build出v2ray-plugin,运行了一下也正常,换张卡刷了openwrt,v2ray-plugin复制过去就不能运行了: root@opi0plus:~# strace ./v2ray-plugin execve("./v2ray-plugin", ["./v2ray-plugin"], 0x7fcbc59430 /* 12 vars */) = -1 ENOENT (No such file or directory) writev(2, [{iov_base="strace: exec: No such file or di"...,...
go build -ldflags "-s -w" 生成的也不行 root@opi0plus:~# strace ./v2ray-plugin execve("./v2ray-plugin", ["./v2ray-plugin"], 0x7fc0b6ee40 /* 12 vars */) = -1 ENOENT (No such file or directory) writev(2, [{iov_base="strace: exec: No such file...
> Try `GOOS=linux GOARCH=arm GOARM=7` instead > reference: https://github.com/golang/go/wiki/GoArm 在armbian中式了几个参数,GOARM=7,编译的32位程序不能运行.GOARCH=arm64编译出64位的报错找不到什么。最后用openwrt sdk和你的Makefile生成了可以在openwrt里运行的程序。 我开始没说清楚想在openwrt里使用,想当然以为go build出来的可以通用。
for openwrt 18.06.4 https://c-t.work/s/7de39a5f826d42 大概步骤是下载解压 openwrt的sdk https://downloads.openwrt.org/releases/18.06.4/targets/sunxi/cortexa53/openwrt-sdk-18.06.4-sunxi-cortexa53_gcc-7.3.0_musl.Linux-x86_64.tar.xz cd到sdk目录里 git clone https://github.com/poscat0x04/openwrt-v2ray-plugin.git package/v2ray-plugin make menuconfig make package/v2ray-plugin/compile V=99 当然编译前还要装些软件,https://openwrt.org/docs/guide-developer/start ,翻翻
OrangePi zero plus use master branch is OK