openwrt.git
8 years agomvebu: drop preinit script
luka [Thu, 26 Jun 2014 10:21:32 +0000 (10:21 +0000)]
mvebu: drop preinit script

The /lib/mvebu.sh script can now handle this task.

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41341 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agouboot-envtools: use new scripts from /lib/ to match boards
luka [Thu, 26 Jun 2014 10:14:14 +0000 (10:14 +0000)]
uboot-envtools: use new scripts from /lib/ to match boards

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41340 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoimx6: move imx6.sh to /lib/ for consistency
luka [Thu, 26 Jun 2014 10:14:13 +0000 (10:14 +0000)]
imx6: move imx6.sh to /lib/ for consistency

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41339 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokirkwood: move kirkwood.sh to /lib/ for consistency
luka [Thu, 26 Jun 2014 10:13:47 +0000 (10:13 +0000)]
kirkwood: move kirkwood.sh to /lib/ for consistency

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41338 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoubus: update to the latest version, fixes netifd related crashes on ubus calls during...
nbd [Wed, 25 Jun 2014 08:32:14 +0000 (08:32 +0000)]
ubus: update to the latest version, fixes netifd related crashes on ubus calls during reload

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41337 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokirkwood: base-files: use /lib/functions/kirkwood.sh
luka [Tue, 24 Jun 2014 18:18:53 +0000 (18:18 +0000)]
kirkwood: base-files: use /lib/functions/kirkwood.sh

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41336 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokirkwood: base-files: add script to detect board name and populate /tmp/sysinfo
luka [Tue, 24 Jun 2014 18:18:51 +0000 (18:18 +0000)]
kirkwood: base-files: add script to detect board name and populate /tmp/sysinfo

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41335 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobase-files: update copyright headers
luka [Tue, 24 Jun 2014 18:18:50 +0000 (18:18 +0000)]
base-files: update copyright headers

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41334 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoar71xx: fix wndr3700v4 image header
blogic [Tue, 24 Jun 2014 18:14:23 +0000 (18:14 +0000)]
ar71xx: fix wndr3700v4 image header

https://dev.openwrt.org/ticket/16840

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41333 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoar71xx: remove old jffs2 marker from image generation on nand targets
blogic [Tue, 24 Jun 2014 18:14:18 +0000 (18:14 +0000)]
ar71xx: remove old jffs2 marker from image generation on nand targets

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41332 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoralink: Update MT7530 switch driver.
blogic [Tue, 24 Jun 2014 18:14:14 +0000 (18:14 +0000)]
ralink: Update MT7530 switch driver.

- Support set VLAN ID of each vlan.
- Support untag feature.
- Replace register address with C MACRO.
- There are 8 ports for MT7530 actually.

Signed-off-by: Xiongfei Guo <xfguo@credosemi.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41331 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agompc83xx: add missing kernelnames into Makefile
blogic [Tue, 24 Jun 2014 18:14:09 +0000 (18:14 +0000)]
mpc83xx: add missing kernelnames into Makefile

add missing kernelnames to Makefile because those files are needed in 'target/linux/mpc83xx/image/Makefile'. Without them a compilation for mpc83xx is not possible - the buildbot stops with the error "No such file or directory"

Signed-off-by: Claudio Thomas <ct@xmodus-systems.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41330 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoconfig/Config-images.in: enable zlib as the default ubi compression
blogic [Tue, 24 Jun 2014 18:14:05 +0000 (18:14 +0000)]
config/Config-images.in: enable zlib as the default ubi compression

http://patchwork.openwrt.org/patch/5686/

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41329 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolibubox: update to latest git head
blogic [Tue, 24 Jun 2014 18:14:01 +0000 (18:14 +0000)]
libubox: update to latest git head

this adds 5 lua fixes to the tree

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41328 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoprocd: fix nand.sh kernel_length typo
blogic [Tue, 24 Jun 2014 18:13:56 +0000 (18:13 +0000)]
procd: fix nand.sh kernel_length typo

sysupgrade otherwise skips kernel part on devices which got
kernel in ubi due to kern_length being undefined, kernel_length
is being used instead.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41327 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoSysupgradeNAND: include rootfs-type in image name
blogic [Tue, 24 Jun 2014 18:13:51 +0000 (18:13 +0000)]
SysupgradeNAND: include rootfs-type in image name

