I've inquired here a few times. I went to check the wiki as I beleive someone made the requisite files to build and submit (I think I added the info); but the Wiki seems down, and there a grant submission page in its place.- Lynwood -------- Original message --------From: Matt Peterson via 44net 44net@mailman.ampr.org Date: 1/27/23 19:45 (GMT-05:00) To: lleachii@aol.com Cc: Harold via 44net 44net@mailman.ampr.org Subject: [44net] Re: ampr-ripd 2.4.1 / openwrt Lynwood,Has there ever been an effort to get a pre-compiled package(s) into OpenWRT?--MattOn Fri, Jan 27, 2023 at 3:17 AM lleachii--- via 44net 44net@mailman.ampr.org wrote:Harold,At https://downloads.openwrt.com - on the same page that you find the image for your router.At the bottom of the page, there's a download for your relevant Software Development Kit (SDK). Everything is included in the SDK.The SDKs are made to work on Linux x86_64. The only method is to cross compile. The OpenWrt Wiki has a cross-compile page. All linked on the AMPR Wiki page.73, Lynwood KB3VWG -------- Original message --------From: Harold via 44net 44net@mailman.ampr.org Date: 1/27/23 02:37 (GMT-05:00) To: 44net@mailman.ampr.org Subject: [44net] ampr-ripd 2.4.1 / openwrt Ok I know there are A LOT of post from the PAST about compiling ampr-ripd for OpenWRT but for the last few days, I have been racking my brain tryingto get this thing to compile for the router that I would like to use for my gateway but I think I broke my brain....I know Lynwood has done some extensive posting on this but things are just not working out for me. Many different errors when trying different processes.So, I would like to ask...1st, for those that are cross-compiling, what development environment are you using such as, linux version, the dependencies needed for that environment to work, and what versionof ampr-ripd are we cross-compiling for use in OpenWRT? I would like to build the setup as someone who is successful with these processes.Once that is done, Ill move on to the next step and try my hand at compiling ampr-ripd again for my target device.Baby steps.Thanks for any direction with this...HaroldK7ILO_______________________________________________44net mailing list -- 44net@mailman.ampr.orgTo unsubscribe send an email to 44net-leave@mailman.ampr.org_______________________________________________ 44net mailing list -- 44net@mailman.ampr.org To unsubscribe send an email to 44net-leave@mailman.ampr.org
Do you have the correct url? The Wiki can be found here: https://wiki.ampr.org https://wiki.ampr.org/
Looks ok from here
73, Chris - G1FEF
On 28 Jan 2023, at 00:56, lleachii--- via 44net 44net@mailman.ampr.org wrote:
I've inquired here a few times. I went to check the wiki as I beleive someone made the requisite files to build and submit (I think I added the info); but the Wiki seems down, and there a grant submission page in its place.
- Lynwood
-------- Original message -------- From: Matt Peterson via 44net 44net@mailman.ampr.org Date: 1/27/23 19:45 (GMT-05:00) To: lleachii@aol.com Cc: Harold via 44net 44net@mailman.ampr.org Subject: [44net] Re: ampr-ripd 2.4.1 / openwrt
Lynwood,
Has there ever been an effort to get a pre-compiled package(s) into OpenWRT?
--Matt
On Fri, Jan 27, 2023 at 3:17 AM lleachii--- via 44net <44net@mailman.ampr.org mailto:44net@mailman.ampr.org> wrote:
Harold,
At https://downloads.openwrt.com https://downloads.openwrt.com/ - on the same page that you find the image for your router.
At the bottom of the page, there's a download for your relevant Software Development Kit (SDK). Everything is included in the SDK.
The SDKs are made to work on Linux x86_64. The only method is to cross compile. The OpenWrt Wiki has a cross-compile page. All linked on the AMPR Wiki page.
73,
Lynwood KB3VWG
-------- Original message -------- From: Harold via 44net <44net@mailman.ampr.org mailto:44net@mailman.ampr.org> Date: 1/27/23 02:37 (GMT-05:00) To: 44net@mailman.ampr.org mailto:44net@mailman.ampr.org Subject: [44net] ampr-ripd 2.4.1 / openwrt
Ok I know there are A LOT of post from the PAST about compiling ampr-ripd for OpenWRT but for the last few days, I have been racking my brain trying to get this thing to compile for the router that I would like to use for my gateway but I think I broke my brain.... I know Lynwood has done some extensive posting on this but things are just not working out for me. Many different errors when trying different processes.
So, I would like to ask...
1st, for those that are cross-compiling, what development environment are you using such as, linux version, the dependencies needed for that environment to work, and what version of ampr-ripd are we cross-compiling for use in OpenWRT?
I would like to build the setup as someone who is successful with these processes.
Once that is done, Ill move on to the next step and try my hand at compiling ampr-ripd again for my target device. Baby steps.
Thanks for any direction with this...
Harold K7ILO _______________________________________________ 44net mailing list -- 44net@mailman.ampr.org mailto:44net@mailman.ampr.org To unsubscribe send an email to 44net-leave@mailman.ampr.org mailto:44net-leave@mailman.ampr.org _______________________________________________ 44net mailing list -- 44net@mailman.ampr.org mailto:44net@mailman.ampr.org To unsubscribe send an email to 44net-leave@mailman.ampr.org mailto:44net-leave@mailman.ampr.org
44net mailing list -- 44net@mailman.ampr.org To unsubscribe send an email to 44net-leave@mailman.ampr.org
Thanks Chris, I had to web search, odd.
Harold, Let's also document this. We can talk offline after you have success.
Step 1, I believe I had to add the following to ampr-ripd.c - as I don't see it in Marius' version (there's ancient discussion on this). I added it after the last includes at the top:
# define IPPORT_ROUTESERVER 520
This is from the .bash_history of my VM when creating for the WAX202: tar -xvf openwrt-sdk-22.03.0-ramips-mt7621_gcc-11.2.0_musl.Linux-x86_64.tar.xz ls unset SED export STAGING_DIR=/home/user/openwrt-sdk-22.03.0-ramips-mt7621_gcc-11.2.0_musl.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-11.2.0_musl/ export TOOLCHAIN_DIR=$STAGING_DIR export LDCFLAGS=$TOOLCHAIN_DIR/lib export LD_LIBRARY_PATH=$TOOLCHAIN_DIR/lib export PATH=$TOOLCHAIN_DIR/bin:$PATH cd /home/user/ampr-ripd-2.4.1 ls mipsel-openwrt-linux-musl-g++ ampr-ripd.c -v -fpermissive -o ampr-ripd-2.4.1-mipsel sha256sum ampr-ripd-2.4.1-mipsel exit
Harold,
After you have your out file and transfer to target, OpenWrt needs the package 'libstdcpp6' installed to run it. I use the OpenWrt Firmware Selector to make a firmware image including this and all other packages I desire (e.g. Wireguard - I'm on the East coast; but I recall someone said they wanted a tunnel onthe West Coast). I use the /etc/config folder to save ampr-ripd and encap.txt (i.e. they can be added to the backup config file). These file directory details are in the wiki example. https://firmware-selector.openwrt.org/
-- 73,
- LynwoodKB3VWG
Harold,
Also the dynamic firewall filter compatible with fw4 (OpenWrt version 22.03.3+. NOTE: subversion 0, 1 and 2 had issues/bugs with processing this script, use version 22.03.3+): #!/bin/sh# load encap.txt into ipipfilter list PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" cd /tmp || exit 1 ########################### rm /tmp/ipip_filter.txt 2>/dev/null echo 169.228.34.84 >> /tmp/ipip_filter.txt grep addprivate /var/lib/ampr-ripd/encap.txt | sed -e 's/.*encap //' | sort -u | while read ipdo echo $ip >> /tmp/ipip_filter.txtdone fw4 reload-sets exit 0 #####
----
KB3VWG