4 years add support for limiting images to specific subtargets
Felix Fietkau [Mon, 9 May 2016 16:27:44 +0000 (18:27 +0200)] add support for limiting images to specific subtargets

Signed-off-by: Felix Fietkau <>
4 years prepare for defining device profile data in the Device section
Felix Fietkau [Mon, 9 May 2016 14:50:46 +0000 (16:50 +0200)] prepare for defining device profile data in the Device section

Signed-off-by: Felix Fietkau <>
4 years agobase-files: Fix config_generate when there are no switch VLANs or ports configured...
Vittorio Gambaletta (VittGam) [Fri, 6 May 2016 03:23:43 +0000 (05:23 +0200)]
base-files: Fix config_generate when there are no switch VLANs or ports configured in board.json.

The json_select call fails when there are no roles or ports objects in board.json. "json_select .." must not be executed after failing.

This fixes for example LEDs not being set up in /etc/config/system.

Signed-off-by: Vittorio Gambaletta <>
4 years agoREADME: Remove outdated info
Jo-Philipp Wich [Wed, 11 May 2016 14:51:01 +0000 (16:51 +0200)]
README: Remove outdated info

Signed-off-by: Jo-Philipp Wich <>
4 years agonetifd: Remove hardcoded DHCP release option
Hans Dedecker [Mon, 9 May 2016 16:22:38 +0000 (18:22 +0200)]
netifd: Remove hardcoded DHCP release option

Remove the udhcpc -R release option as sending a DHCP release
is configurable via the uci option release.

Signed-off-by: Hans Dedecker <>
4 years agoncurses: install a dummy libtinfo.a for packages that try to link it
Felix Fietkau [Wed, 11 May 2016 09:34:18 +0000 (11:34 +0200)]
ncurses: install a dummy libtinfo.a for packages that try to link it

Signed-off-by: Felix Fietkau <>
4 years agoRevert "ncurses: package the tinfo library separately"
Felix Fietkau [Wed, 11 May 2016 09:38:55 +0000 (11:38 +0200)]
Revert "ncurses: package the tinfo library separately"

This reverts commit 975f7160dd1df08a7c02ad5de5cce07edd377b12.

4 years agobuild: fix make clean, delete package directories for selected arch
Felix Fietkau [Wed, 11 May 2016 08:02:36 +0000 (10:02 +0200)]
build: fix make clean, delete package directories for selected arch

Signed-off-by: Felix Fietkau <>
4 years agomtd: imagetag: fix compilation with changed mtd_fixtrx call
Rafał Miłecki [Tue, 10 May 2016 14:35:39 +0000 (16:35 +0200)]
mtd: imagetag: fix compilation with changed mtd_fixtrx call

Function mtd_fixtrx was changed during trx improvements.

Signed-off-by: Rafał Miłecki <>
4 years agogettext-full: avoid spurious dependencies on ncurses
Felix Fietkau [Tue, 10 May 2016 14:01:38 +0000 (16:01 +0200)]
gettext-full: avoid spurious dependencies on ncurses

Signed-off-by: Felix Fietkau <>
4 years agoncurses: package the tinfo library separately
Felix Fietkau [Tue, 10 May 2016 13:59:56 +0000 (15:59 +0200)]
ncurses: package the tinfo library separately

Some packages expect it that way

Signed-off-by: Felix Fietkau <>
4 years agoramips: fix DTB generation
John Crispin [Tue, 10 May 2016 12:42:50 +0000 (14:42 +0200)]
ramips: fix DTB generation

using preprocessor style includes when calling dtc directly.

Signed-off-by: John Crispin <>
4 years agoiftop: Update to latest version, and drop patch
Bert Vermeulen [Tue, 10 May 2016 08:38:47 +0000 (10:38 +0200)]
iftop: Update to latest version, and drop patch

The patch made sure the ncursesw library was not selected to save space,
but that library doesn't exist in this distribution at all.

Signed-off-by: Bert Vermeulen <>
4 years agoncurses: provide libncurses compatibility symlinks in libncursesw
Felix Fietkau [Tue, 10 May 2016 11:46:21 +0000 (13:46 +0200)]
ncurses: provide libncurses compatibility symlinks in libncursesw

Signed-off-by: Felix Fietkau <>
4 years agoramips: Change all '/include/' clauses to '#include' so preprocessing can
Stanislav Galabov [Mon, 9 May 2016 06:32:52 +0000 (09:32 +0300)]
ramips: Change all '/include/' clauses to '#include' so preprocessing can
be done properly for the entire device trees.

Signed-off-by: Stanislav Galabov <>
4 years agoramips: Add hex prefix (0x) to dtsi reg properties where needed.
Stanislav Galabov [Mon, 9 May 2016 06:23:12 +0000 (09:23 +0300)]
ramips: Add hex prefix (0x) to dtsi reg properties where needed.

