OpenWRT distribution for Serval Mesh Extenders
C Makefile Shell C++ Objective-C Perl Other
Pull request Compare This branch is 571 commits ahead, 3606 commits behind openwrt:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
docs
include
package mvebu: bugfixes for rango Oct 18, 2016
scripts
target
toolchain
tools
.config
.gitattributes
.gitignore
BSDmakefile
Config.in
LICENSE rename GPL to LICENSE Aug 13, 2005
Makefile
README
README-OpenWRT
feeds.conf enable serval packages. Jan 16, 2017
feeds.conf.default
rules.mk build: add -Wno-error=unused-result to target cflags Nov 23, 2015

README

To build a Mesh Extender image:

1. ./scripts/feeds update serval
2. ./scripts/feeds install -p serval
3. ./scriptes/feeds install -a serval
4. make world

The binary for installation should then be in:

bin/ar71xx/openwrt-ar71xx-generic-gl-ar150-initramfs-kernel.bin

To flash, connect to the serial port at 115200:

cu -l /dev/cu.usbserial -s 115200

or if you have trouble with cu:

screen /dev/cu.usbserial 115200

Bit in either case, change /dev/cu.usbserial to the correct device name for
your USB to serial adapter.

Reboot the node in some way, so that you see the uboot prompt:


*********************************************
*        U-Boot 1.1.4  (Jun  6 2015)        *
*********************************************

AP121 (AR9331) U-Boot for DOMINO v1

DRAM:   64 MB DDR2 16-bit
FLASH:  Winbond W25Q128 (16 MB)
CLOCKS: 400/400/200/33 MHz (CPU/RAM/AHB/SPI)

** Warning: bad env CRC, using default,
   use 'saveenv' to save it in FLASH

LED on during eth initialization...

  _____     ____    __  __   _____   _   _    ____   
 |  __ \   / __ \  |  \/  | |_   _| | \ | |  / __ \  
 | |  | | | |  | | | \  / |   | |   |  \| | | |  | | 
 | |  | | | |  | | | |\/| |   | |   | . ` | | |  | | 
 | |__| | | |__| | | |  | |  _| |_  | |\  | | |__| | 
 |_____/   \____/  |_|  |_| |_____| |_| \_|  \_____@ 



Press any key when prompted to interrupt the boot process:

Hit any key to stop autobooting:  0 

uboot> 

Plug in an ethernet cable, connected to another computer.
The Mesh Extender node will have an IP of 192.168.1.1, so
pick another IP address on that subnet for the connected
computer.

Type httpd to start the firmware update webserver:

uboot> httpd
Link down: eth0
Ethernet mode (duplex/speed): 1/1000 Mbps
HTTP server is starting at IP: 192.168.1.1
HTTP server is ready!

When it shows something like the above, browse to http://192.168.1.1
and select the firmware file to upload, and trigger the firmware update.  

You should see the update process on the serial console, similar to the
following:

         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #######################################
         #############

open file: /flashing.htmlHTTP upload is done! Upgrading...


****************************
*    FIRMWARE UPGRADING    *
* DO NOT POWER OFF DEVICE! *
****************************

Executing: erase 0x9F050000 +0x4BFE0A; cp.b 0x80800000 0x9F050000 0x4BFE0A

Erase FLASH from 0x9F050000 to 0x9F50FFFF in bank #1
Erasing: #######################################
         #####################################

Erased sectors: 76

Copying to FLASH...
Writting at address: 0x9F050000

Done!

HTTP ugrade is done! Rebooting...


Resetting the board...


*********************************************
*        U-Boot 1.1.4  (Jun  6 2015)        *
*********************************************

AP121 (AR9331) U-Boot for DOMINO v1

DRAM:   64 MB DDR2 16-bit
FLASH:  Winbond W25Q128 (16 MB)
CLOCKS: 400/400/200/33 MHz (CPU/RAM/AHB/SPI)

** Warning: bad env CRC, using default,
   use 'saveenv' to save it in FLASH

LED on during eth initialization...

  _____     ____    __  __   _____   _   _    ____   
 |  __ \   / __ \  |  \/  | |_   _| | \ | |  / __ \  
 | |  | | | |  | | | \  / |   | |   |  \| | | |  | | 
 | |  | | | |  | | | |\/| |   | |   | . ` | | |  | | 
 | |__| | | |__| | | |  | |  _| |_  | |\  | | |__| | 
 |_____/   \____/  |_|  |_| |_____| |_| \_|  \____/  

