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

Install on ARM71 32 Bit #64

Closed
nashford77 opened this issue Dec 3, 2020 · 19 comments
Closed

Install on ARM71 32 Bit #64

nashford77 opened this issue Dec 3, 2020 · 19 comments

Comments

@nashford77
Copy link

Why does it not support this ? Also, is there a UDP based python port of this ? That would be far more versatile than this language in my opinion ?

@erebe
Copy link
Owner

erebe commented Dec 3, 2020

Hello,

Why does it not support this ?

Because I don't have the hardware to build a binary for it. If you have a Raspberry Pi this release wstunnel-armv7l-raspbian-buster.tar.gz should work. Or you can use this script https://github.com/erebe/wstunnel/blob/master/build_raspbian.sh to build it yourself. Let me know if you encounter issue with it

Also, is there a UDP based python port of this ? That would be far more versatile than this language in my opinion ?

Feel free to code it :)

@nashford77
Copy link
Author

there are script errors for devices that don't have HTTS for git in that build as well as running as root and there being no SUDO (am on OPENWRT)

@nashford77
Copy link
Author

stack-2.1.3-linux-arm/doc/maintainers/team_process.md
build_raspbian.sh: line 10: sudo: not found
Cloning into 'wstunnel'...
fatal: unable to find remote helper for 'https'
build_raspbian.sh: cd: line 12: can't cd to wstunnel: No such file or directory
build_raspbian.sh: line 14: stack: not found
build_raspbian.sh: line 18: stack: not found

@nashford77
Copy link
Author

sudo apt-get install git llvm-6.0-tools zlib1g-dev ghc

This will also fail... they do not exist in OPKG, is there a way to install ARM suitable equivalents via git ?

@nashford77
Copy link
Author

llvm-6.0-tools zlib1g-dev ghc & stack wont work on:

Linux 4.9.242 #836 SMP Fri Nov 20 20:41:15 +07 2020 armv7l DD-WRT

@erebe
Copy link
Owner

erebe commented Dec 3, 2020

We can close the issue so, as there is no way to build a binary for this Arch without llvm :x

@arinc9
Copy link

arinc9 commented Dec 6, 2020

@nashford77 u/angerman on Reddit cross-compiled this project to armv7 by my request. Let me know if you're still in need of it.

@nashford77
Copy link
Author

nashford77 commented Dec 6, 2020 via email

@arinc9
Copy link

arinc9 commented Dec 6, 2020

@nashford77
Copy link
Author

nashford77 commented Dec 6, 2020 via email

@nashford77
Copy link
Author

nashford77 commented Dec 6, 2020 via email

@arinc9
Copy link

arinc9 commented Dec 7, 2020

Paging @angerman for MIPS(EL) binaries

Update: There's a $10 bounty for it
#21 (comment)

@erebe
Copy link
Owner

erebe commented Dec 7, 2020

Hello,
Thanks for the grunt work regarding creating a binary.
Can you point me toward the reddit thread ? If possible I would like to understand how @angerman manage to cross compile wstunnel.

Edit: Found it https://gist.github.com/angerman/0ba92cba59fa590f233bdcdb5d6eb2ee

@arinc9
Copy link

arinc9 commented Dec 7, 2020

@angerman
Copy link

angerman commented Dec 7, 2020

MISP might be a bit harder, there is no pre-existing infra for this. I'm also not sure how good our mips codegen is. Sadly mips is being beaten by arm and likely riscv in the future.

@nashford77
Copy link
Author

@erebe Now that you figured out how to cross compile ARMV71, will you provide this as a binary going forward?

@angerman
Copy link

@nashford77 find the armv7l and aarch64 (linux) binaries below. I'm still trying to build an aarch64 (macOS/iOS) one for @arinc9, however it's a very slow process, hampered by the holiday season as well 😬

armv7l-unknown-linux-musleabihf-wstunnel-62db8504f77891de1e886e7d2e23fa0ca524099f.zip
aarch64-unknown-linux-musl-wstunnel-62db8504f77891de1e886e7d2e23fa0ca524099f.zip

@erebe
Copy link
Owner

erebe commented Dec 22, 2020

@nashford77 sadly no, @angerman have done an awesome job compiling wstunnel for those archs but the build is too custom/complex for me in regard of what I want to support in the long run for the project.

I am going to keep note of the steps for future reference, but it will be up to people who need it, to bear the cost of providing/building those binaries in the first run.

P.S: @angerman I have added your binaries in the pre-release, thank you !

@TPXP
Copy link

TPXP commented Jun 19, 2022

Hello,

I've setup one proxy on my armv7 server and compiled the project at commit a0ecc64 (the bundled version of ghc is too old for the latest network patch). In case it helps anyone, here's my binary compiled on Debian Bullseye (the current stable) wstunnel-armv7hf-bullseye.zip. I've tested it on an up-to-date ArchLinuxARM setup as well and it works well there too. 😄

The two first commands of build_raspbian.sh are slightly changed since ghc on bullseye comes with llvm tools v11

sudo apt-get install git zlib1g-dev ghc
export PATH="/usr/lib/llvm-11/bin/:$PATH"

Also, the resolver must be updated for GHC 8.8.4, which comes with bullseye:

# GHC 8.8.4 <-> lts 16.31 - https://www.stackage.org/
sed -i "s/resolver:.*/resolver: lts-16.31/g" stack.yaml

Thanks for this awesome project! ❤️

@erebe erebe closed this as completed Nov 7, 2022
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

5 participants