Signed-off-by: Stanislav Galabov <>
4 years agoramips: introduce serial0 aliases
Stanislav Galabov [Mon, 9 May 2016 04:20:02 +0000 (07:20 +0300)]
ramips: introduce serial0 aliases

This patch introduces serial0 aliases in the ramips DTS files, which can
then be used to denote the active console instead of relying on bootargs.

Signed-off-by: Stanislav Galabov <>
4 years agokernel: update kernel 4.4 to version 4.4.9
Álvaro Fernández Rojas [Sun, 8 May 2016 19:57:27 +0000 (21:57 +0200)]
kernel: update kernel 4.4 to version 4.4.9

Signed-off-by: Álvaro Fernández Rojas <>
4 years agoubox: make logging code honour the hostname properly
John Crispin [Fri, 6 May 2016 19:05:41 +0000 (21:05 +0200)]
ubox: make logging code honour the hostname properly

Signed-off-by: John Crispin <>
4 years agobrcm47xx: fix wgt634u port assignment, broken since openwrt r47866
Russell Senior [Sat, 7 May 2016 09:32:13 +0000 (02:32 -0700)]
brcm47xx: fix wgt634u port assignment, broken since openwrt r47866

Signed-off-by: Russell Senior <>
4 years agoramips: mt7620: [UPSTREAM] fix USB frequency scaling
D. Andrei Măceș [Wed, 13 Apr 2016 21:51:50 +0000 (17:51 -0400)]
ramips: mt7620: [UPSTREAM] fix USB frequency scaling

The logic for the SoC check got inverted. We need to check if it's
not a MT76x8.

Signed-off-by: D. Andrei Măceș <>
4 years agoramips: Fix alphabetical sorting for 02_network
Vittorio Gambaletta (VittGam) [Wed, 4 May 2016 20:04:24 +0000 (22:04 +0200)]
ramips: Fix alphabetical sorting for 02_network

Signed-off-by: Vittorio Gambaletta <>
4 years agoramips: Don't use a VLAN for the single ethernet port of the A5-V11.
Vittorio Gambaletta (VittGam) [Wed, 4 May 2016 19:22:19 +0000 (21:22 +0200)]
ramips: Don't use a VLAN for the single ethernet port of the A5-V11.

This router only has one ethernet port, so a VLAN is useless here, now that the rt3050 TCP bug that happened without VLANs has been fixed for a very long time.

Add this router to the VLAN-less config that is used by other single-port routers.

Also fix MAC address detection code since this router has no WAN port.

Signed-off-by: Vittorio Gambaletta <>
4 years agoramips: Fix network for routers without VLANs on eth0.
Vittorio Gambaletta (VittGam) [Wed, 4 May 2016 19:21:41 +0000 (21:21 +0200)]
ramips: Fix network for routers without VLANs on eth0.

Some routers only have one port, so eth0 is used without VLANs for them.

Revision r47720 introduced some changes, but wrongly confused "enable" with "reset".

VLANs need to be disabled for those routers, and the switch may be reset.

Fix this, by explicitly disabling VLANs instead of resetting the switch for these routers.

Also merge duplicate configuration for the "m2m".

Signed-off-by: Vittorio Gambaletta <>
4 years agoramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.
blogic [Mon, 2 May 2016 18:51:20 +0000 (18:51 +0000)]
ramips: Drop hacky switch workaround for failsafe on rt3x5x and rt5350.

The new rt3050 switch driver doesn't have problems with TCP when not
using VLANs.

This piece of code also broke failsafe for all routers where the LAN
port is not wired to port 0 of the internal switch.

Signed-off-by: Vittorio Gambaletta <>
SVN-Revision: 49293

4 years agoramips: Disable all ethernet ports except port 0 on A5-V11.
blogic [Mon, 2 May 2016 18:51:13 +0000 (18:51 +0000)]
ramips: Disable all ethernet ports except port 0 on A5-V11.

Port 0 is the only ethernet port on this router, so disable all other PHYs
in order to save power.

Signed-off-by: Vittorio Gambaletta <>
SVN-Revision: 49292

4 years agoramips: Disable all ethernet ports except port 4 on HT-TM02.
blogic [Mon, 2 May 2016 18:51:09 +0000 (18:51 +0000)]
ramips: Disable all ethernet ports except port 4 on HT-TM02.

Port 4 is the only ethernet port on this router, so disable all other PHYs
in order to save power.

Signed-off-by: Vittorio Gambaletta <>
SVN-Revision: 49291

