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

Show off any of your RTL-SDR or cheap SDR related projects.
Post Reply
robman501a
Posts: 6
Joined: Mon May 14, 2018 3:24 pm

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

Post by robman501a » Mon May 14, 2018 3:31 pm

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

rtlsdrblog
Site Admin
Posts: 1823
Joined: Mon Nov 19, 2012 11:54 pm

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

Post by rtlsdrblog » 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.

Stry
Posts: 12
Joined: Thu Dec 03, 2015 8:18 am

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

Post by Stry » 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

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

robman501a
Posts: 6
Joined: Mon May 14, 2018 3:24 pm

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

Post by robman501a » Tue May 15, 2018 5:55 pm

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.

robman501a
Posts: 6
Joined: Mon May 14, 2018 3:24 pm

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

Post by robman501a » Tue May 15, 2018 5:57 pm

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. :)

Stry
Posts: 12
Joined: Thu Dec 03, 2015 8:18 am

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

Post by Stry » 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.

robman501a
Posts: 6
Joined: Mon May 14, 2018 3:24 pm

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

Post by robman501a » Wed May 16, 2018 12:39 pm

I'll try your binary file. I think the router is only 32 bit anyway. :D

Stry
Posts: 12
Joined: Thu Dec 03, 2015 8:18 am

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

Post by Stry » Wed May 16, 2018 5:30 pm

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.

robman501a
Posts: 6
Joined: Mon May 14, 2018 3:24 pm

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

Post by robman501a » Thu May 24, 2018 8:13 pm

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.

Post Reply