Difference between revisions of "User:Saul/Open WRT"
m (Raspberry Pi Installation) |
(→Raspberry Pi Installation) |
||
Line 2: | Line 2: | ||
== Raspberry Pi Installation == | == Raspberry Pi Installation == | ||
+ | Check what the SoC is for your Pi (see the Raspberry Pi link under Useful Links): | ||
+ | |||
+ | <blockquote> | ||
+ | The Raspberry Pi is supported in the brcm2708 target.<br> | ||
+ | Subtargets are bcm2708 for Raspberry Pi 1, bcm2709 for the Raspberry Pi 2, bcm2710 for the Raspberry Pi 3, bcm2711 for the Raspberry Pi 4.<br> | ||
+ | <br> | ||
+ | bcm2709 subtarget can be used for bcm2710 and bcm2711 devices.<br> | ||
+ | This subtarget features a 32 bit kernel instead of a 64 bit kernel (64 bit kernels aren't “officially supported” by the Raspberry Pi foundation). | ||
+ | </blockquote> | ||
+ | |||
+ | Then find the build for your image under the snapshots page (Useful Links). | ||
=== Useful Links === | === Useful Links === | ||
* https://openwrt.org/toh/raspberry_pi_foundation/raspberry_pi | * https://openwrt.org/toh/raspberry_pi_foundation/raspberry_pi | ||
* https://downloads.openwrt.org/snapshots/targets/ | * https://downloads.openwrt.org/snapshots/targets/ | ||
+ | * https://github.com/openwrt/openwrt | ||
== Using the Package Manager == | == Using the Package Manager == |
Revision as of 17:09, 20 February 2020
Documentation for my experience attempting to setup and run Open WRT on a Raspberry Pi.
Contents
Raspberry Pi Installation
Check what the SoC is for your Pi (see the Raspberry Pi link under Useful Links):
The Raspberry Pi is supported in the brcm2708 target.
Subtargets are bcm2708 for Raspberry Pi 1, bcm2709 for the Raspberry Pi 2, bcm2710 for the Raspberry Pi 3, bcm2711 for the Raspberry Pi 4.
bcm2709 subtarget can be used for bcm2710 and bcm2711 devices.
This subtarget features a 32 bit kernel instead of a 64 bit kernel (64 bit kernels aren't “officially supported” by the Raspberry Pi foundation).
Then find the build for your image under the snapshots page (Useful Links).
Useful Links
- https://openwrt.org/toh/raspberry_pi_foundation/raspberry_pi
- https://downloads.openwrt.org/snapshots/targets/
- https://github.com/openwrt/openwrt
Using the Package Manager
Open WRT's default package manager is opkg, the docs for it can be found here.
To install a new package the package lists must be updated,
opkg update # update the package lists
opkg install PACKAGENAME # install a new package.
Wifi Drivers
The wifi drivers for my wifi dongle (Ralink) were not pre-installed so running this installed them:
opkg update # update the package lists
opkg install kmod-rt2800-lib kmod-rt2800-usb kmod-rt2x00-lib kmod-rt2x00-usb
reboot
Setup Network Via SSH
When compiling Open WRT from source it may have no internet connectivity and the interface (LuCI) may not be installed.
Following the instructions from Open WRT's Docs we can connect via SSH:
uci set network.lan.ipaddr='192.168.2.200' # static address for this device
uci set network.lan.gateway='192.168.2.1' # Router ip
uci set network.lan.dns='192.168.2.1' # router dns or provider
uci commit
service network restart
Then LuCI can be installed.
opkg update
opkg install luci
Captive Portal Via NoDogSplash
https://finaldie.com/blog/install-openwrt-on-raspberry-pi-1b-model/ https://github.com/nodogsplash/nodogsplash/issues/465 https://nodogsplashdocs.readthedocs.io/en/stable/install.html