OpenWRT for Raspberry Pi


19 posts
by unsimple » Sun Apr 29, 2012 12:34 pm
The Raspberry Pi is a wonderful little device, and would be even better if it had OpenWRT! This thing could make powerful routers extremely inexpensive, the only problem is that I have no idea how to make it run on the Pi. Any ideas?
Posts: 3
Joined: Mon Jan 02, 2012 6:00 am
by tomtor » Sun Apr 29, 2012 1:03 pm
OpenWRT is just a Linux tuned in such a way that it acts as a router.

In principle you can use the standard Linux distributions for the Pi and tune them

so the Pi acts as an access point. There are various articles describing this, eg:

http://exain.wordpress.com/201.....b-adapter/

You'll need a supported USB WIFI stick though.
Posts: 44
Joined: Sun Apr 08, 2012 2:19 am
by Joe Schmoe » Sun Apr 29, 2012 1:55 pm
Typical useless response.  What I'm going to call "The YX problem", which goes like this:

OP: I want to do X.  What do you think of X?  Can you help me with X?

Responder: Here, do Y instead.

OP: I want to do X.  X is what I want to do.  Can you help me with X?

Responder: Do Y.  Y is better for you and more healthy and nutritious.

OP: Arghhhhhhhhhhh!
Never answer the question you are asked. Rather, answer the question you wish you had been asked.

- Robert S. McNamara - quoted in "Fog of War" -
Posts: 2268
Joined: Sun Jan 15, 2012 1:11 pm
by tomtor » Sun Apr 29, 2012 2:59 pm
Clearly Mister Schmoe doesn't get it (thanks for your illuminating contributions to this forum) but

@OP: You can turn the standard Pi distribution into a system like OpenWRT by adding the OpenWRT programs which supply the web interface. The underlying Linux infrastructure is already there...
Posts: 44
Joined: Sun Apr 08, 2012 2:19 am
by bobc » Sun Apr 29, 2012 3:11 pm
unsimple said:


The Raspberry Pi is a wonderful little device, and would be even better if it had OpenWRT! This thing could make powerful routers extremely inexpensive, the only problem is that I have no idea how to make it run on the Pi. Any ideas?


I don't like saying "read the FAQ" because they often don't say much, but OpenWRT seems to have a lot of docs. Have a read of http://wiki.openwrt.org/doc/start particularly the sections "Developing" and "Building".
Posts: 87
Joined: Fri Apr 06, 2012 8:01 am
by jamesh » Sun Apr 29, 2012 4:02 pm
Joe Schmoe said:


Typical useless response.  What I'm going to call "The YX problem", which goes like this:

OP: I want to do X.  What do you think of X?  Can you help me with X?

Responder: Here, do Y instead.

OP: I want to do X.  X is what I want to do.  Can you help me with X?

Responder: Do Y.  Y is better for you and more healthy and nutritious.

OP: Arghhhhhhhhhhh!


@Joe, please keep you posts civil. I've noticed you replying like this a few times. Whether the reply is 'useless' or not, it's not up to you to point it out (and thereby be rude to the replier, which is against forum regs), but for the OP to decide whether its pertinent.
Raspberry Pi Engineer
Raspberry Pi Engineer
Posts: 10587
Joined: Sat Jul 30, 2011 7:41 pm
by lyzby » Mon Apr 30, 2012 12:45 am
I have extensive experience with openWrt--not as a router but as an operating system for little computers which are much too limited in resources to run a full linux distribution (and not with porting to a new device).

I would say two things about openWrt on the Pi--first, the Pi hardware is not very router-like, and second, it is capable of running full linux distributions with, apparently, reasonable responsiveness.

By the time we have reached full availability, I will probably get a half-dozen Pis, but I wouldn't plan to put openWrt on one when debian, Arch, and possibly Fedora are available. My mind could be changed if anyone pointed out useful computer-like things which you could do on a Pi with openWrt but not other distributions.
Posts: 24
Joined: Sun Nov 20, 2011 3:34 am
by daveg » Mon Apr 30, 2012 6:58 am
if you are looking for a cheap router platform to run open-wrt or dd-wrt the Pi isnt what you are looking for.

Firstly it only has one ethernet port, not very useful for routing unless you want to run vlans and make a "lolipop" router. Secondly, if you then wanted to add an ethernet or wifi usb dongle, the throughput wouldnt be that great. The Pi simply ISNT designed to be a router.

check out the Asus RT-N10 if you want a cheap dd-wrt router, scan in the uk sell them for under £12. I can assure you that they work. I took a "punt" on one to see if dd-wrt was worth looking into. As it turns out is was so bought an Asus RT-N16 and then loaded TomatoUSB onto it (a different story there!)
User avatar
Posts: 118
Joined: Thu Dec 01, 2011 9:36 am
by CapnBry » Sat May 12, 2012 12:32 pm
lyzby said:


... My mind could be changed if anyone pointed out useful computer-like things which you could do on a Pi with openWrt but not other distributions.


Digging up an old topic, I think the advantage OpenWrt has over a full distribution is simply size. Why would anyone want a 1GB Linux distro to serve web pages when you can do it in 3MB? I work a lot with OpenWrt routers which have been converted to be basically wifi-enabled web servers which hook serially to an embedded microcontroller for managing sensors.

The Pi has a tremendous advantage over tearing apart a router in size and expandability with built-in storage (the remainder of the SD card). I don't think the argument that "storage is cheap" warrants having to distribute system images on the order of gigabytes in order to share my work.

Think of OpenWrt as a slimmed down server distro.
Posts: 26
Joined: Sun Jan 08, 2012 2:04 pm
by rew » Sat May 12, 2012 7:59 pm
Openwrt is a distribution that could be useful on a 'pi.

However it is optmized to run in much less memory and flash than what we have on the 'pi. So it is unnecessary. On the other hand, why use more if that's all you need. Well for starters, you get a nicer "environment" if you take a full distro like debian.

Anyway, that said: I don't have experience with compiling openwrt. To compile openwrt, I suggest you google for "openwrt source download" and download the source. Next you google for "openwrt compile from source". Read what comes up. Good luck!

(First post on the new forum???) :-)
Check out our raspberry pi addons: http://www.bitwizard.nl/catalog/
User avatar
Posts: 391
Joined: Fri Aug 26, 2011 3:25 pm
by HansH » Sun May 13, 2012 2:08 pm
unsimple wrote:The Raspberry Pi is a wonderful little device, and would be even better if it had OpenWRT! This thing could make powerful routers extremely inexpensive, the only problem is that I have no idea how to make it run on the Pi. Any ideas?

Powerful routers are already inexpensive.
You can buy a 22 Euro Carambola, which has a RT3050 on it with OpenWRT in its flash and a integrated wifi and eth switch. see : http://www.8devices.com/product/3/carambola
Posts: 212
Joined: Mon Sep 05, 2011 7:49 am
by lyzby » Mon May 14, 2012 12:26 am
CapnBry wrote:lyzby said:


... My mind could be changed if anyone pointed out useful computer-like things which you could do on a Pi with openWrt but not other distributions.


Digging up an old topic, I think the advantage OpenWrt has over a full distribution is simply size. Why would anyone want a 1GB Linux distro to serve web pages when you can do it in 3MB? I work a lot with OpenWrt routers which have been converted to be basically wifi-enabled web servers which hook serially to an embedded microcontroller for managing sensors.

The Pi has a tremendous advantage over tearing apart a router in size and expandability with built-in storage (the remainder of the SD card). I don't think the argument that "storage is cheap" warrants having to distribute system images on the order of gigabytes in order to share my work.

Think of OpenWrt as a slimmed down server distro.


I do exactly the same thing with openWrt, but am more inclined to use usb-serial to connect to the microcontroller--for instance, with the TP-Link WR-703N--no "tearing apart" required. With the Pi, I don't see what the advantage is in shoehorning it all into 3mb when you have no flash onboard, and need an SD card anyway in order to boot.

But for the fun of it, that would be a different matter.
Posts: 24
Joined: Sun Nov 20, 2011 3:34 am
by Steve Newall » Thu May 24, 2012 6:49 pm
I use OpenWRT at home and at work on small routers. I agree that OpenWRT is small, light, has a lot of support, and is useful for non-routers also.

The router board I use is the ALFA Hornet-UB, and in the quantities we buy, is also around $35. It has a second ethernet port and WiFi, but no video/HDMI. I would like to standardise on one Linux flavour, and so I would be interested in using OpenWRT on the Raspberry PI.
Posts: 1
Joined: Thu May 24, 2012 6:43 pm
by lancethepants » Sat Jun 02, 2012 8:28 am
Looks like there is already work been done on this.

http://code.google.com/p/raspberrypi-openwrt/
Posts: 2
Joined: Sun Feb 05, 2012 6:41 am
by richardgoh » Mon Aug 20, 2012 10:27 am
Yes I wld be interested in openwrt on rasbpi.
This is because I would like to make customised 3G routers.
Have tried openwrt on WR703 but the 3G portion is highly unstable.
Also routers as WR703 will be obsolete very quickly and need to redo the porting to the new devices.
Whereas hopefully rasbpi will last longer.

Its comforting to get a basic router working quickly with all the configs already done
and then customise thereon;
then to try and figure out all the configs from a standard distro as ubuntu say.

Hence it is very helpful with my little knowledge of Linux and desire to create custom 3G router.
Posts: 4
Joined: Mon Aug 20, 2012 10:22 am
by richardgoh » Tue Aug 21, 2012 6:43 am
No packages on trunk :(
==
Downloading http://downloads.openwrt.org/snapshots/ ... ackages.gz.
wget: server returned error: HTTP/1.1 404 Not Found
Collected errors:
* opkg_download: Failed to download http://downloads.openwrt.org/snapshots/ ... ackages.gz, wget returned 1.
root@OpenWrt:~#
===
Posts: 4
Joined: Mon Aug 20, 2012 10:22 am
by gregd72002 » Thu Aug 30, 2012 8:57 am
Guys, it looks like this has already been done. From what I found DirectFB team is looking into getting openwrt on raspberry pi. Look into their GIT repo and you will find openwrt patches for rpi:

http://git.directfb.org/?p=openwrt/klei ... ;a=summary
http://git.directfb.org/?p=openwrt/pack ... ;a=summary

Though, I did not have time yet to try it myself...
Posts: 31
Joined: Tue May 08, 2012 9:17 pm
by gendouhydeist » Mon Sep 03, 2012 9:57 pm
Those might not be aware there's been a patch on SVN trunk that supports Raspberry Pi added 6 weeks a go.
https://dev.openwrt.org/changeset/32825
https://dev.openwrt.org/changeset/32824

for those who want to compile using trunk version read this:
http://wiki.openwrt.org/doc/howto/buildroot.exigence
http://wiki.openwrt.org/doc/howto/build?s[]=compiling

if you want a desktop environment uncomment the # sign in <builroot dir>/feeds.conf.default
#src-svn svn://svn.openwrt.org/openwrt/feeds/xfce

then scripts/feeds install -a xfce
Posts: 1
Joined: Mon Sep 03, 2012 9:49 pm
by gregd72002 » Tue Sep 11, 2012 10:24 pm
Can someone comment on the performance and usability when using openwrt? In particular I would like to know:
- is it hard float version?
- are there pre-compiled packages?
- anyone tried xbmc on openwrt?
- anything else?
Posts: 31
Joined: Tue May 08, 2012 9:17 pm