Page 1 of 1

Running the RTL-SDRv3 on an old router for ADS-B

Posted: Mon May 14, 2018 3:31 pm
by robman501a
Hey guys, I've flashed my Netgear WNDR3700v1 to run Openwrt/LEDE and I've installed the rtl-sdr files by typing 'opkg install rtl-sdr' and then I ran rtl_test and it worked!
My issue is, since I have an LNA outside on my antenna, how do I enable the bias-t on the dongle?
I am unable to compile it from the source code. Not enough space to install git and the thing doesn't have cmake.
I am not really I Linux person but can I compile the program on an Linux system and copy it to a removeable device (or ftp/http server) and use wget or something and copy the file over?


git clone https://github.com/rtlsdrblog/rtl_biast (installing git is possible but a challenge due to the limited space)
cd rtl_biast
mkdir build
cd build
cmake .. (this is a problem since Openwrt doesn't come with cmake)
make
cd src
./rtl_biast -b 1

Re: Running the RTL-SDRv3 on an old router for ADS-B

Posted: Tue May 15, 2018 5:28 am
by rtlsdrblog
OpenWRT is a bit difficult because you can't compile on it easily. I've heard of one person whose managed to do it in the past. I'll contact him and ask if he can share his directions or a ready to use openwrt package.

Re: Running the RTL-SDRv3 on an old router for ADS-B

Posted: Tue May 15, 2018 5:44 am
by Stry
If you can compile OpenWRT packages, you're in luck. This OWRT Makefile builds rtl_biast - viewtopic.php?f=1&t=2227

Package creation throws some error I haven't looked into, but the binary builds and works fine.

Re: Running the RTL-SDRv3 on an old router for ADS-B

Posted: Tue May 15, 2018 5:55 pm
by robman501a
Stry wrote:
Tue May 15, 2018 5:44 am
If you can compile OpenWRT packages, you're in luck. This OWRT Makefile builds rtl_biast - viewtopic.php?f=1&t=2227
I'm not sure how to do that.
Stry wrote:
Tue May 15, 2018 5:44 am
Package creation throws some error I haven't looked into, but the binary builds and works fine.

Hope this build works with the Atheros CPU in the router.

Re: Running the RTL-SDRv3 on an old router for ADS-B

Posted: Tue May 15, 2018 5:57 pm
by robman501a
rtlsdrblog wrote:
Tue May 15, 2018 5:28 am
OpenWRT is a bit difficult because you can't compile on it easily. I've heard of one person whose managed to do it in the past. I'll contact him and ask if he can share his directions or a ready to use openwrt package.
The router can also run dd-wrt but that might be more difficult and yes, that would be great. :)

Re: Running the RTL-SDRv3 on an old router for ADS-B

Posted: Wed May 16, 2018 8:07 am
by Stry
robman501a wrote:
Tue May 15, 2018 5:55 pm
I'm not sure how to do that.
Hope this build works with the Atheros CPU in the router.
OpenWRT makes cross-platform compilation easy.
If it builds for x86/64, there's no reason short of exotic library issues why it shouldn't build on an Atheros.
Have you asked for help on Freenode's #OpenWRT or #lede-dev?

[*]Download and extract the OpenWRT build environment.
[*]Edit the OWRT and my rtl_biast Makefile for your (Atheros AR71xx) platform.
[*]Then you can create a single package using my Makefile for your Atheros platform.

Even if it doesn't create a convenient package you could install/uninstall with opkg, it'll create the binary and libraries you need. Then, simply copy them over to their appropriate locations on your router, see my post linked above for the file/dir layout.

Re: Running the RTL-SDRv3 on an old router for ADS-B

Posted: Wed May 16, 2018 12:39 pm
by robman501a
I'll try your binary file. I think the router is only 32 bit anyway. :D

Re: Running the RTL-SDRv3 on an old router for ADS-B

Posted: Wed May 16, 2018 5:30 pm
by Stry
robman501a wrote:
Wed May 16, 2018 12:39 pm
I'll try your binary file. I think the router is only 32 bit anyway. :D
My binary is for the x86/64 platform and will not work on an Atheros SoC.

Re: Running the RTL-SDRv3 on an old router for ADS-B

Posted: Thu May 24, 2018 8:13 pm
by robman501a
Stry wrote:
Wed May 16, 2018 8:07 am
robman501a wrote:
Tue May 15, 2018 5:55 pm
I'm not sure how to do that.
Hope this build works with the Atheros CPU in the router.
[*]Download and extract the OpenWRT build environment.
[*]Edit the OWRT and my rtl_biast Makefile for your (Atheros AR71xx) platform.
[*]Then you can create a single package using my Makefile for your Atheros platform.
I got lost at the menu screen. (make menuconfig) Was I supposed to stop after using git?

Probably a heck of a time to say this but I don't know much about compiling.

Re: Running the RTL-SDRv3 on an old router for ADS-B

Posted: Mon Apr 13, 2020 8:57 pm
by robman501a
Stry wrote:
Wed May 16, 2018 8:07 am
robman501a wrote:
Tue May 15, 2018 5:55 pm
I'm not sure how to do that.
Hope this build works with the Atheros CPU in the router.
OpenWRT makes cross-platform compilation easy.
If it builds for x86/64, there's no reason short of exotic library issues why it shouldn't build on an Atheros.
Have you asked for help on Freenode's #OpenWRT or #lede-dev?

[*]Download and extract the OpenWRT build environment.
[*]Edit the OWRT and my rtl_biast Makefile for your (Atheros AR71xx) platform.
[*]Then you can create a single package using my Makefile for your Atheros platform.

Even if it doesn't create a convenient package you could install/uninstall with opkg, it'll create the binary and libraries you need. Then, simply copy them over to their appropriate locations on your router, see my post linked above for the file/dir layout.
Hi, I just want to take another try at this. I'm not too sure what I have to change in the OWRT Makefile and which Makefile I'm supposed to be looking at. As for your makefile, which folder does it go in to also, where am I supposed to point this line to

Code: Select all

PKG_BUILD_DIR:=/home/strykar/builds/rtlsdrbiast-1
?