also add quotes to paths

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41326 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar2315-spiflash]: remove duplicated definitions
blogic [Tue, 24 Jun 2014 18:13:47 +0000 (18:13 +0000)]
atheros[ar2315-spiflash]: remove duplicated definitions

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41325 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar2315-spiflash]: update driver id
blogic [Tue, 24 Jun 2014 18:13:43 +0000 (18:13 +0000)]
atheros[ar2315-spiflash]: update driver id

Make id more specific and consistent with others platform drivers.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41324 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar2315-spiflash]: make local variables and functions static
blogic [Tue, 24 Jun 2014 18:13:39 +0000 (18:13 +0000)]
atheros[ar2315-spiflash]: make local variables and functions static

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41323 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar2315-spiflash]: I/O fixes
blogic [Tue, 24 Jun 2014 18:13:35 +0000 (18:13 +0000)]
atheros[ar2315-spiflash]: I/O fixes

Directly use ioread/iowrite functions to avoid odd dependency. And
carefully annotate I/O memory pointers.

Singed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41322 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar2315-spiflash]: make spiflash header local
blogic [Tue, 24 Jun 2014 18:13:31 +0000 (18:13 +0000)]
atheros[ar2315-spiflash]: make spiflash header local

We do not need global access to it, so move it from arch include to the
mtd subdir.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41321 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar2315-spiflash]: pass I/O mem regions via resources
blogic [Tue, 24 Jun 2014 18:13:27 +0000 (18:13 +0000)]
atheros[ar2315-spiflash]: pass I/O mem regions via resources

Pass I/O memory regions (flash read and MMR) via platform device
resources array and use them inside spiflash driver.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41320 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar231x-pci]: do not touch iomem_resource ranges
blogic [Tue, 24 Jun 2014 18:13:22 +0000 (18:13 +0000)]
atheros[ar231x-pci]: do not touch iomem_resource ranges

Moving the start of IO mem to 0x10000000 leads to allocation conflict
with SPI flash memory region, which starts at 0x08000000.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41319 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar2315-spiflash]: print detected flash size
blogic [Tue, 24 Jun 2014 18:13:17 +0000 (18:13 +0000)]
atheros[ar2315-spiflash]: print detected flash size

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41318 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar2315]: don't detect flash size during board initialization
blogic [Tue, 24 Jun 2014 18:13:13 +0000 (18:13 +0000)]
atheros[ar2315]: don't detect flash size during board initialization

We should not detect actual flash size during board initialization to
find board config at the end of the flash, just use large enough mapping
size (currently 128 mbit). If mapping size is larger than the actual
flash size, than flash will simply be mapped multiple times. This change
simplifies code by removing duplication and saves about 200 bytes of
uncompressed kernel :)

Tested with Ubnt LS2 board equipped with STM 25p32v6p NOR flash (32 mbit).

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41317 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoatheros[ar231x-eth]: merge patch
blogic [Tue, 24 Jun 2014 18:13:09 +0000 (18:13 +0000)]
atheros[ar231x-eth]: merge patch

Merge 3_10-updates.patch into the ar2313_ethernet.patch since it contains
only one ethernet driver fix.

Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41316 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agofstools: fix factory reset on ubifs overlay
blogic [Tue, 24 Jun 2014 18:13:05 +0000 (18:13 +0000)]
fstools: fix factory reset on ubifs overlay

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41315 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agofirmware-utils/mkdir615h1: fix magic XOR calculation
blogic [Tue, 24 Jun 2014 18:13:00 +0000 (18:13 +0000)]
firmware-utils/mkdir615h1: fix magic XOR calculation

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41314 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agouboot-envtools: fix build if ubi volume support is disabled
blogic [Tue, 24 Jun 2014 18:12:56 +0000 (18:12 +0000)]
uboot-envtools: fix build if ubi volume support is disabled

Insert a missing #ifdef UBI around the use of libubi_close().
As the preceding if (libubi) will never be true on non-UBI builds,
compiling only failed when disabling optimization.

Also rebase patch to latest u-boot.git HEAD.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41313 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolantiq: remove deprecated jffs2_nand configuration
blogic [Tue, 24 Jun 2014 18:12:52 +0000 (18:12 +0000)]
lantiq: remove deprecated jffs2_nand configuration

As far as I am aware, amongst the lantiq boards, jffs2_nand was
only used on the BTHOMEHUBV2B. Ubi-related modifications to the
device tree for that board mean that the resulting jffs2 images
no longer work, and are no longer required anyway. So I suggest
removing the related configuration, which this patch does.

If anyone else is using jffs2_nand on a lantiq target please speak
up!

Incidentally, for a jffs2 rootfs partition concatenated to the
kernel image to be recognised and mounted correctly on nand
this patch or something equivalent is required:
http://patchwork.openwrt.org/patch/5110/
It is marked as accepted in patchwork but doesn't seem to have
been committed. As far as I am concerned it too is deprecated.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41312 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoimage.mk: introduce Image/Build/UbinizeImage make target
blogic [Tue, 24 Jun 2014 18:12:47 +0000 (18:12 +0000)]
image.mk: introduce Image/Build/UbinizeImage make target

paramters:
$(1) board name
$(2) ubinize-image options (e.g. --no-kernel and/or --uboot-env)
$(3) rootfstype (e.g. squashfs or ubifs)
$(4) kernel image file
$(5) options to pass-through to ubinize (i.e. $($(PROFILE)_UBI_OPTS)))

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41311 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolantiq: ubinize autoresize flag for rootfs_data
blogic [Tue, 24 Jun 2014 18:12:41 +0000 (18:12 +0000)]
lantiq: ubinize autoresize flag for rootfs_data

Setting this flag allows rootfs_data to expand on first boot
to fill remaining free space on nand.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41310 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: update 3.14 to 3.14.8
luka [Tue, 24 Jun 2014 12:27:36 +0000 (12:27 +0000)]
kernel: update 3.14 to 3.14.8

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41309 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: use config_get_bool for dnsmasq
cyrus [Sun, 22 Jun 2014 15:34:36 +0000 (15:34 +0000)]
dnsmasq: use config_get_bool for dnsmasq

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41302 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomac80211: disable greenfield by default
nbd [Sun, 22 Jun 2014 11:52:53 +0000 (11:52 +0000)]
mac80211: disable greenfield by default

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41300 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoiw: update to 3.15
nbd [Sun, 22 Jun 2014 11:42:28 +0000 (11:42 +0000)]
iw: update to 3.15

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41299 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomac80211: revert a faulty upstream change which is causing channel 12 to be enabled...
nbd [Sun, 22 Jun 2014 11:42:24 +0000 (11:42 +0000)]
mac80211: revert a faulty upstream change which is causing channel 12 to be enabled for US regdomain

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41298 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: set procd respawn
cyrus [Sun, 22 Jun 2014 09:08:14 +0000 (09:08 +0000)]
dnsmasq: set procd respawn

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41297 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobrcm63xx: allow bcm963xx and livebox support at the same time
jogo [Sat, 21 Jun 2014 19:23:38 +0000 (19:23 +0000)]
brcm63xx: allow bcm963xx and livebox support at the same time

Use the CFE_EPTSEAL to tell them apart at runtime. Added for now only
for the 3.14 until properly tested.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41296 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobrcm63xx: update variant detection patches and fix VARID shift
jogo [Sat, 21 Jun 2014 19:23:28 +0000 (19:23 +0000)]
brcm63xx: update variant detection patches and fix VARID shift

The variant id field shift was wrong, causing the variant detection
to fail.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41295 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobrcm63xx: fix up borked patch
jogo [Sat, 21 Jun 2014 19:23:18 +0000 (19:23 +0000)]
brcm63xx: fix up borked patch

Fix up patch borked by quilt fuzzy application of patches.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41294 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years ago[ledtrig-netdev]: coding style cleanups, drop old kernel support
kaloz [Sat, 21 Jun 2014 10:00:07 +0000 (10:00 +0000)]
[ledtrig-netdev]: coding style cleanups, drop old kernel support

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41293 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years ago[mvebu] update mamba dts
kaloz [Fri, 20 Jun 2014 23:05:23 +0000 (23:05 +0000)]
[mvebu] update mamba dts

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41292 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years ago[mvebu]: make script executable, add WRT1900AC detection
kaloz [Fri, 20 Jun 2014 22:35:09 +0000 (22:35 +0000)]
[mvebu]: make script executable, add WRT1900AC detection

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41291 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years ago[kernel]: make thermal framework registered sensors also register as hwmons
kaloz [Fri, 20 Jun 2014 20:44:18 +0000 (20:44 +0000)]
[kernel]: make thermal framework registered sensors also register as hwmons

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41290 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years ago[kernel]: package the gpio-fan module
kaloz [Fri, 20 Jun 2014 20:42:47 +0000 (20:42 +0000)]
[kernel]: package the gpio-fan module

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41289 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years ago[mvebu]: define the power led for the WRT1900AC
kaloz [Fri, 20 Jun 2014 19:13:01 +0000 (19:13 +0000)]
[mvebu]: define the power led for the WRT1900AC

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41288 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agonetifd: various routing table handling fixes
cyrus [Fri, 20 Jun 2014 17:51:25 +0000 (17:51 +0000)]
netifd: various routing table handling fixes

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41287 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoocteon: add sysupgrade support for the erlite
blogic [Fri, 20 Jun 2014 13:41:16 +0000 (13:41 +0000)]
octeon: add sysupgrade support for the erlite

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41286 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoocteon: build a sysupgrade image for erlite
blogic [Fri, 20 Jun 2014 13:41:12 +0000 (13:41 +0000)]
octeon: build a sysupgrade image for erlite

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41285 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobase-files: regenerate the /lib64 symlink when switching to a ramdisk
blogic [Fri, 20 Jun 2014 13:41:08 +0000 (13:41 +0000)]
base-files: regenerate the /lib64 symlink when switching to a ramdisk

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41284 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoRevert "netifd: fix handling of "lookup main" for ip rules (#15315)"
jow [Fri, 20 Jun 2014 12:28:35 +0000 (12:28 +0000)]
Revert "netifd: fix handling of "lookup main" for ip rules (#15315)"

