Skip to content
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

udp2raw not working on OpenWRT #513

Open
iz4tow opened this issue Mar 14, 2024 · 13 comments
Open

udp2raw not working on OpenWRT #513

iz4tow opened this issue Mar 14, 2024 · 13 comments

Comments

@iz4tow
Copy link

iz4tow commented Mar 14, 2024

Good morning,
I'm trying to use udp2raw on a BPI R3 with OpenWRT 23.05.2, but.....

root@OpenWrt:~# ./udp2raw_arm
./udp2raw_arm: line 1: syntax error: unexpected word (expecting ")")

How can I solve this?

Thanks in advance

@HiGarfield
Copy link
Contributor

use arm64 instead of arm

@iz4tow
Copy link
Author

iz4tow commented Mar 14, 2024

There is no arm64 on the release tarball

@HiGarfield
Copy link
Contributor

Copy the following folder to your openwrt code and then compile

https://github.com/HiGarfield/lede-17.01.4-Mod/tree/master/package/extra/udp2raw

@iz4tow
Copy link
Author

iz4tow commented Mar 15, 2024

I'm not very practical in openwrt...how can I compile it?

@HiGarfield
Copy link
Contributor

HiGarfield commented Mar 16, 2024

What model is your wireless router? If it's a model officially supported by OpenWrt, I can try to compile it.

@iz4tow
Copy link
Author

iz4tow commented Mar 16, 2024

Bananapi R3

@HiGarfield
Copy link
Contributor

udp2raw_aarch64_cortex-a53_bin.zip
You can use either the udp2raw binary or the udp2raw_e42f0e57-1_aarch64_cortex-a53.ipk package.

@iz4tow
Copy link
Author

iz4tow commented Mar 16, 2024

It works!
But how can I compile it by myself? Do you have a guide?

@HiGarfield
Copy link
Contributor

HiGarfield commented Mar 17, 2024

I have prepared the Openwrt package source (Makefiles and a patch). You can compile it using Openwrt SDK.

Steps:

  1. Unzip the Openwrt SDK.
  2. Unzip udp2raw.zip and place the udp2raw folder into packages.
  3. Run the following commands:
rm -f .config && make defconfig
make package/udp2raw/clean V=s
make package/udp2raw/compile V=s

Then you can find the package bin/packages/aarch64_cortex-a53/base/udp2raw_e42f0e57-1_aarch64_cortex-a53.ipk, and also the binary build_dir/target-aarch64_cortex-a53_musl/udp2raw-e42f0e57/.pkgdir/udp2raw/usr/bin/udp2raw.

More details can be found at https://openwrt.org/docs/guide-developer/toolchain/using_the_sdk

@iz4tow
Copy link
Author

iz4tow commented Mar 18, 2024

Ok it works. But where did you find udpraw.zip? I would like to compile any new version by myself

Thanks

@HiGarfield
Copy link
Contributor

Modified from https://github.com/sensec/openwrt-udp2raw.

To obtain the latest version, simply make modifications to PKG_SOURCE_VERSION and PKG_MIRROR_HASH in the Makefile.

@iz4tow
Copy link
Author

iz4tow commented Mar 18, 2024

Perfect.
Could be a good idea to add a wiki on https://github.com/sensec/openwrt-udp2raw

Thanks a lot

@wangyu-
Copy link
Owner

wangyu- commented Apr 29, 2024

i will include arm64 version in next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants