Changes between Version 1 and Version 2 of EdgeRouterLite


Ignore:
Timestamp:
Oct 9, 2015, 12:15:13 PM (4 years ago)
Author:
amain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EdgeRouterLite

    v1 v2  
    1 The [https://www.ubnt.com/edgemax/edgerouter-lite/ EdgeRouter Lite] is yet another very affordable, high performance solution from Ubiquity, now runs DebWrt!
     1The [https://www.ubnt.com/edgemax/edgerouter-lite/ EdgeRouter Lite] is yet another very affordable, high performance solution from Ubiquity. And now runs DebWrt!
    22
    33||='''Firmware''' =||[] ||
    44||='''Modules''' =||[] ||
    55||='''RootFS''' =||[ mips (Big Endian)] ||
     6
     7== Installation ==
     8
     9Installation is somewhat different from 'standard' embedded devices. The erlite has a small 2GB USB drive inside. A drive which can be replaced if needed. Normally we need to flash a device, but with the erlite both kernel and root filesystem reside on the USB drive. Which makes it an ideal device for running DebWrt.
     10
     11There are 2 installation methods possible:
     12
     13  * NFS boot (requires serial console)
     14  * Using another computer (device needs to be opened and USB disk removed)
     15
     16If you don't wan't to open the device, or want to test DebWrt, use NFS boot. If you don't mind opening the device, remove the USB disk and install the kernel and rootfs using another computer. The latter is the easiest installation type.
     17
     18=== NFS boot ===
     19
     20This requires access to the serial console(see below), TFTP server and NFS server. Example configurations available in this article. Note that this article uses Ubuntu to run the TFTP and NFS servers.
     21
     22==== Setup TFTP Server (DNSMasq) ===
     23
     24Replace [IP-DNS-SERVER] with the IP-address of your DNS server. This may be useful if you want to connect the erlite to your network/internet later on.
     25
     26Put the following in /etc/dnsmasq.conf.
     27{{{
     28interface=eth0
     29bind-interfaces
     30expand-hosts
     31domain=thuis.lan
     32domain-needed
     33bogus-priv
     34local=/thuis.lan/
     35dhcp-range=192.168.1.1,192.168.1.2,12h
     36dhcp-option=[IP-DNS-SERVER]
     37dhcp-option=17,/nfs/root
     38enable-tftp
     39tftp-root=/var/lib/tftpboot
     40}}}
     41
     42Restart the DNS server
     43
     44{{{
     45/etc/init.d/dnsmasq restart
     46}}}
     47
     48
     49==== Setup NFS kernel server ===
     50
     51Prepare the NFS root filesystem:
     52
     53{{{
     54mkdir -p /nfs/rootfs
     55tar xf debwrt-modules-octeon-generic-[kernel-version]-[debwrt-version].tar.gz -C /nfs/rootfs
     56tar xf debwrt-rootfs-octeon-generic-[kernel-version]-[debwrt-version].tar.gz -C /nfs/rootfs
     57}}}
     58
     59Setup the NFS export by adding the following line to /etc/exports:
     60{{{
     61/nfs/root       192.168.1.2(rw,sync,no_subtree_check,no_root_squash)
     62}}}
     63
     64And restart the kernel server
     65
     66{{{
     67/etc/init.d/nfs-kernel-server restart
     68}}}
     69
     70=== Boot device over NFS ===
     71
     72Plugin the serial console, start minicom -w on your PC (after configure it with sudo minicom -s). And power up the erlite. Press CTRL-C to access the U-Boot command line prompt.
     73
    674
    775== Build from source ==
     
    1078
    1179
    12 == Console connection ==
     80== Serial console connection ==
    1381
    14 To connect to the RJ45 console port, use an Cisco Console cable (RJ45 to DB9). Or solder or 'hack' one using (old) RJ45 cable and (old) serial cable (DB female). I tested the latter and it turns out that only three wires need to be connected for full serial connection: GND, RX, TX.
     82To connect to the RJ45 console port, use an Cisco Console cable (RJ45 to DB9). Or solder / 'hack' one using an (old) RJ45 cable and an (old) serial cable (DB female). I tested the latter and it turns out that only three wires need to be connected for full serial connection: GND, RX, TX. Quick and dirty but works like a charm.
     83
     84  * http://www.instructables.com/id/Simple-RJ45-DB9-Cisco-console-cable/
     85  * http://www.allpinouts.org/index.php/Cisco_Console_RJ45_to_DB9_Pin
    1586
    1687
    17