4 years agoramips: Get rt3050 ethernet ports to be disabled from the device tree.
blogic [Mon, 2 May 2016 18:51:05 +0000 (18:51 +0000)]
ramips: Get rt3050 ethernet ports to be disabled from the device tree.

This patch allows configuring ports to be disabled in the device tree; this
saves power, since disabling ports here actually disables power to ethernet

Line 444 enables all ethernet ports, so line 487 is getting zero ports to be
disabled, except for port 5 in SoCs where this is not implemented as it will
be sticky disabled in register POC0. Because of this, the code will still read
the switch configuration and OR it to the device tree setting.

Signed-off-by: Vittorio Gambaletta <>
SVN-Revision: 49290

4 years agoramips: Fix comment in rt3050 ethernet switch driver.
blogic [Mon, 2 May 2016 18:51:01 +0000 (18:51 +0000)]
ramips: Fix comment in rt3050 ethernet switch driver.

Line 444 is actually enabling all switch ports by setting the disable bits
to 0. This needs to be done because the bootloader sets all ports to disabled
by default (which is the case for at least one router based on RT5350).

So, this patch fixes the comment in line 443.

Signed-off-by: Vittorio Gambaletta <>
SVN-Revision: 49289

4 years agoramips: Fix documentation for the rt3050 switch driver.
blogic [Mon, 2 May 2016 18:50:56 +0000 (18:50 +0000)]
ramips: Fix documentation for the rt3050 switch driver.

The prefix used in the driver is now "mediatek" instead of "ralink".

Signed-off-by: Vittorio Gambaletta <>
SVN-Revision: 49288

4 years agoramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.
blogic [Mon, 2 May 2016 18:50:52 +0000 (18:50 +0000)]
ramips: Fix multicast ICMPv6 for the rt3050 ethernet switch.

The FCT2 esw register should be set to 0x2500C to have "unknown IPv6
multicast" packets broadcasted to every port, instead of dropped.
The previous value only let those packets go through ports 1 and 3.

"Unknown IPv6 multicast" packets include packets needed by ICMPv6 echo
requests addressed to well-known addresses, such as ff02::1 (MAC address
is 33:33:00:00:00:01 in this case).

Please note that by default ICMPv6 echo requests to ff02::1 are not replied
to by the router because of ip6tables considering those packets to be invalid.
But this is another bug/patch. ;)

Signed-off-by: Vittorio Gambaletta <>
SVN-Revision: 49287

4 years agoar71xx: add TP-Link TL-WR810N support
blogic [Mon, 2 May 2016 18:50:48 +0000 (18:50 +0000)]
ar71xx: add TP-Link TL-WR810N support

This patch adds support for the TP-Link TL-WR810N.

Signed-off-by: Jens Steinhauser <>
SVN-Revision: 49286

4 years agoubox: turn logd into a separate package
blogic [Mon, 2 May 2016 18:50:40 +0000 (18:50 +0000)]
ubox: turn logd into a separate package

Currently system log is always included as a part of ubox.
Add logd as a seperate package and add it to default packages list.

Signed-off-by: Andrej Vlasic <>
SVN-Revision: 49285

4 years agolantiq: VGV7510KW22BRN - set the phy clock source
blogic [Mon, 2 May 2016 18:50:35 +0000 (18:50 +0000)]
lantiq: VGV7510KW22BRN - set the phy clock source

VGV7510KW2 with VRX288 v1.2 has brnboot 1.8 installed. Starting with
this brnboot version, the "GPHY Clock Source" isn't set anymore by
brnboot, with the result that xrx200-net fails to probe/initialize the

Use the phy clock source device tree binding to specify the clock source.

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49284

4 years agolantiq: add device tree binding for the phy clock source
blogic [Mon, 2 May 2016 18:50:31 +0000 (18:50 +0000)]
lantiq: add device tree binding for the phy clock source

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49283

4 years agolantiq: VGV7510KW22BRN - support dual-image
blogic [Mon, 2 May 2016 18:50:27 +0000 (18:50 +0000)]
lantiq: VGV7510KW22BRN - support dual-image

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49282

4 years agolantiq: handle the dual-firmware layout of brnboot
blogic [Mon, 2 May 2016 18:50:23 +0000 (18:50 +0000)]
lantiq: handle the dual-firmware layout of brnboot

brnboot based devices can have two Image partitions. When flashing
images via the brnboot recovery web interface, the Image partitions are
written alternating.

The current active Image partition is stored in the first byte of the
Primary_Setting partition by using 0x00 for Code_Image_0 and 0x01 for

By using the information about the active "Code Image", it is possible
to ensure that the rootfs belongs to the current booted Image/Kernel.

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49281

4 years agolantiq: move partitions into partion table node
blogic [Mon, 2 May 2016 18:50:18 +0000 (18:50 +0000)]
lantiq: move partitions into partion table node

Starting with kernel 4.4, the use of partitions as direct subnodes of the
mtd device is discouraged and only supported for backward compatiblity

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49280

4 years agolantiq: use sysupgrade.bin postfix for tplink images
blogic [Mon, 2 May 2016 18:50:10 +0000 (18:50 +0000)]
lantiq: use sysupgrade.bin postfix for tplink images

Use the same name for TP-Link images as it was with the old image build

Move the BOARD_ID export to the TP-Link image build recipe, to indicate
that the variable is only related in this context.

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49279

4 years agolantiq: VG3503J - use the same PHY led functionality as the OEM firmware
blogic [Mon, 2 May 2016 18:50:06 +0000 (18:50 +0000)]
lantiq: VG3503J - use the same PHY led functionality as the OEM firmware

Based on the script published in the VG3503J wiki
article, the OEM Firmware uses the following PHY led functionality:

    gphy led 0: LINK/ACTIVITY
    gphy led 1: LINK
    gphy led 2: ACTIVITY

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49278

4 years agoar71xx: Fix eth0 support for Ubiquiti UniFi AP AC
blogic [Mon, 2 May 2016 18:50:00 +0000 (18:50 +0000)]
ar71xx: Fix eth0 support for Ubiquiti UniFi AP AC

Fix eth0 support for the Ubiquiti UniFi AP AC
Signed-off-by: Paul Wassi <p.wassi at>
SVN-Revision: 49277

4 years agolantiq: use the same functionality for all ethernet phys led
blogic [Fri, 29 Apr 2016 11:35:05 +0000 (11:35 +0000)]
lantiq: use the same functionality for all ethernet phys led

The VGV7510KW22 has the leds for LAN1-3 connected to pin1 of the phys
and the led for LAN4 connect to pin0 of the phy. This results with the
current configuration in a fast flashing LAN4 led as soon as a network
cable is connected. Something similar was reported on the forum[1] for
the VGV7519 as well.

Since it isn't predicable to which pin a (single) phy led is connected,
use the (default) pin1 functionality

    Constant On: 10/100/1000MBit
    Blink Fast: None
    Blink Slow: None
    Pulse: TX/RX

for all ethernet phy leds.

After checking pictures of all vr9 boards, it looks like only the VG3503J
has more than one led connected per phy. Using the phy led device tree
bindings to assign the functionality to the "additional" leds, the
VG3503J phy leds should behave as before.

Signed-off-by: Mathias Kresin <>

SVN-Revision: 49270

4 years agolantiq: fix minor typos in 11G/22F phy driver
blogic [Fri, 29 Apr 2016 11:35:01 +0000 (11:35 +0000)]
lantiq: fix minor typos in 11G/22F phy driver

Signed-off-by: Mathias Kresin <>
SVN-Revision: 49269

4 years agoramips: add support for Planex MZK-EX750NP.
blogic [Fri, 29 Apr 2016 11:34:56 +0000 (11:34 +0000)]
ramips: add support for Planex MZK-EX750NP.

add support for Planex MZK-EX750NP.
MZK-EX750NP is MT7620A and MT7610E based 11ac wifi repeater.
Built-in power supply.
64MiB RAM, 8MiB SPI Flash, non Wired Ethernet.

Signed-off-by: YuheiOKAWA <>
SVN-Revision: 49268

4 years agomediatek: sync patches and add more ethernet stability fixes
blogic [Fri, 29 Apr 2016 11:34:31 +0000 (11:34 +0000)]
mediatek: sync patches and add more ethernet stability fixes

Signed-off-by: John Crispin <>
SVN-Revision: 49265

4 years agoncurses: install pkg-config files to fix util-linux build breakage
Felix Fietkau [Tue, 10 May 2016 08:05:22 +0000 (10:05 +0200)]
ncurses: install pkg-config files to fix util-linux build breakage

Signed-off-by: Felix Fietkau <>
4 years agomtd: add -c option for specifying amount of data to be used for checksum
Rafał Miłecki [Fri, 6 May 2016 12:37:05 +0000 (14:37 +0200)]
mtd: add -c option for specifying amount of data to be used for checksum

So far fixtrx was calculating checksum over amount of data matching
partition erase size. It was mostly a workaround of checksum problem
after changing anything in initial TRX content (e.g. formatting JFFS2).
Its main purpose was to make bootloader accept modified TRX. This didn't
provide much protection of flash data against corruption.

This new option lets caller request calculating checksum over a bigger
amount of data. It may be used e.g. to include whole kernel data for
checksum and hopefully make bootloader go info failsafe mode if
something goes wrong.

Signed-off-by: Rafał Miłecki <>
4 years agomtd: trx: use separated buffer for TRX header
Rafał Miłecki [Mon, 9 May 2016 17:00:53 +0000 (19:00 +0200)]
mtd: trx: use separated buffer for TRX header

We plan to adjust usage of the main buffer to allow reading custom
amount of data for CRC32. This means we need another buffer that will be
always block aligned.

Signed-off-by: Rafał Miłecki <>
4 years agomtd: seama: exit with error if Seama header wasn't found
rmilecki [Mon, 9 May 2016 15:33:42 +0000 (15:33 +0000)]
mtd: seama: exit with error if Seama header wasn't found

Signed-off-by: Rafał Miłecki <>
4 years agomtd: seama: fix image data handling
rmilecki [Mon, 9 May 2016 12:53:39 +0000 (12:53 +0000)]
mtd: seama: fix image data handling

1) Put sanity checks in one place
2) Respect provided offset
3) Read only as much data as needed for MD5 calculation

Thanks to the last change this is a great speedup and memory saver. On
devices with NAND flash we were allocating & reading about 128 MiB while
something about 8 MiB is enough.

Signed-off-by: Rafał Miłecki <>
4 years agomtd: seama: move buf allocation to the MD5 function
rmilecki [Mon, 9 May 2016 12:53:36 +0000 (12:53 +0000)]
mtd: seama: move buf allocation to the MD5 function

This buf is only used in this function now, so lets move it there.

Signed-off-by: Rafał Miłecki <>
4 years agomtd: seama: update MD5 using header in the first block buffer
rmilecki [Mon, 9 May 2016 12:53:33 +0000 (12:53 +0000)]
mtd: seama: update MD5 using header in the first block buffer

This will allow separating first block buffer from a buffer used for MD5

Signed-off-by: Rafał Miłecki <>
4 years agomtd: seama: add md5 to header struct
rmilecki [Mon, 9 May 2016 12:53:29 +0000 (12:53 +0000)]
mtd: seama: add md5 to header struct

This allows us to drop some extra offset calculations and simplifies
code a bit.

Signed-off-by: Rafał Miłecki <>
4 years agomtd: check for Seama magic early when fixing MD5
rmilecki [Mon, 9 May 2016 09:54:48 +0000 (09:54 +0000)]
mtd: check for Seama magic early when fixing MD5

This avoid long (and unneeded) process of reading all data in case of
running on MTD not containig Seama entity.

Signed-off-by: Rafał Miłecki <>
4 years agomtd: add missing breaks in a switch
rmilecki [Mon, 9 May 2016 07:51:50 +0000 (07:51 +0000)]
mtd: add missing breaks in a switch

On platforms supporting both: TRX and Seama calling "fixtrx" was
resulting in trying to fix Seama as well.

Signed-off-by: Rafał Miłecki <>
4 years agomtd: use tabs for indents
rmilecki [Mon, 9 May 2016 07:51:45 +0000 (07:51 +0000)]
mtd: use tabs for indents

This makes code style consistent across the whole file.

Signed-off-by: Rafał Miłecki <>
4 years agoncurses: remove libncurses, provide it via libncursesw
Felix Fietkau [Mon, 9 May 2016 12:49:33 +0000 (14:49 +0200)]
ncurses: remove libncurses, provide it via libncursesw

Signed-off-by: Felix Fietkau <>
4 years add support for selecting packages available only via PROVIDES
Felix Fietkau [Mon, 9 May 2016 12:48:49 +0000 (14:48 +0200)] add support for selecting packages available only via PROVIDES

Signed-off-by: Felix Fietkau <>
4 years agokernel: add workaround to rebuild
Stijn Tintel [Mon, 9 May 2016 00:30:38 +0000 (02:30 +0200)]
kernel: add workaround to rebuild

Building for octeon fails with

  'arch/mips/vdso/' already contains a '.MIPS.abiflags'

if the file already exists from a prior build.

Use the same workaround as the one for committed in

Signed-off-by: Stijn Tintel <>
4 years agotoolchain: gcc: fix build with GCC 6
Matthias Schiffer [Sun, 8 May 2016 21:10:13 +0000 (23:10 +0200)]
toolchain: gcc: fix build with GCC 6

Signed-off-by: Matthias Schiffer <>
4 years agotools: mkimage: sync include/linux/compiler*.h with u-boot master
Matthias Schiffer [Sun, 8 May 2016 20:06:51 +0000 (22:06 +0200)]
tools: mkimage: sync include/linux/compiler*.h with u-boot master

Fixes build with GCC 6.

Signed-off-by: Matthias Schiffer <>
4 years agotools: pkg-config: fix build with GCC 6
Matthias Schiffer [Sun, 8 May 2016 13:53:14 +0000 (15:53 +0200)]
tools: pkg-config: fix build with GCC 6

Fixes the following error:

gdate.c: In function ‘g_date_strftime’:
gdate.c:2497:7: error: format not a string literal, format string not checked [-Werror=format-nonliteral]
       tmplen = strftime (tmpbuf, tmpbufsize, locale_format, &tm);

Signed-off-by: Matthias Schiffer <>
4 years agomt76: update to the latest version
Felix Fietkau [Thu, 5 May 2016 18:42:43 +0000 (19:42 +0100)]
mt76: update to the latest version

Fixes a tx locking error and adds a pci id

Signed-off-by: Felix Fietkau <>
4 years agomt76: fix rebuild on CONFIG_PACKAGE_MAC80211_MESH changes
Felix Fietkau [Thu, 5 May 2016 18:39:21 +0000 (19:39 +0100)]
mt76: fix rebuild on CONFIG_PACKAGE_MAC80211_MESH changes

Signed-off-by: Felix Fietkau <>
4 years agobuild: add support for specifying extra package dependencies for prepared, configured...
Felix Fietkau [Thu, 5 May 2016 18:37:40 +0000 (19:37 +0100)]
build: add support for specifying extra package dependencies for prepared, configured and built

Signed-off-by: Felix Fietkau <>
4 years agotoolchain: rename OpenWrt into LEDE
Alexander Couzens [Thu, 5 May 2016 17:33:03 +0000 (19:33 +0200)]
toolchain: rename OpenWrt into LEDE

Signed-off-by: Alexander Couzens <>
4 years agosdk: rename OpenWrt into LEDE
Alexander Couzens [Thu, 5 May 2016 17:33:02 +0000 (19:33 +0200)]
sdk: rename OpenWrt into LEDE

Signed-off-by: Alexander Couzens <>
4 years agoimagebuilder: rename OpenWrt into LEDE
Alexander Couzens [Thu, 5 May 2016 17:33:01 +0000 (19:33 +0200)]
imagebuilder: rename OpenWrt into LEDE

Signed-off-by: Alexander Couzens <>
4 years agotools: make-ext4fs: fix build regression on mac os x
Felix Fietkau [Thu, 5 May 2016 17:47:55 +0000 (18:47 +0100)]
tools: make-ext4fs: fix build regression on mac os x

Including sys/sysmacros.h is not portable

Signed-off-by: Felix Fietkau <>
4 years agobase-files: evaluate uci-defaults on run-time installations
Daniel Golle [Fri, 29 Apr 2016 11:34:44 +0000 (11:34 +0000)]
base-files: evaluate uci-defaults on run-time installations

Packages may install scripts into /etc/uci-defaults to be executed once
after installation, usually at the first boot of the target. This works
fine if the package was installed to the rootfs during build or using
the ImageBuilder.
If the package is installed using opkg during run-time uci-defaults
were applied only after a reboot of the device. Avoid the need to
reboot by evaluting the package's uci-defaults in default-postinst.

Signed-off-by: Daniel Golle <>
4 years agoopenssl: Update to version 1.0.2h
Michal Hrusecky [Wed, 4 May 2016 11:53:27 +0000 (13:53 +0200)]
openssl: Update to version 1.0.2h

Bump to the latest version, fixes several security issues:
 * CVE-2016-2107, CVE-2016-2105, CVE-2016-2106, CVE-2016-2109, CVE-2016-2176
More details at

Signed-off-by: Michal Hrusecky <>
4 years agofirewall3: fix mark rules for local traffic, fix race condition
Jo-Philipp Wich [Mon, 2 May 2016 17:46:23 +0000 (18:46 +0100)]
firewall3: fix mark rules for local traffic, fix race condition

Update to latest HEAD in order to fix MARK rule generation for local traffic,
also fix a possible race condition during firewall start.

Signed-off-by: Jo-Philipp Wich <>
4 years agolibiconv: add all ASCII aliases
Gergely Kiss [Mon, 2 May 2016 00:46:33 +0000 (02:46 +0200)]
libiconv: add all ASCII aliases

This patch adds missing ASCII aliases to the libiconv stub in order to avoid conversion errors like

Signed-off-by: Gergely Kiss <>
4 years agoxtables-addons: Avoid redefinition of SHRT_MAX in lua packet script
Hans Dedecker [Mon, 2 May 2016 09:57:59 +0000 (11:57 +0200)]
xtables-addons: Avoid redefinition of SHRT_MAX in lua packet script

Patch Lua packet script defines SHRT_MAX which is already defined in <linux/kernel.h> and
is included indirectly by lauxlib.h. Fix the redefintion as it leads to compile failure
on systems which treat macro redefinition as an error