The netifd fixes went to the wrong repository, revert until it is sorted out.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41283 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agonetifd: fix handling of "lookup main" for ip rules (#15315)
jow [Fri, 20 Jun 2014 09:58:16 +0000 (09:58 +0000)]
netifd: fix handling of "lookup main" for ip rules (#15315)

Reworks the handling of RT_TABLE_MAIN in system-linux.c so that ip rules
with lookup main can be properly setup.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41282 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobase-files: depend on jsonfilter and rewrite network.sh to use it
jow [Thu, 19 Jun 2014 16:06:44 +0000 (16:06 +0000)]
base-files: depend on jsonfilter and rewrite network.sh to use it

Switches /lib/functions/network.sh from jshn based json parsing to
jsonfilter expression while keeping the existing api.

Expensive methods like "network_find_wan" are up to 20x faster now.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41281 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agojsonfilter: implement custom separators and support limiting the results, fix handlin...
jow [Thu, 19 Jun 2014 15:30:59 +0000 (15:30 +0000)]
jsonfilter: implement custom separators and support limiting the results, fix handling of negative array indices

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41280 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoprocd: update to latest git head
blogic [Thu, 19 Jun 2014 14:13:45 +0000 (14:13 +0000)]
procd: update to latest git head

this fixes the upgraded linking issue on arm.

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41279 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoprocd: various improvements to nand.sh
blogic [Thu, 19 Jun 2014 14:13:41 +0000 (14:13 +0000)]
procd: various improvements to nand.sh

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41278 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoimx6: add sysupgrade support
blogic [Thu, 19 Jun 2014 14:13:38 +0000 (14:13 +0000)]
imx6: add sysupgrade support

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41277 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoimx6: the script populating /tmp/sysinfo/ was in the wrong path
blogic [Thu, 19 Jun 2014 14:13:34 +0000 (14:13 +0000)]
imx6: the script populating /tmp/sysinfo/ was in the wrong path

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41276 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoocteon: enable the ext4 feature
blogic [Thu, 19 Jun 2014 14:13:30 +0000 (14:13 +0000)]
octeon: enable the ext4 feature

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41275 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoocteon: add basic board detection
blogic [Thu, 19 Jun 2014 14:13:20 +0000 (14:13 +0000)]
octeon: add basic board detection

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41274 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agotoolchain: make the default eglibc selection work even if TOOLCHAINOPTS is not enabled
blogic [Thu, 19 Jun 2014 14:13:16 +0000 (14:13 +0000)]
toolchain: make the default eglibc selection work even if TOOLCHAINOPTS is not enabled

default config build fail on octeon without this.

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41273 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agokernel: drop now unused ubi forced detach patch
blogic [Thu, 19 Jun 2014 14:13:12 +0000 (14:13 +0000)]
kernel: drop now unused ubi forced detach patch

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41272 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoramips: cleanup some rt305x profiles
blogic [Thu, 19 Jun 2014 14:13:07 +0000 (14:13 +0000)]
ramips: cleanup some rt305x profiles

move both asus boards to asus.mk
rename HW5503G profile to HW550-3G to match name in image/Makefile
(fixes #16599)

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41271 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolantiq: copy rootfs-overlay.ubi to bin/lantiq
blogic [Thu, 19 Jun 2014 14:13:04 +0000 (14:13 +0000)]
lantiq: copy rootfs-overlay.ubi to bin/lantiq

At the moment, an rootfs.ubi is copied over to bin/lantiq
but rootfs-overlay.ubi is not. This adds it.

Signed-off-by: Ben Mulvihill <ben.mulvihill@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41270 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolantiq: refresh patches
blogic [Thu, 19 Jun 2014 14:12:59 +0000 (14:12 +0000)]
lantiq: refresh patches

this adds ben's ath9k fixup

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41269 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobase-files: add upgraded to the list of daemons not killed
blogic [Thu, 19 Jun 2014 14:12:55 +0000 (14:12 +0000)]
base-files: add upgraded to the list of daemons not killed

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41268 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agojsonfilter: improve error reporting
jow [Thu, 19 Jun 2014 07:56:24 +0000 (07:56 +0000)]
jsonfilter: improve error reporting

The CLI now describes expression errors more precisely, e.g.:

  Syntax error: Invalid escape sequence
  In expression @["foo\x"]
  Near here ----------^

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41266 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: removing nettle 3.0 support due to nettle downgrade
cyrus [Wed, 18 Jun 2014 17:06:37 +0000 (17:06 +0000)]
dnsmasq: removing nettle 3.0 support due to nettle downgrade

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41264 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agonettle: downgrade to 2.7.1 since gnutls is incompatible with 3.0
cyrus [Wed, 18 Jun 2014 17:06:30 +0000 (17:06 +0000)]
nettle: downgrade to 2.7.1 since gnutls is incompatible with 3.0

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41263 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoimx6: fix typo on wandboard detection
florian [Wed, 18 Jun 2014 16:34:23 +0000 (16:34 +0000)]
imx6: fix typo on wandboard detection

Revision r41256 introduced a typo (wandaboard => wandboard), but later
revisions expect to match on "wandboard"

Signed-off-by: Florian Fainelli <florian@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41262 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoodhcpd: improve static DHCPv4 leases (thanks arnd)
cyrus [Wed, 18 Jun 2014 12:10:10 +0000 (12:10 +0000)]
odhcpd: improve static DHCPv4 leases (thanks arnd)

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41260 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agonetifd: various bugfixes (thanks Hans Dedecker)
cyrus [Wed, 18 Jun 2014 11:29:09 +0000 (11:29 +0000)]
netifd: various bugfixes (thanks Hans Dedecker)

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41259 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agojsonpath: rename to jsonfilter and rewrite from flex/bison to lemon
jow [Wed, 18 Jun 2014 10:10:30 +0000 (10:10 +0000)]
jsonpath: rename to jsonfilter and rewrite from flex/bison to lemon

This commit renames the jsonpath binary to jsonfilter to avoid clashing with a Python
extension of the same name.

The utility itself has been rewritten to use SQLite3's lemon parser generator instead
of a flex/bison combination which results in a much smaller binary.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41258 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoimx6: use /lib/imx6.sh inside the uci-defaults script
blogic [Wed, 18 Jun 2014 10:08:16 +0000 (10:08 +0000)]
imx6: use /lib/imx6.sh inside the uci-defaults script

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41257 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoimx6: add a script to detect the board name and populate /tmp/sysinfo
blogic [Wed, 18 Jun 2014 10:08:12 +0000 (10:08 +0000)]
imx6: add a script to detect the board name and populate /tmp/sysinfo

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41256 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoar71xx: Fixes for 951Ui-2HnD board support
blogic [Wed, 18 Jun 2014 10:08:08 +0000 (10:08 +0000)]
ar71xx: Fixes for 951Ui-2HnD board support

WAN and LAN are swapped the wrong way around.  This patch fixes that by adding the 951Ui-2HnD to ar71xx.sh and the relevant entry in 02_network.

This patch also defines the ACT LED as the status LED in diag.sh.

Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41255 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agorelayd: update to latest git head
blogic [Wed, 18 Jun 2014 10:08:05 +0000 (10:08 +0000)]
relayd: update to latest git head

this fixes multicast fowarding on relayd links

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41254 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoocteon: fix up the cpu flags
blogic [Wed, 18 Jun 2014 10:08:01 +0000 (10:08 +0000)]
octeon: fix up the cpu flags

Signed-off-by: Martin Fäcknitz <faecknitz@hotsplots.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41253 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoocteon: add 3 upstream patches that fix issues on the esr-lite
blogic [Wed, 18 Jun 2014 10:07:57 +0000 (10:07 +0000)]
octeon: add 3 upstream patches that fix issues on the esr-lite

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41252 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agotoolchain: use different defaults for octeon
blogic [Wed, 18 Jun 2014 10:07:53 +0000 (10:07 +0000)]
toolchain: use different defaults for octeon

force eglibc and gcc4.6+linaro for octeon

Signed-off-by: Martin Fäcknitz <faecknitz@hotsplots.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41251 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoinclude/target.mk: add CPU_CFLAGS_octeon
blogic [Wed, 18 Jun 2014 10:07:49 +0000 (10:07 +0000)]
include/target.mk: add CPU_CFLAGS_octeon

Signed-off-by: Martin Fäcknitz <faecknitz@hotsplots.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41250 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: compatibility with nettle 3.0
cyrus [Wed, 18 Jun 2014 10:04:47 +0000 (10:04 +0000)]
dnsmasq: compatibility with nettle 3.0

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41249 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agonettle: import from packages, update to 3.0
cyrus [Wed, 18 Jun 2014 10:04:43 +0000 (10:04 +0000)]
nettle: import from packages, update to 3.0

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41248 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agogmp: import from packages, update and reduce size
cyrus [Wed, 18 Jun 2014 10:04:38 +0000 (10:04 +0000)]
gmp: import from packages, update and reduce size

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41247 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: various house-keeping updates
cyrus [Wed, 18 Jun 2014 10:04:34 +0000 (10:04 +0000)]
dnsmasq: various house-keeping updates

* Add Authoritative DNS and IPSET to full variant
* Remove some bloat from IPSET support
* Reintroduce "DHCP no address warning"-patch

Signed-off-by: Steven Barth <steven@midlink.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41246 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: add UCI DNSSEC runtime support
cyrus [Wed, 18 Jun 2014 10:04:29 +0000 (10:04 +0000)]
dnsmasq: add UCI DNSSEC runtime support

Ship keys for the root zone and add two uci options to enable
DNSSEC checks:

Option 'dnssec': Activate DNSSEC validation
Option 'dnsseccheckunsigned': Ensure answers without DNSSEC are in
unsigned zones.

Signed-off-by: Andre Heider <a.heider@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41245 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: Add a full variant
cyrus [Wed, 18 Jun 2014 10:04:25 +0000 (10:04 +0000)]
dnsmasq: Add a full variant

This variant includes support for DHCPv6 and DNSSEC.
DNSSEC adds a dependency on libnettle.

Signed-off-by: Andre Heider <a.heider@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41244 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: add upstream patch to build against libnettle-mini
cyrus [Wed, 18 Jun 2014 10:04:21 +0000 (10:04 +0000)]
dnsmasq: add upstream patch to build against libnettle-mini

Signed-off-by: Andre Heider <a.heider@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41243 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: respect target's LDFLAGS
cyrus [Wed, 18 Jun 2014 10:04:17 +0000 (10:04 +0000)]
dnsmasq: respect target's LDFLAGS

Append local flags, don't overwrite.

Signed-off-by: Andre Heider <a.heider@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41242 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agodnsmasq: use COPTS for compile time options
cyrus [Wed, 18 Jun 2014 10:04:02 +0000 (10:04 +0000)]
dnsmasq: use COPTS for compile time options

As documented in config.h.
Doing otherwise will break dnsmasq's pkg-wrapper script to find its
libs to link to.

Signed-off-by: Andre Heider <a.heider@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41241 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agomvebu: be consistent with kernel config file names
luka [Tue, 17 Jun 2014 21:04:45 +0000 (21:04 +0000)]
mvebu: be consistent with kernel config file names

Signed-off-by: Luka Perkov <luka@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41240 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoprocd: forgot to update the git id in the last commit
blogic [Tue, 17 Jun 2014 17:51:35 +0000 (17:51 +0000)]
procd: forgot to update the git id in the last commit

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41239 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoprocd: make upgarded depend on mips, the static linking on arm fails
blogic [Tue, 17 Jun 2014 15:40:05 +0000 (15:40 +0000)]
procd: make upgarded depend on mips, the static linking on arm fails

Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41238 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agoprocd: some cleanup for SysupgradeNAND
blogic [Tue, 17 Jun 2014 15:40:02 +0000 (15:40 +0000)]
procd: some cleanup for SysupgradeNAND

Removed unused ubi file file from template as ubinized images are
passed directly and not inside the tarball.
Also removed left-over white-space.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41237 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agolantiq: DGN3500 (all known variants) factory and sysupgrade image building support
blogic [Tue, 17 Jun 2014 15:38:54 +0000 (15:38 +0000)]
lantiq: DGN3500 (all known variants) factory and sysupgrade image building support

This patch adds factory image building for the DGN3500, all variants,
and fixes sysupgrade images to make them play nice with the sercomm
secondary boot loader.

The factory images can be used directly in the update dialog in the
interface of the stock firmware and via the special Sercomm bootmode
and a special windows flashing utility (allegedly present in the CD
that came with the device -- but it's also compatible with the NSLU2
Upgrade_207_XP utility.) The special bootmode can be activated by
turning the device on while holding the reset button pressed, then
releasing it when the power led starts blinking red and green. Please
notice that if using the 207 utility, it will always report that the
flashing failed even though it completed successfully. Just power
cycle the router manually after the utility reports the failure and
OpenWRT will boot. This same utility (despite reporting failure in
this case too) can revert a DGN3500 (any variant) to the appropriate
stock Netgear firmware.

This patch is a heavily modified version of a package I found on the
OpenWRT forum with a couple fixes and features added -- mainly the
generation of all the different image variants to support all known
models directly, atm known variants are AnnexA-WW, AnnexA-NA and
AnnexB-DE/GR.

I tested the patch successfully on my device.

Signed-off-by: Marco Antonio Mauro <marcus90@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41236 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years ago[kernel]: package the TLC59116 led driver
kaloz [Tue, 17 Jun 2014 15:15:05 +0000 (15:15 +0000)]
[kernel]: package the TLC59116 led driver

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41235 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years ago[mvebu]: add dummy fixup for 3.10
kaloz [Tue, 17 Jun 2014 15:14:02 +0000 (15:14 +0000)]
[mvebu]: add dummy fixup for 3.10

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41234 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years agobuild images for the WRT1900AC
kaloz [Tue, 17 Jun 2014 15:13:33 +0000 (15:13 +0000)]
build images for the WRT1900AC

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41233 3c298f89-4303-0410-b956-a3cf2f4a3e73

8 years ago[mvebu]: preliminary support for the WRT1900AC (work in progress)
kaloz [Tue, 17 Jun 2014 15:13:10 +0000 (15:13 +0000)]
[mvebu]: preliminary support for the WRT1900AC (work in progress)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41232 3c298f89-4303-0410-b956-a3cf2f4a3e73