openwrt/openwrt.git
7 years agobcm53xx: disable building Linksys EA6300 V1 image
Rafał Miłecki [Wed, 25 Jan 2017 09:48:51 +0000 (10:48 +0100)]
bcm53xx: disable building Linksys EA6300 V1 image

This device has 2 TRX partitions (main one and failsafe one) and Linux
may not detect them properly failing to run userspace.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agomediatek: update the ethernet compat string
John Crispin [Wed, 25 Jan 2017 07:23:38 +0000 (08:23 +0100)]
mediatek: update the ethernet compat string

mt2701 is an earlier version of the ip core, so use that compat string as
baseline.

Signed-off-by: John Crispin <john@phrozen.org>
7 years agouboot-lantiq: mark SPL variants as broken
Mathias Kresin [Tue, 24 Jan 2017 19:37:09 +0000 (20:37 +0100)]
uboot-lantiq: mark SPL variants as broken

All SPL variants are lzo compressed. The lzop binary is used for
compression but is not available in tools.

Additionally at least the NAND SPL support is broken and doesn't create
working bootloaders.

The fb3370 SPI NOR SPL enabled u-boot isn't required for LEDE since the
LEDE images are targeting the pre-installed EVA bootloader.

Mark these u-boot variants as well as the SPL variants for the
reference boards as broken till the lzma issues are fixed upstream and
we can use lzma instead of lzo compression.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agouboot-lantiq: fix a tool portability issue
Felix Fietkau [Wed, 25 Jan 2017 07:29:14 +0000 (08:29 +0100)]
uboot-lantiq: fix a tool portability issue

Use the standard off_t type instead of loff_t

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agox86: fix sysupgrades on disks with 4k block size
Felix Fietkau [Wed, 25 Jan 2017 07:13:11 +0000 (08:13 +0100)]
x86: fix sysupgrades on disks with 4k block size

Even when the disk uses 4k blocks, the partition table still uses units
of 512 byte sectors. Always use ibs=512 for the offsets

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoar71xx: Fix mikrotik subtarget default profile for device profile selection
Alex Samorukov [Sun, 22 Jan 2017 17:56:37 +0000 (17:56 +0000)]
ar71xx: Fix mikrotik subtarget default profile for device profile selection

Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
7 years agoar71xx: improve Mikrotik hAP Lite device support
Alex Samorukov [Thu, 19 Jan 2017 14:38:49 +0000 (15:38 +0100)]
ar71xx: improve Mikrotik hAP Lite device support

- remove CONFIG_MTD_SPI_NOR_USE_4K_SECTORS
- enable jffs2 support
- fix sysupgrade

Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
7 years agotools: update kernel2minor to 0.24 version
Sergey Sergeev [Tue, 24 Jan 2017 13:04:18 +0000 (16:04 +0300)]
tools: update kernel2minor to 0.24 version

Signed-off-by: Sergey Sergeev <adron@yapic.net>
7 years agomxs: fix image build issues
Felix Fietkau [Wed, 25 Jan 2017 06:31:01 +0000 (07:31 +0100)]
mxs: fix image build issues

stage u-boot images in KERNEL_BUILD_DIR for building images
always select uboot-mxs

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agou-boot.mk: add support for overriding DEFAULT
Felix Fietkau [Wed, 25 Jan 2017 06:33:41 +0000 (07:33 +0100)]
u-boot.mk: add support for overriding DEFAULT

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agou-boot.mk: add UBOOT_MAKE_FLAGS variable similar to MAKE_FLAGS
Felix Fietkau [Wed, 25 Jan 2017 06:28:57 +0000 (07:28 +0100)]
u-boot.mk: add UBOOT_MAKE_FLAGS variable similar to MAKE_FLAGS

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobrcm47xx: backport arch patch with Luxul devices support
Rafał Miłecki [Tue, 24 Jan 2017 19:22:14 +0000 (20:22 +0100)]
brcm47xx: backport arch patch with Luxul devices support

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agopackage-ipkg: Do not fail build without base-files
Florian Fainelli [Sat, 10 Dec 2016 00:04:49 +0000 (16:04 -0800)]
package-ipkg: Do not fail build without base-files

If the base-files package is not selected, we will fail executing the
very first postinst script:

make[3]: Leaving directory `/local/users/fainelli/openwrt/trunk'
cp -fpR
/local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root-orion
/local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root.orig-orion
./usr/lib/opkg/info/busybox.postinst: line 3:
/local/users/fainelli/openwrt/trunk/build_dir/target-arm_xscale_musl-1.1.15_eabi/root-orion/lib/functions.sh:
No such file or directory
./usr/lib/opkg/info/busybox.postinst: line 4: default_postinst: command
not found
postinst script ./usr/lib/opkg/info/busybox.postinst has failed with
exit code 127
make[2]: *** [package/install] Error 1

Check for the existence of lib/functions.sh, and if it does not exist,
just bail out gracefully.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
7 years agobase-files: fix user creation on sysupgrade with few opkg control files
Matthias Schiffer [Tue, 24 Jan 2017 17:55:13 +0000 (18:55 +0100)]
base-files: fix user creation on sysupgrade with few opkg control files

If only a single opkg control file exists (which can happen with
CONFIG_CLEAN_IPKG), grep would not print the file name by default. Instead
of forcing it using -H, we just switch to -l (print only file names) and
get rid of the cut.

Add -s to suppress an error message when no control files exist.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoinclude/rootfs.mk: keep Require-User lines with CONFIG_CLEAN_IPKG
Matthias Schiffer [Tue, 24 Jan 2017 16:00:43 +0000 (17:00 +0100)]
include/rootfs.mk: keep Require-User lines with CONFIG_CLEAN_IPKG

Require-User is handled by /etc/uci-defaults/13_fix_group_user on first
boot, so we need to keep these when removing all opkg data with
CONFIG_CLEAN_IPKG.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agomac80211: brcmfmac: don't use uninitialize mem for country codes
Rafał Miłecki [Tue, 24 Jan 2017 15:54:09 +0000 (16:54 +0100)]
mac80211: brcmfmac: don't use uninitialize mem for country codes

There was a bug in brcmfmac patch that could result in treating random
memory as source of country codes.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoAdd back the commit "ath9k: Add airtime fairness scheduler"
Felix Fietkau [Tue, 24 Jan 2017 14:23:30 +0000 (15:23 +0100)]
Add back the commit "ath9k: Add airtime fairness scheduler"

This reverts commit c296ba834db4ce8c71e0ad7030aab188fe60b27b.
According to several reports, the issues with the airtime fairness
changes are gone in current versions.
It's time to re-apply the patch now.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokirkwood: add ZyXEL NSA310b
Alberto Bursi [Mon, 23 Jan 2017 19:34:29 +0000 (20:34 +0100)]
kirkwood: add ZyXEL NSA310b

The ZyXEL NSA310 device is a Kirkwood based NAS:

- SoC: Marvell 88F6702 1200Mhz
- SDRAM memory: 256MB DDR2 400Mhz
- Gigabit ethernet: Realtek (over pcie)
- Flash memory: 128MB
- 1 Power button
- 1 Power LED (blue)
- 5 Status LED (green/red)
- 1 Copy/Sync button
- 1 Reset button
- 2 SATA II port (1 internal and 1 external)
- 2 USB 2.0 ports (1 front and 1 back)
- Smart fan

The stock u-boot cannot read ubi so it should be replaced with the
LEDE/OpenWRT's u-boot or with a u-boot from here
https://github.com/mibodhi/u-boot-kirkwood

This device's boot ROM supports "kwboot" tool
(in mainline u-boot, built automatically if CONFIG_KIRKWOOD is declared)
that sends an uboot image to the board over serial connection, it is very easy to unbrick.

The stock bootloader can use usb and read from FAT filesystems,
so the installation process is simple, place the uboot file on a USB flashdrive
formatted as FAT (here it is "openwrt-kirkwood-nsa310.bin", then connect TTL
to the board and write the following commands in the bootloader console:

usb reset
fatload usb 0 0x1000000 openwrt-kirkwood-nsa310.bin
nand write 0x1000000 0x00000 0x100000
reset

Now you are rebooting in the new u-boot, write this in its console to install the firmware:

usb reset
fatload usb 0 0x2000000 lede-kirkwood-nsa310b-squashfs-factory.bin
nand erase.part ubi
nand write 0x2000000 ubi 0x600000

If your firmware file is bigger than 6 MiBs you should write its size in hex
instead of 0x600000 above, or remove that number entirely (it will take a while in this case).

If you are using another uboot that can read ubi, set mtdparts like this

mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi)

And set your bootcmd to be like this

bootcmd=run setenv bootargs; ubi part ubi; ubi read 0x800000 kernel; bootm 0x800000

Then you can install the firmware as described above.

After you installed (or configured) the u-boot for booting the firmware,
write the device's mac address in the ethaddr u-boot env.
The MAC address is usually on a sticker under the device (one of the two codes is the serial),
it should begin with "107BEF" as it is assigned to ZyXEL.

write in the u-boot console (use your MAC address instead of the example)

setenv ethaddr 10:7B:EF:00:00:00
saveenv

to save the mac address in the u-boot.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agouboot-envtools: add nsa310b envs
Alberto Bursi [Mon, 23 Jan 2017 20:21:30 +0000 (21:21 +0100)]
uboot-envtools: add nsa310b envs

accessing the u-boot's envs on this device is required to read the mac address.
These are the envs of the new u-boot, not of the stock one.

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agomvebu: set fan_ctrl.sh only on mamba
Hans Geiblinger [Fri, 13 Jan 2017 14:13:55 +0000 (09:13 -0500)]
mvebu: set fan_ctrl.sh only on mamba

Signed-off-by: Hans Geiblinger <cybrnook2002yahoo.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
7 years agouboot-zynq: switch to u-boot.mk
Felix Fietkau [Tue, 24 Jan 2017 14:53:28 +0000 (15:53 +0100)]
uboot-zynq: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-sunxi: clean up, switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 12:41:49 +0000 (13:41 +0100)]
uboot-sunxi: clean up, switch to u-boot.mk

Instead of referencing u-boot packages from device profiles and having a
-all metapackage, make the u-boot packages hidden (they don't install to
bin/ anyway), and name the files in KERNEL_BUILD_DIR appropriately

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-pxa: remove package
Felix Fietkau [Mon, 23 Jan 2017 11:42:35 +0000 (12:42 +0100)]
uboot-pxa: remove package

support for pxa has been gone for a long time now

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-oxnas: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:40:32 +0000 (12:40 +0100)]
uboot-oxnas: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-omap: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:25:49 +0000 (12:25 +0100)]
uboot-omap: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-mxs: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:15:19 +0000 (12:15 +0100)]
uboot-mxs: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-mvebu: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 11:09:10 +0000 (12:09 +0100)]
uboot-mvebu: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-layerscape-32b: simplify the package, it does not build anything
Felix Fietkau [Mon, 23 Jan 2017 10:56:42 +0000 (11:56 +0100)]
uboot-layerscape-32b: simplify the package, it does not build anything

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-layerscape: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 09:50:22 +0000 (10:50 +0100)]
uboot-layerscape: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-imx6: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 09:14:55 +0000 (10:14 +0100)]
uboot-imx6: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-at91: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 09:00:17 +0000 (10:00 +0100)]
uboot-at91: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-kirkwood: switch to u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 08:25:26 +0000 (09:25 +0100)]
uboot-kirkwood: switch to u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-ar71xx: switch to using u-boot.mk
Felix Fietkau [Mon, 23 Jan 2017 07:23:55 +0000 (08:23 +0100)]
uboot-ar71xx: switch to using u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-lantiq: switch to using u-boot.mk
Felix Fietkau [Sun, 22 Jan 2017 18:36:00 +0000 (19:36 +0100)]
uboot-lantiq: switch to using u-boot.mk

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: add generic build template for u-boot packages
Felix Fietkau [Sun, 22 Jan 2017 18:33:21 +0000 (19:33 +0100)]
build: add generic build template for u-boot packages

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-kirkwood: add uboot for nsa310b
Alberto Bursi [Sun, 22 Jan 2017 13:43:51 +0000 (14:43 +0100)]
uboot-kirkwood: add uboot for nsa310b

this commit allows to make a standalone u-boot for nsa310b.

While both first-stage and second-stage u-boot work fine if
installed to flash or loaded with kwboot,
I could not get stock u-boot nor bodhi's u-boot to chainload
any second stage u-boot (I also tried with dockstar's uboot
that works fine on this device if loaded with kwboot).

Signed-off-by: Alberto Bursi <alberto.bursi@outlook.it>
7 years agosdk: explicitely remove ccache directories when packing SDK
Jo-Philipp Wich [Tue, 24 Jan 2017 14:29:20 +0000 (15:29 +0100)]
sdk: explicitely remove ccache directories when packing SDK

Upon first invocation, the ccache program will create the required directory
hierarchy so there is no point in shipping these empty directories.

Removing those paths also avoids shipping dangling symlinks in case the
directories got linked elsewhere, e.g. into a shared global cache.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: make the touch .autoremove call non-fatal
Felix Fietkau [Tue, 24 Jan 2017 12:55:52 +0000 (13:55 +0100)]
build: make the touch .autoremove call non-fatal

Fixes build issues when there is nothing to do on the compile step (e.g.
with unselected packages).

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolantiq: remove CPU_TYPE:=mips32r2, it gets overwritten anyway
Felix Fietkau [Tue, 24 Jan 2017 12:33:45 +0000 (13:33 +0100)]
lantiq: remove CPU_TYPE:=mips32r2, it gets overwritten anyway

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agox86: unify CPU_TYPE for legacy and geode
Felix Fietkau [Tue, 24 Jan 2017 12:11:43 +0000 (13:11 +0100)]
x86: unify CPU_TYPE for legacy and geode

According to some reports, -march=pentium-mmx is a better choice for
older Geode CPUs than -march=geode anyway.

Bump the minimum architecture of the legacy target from i486 to
pentium-mmx. Anything older is not worth supporting anyway.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouml: mark as source-only
Felix Fietkau [Tue, 24 Jan 2017 11:44:59 +0000 (12:44 +0100)]
uml: mark as source-only

Get rid of a special case in the buildbot script

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomalta: mark as source-only to avoid wasting build resources
Felix Fietkau [Tue, 24 Jan 2017 11:41:40 +0000 (12:41 +0100)]
malta: mark as source-only to avoid wasting build resources

The le64 and be64 subtargets do not share a package architecture with
any other targets, so they are pretty wasteful for a development-only
target.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomalta: move FEATURES to the target makefile
Felix Fietkau [Tue, 24 Jan 2017 11:41:19 +0000 (12:41 +0100)]
malta: move FEATURES to the target makefile

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: remove mips16 feature flag from target makefiles
Felix Fietkau [Tue, 24 Jan 2017 11:40:00 +0000 (12:40 +0100)]
build: remove mips16 feature flag from target makefiles

It can be implicitly derived from the MIPS32 revision support in the
kernel configuration

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: remove obsolete mips32r2 CPU_TYPE
Felix Fietkau [Tue, 24 Jan 2017 11:30:26 +0000 (12:30 +0100)]
build: remove obsolete mips32r2 CPU_TYPE

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoramips/rt288x: switch CPU_TYPE to 24kc
Felix Fietkau [Tue, 24 Jan 2017 11:25:05 +0000 (12:25 +0100)]
ramips/rt288x: switch CPU_TYPE to 24kc

While rt288x only has a MIPS 4KEc processor, it implements the MIPS32r2
architecture just like the 24Kc, so the instruction set should be 100%
compatible.
Switching it to 24kc allows it to share the package architecture with a
lot of other targets instead of creating a special case, saving
buildbot resources.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoodhcpd: update to git HEAD version
Hans Dedecker [Tue, 24 Jan 2017 09:01:00 +0000 (10:01 +0100)]
odhcpd: update to git HEAD version

e447ff9 router: fix compile issue on 64 bit systems

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agopackages: mark packages depending on a target as nonshared
Mathias Kresin [Thu, 19 Jan 2017 08:18:57 +0000 (09:18 +0100)]
packages: mark packages depending on a target as nonshared

The packages can't be build as shared packages due to the unmet
dependencies.

Fixes FS#418.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agox86: drop ep80579-drivers
Mathias Kresin [Thu, 19 Jan 2017 08:03:13 +0000 (09:03 +0100)]
x86: drop ep80579-drivers

The subtarget on which the driver still depends was removed with
dee8986b95dcc200550faebe49c143e5d2357c60 because it was unmaintained
for a long time.

Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agobuild: do not auto-clean packages where the autoremove step has not run
Felix Fietkau [Mon, 23 Jan 2017 20:53:47 +0000 (21:53 +0100)]
build: do not auto-clean packages where the autoremove step has not run

This avoids repeatedly unpacking and rebuilding packages that are
failing the build. Re-running the failing step should be much faster.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoodhcpd: update to git HEAD version
Hans Dedecker [Mon, 23 Jan 2017 17:36:25 +0000 (18:36 +0100)]
odhcpd: update to git HEAD version

237f1f4 router: convert syslog lifetime traces into LOG_INFO prio
da660c7 treewide: rework prio of syslog messages
0485580 ndp: code cleanup
c5040fe router: add syslog debug tracing for trouble shooting
df023ad treewide: use RELAYD_MAX_ADDRS as address array size
c8ac572 ndp: don't scan netlink attributes in case of netlink route
event

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agohostapd: fix stray "out of range" shell errors in hostapd.sh
Jo-Philipp Wich [Mon, 23 Jan 2017 13:52:27 +0000 (14:52 +0100)]
hostapd: fix stray "out of range" shell errors in hostapd.sh

The hostapd_append_wpa_key_mgmt() procedure uses the possibly uninitialized
$ieee80211r and $ieee80211w variables in a numerical comparisation, leading
to stray "netifd: radio0 (0000): sh: out of range" errors in logread when
WPA-PSK security is enabled.

Ensure that those variables are substituted with a default value in order to
avoid emitting this (harmless) shell error.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: use if-then to avoid non-zero return codes in bin/ packaging code
Felix Fietkau [Mon, 23 Jan 2017 12:40:15 +0000 (13:40 +0100)]
build: use if-then to avoid non-zero return codes in bin/ packaging code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years ago6in4: add missing colon when setting default ca_path
Daniel Golle [Mon, 23 Jan 2017 12:39:52 +0000 (13:39 +0100)]
6in4: add missing colon when setting default ca_path

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agobuild: fix bin/ package empty check
Felix Fietkau [Mon, 23 Jan 2017 11:32:04 +0000 (12:32 +0100)]
build: fix bin/ package empty check

$(wildcard) is evaluated too early in the build process

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: do not create empty directories in bin/
Felix Fietkau [Mon, 23 Jan 2017 09:49:57 +0000 (10:49 +0100)]
build: do not create empty directories in bin/

Some packages may not install any files

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: fix CONFIG_AUTOREMOVE for packages with multiple variants
Felix Fietkau [Sun, 22 Jan 2017 16:40:29 +0000 (17:40 +0100)]
build: fix CONFIG_AUTOREMOVE for packages with multiple variants

Calling the clean target removes all .ipk files and un-stages the
package. Add a new target just for clearing the build dir and call that
one instead of the full clean target

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agouboot-lantiq: fix build issue
Felix Fietkau [Sun, 22 Jan 2017 14:04:04 +0000 (15:04 +0100)]
uboot-lantiq: fix build issue

Do not reference BIN_DIR in the package install section directly, use
$(1) instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoubus: update to the latest version
Felix Fietkau [Sun, 22 Jan 2017 13:37:24 +0000 (14:37 +0100)]
ubus: update to the latest version

Adds uloop related libubus fixes

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoRevert "build: always run package/cleanup before package/compile"
Felix Fietkau [Sun, 22 Jan 2017 12:47:24 +0000 (13:47 +0100)]
Revert "build: always run package/cleanup before package/compile"

This reverts commit 2990a21058243b067bb56fed36ee69205595993e.
This introduces a race condition, let's fix this in buildbot instead.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: always run package/cleanup before package/compile
Felix Fietkau [Sun, 22 Jan 2017 12:30:39 +0000 (13:30 +0100)]
build: always run package/cleanup before package/compile

Remove unnecessary stampfile indirection
Fixes an issue with the command sequence used by buildbot

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolibtool: don't clobber host libtool infrastructure
Jo-Philipp Wich [Sat, 21 Jan 2017 23:28:54 +0000 (00:28 +0100)]
libtool: don't clobber host libtool infrastructure

The libtool target package stages its files into the host staging directory
and moves the libltdl library parts from there into the target staging
directory afterwards.

By doing so, the package essentially renders the host libtool infrastructure
unusable, leading to the below error in subsequent package builds:

    libtoolize: $pkgltdldir is not a directory: `.../hostpkg/share/libtool`

Prevent this problem by using a dedicated libltdl install prefix in order to
avoid overwriting and moving away preexisting files belonging to tools/libtool.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoopenvpn: let all openvpn variants provide a virtual openvpn package
Jo-Philipp Wich [Sat, 21 Jan 2017 22:03:36 +0000 (23:03 +0100)]
openvpn: let all openvpn variants provide a virtual openvpn package

Add PROVIDES:=openvpn to the default recipe in order to let all build variants
provide a virtual openvpn package.

The advantage of this approach is that downstream packages can depend on just
"openvpn" without having to require a specific flavor.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agobuild: fix regression in handling ABI_VERSION
Felix Fietkau [Sat, 21 Jan 2017 17:29:56 +0000 (18:29 +0100)]
build: fix regression in handling ABI_VERSION

The code was updated without changing $$@ into the proper target
filename

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agokmod-sched-cake: fix parameter passing kernel/user space
Kevin Darbyshire-Bryant [Fri, 23 Dec 2016 16:46:45 +0000 (16:46 +0000)]
kmod-sched-cake: fix parameter passing kernel/user space

The last two parameters passed between user space tc and kernel space
sched-cake were transposed due to a merge mistake in a parameter header
file.

As such, using a packet overhead figure was likely to set cake to wash
packet DSCP values.  Similarly, the DSCP wash flag was used as an offset
to the displayed packet overhead value.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agomac80211: rt2x00: add support for external LNA on MT7620
Daniel Golle [Fri, 20 Jan 2017 15:08:03 +0000 (16:08 +0100)]
mac80211: rt2x00: add support for external LNA on MT7620

Reported-by: Tom Psyborg <pozega.tomislav@gmail.com>
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
7 years agoRevert "tools: wrt400n: fix making factory images with kernel bigger than 1MB"
John Crispin [Fri, 20 Jan 2017 05:39:39 +0000 (06:39 +0100)]
Revert "tools: wrt400n: fix making factory images with kernel bigger than 1MB"

This reverts commit 5f9b20bc7d0bde6c100a3dec5f02b56f7ef7a61d.

The builders were failing with a segfault when generating the image

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoRevert "ar71xx: wrt400n: lift size limit on kernel and rootfs part"
John Crispin [Fri, 20 Jan 2017 05:39:35 +0000 (06:39 +0100)]
Revert "ar71xx: wrt400n: lift size limit on kernel and rootfs part"

This reverts commit 78c2ec0f477bab5b5c2622b5a18c14e51dea7249.

The builders were failing with a segfault when generating the image

Signed-off-by: John Crispin <john@phrozen.org>
7 years agokernel: fix chipidea module dependencies
John Crispin [Fri, 20 Jan 2017 05:38:59 +0000 (06:38 +0100)]
kernel: fix chipidea module dependencies

Signed-off-by: John Crispin <john@phrozen.org>
7 years agoubus: update to the latest version
Felix Fietkau [Fri, 20 Jan 2017 10:34:26 +0000 (11:34 +0100)]
ubus: update to the latest version

- Adds support for passing file descriptors in ubus invoke requests
- Fixes clearing pending timers on ubus_shutdown()
- Fixes checking the amount of written data in ubusd
- Fixes an ubusd crash when trying to subscribe to system objects

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolede-keyring: bundle latest usign certificates
Jo-Philipp Wich [Fri, 20 Jan 2017 09:09:30 +0000 (10:09 +0100)]
lede-keyring: bundle latest usign certificates

Includes the public usign certificates used by the 17.01.* release builds.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agosdk: fix Git URL detection
Jo-Philipp Wich [Fri, 20 Jan 2017 08:51:38 +0000 (09:51 +0100)]
sdk: fix Git URL detection

Instead of relying on complex sed patterns that trip up make syntax rules, use
GNU Makes builtin filter function to match desired URLs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: add support for PQI Air Pen
YuheiOKAWA [Tue, 10 Jan 2017 09:47:19 +0000 (18:47 +0900)]
ar71xx: add support for PQI Air Pen

SoC: AR9331
Ethernet x1, Wireless 2.4G, uSD card slot x1.
USB Power, include Li-Po Battery.

Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com>
Changes in v2:
alphabetical ordering, tabs fron spaces.

7 years agoar71xx: wrt400n: lift size limit on kernel and rootfs part
Yousong Zhou [Thu, 29 Dec 2016 07:26:59 +0000 (15:26 +0800)]
ar71xx: wrt400n: lift size limit on kernel and rootfs part

While at it, convert to new build method

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agotools: wrt400n: fix making factory images with kernel bigger than 1MB
Yousong Zhou [Thu, 29 Dec 2016 07:26:58 +0000 (15:26 +0800)]
tools: wrt400n: fix making factory images with kernel bigger than 1MB

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoar71xx: add Abicom SC1750 support
Conor O'Gorman [Sun, 15 Jan 2017 22:01:05 +0000 (22:01 +0000)]
ar71xx: add Abicom SC1750 support

Support Abicom International Scorpion SC1750 Board

QCA9550 700MHz Extended Temperature Range
256MB DDR2
256MB Nand Flash
16MB Nor Flash
1x SFP, 1x PCIe
2x 10/100/1000 Ethernet
135x100 mm
802.11ng/g/b
802.11ac/an/a

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
7 years agoar71xx: add Abicom SC450 support
Conor O'Gorman [Sun, 15 Jan 2017 22:01:04 +0000 (22:01 +0000)]
ar71xx: add Abicom SC450 support

Support Abicom International Scorpion SC450 Board

QCA9550 700MHz Extended Temperature Range
256MB DDR2
256MB NAND Flash
16MB NOR Flash
10/100/1000 Ethernet
15W Max, 3x3 Mode, Full Power TX Power
802.3-at POE+ & DC Input options
100x 85mm
USB
PCIe
SFP
GPIO/LED

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
7 years agoar71xx: add Abicom SC300M support
Conor O'Gorman [Sun, 15 Jan 2017 22:01:03 +0000 (22:01 +0000)]
ar71xx: add Abicom SC300M support

Support Abicom International Scorpion SC300M Module

QCA9550 700MHz Extended Temperature Range
256MB DDR2
256MB Nand Flash
16MB SPI Flash
802.11a/na/b/g/ng
GPIO x 22, USB x2, PCIe x2
10/100/1000 Ethernet
23dBm, Optional Onboard Antenna
DC Input, 8-20V DC
85 x 55 mm

Signed-off-by: Conor O'Gorman <i@conorogorman.net>
7 years agoramips: ZyXEL Keenetic series update wan mac
Vitaly Chekryzhev [Thu, 5 Jan 2017 11:25:59 +0000 (16:25 +0500)]
ramips: ZyXEL Keenetic series update wan mac

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: ZyXEL Keenetic Omni align factory images
Vitaly Chekryzhev [Thu, 5 Jan 2017 11:23:07 +0000 (16:23 +0500)]
ramips: ZyXEL Keenetic Omni align factory images

ZyXEL web-flasher requires squashfs to be aligned to 64kb.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: correct keenetic-series switch index
Vitaly Chekryzhev [Sun, 1 Jan 2017 21:46:33 +0000 (02:46 +0500)]
ramips: correct keenetic-series switch index

Fix switch name typo

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoar71xx: Chipidea USB device support
Svetoslav Neykov [Fri, 30 Dec 2016 15:06:43 +0000 (17:06 +0200)]
ar71xx: Chipidea USB device support

Changes the platform to use the Chipidea driver instead of the
generic USB host driver which has support for both host and
device modes (selected on boot).

The changes in 930-chipidea-pullup.patch are already in mainline.
I'll upstream 920-usb-chipidea-AR933x-platform-support.patch once I
can test the changes with a newer kernel.

Signed-off-by: Svetoslav Neykov <svetoslav@neykov.name>
7 years agoocteon: fix mtd partitions for erlite on cmdline
Jiri Kastner [Wed, 18 Jan 2017 09:45:23 +0000 (10:45 +0100)]
octeon: fix mtd partitions for erlite on cmdline

erlite mtdparts exposes boot0, boot1 and eeprom regions
as read/write.
this patch adds readonly flags, so these regions can't be
modified. same as it is already for ER profile.

Signed-off-by: Jiri Kastner <cz172638@gmail.com>
7 years agosdk: avoid using private repository clone urls as base repo entry
Jo-Philipp Wich [Thu, 19 Jan 2017 19:41:46 +0000 (20:41 +0100)]
sdk: avoid using private repository clone urls as base repo entry

Only consider the repository origin url as valid base feed entry if it is a
git://, http:// or https:// location.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agolantiq: fix an ethernet stability issue triggered by receving packets during boot
Felix Fietkau [Thu, 19 Jan 2017 13:25:09 +0000 (14:25 +0100)]
lantiq: fix an ethernet stability issue triggered by receving packets during boot

Disabling ethernet during reboot (only to enable it again when the
ethernet driver attaches) can put the chip into a faulty state where it
corrupts the header of all incoming packets.

This happens if packets arrive during the time window where the core is
disabled, and it can be easily reproduced by rebooting while sending a
flood ping to the broadcast address.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: disable CONFIG_AUTOREMOVE for packages/tools where QUILT is used
Felix Fietkau [Thu, 19 Jan 2017 11:41:59 +0000 (12:41 +0100)]
build: disable CONFIG_AUTOREMOVE for packages/tools where QUILT is used

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: include CONFIG_AUTOREMOVE in HOST_STAMP_PREPARED
Felix Fietkau [Thu, 19 Jan 2017 11:37:39 +0000 (12:37 +0100)]
build: include CONFIG_AUTOREMOVE in HOST_STAMP_PREPARED

Fixes build issues when changing the CONFIG_AUTOREMOVE setting

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agolantiq: fix spurious irq storm
Felix Fietkau [Thu, 19 Jan 2017 11:31:34 +0000 (12:31 +0100)]
lantiq: fix spurious irq storm

Since the MIPS IRQ stack patches, lantiq devices were emitting a storm
of messages like this:

[  567.872172] Spurious IRQ: CAUSE=0x1100c300

Fix this by reworking the IRQ dispatch code

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: include CONFIG_AUTOREMOVE in STAMP_PREPARED
Felix Fietkau [Thu, 19 Jan 2017 10:37:02 +0000 (11:37 +0100)]
build: include CONFIG_AUTOREMOVE in STAMP_PREPARED

Fixes build issues when changing the CONFIG_AUTOREMOVE setting

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: fix triggering opkg/host compilation
Jo-Philipp Wich [Thu, 19 Jan 2017 01:41:02 +0000 (02:41 +0100)]
build: fix triggering opkg/host compilation

Commit 131db36 "build: remove separate /install step for host builds" dropped
the package/*/host/install targets in favor to performing the install steps
within the compile target instead.

Adjust package/Makefile accordingly in order to prevent a missing
staging_dir/host/bin/opkg when staging package archives into the rootfs.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agogettext-full: fix to use $STAGING_DIR_HOSTPKG instead of $STAGING_DIR/host
Matthias Schiffer [Wed, 18 Jan 2017 23:04:09 +0000 (00:04 +0100)]
gettext-full: fix to use $STAGING_DIR_HOSTPKG instead of $STAGING_DIR/host

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agorules.mk: export STAGING_DIR_HOSTPKG
Matthias Schiffer [Wed, 18 Jan 2017 23:03:32 +0000 (00:03 +0100)]
rules.mk: export STAGING_DIR_HOSTPKG

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agobuild: extend CONFIG_AUTOREMOVE to tools/
Felix Fietkau [Wed, 18 Jan 2017 17:00:00 +0000 (18:00 +0100)]
build: extend CONFIG_AUTOREMOVE to tools/

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: remove separate /install step for host builds
Felix Fietkau [Wed, 18 Jan 2017 16:56:13 +0000 (17:56 +0100)]
build: remove separate /install step for host builds

Reduces the number of recursive make invocations

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: add support for automatically removing build dir contents during build
Felix Fietkau [Wed, 18 Jan 2017 14:37:57 +0000 (15:37 +0100)]
build: add support for automatically removing build dir contents during build

This is used to save space on buildbot instances.
If any part of a package needs to be rebuild, the whole package is
rebuilt from scratch. Stamp files are preserved to allow dependency
checks to work

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: stage bin/ packages inside PKG_BUILD_DIR
Felix Fietkau [Wed, 18 Jan 2017 19:38:36 +0000 (20:38 +0100)]
build: stage bin/ packages inside PKG_BUILD_DIR

This makes the build slightly more efficient by avoiding the need to
re-stage packages on every full build run.

It is also necessary for the upcoming CONFIG_AUTOREMOVE feature

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: stage unstripped packages inside PKG_BUILD_DIR
Felix Fietkau [Wed, 18 Jan 2017 15:19:03 +0000 (16:19 +0100)]
build: stage unstripped packages inside PKG_BUILD_DIR

This makes the build slightly more efficient by avoiding the need to
re-stage packages on every full build run.

It is also necessary for the upcoming CONFIG_AUTOREMOVE feature

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: write ABI_VERSION file when staging the package
Felix Fietkau [Wed, 18 Jan 2017 14:28:36 +0000 (15:28 +0100)]
build: write ABI_VERSION file when staging the package

The make target does not rewrite the file if the contents didn't
change. This causes make to always consider the target old.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: introduce extra targets that contain only proper dependencies
Felix Fietkau [Wed, 18 Jan 2017 13:27:04 +0000 (14:27 +0100)]
build: introduce extra targets that contain only proper dependencies

This can be used to check if targets like prepare or compile are up to date

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agobuild: define common subdir targets in rules.mk
Felix Fietkau [Wed, 18 Jan 2017 13:00:48 +0000 (14:00 +0100)]
build: define common subdir targets in rules.mk

Reduce build system clutter and enable further rework

Signed-off-by: Felix Fietkau <nbd@nbd.name>