Signed-off-by: Hans Dedecker <>
4 years agosigning: remove unatteded build key and use current keyring instead
Jo-Philipp Wich [Sat, 30 Apr 2016 18:39:23 +0000 (20:39 +0200)]
signing: remove unatteded build key and use current keyring instead

Remove the public unatteded buildkey from the opkg package to avoid
having hardcoded keys in tree. Use the external keyring package instead
which can be easily updated by users.

Signed-off-by: Jo-Philipp Wich <>
4 years agofstools: fix snapshot support
John Crispin [Fri, 29 Apr 2016 01:41:48 +0000 (03:41 +0200)]
fstools: fix snapshot support

Signed-off-by: John Crispin <>
4 years agofstools: update to latest git HEAD
John Crispin [Fri, 29 Apr 2016 01:49:45 +0000 (03:49 +0200)]
fstools: update to latest git HEAD

fixes snapshot support

Signed-off-by: John Crispin <>
4 years agobase-files: fix group/user settings after sysupgrade
John Crispin [Fri, 29 Apr 2016 01:30:52 +0000 (03:30 +0200)]
base-files: fix group/user settings after sysupgrade

Signed-off-by: John Crispin <>
4 years agobase-files: split user/group addition code into a function
John Crispin [Fri, 29 Apr 2016 01:13:40 +0000 (03:13 +0200)]
base-files: split user/group addition code into a function

Signed-off-by: John Crispin <>
4 years agoscripts: add "r" to revision
John Crispin [Fri, 29 Apr 2016 01:04:16 +0000 (03:04 +0200)]
scripts: add "r" to revision

343c3be45451e4a11f03109bd6cb1dd9061ec5eb accidentially removed the "r"

Signed-off-by: John Crispin <>
4 years agofstools: update to latest git HEAD
John Crispin [Wed, 27 Apr 2016 01:37:00 +0000 (03:37 +0200)]
fstools: update to latest git HEAD

this adds the remount command to the block tool

Signed-off-by: John Crispin <>
4 years agobase-files: add new public key used by unattended builds
John Crispin [Wed, 27 Apr 2016 00:20:35 +0000 (02:20 +0200)]
base-files: add new public key used by unattended builds

Signed-off-by: John Crispin <>
4 years agobase-files: add a conditional dependency to lede-keyring
John Crispin [Tue, 26 Apr 2016 23:52:02 +0000 (01:52 +0200)]
base-files: add a conditional dependency to lede-keyring

Signed-off-by: John Crispin <>
4 years agolede-keyring: add the developer public keyring
John Crispin [Tue, 26 Apr 2016 23:50:04 +0000 (01:50 +0200)]
lede-keyring: add the developer public keyring

Signed-off-by: John Crispin <>
4 years agoinclude: add lede git server url
John Crispin [Tue, 26 Apr 2016 23:33:14 +0000 (01:33 +0200)]
include: add lede git server url

Signed-off-by: John Crispin <>
4 years agokernel: add a workaround to rebuild after genvdso
Jo-Philipp Wich [Fri, 29 Apr 2016 07:53:09 +0000 (09:53 +0200)]
kernel: add a workaround to rebuild after genvdso

Currently the build fails with

  'arch/mips/vdso/' already contains a '.MIPS.abiflags' section

if the file already exists from a prior build.

Add a makefile rule to force the rebuild of if genvdso has
has been changed to workaround the failure.

Signed-off-by: Jo-Philipp Wich <>
4 years agoscripts: avoid hard-coded paths in scripts
Iblis Lin [Thu, 28 Apr 2016 12:34:13 +0000 (20:34 +0800)]
scripts: avoid hard-coded paths in scripts

Signed-off-by: Iblis Lin <>
4 years agoppp: Add ppp-mod-passwordfd subpackage to ppp
Hans Dedecker [Wed, 27 Apr 2016 09:14:02 +0000 (11:14 +0200)]
ppp: Add ppp-mod-passwordfd subpackage to ppp

Signed-off-by: Hans Dedecker <>
4 years agodnsmasq: Add conntrack support in the full variant
Hans Dedecker [Wed, 27 Apr 2016 09:14:01 +0000 (11:14 +0200)]
dnsmasq: Add conntrack support in the full variant

Conntrack support reads the connection track mark associated with
incoming DNS queries and sets the same mark value on the upstream
forwarded DNS query. This can be usefull to track traffic generated
by dnsmasq to associate it with the clients who generate the queries,
usefull for bandwidth accouting and firewall.