Hit any key to stop autobooting:  0 

Device calibrated. Booting ...
Booting image at: 0x9F050000

   Image name:   MIPS OpenWrt Linux-3.18.45
   Created:      2017-01-16  12:25:28 UTC
   Image type:   MIPS Linux Kernel Image (lzma compressed)
   Data size:    4980170 Bytes = 4.7 MB
   Load address: 0x80060000
   Entry point:  0x80060000

Uncompressing kernel image... OK!
Starting kernel...

[    0.000000] Linux version 3.18.45 (serval@meshextender-imaging) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49389) ) #4 Mon Jan 16 22:54:46 CST 2017
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  board=GL-AR150 mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env)ro,16000k(firmware),64k(art)ro console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 57168K/65536K available (2533K kernel code, 149K rwdata, 540K rodata, 3936K init, 188K bss, 8368K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] NET: Registered protocol family 16
[    0.100000] MIPS: machine is GL AR150
[    0.590000] Switched to clocksource MIPS
[    0.590000] NET: Registered protocol family 2
[    0.600000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.600000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.600000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.610000] TCP: reno registered
[    0.610000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.620000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.630000] NET: Registered protocol family 1
[    7.560000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    7.580000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    7.590000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    7.600000] msgmni has been set to 111
[    7.600000] io scheduler noop registered
[    7.600000] io scheduler deadline registered (default)
[    7.610000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    7.620000] ar933x-uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a A?N?&?IQ5
                                                                                                     [    7.620000] console [ttyATH0] enabled
[    7.620000] console [ttyATH0] enabled
[    7.630000] bootconsole [early0] disabled
[    7.630000] bootconsole [early0] disabled
[    7.640000] m25p80 spi0.0: found w25q128, expected m25p80
[    7.650000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    7.650000] 4 cmdlinepart partitions found on MTD device spi0.0
[    7.660000] Creating 4 MTD partitions on "spi0.0":
[    7.660000] 0x000000000000-0x000000040000 : "u-boot"
[    7.670000] 0x000000040000-0x000000050000 : "u-boot-env"
[    7.670000] 0x000000050000-0x000000ff0000 : "firmware"
[    7.700000] 2 uimage-fw partitions found on MTD device firmware
[    7.710000] 0x000000050000-0x000000810000 : "kernel"
[    7.710000] 0x000000810000-0x000000ff0000 : "rootfs"
[    7.720000] mtd: device 4 (rootfs) set to be root filesystem
[    7.720000] mtdsplit: no squashfs found in "rootfs"
[    7.730000] mtdsplit: no squashfs found in "spi0.0"
[    7.740000] 0x000000ff0000-0x000001000000 : "art"
[    7.760000] libphy: ag71xx_mdio: probed
[    8.350000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    8.360000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    8.950000] ag71xx-mdio.1: Found an AR7240/AR9330 built-in switch
[    8.980000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    8.980000] TCP: cubic registered
[    8.990000] NET: Registered protocol family 17
[    8.990000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    9.000000] 8021q: 802.1Q VLAN Support v1.8
[    9.040000] Freeing unused kernel memory: 3936K (80388000 - 80760000)
[    9.050000] random: init urandom read with 14 bits of entropy available
[    9.070000] init: Console is alive
[    9.070000] init: - watchdog -
[    9.110000] usbcore: registered new interface driver usbfs
[    9.120000] usbcore: registered new interface driver hub
[    9.120000] usbcore: registered new device driver usb
[    9.180000] SCSI subsystem initialized
[    9.190000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.200000] ehci-platform: EHCI generic platform driver
[    9.200000] ehci-platform ehci-platform: EHCI Host Controller
[    9.210000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    9.220000] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
^[[C[    9.240000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    9.240000] hub 1-0:1.0: USB hub found
[    9.240000] hub 1-0:1.0: 1 port detected
[    9.260000] usbcore: registered new interface driver usb-storage
[    9.570000] usb 1-1: new full-speed USB device number 2 using ehci-platform
[    9.790000] usb 1-1: device descriptor read/64, error -71
[   10.080000] init: - preinit -
[   10.110000] usb 1-1: device descriptor read/64, error -71
[   10.340000] usb 1-1: new full-speed USB device number 3 using ehci-platform
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   10.560000] usb 1-1: device descriptor read/64, error -71
[   10.880000] usb 1-1: device descriptor read/64, error -71
[   11.110000] usb 1-1: new full-speed USB device number 4 using ehci-platform
[   11.590000] usb 1-1: device not accepting address 4, error -71
[   11.710000] usb 1-1: new full-speed USB device number 5 using ehci-platform
[   12.190000] usb 1-1: device not accepting address 5, error -71
[   12.190000] usb usb1-port1: unable to enumerate USB device
[   13.490000] procd: - early -
[   13.500000] procd: - watchdog -
[   14.090000] procd: - ubus -
[   15.100000] procd: - init -
Please press Enter to activate this console.
[   16.140000] NET: Registered protocol family 10
[   16.180000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   16.200000] Loading modules backported from Linux version v4.4-rc5-1913-gc8fdf68
[   16.210000] Backport generated by backports.git backports-20151218-0-g2f58d9d
[   16.220000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.240000] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
[   16.270000] usbcore: registered new interface driver ums-alauda
[   16.280000] usbcore: registered new interface driver ums-cypress
[   16.290000] usbcore: registered new interface driver ums-datafab
[   16.300000] usbcore: registered new interface driver ums-freecom
[   16.300000] usbcore: registered new interface driver ums-isd200
[   16.310000] usbcore: registered new interface driver ums-jumpshot
[   16.320000] usbcore: registered new interface driver ums-karma
[   16.330000] usbcore: registered new interface driver ums-sddr09
[   16.330000] usbcore: registered new interface driver ums-sddr55
[   16.340000] usbcore: registered new interface driver ums-usbat
[   16.350000] usbcore: registered new interface driver usbserial
[   16.360000] usbcore: registered new interface driver usbserial_generic
[   16.360000] usbserial: USB Serial support registered for generic
[   16.390000] xt_time: kernel timezone is -0000
[   16.400000] usbcore: registered new interface driver ark3116
[   16.400000] usbserial: USB Serial support registered for ark3116
[   16.410000] usbcore: registered new interface driver belkin_sa
[   16.410000] usbserial: USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter
[   16.470000] usbcore: registered new interface driver ch341
[   16.470000] usbserial: USB Serial support registered for ch341-uart
[   16.480000] usbcore: registered new interface driver cp210x
[   16.480000] usbserial: USB Serial support registered for cp210x
[   16.490000] usbcore: registered new interface driver cypress_m8
[   16.500000] usbserial: USB Serial support registered for DeLorme Earthmate USB
[   16.500000] usbserial: USB Serial support registered for HID->COM RS232 Adapter
[   16.510000] usbserial: USB Serial support registered for Nokia CA-42 V2 Adapter
[   16.540000] usbcore: registered new interface driver ftdi_sio
[   16.540000] usbserial: USB Serial support registered for FTDI USB Serial Device
[   16.630000] PPP generic driver version 2.4.2
[   16.630000] NET: Registered protocol family 24
[   16.720000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   25.570000] device eth1 entered promiscuous mode
[   25.570000] br-lan: port 1(eth1) entered forwarding state
[   25.580000] br-lan: port 1(eth1) entered forwarding state
[   25.650000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   26.530000] br-lan: port 1(eth1) entered disabled state
[   27.170000] eth1: link up (1000Mbps/Full duplex)
[   27.170000] br-lan: port 1(eth1) entered forwarding state
[   27.170000] br-lan: port 1(eth1) entered forwarding state
[   29.170000] br-lan: port 1(eth1) entered forwarding state