Signed-off-by: Hans Dedecker <>
4 years agodropbear: Add procd interface triggers when interface config is specified
Hans Dedecker [Wed, 27 Apr 2016 09:14:00 +0000 (11:14 +0200)]
dropbear: Add procd interface triggers when interface config is specified

A dropbear instance having an interface config won't start if the interface is down as no
IP address is available.
Adding interface triggers for each configured interface executing the dropbear reload script
will start the dropbear instance when the interface is up.

Signed-off-by: Hans Dedecker <>
4 years agoiproute2: Add package for nstat utility
Hans Dedecker [Wed, 27 Apr 2016 09:13:59 +0000 (11:13 +0200)]
iproute2: Add package for nstat utility

Add support for the command line utility nstat displaying network statistics

Signed-off-by: Hans Dedecker <>
4 years agodropbear: Make utmp and putuline support configurable via seperate config options
Hans Dedecker [Wed, 27 Apr 2016 09:13:58 +0000 (11:13 +0200)]
dropbear: Make utmp and putuline support configurable via seperate config options

Utmp support tracks who is currenlty logged in by logging info to the file /var/run/utmp (supported by busybox)
Putuline support will use the utmp structure to write to the utmp file

Signed-off-by: Hans Dedecker <>
4 years agonetifd: Add configurable DHCP release behavior
Hans Dedecker [Thu, 28 Apr 2016 11:40:17 +0000 (13:40 +0200)]
netifd: Add configurable DHCP release behavior

Make sending a DHCP release configurable when the client exits allowing to clean up
IP/mac state info in intermediate devices.

Signed-off-by: Hans Dedecker <>
4 years agobcm53xx: add m25p80 workaround for SPI flash writing problems
Rafał Miłecki [Wed, 27 Apr 2016 21:20:45 +0000 (21:20 +0000)]
bcm53xx: add m25p80 workaround for SPI flash writing problems

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49264

4 years agomediatek: sync and patches add support for several boards
John Crispin [Wed, 27 Apr 2016 08:58:15 +0000 (08:58 +0000)]
mediatek: sync and patches add support for several boards

Signed-off-by: John Crispin <>
SVN-Revision: 49263

4 years agobcm53xx: support SPI-NOR on dual flash devices
Rafał Miłecki [Wed, 27 Apr 2016 08:04:30 +0000 (08:04 +0000)]
bcm53xx: support SPI-NOR on dual flash devices

We need it to access NVRAM.

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49262

4 years agobcm53xx: switch to m25p80 and drop bcm53xxspiflash
Rafał Miłecki [Tue, 26 Apr 2016 17:08:53 +0000 (17:08 +0000)]
bcm53xx: switch to m25p80 and drop bcm53xxspiflash

For some time now m25p80 supports 32 MiB flashes and we just needed to
patch spi-nor to support JEDEC incompatible w25q128. Also by switching
to m25p80 we gain accelerated SPI flash reads.

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49260

4 years agobcm53xx: support JEDEC incompatible w25q128 in spi-nor
Rafał Miłecki [Tue, 26 Apr 2016 12:36:34 +0000 (12:36 +0000)]
bcm53xx: support JEDEC incompatible w25q128 in spi-nor

Signed-off-by: Rafał Miłecki <>
SVN-Revision: 49259

4 years agoxtables-addons: Fix Lua packet script implementation
Hans Dedecker [Thu, 28 Apr 2016 09:18:56 +0000 (11:18 +0200)]
xtables-addons: Fix Lua packet script implementation

lua_packet_segment parameter start has type char pointer; in function lua_tg
it's assigned an uint16 value generating compiler warnings obviously indicating
posssible seg fault problems. Fix the issue by using the correct skb functions
so the parameter points to the position inside the sk_buff

Signed-off-by: Hans Dedecker <>
Signed-off-by: Stijn Cleynhens <>
4 years agolantiq: fix xway image building
Jo-Philipp Wich [Tue, 26 Apr 2016 23:13:34 +0000 (01:13 +0200)]
lantiq: fix xway image building

Commit 8c130dd (lantiq: use new image build process for some images) broke
image generation for the xway target since the generated macros reference not
existing WBMRA.dts and WBMRB.dts files leading to the following build error:

  mips-openwrt-linux-musl-cpp: error: ../dts/WBMRA.dts: No such file or directory
  mips-openwrt-linux-musl-cpp: warning: '-x assembler-with-cpp' after last input file has no effect
  mips-openwrt-linux-musl-cpp: fatal error: no input files

Previously both the WBMRA and WBMRB profiles shared a common WBMR DT since
the only difference is the embedded firmware kmod package.

Extend the lantiqImage macro to optionally support specifying a different
DTS file and use this facility to let the both WBMR profiles reference the
correct device tree file.

Signed-off-by: Jo-Philipp Wich <>