openwrt/staging/yousong.git
7 years agoar71xx: fix Archer C7 LED colour names
Mathias Kresin [Tue, 24 Jan 2017 22:24:59 +0000 (23:24 +0100)]
ar71xx: fix Archer C7 LED colour names

All LEDs on this board are green.

Fixes: FS#409
Signed-off-by: Mathias Kresin <dev@kresin.me>
7 years agoodhcpd: update to git HEAD version
Hans Dedecker [Thu, 26 Jan 2017 20:28:28 +0000 (21:28 +0100)]
odhcpd: update to git HEAD version

c4f9ace odhcpd: decrease default log level to LOG_INFO
a6eadd7 odhcpd: rework IPv6 interface address dump
44965f1 odhcpd: extra syslog tracing

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agonetifd: update to git HEAD version
Hans Dedecker [Thu, 26 Jan 2017 20:22:18 +0000 (21:22 +0100)]
netifd: update to git HEAD version

650758b interface-ip: route proto config support (FS#170)

Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
7 years agobase-files: uppercase default hostname: LEDE
Yousong Zhou [Wed, 11 Jan 2017 03:21:16 +0000 (11:21 +0800)]
base-files: uppercase default hostname: LEDE

The name will appear in shell prompt and LuCI page title.  Uppercase
letters seem to be more vigorous

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agogeneric: keep module aliases inside .modinfo
Yousong Zhou [Wed, 11 Jan 2017 11:57:24 +0000 (19:57 +0800)]
generic: keep module aliases inside .modinfo

It seems module aliases are actually essential info.  E.g. other modules
may call xt_request_find_match(NFPROTO_IPV{4,6}, "hashlimit", 1) and the
kernel will request user mode modprobe helper for ipt_hashlimit and
ip6t_hashlimit respectively which are aliases of xt_hashlimit.ko

Compile-tested for armvirt, there is nearly no size impact.

Before

    -rw-r--r-- 1 yousong yousong     304 Jan 10 17:37 config.seed
    -rw-r--r-- 1 yousong yousong    1634 Jan 11 11:07 lede-armvirt-default.manifest
    -rw-r--r-- 1 yousong yousong 1533647 Jan 11 11:07 lede-armvirt-default-rootfs.tar.gz
    -rw-r--r-- 1 yousong yousong 1802711 Jan 11 11:07 lede-armvirt-root.ext4.gz
    -rw-r--r-- 1 yousong yousong 1544597 Jan 11 11:07 lede-armvirt-rootfs.cpio.gz
    -rw-r--r-- 1 yousong yousong 1174984 Jan 11 11:07 lede-armvirt-root.squashfs.gz
    -rwxr-xr-x 1 yousong yousong 1654712 Jan 11 11:07 lede-armvirt-zImage
    -rwxr-xr-x 1 yousong yousong 2738296 Jan 11 11:07 lede-armvirt-zImage-initramfs
    drwxr-xr-x 2 yousong yousong    4096 Jan 10 17:35 packages
    -rw-r--r-- 1 yousong yousong     739 Jan 10 17:37 sha256sums

After

    -rw-r--r-- 1 yousong yousong     304 Jan 10 17:37 config.seed
    -rw-r--r-- 1 yousong yousong    1634 Jan 11 11:10 lede-armvirt-default.manifest
    -rw-r--r-- 1 yousong yousong 1533646 Jan 11 11:10 lede-armvirt-default-rootfs.tar.gz
    -rw-r--r-- 1 yousong yousong 1802711 Jan 11 11:10 lede-armvirt-root.ext4.gz
    -rw-r--r-- 1 yousong yousong 1544593 Jan 11 11:10 lede-armvirt-rootfs.cpio.gz
    -rw-r--r-- 1 yousong yousong 1174984 Jan 11 11:10 lede-armvirt-root.squashfs.gz
    -rwxr-xr-x 1 yousong yousong 1654736 Jan 11 11:10 lede-armvirt-zImage
    -rwxr-xr-x 1 yousong yousong 2738144 Jan 11 11:10 lede-armvirt-zImage-initramfs
    drwxr-xr-x 2 yousong yousong    4096 Jan 10 17:35 packages
    -rw-r--r-- 1 yousong yousong     739 Jan 10 17:37 sha256sums

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoubox: import kmodloader fixes
Jo-Philipp Wich [Thu, 26 Jan 2017 16:46:32 +0000 (17:46 +0100)]
ubox: import kmodloader fixes

Update ubox to latest Git head in order to import the following fixes:

14839f0 kmodloader: make insert_module() idempotent
6e3c6dc kmodloader: add module alias awareness
9371411 kmodloader: fix out-of-bound access when parsing .modinfo
a62c946 kmodloader: modprobe: skip possible command line arguments
46a4b5f kmodloader: log to kmsg when loading directories of modules
eacc426 kmodloader: remove redundant glob wildcard char
8488bb5 ubox: Initialize conditionally uninitialized variable
db070f1 ubox: Fix some memory leaks
acc48b5 kmodloader: Fix typo in error message

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoubox: install kernel module utilities to /sbin directory
Yousong Zhou [Wed, 11 Jan 2017 11:57:23 +0000 (19:57 +0800)]
ubox: install kernel module utilities to /sbin directory

This is how other Linux distributions are doing and kernel
modprobe_path[] of request_module() also has a default value of
/sbin/modprobe

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
7 years agoprocd: update procd.sh to disallow signal-numbers, enforce signal-names
Bastian Bittorf [Fri, 13 Jan 2017 19:22:51 +0000 (20:22 +0100)]
procd: update procd.sh to disallow signal-numbers, enforce signal-names

A given signal-name is now converted to the corresonding number. In general
it's good style to use names (readability) and it's more portable: signal
numbers can be architecture-dependent, so we are more safe giving names.

A real world example is signal 10, which is BUS on ramips and USR1 on PPC.

All users of 'procd_send_signal' must change their code to reflect this.

Signed-off-by: Bastian Bittorf <bb@npl.de>
7 years agoopenvpn: ssl-enabled variants also provide a virtual openvpn-crypto package
Sven Roederer [Sun, 22 Jan 2017 18:00:51 +0000 (19:00 +0100)]
openvpn: ssl-enabled variants also provide a virtual openvpn-crypto package

When relying on x.509 certs for auth and / or encryption of traffic you can't
use package openvpn-nossl.
Just have your package depend on openvpn-crypto to have SSL-encryption and
X.509-support enabled in OpenVPN. If encryption / X.509 is not a must, use
virtual packge openvpn, which is provided by all OpenVPN-variants.

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
7 years agouClibc-ng: update to 1.0.21
Etienne Haarsma [Sun, 8 Jan 2017 13:21:12 +0000 (14:21 +0100)]
uClibc-ng: update to 1.0.21

Signed-off-by: Etienne Haarsma <bladeoner112@gmail.com>
7 years agoramips: ZyXEL Keenetic Omni/Omni2: export gpio usb power
Vitaly Chekryzhev [Fri, 20 Jan 2017 13:03:15 +0000 (18:03 +0500)]
ramips: ZyXEL Keenetic Omni/Omni2: export gpio usb power

Export gpio usb to allow power management of USB port.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: ZyXEL Keenetic Viva: align factory images
Vitaly Chekryzhev [Fri, 20 Jan 2017 12:57:11 +0000 (17:57 +0500)]
ramips: ZyXEL Keenetic Viva: align factory images

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

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoramips: ZyXEL Keenetic Viva: export gpio usb power
Vitaly Chekryzhev [Tue, 3 Jan 2017 18:18:55 +0000 (23:18 +0500)]
ramips: ZyXEL Keenetic Viva: export gpio usb power

Export gpio usb to allow power management of USB port.

Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
7 years agoprocd: update to latest git HEAD
Matthias Schiffer [Thu, 26 Jan 2017 15:18:41 +0000 (16:18 +0100)]
procd: update to latest git HEAD

0f58977 init: fix /tmp permissions on zram

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
7 years agoiproute2: cake: add 'mpu' minimum packet length support
Kevin Darbyshire-Bryant [Sat, 31 Dec 2016 17:15:56 +0000 (17:15 +0000)]
iproute2: cake: add 'mpu' minimum packet length support

Add 'mpu' minimum length packet size parameter for scheduling/bandwidth
accounting.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agokmod-sched-cake: add 'mpu' minimum packet length support
Kevin Darbyshire-Bryant [Fri, 23 Dec 2016 16:46:45 +0000 (16:46 +0000)]
kmod-sched-cake: add 'mpu' minimum packet length support

Add 'mpu' minimum packet length for scheduling/bandwidth accounting
purposes.

Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
7 years agoramips: add ip17xx support to WLI-TX4-AG300N
Yo Abe [Thu, 26 Jan 2017 13:28:09 +0000 (22:28 +0900)]
ramips: add ip17xx support to WLI-TX4-AG300N

ramips/rt288x WLI-TX4-AG300N was missing support for its 100Mbit switch which
should be included by default.

Signed-off-by: Yo Abe <abe.geel@gmail.com>
[Jo-Philipp Wich: picked from OpenWrt PR#359, rewrap commit msg, fix Sob]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agohostapd: default to wps_independent 1
Steven Honson [Sat, 14 Jan 2017 11:22:24 +0000 (22:22 +1100)]
hostapd: default to wps_independent 1

Signed-off-by: Steven Honson <steven@honson.id.au>
7 years agohostapd: expose wps_independent and ap_setup_locked as uci options
Steven Honson [Tue, 27 Dec 2016 05:16:23 +0000 (16:16 +1100)]
hostapd: expose wps_independent and ap_setup_locked as uci options

ap_setup_locked is named wps_ap_setup_locked in uci for consistency with other
wps related uci options.

Signed-off-by: Steven Honson <steven@honson.id.au>
7 years agoramips: fix EX2700 wireless mac
Joseph C. Lehner [Wed, 25 Jan 2017 16:57:56 +0000 (17:57 +0100)]
ramips: fix EX2700 wireless mac

On some EX2700 devices, the MAC address from the eeprom data differs
from the actual MAC address. Fix that, and cleanup the DTS file
while we're at it.

Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
7 years agomwlwifi: Fixes rewritten history hash and latest version
Gabe Rodriguez [Wed, 25 Jan 2017 04:48:53 +0000 (20:48 -0800)]
mwlwifi: Fixes rewritten history hash and latest version

The author of the upstream mwlwifi edited the history of the previous commit.
This commit not only fixes the updated hash but also sends in the latest
commits he made to the code which are mainly testing.

Signed-off-by: Gabe Rodriguez <lifehacksback@gmail.com>
7 years agokernel: update Broadcom PHY drivers
Rafał Miłecki [Thu, 26 Jan 2017 10:27:50 +0000 (11:27 +0100)]
kernel: update Broadcom PHY drivers

This commit adds 4 patches, one per kernel version that was used for
picking updates. This adds support for few new PHYs.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
7 years agoFix dependency for hostapd
Wilco Baan Hofman [Wed, 4 Jan 2017 16:48:42 +0000 (17:48 +0100)]
Fix dependency for hostapd

Signed-off-by: Wilco Baan Hofman <wilco@baanhofman.nl>
7 years agoar71xx: add support to TP-Link Archer C59v1 and C60v1
Henryk Heisig [Tue, 27 Dec 2016 21:41:41 +0000 (22:41 +0100)]
ar71xx: add support to TP-Link Archer C59v1 and C60v1

TP-Link Archer C59v1 is a dual-band AC1350 router, based on Qualcomm/Atheros
QCA9561+QCA9886.

Specification:

- 775/650/258 MHz (CPU/DDR/AHB)
- 128 MB of RAM (DDR2)
- 16 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 2T2R 5 GHz
- 5x 10/100 Mbps Ethernet
- USB 2.0 port
- 8x LED (controled by 74HC595), 3x button
- UART header on PCB

TP-Link Archer C60v1 is a dual-band AC1350 router, based on Qualcomm/Atheros
QCA9561+QCA9886.

Specification:

- 775/650/258 MHz (CPU/DDR/AHB)
- 64 MB of RAM (DDR2)
- 8 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 2T2R 5 GHz
- 5x 10/100 Mbps Ethernet
- 7x LED, 2x button
- UART header on PCB

Currently not working:
- Port LAN1 on C59, LAN4 on C60
- WiFi 5GHz (missing ath10k firmware for QCA9886 chip)
- Update from oficial web interface ( tplink-saveloader not support "product-info")

Flash instruction:
1. Set PC to fixed ip address 192.168.0.66
2. Download lede-ar71xx-generic-archer-cXX-v1-squashfs-factory.bin
and rename it to tp_recovery.bin
3. Start a tftp server with the file tp_recovery.bin in its root directory
4. Turn off the router
5. Press and hold Reset button
6. Turn on router with the reset button pressed and wait ~15 seconds
7. Release the reset button and after a short time
the firmware should be transferred from the tftp server
8. Wait ~30 second to complete recovery.

Flash instruction under U-Boot, using UART:

1. tftp 0x81000000 lede-ar71xx-...-sysupgrade.bin
2. erase 0x9f020000 +$filesize
3. cp.b $fileaddr 0x9f020000 $filesize
4. reset

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
[Jo-Philipp Wich: remove duplicate ATH79_MACH_ARCHER_C59/C60_V1 entries]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: QCA956X: add missing register
Henryk Heisig [Fri, 6 Jan 2017 20:21:11 +0000 (21:21 +0100)]
ar71xx: QCA956X: add missing register

Signed-off-by: Henryk Heisig <hyniu@o2.pl>
7 years agoar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping
Qian Zheng [Thu, 12 Jan 2017 01:39:55 +0000 (09:39 +0800)]
ar71xx: fix netgear wndr3700 v1/v2, wndr3800/wndr3800ch switch port mapping

Signed-off-by: Qian Zheng <sotux82@gmail.com>
7 years agoar71xx: fix netgear wnr2000 v3 switch port mapping
Qian Zheng [Thu, 12 Jan 2017 01:34:53 +0000 (09:34 +0800)]
ar71xx: fix netgear wnr2000 v3 switch port mapping

Signed-off-by: Qian Zheng <sotux82@gmail.com>
[Jo-Philipp Wich: fix alphabetical order after merging with gl-ar300 case]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoar71xx: fix tl-wr841n-v7 switch port mapping
Qian Zheng [Thu, 12 Jan 2017 01:26:20 +0000 (09:26 +0800)]
ar71xx: fix tl-wr841n-v7 switch port mapping

Signed-off-by: Qian Zheng <sotux82@gmail.com>
[Jo-Philipp Wich: fix alphabetical order]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoopkg: clarify messages and errors related to downloads
Hannu Nyman [Mon, 23 Jan 2017 09:40:29 +0000 (11:40 +0200)]
opkg: clarify messages and errors related to downloads

Clarify opkg's messages related to downloads:

* more visible error message for package list download failure
* separate error message for signature file download error
* if wget returns 4, signal the network error more clearly
* remove '.' from end of filenames and URLs

* try signature check only if the package list was downloaded ok.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
7 years agoimagebuilder: properly escape single quotes in device titles
Jo-Philipp Wich [Thu, 26 Jan 2017 09:13:23 +0000 (10:13 +0100)]
imagebuilder: properly escape single quotes in device titles

The name "Plat'Home OpenBlocks AX3" causes the imagebuilders "make info"
command to fail with:

    bash: -c: line 0: syntax error near unexpected token `('
    bash: -c: line 0: `echo;  [...]'
    Makefile:99: recipe for target '_call_info' failed

Properly escape single quotes to avoid breaking the echo commands.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
7 years agoath9k: add stability fixes for long standing hang issues (FS#13, #34, #373, #383)
Felix Fietkau [Wed, 25 Jan 2017 14:32:18 +0000 (15:32 +0100)]
ath9k: add stability fixes for long standing hang issues (FS#13, #34, #373, #383)

The radio would stop communicating completely. This issue was easiest to
trigger on AR913x devices, e.g. the TP-Link TL-WR1043ND, but other
hardware was occasionally affected as well.

The most critical issue was a race condition in disabling/enabling IRQs
between the IRQ handler and the IRQ processing tasklet

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agomac80211: refresh patch
Felix Fietkau [Wed, 25 Jan 2017 14:31:51 +0000 (15:31 +0100)]
mac80211: refresh patch

Signed-off-by: Felix Fietkau <nbd@nbd.name>
7 years agoAdd video feed to feeds.conf.default
Mirko Vogt [Wed, 25 Jan 2017 14:36:07 +0000 (15:36 +0100)]
Add video feed to feeds.conf.default

Signed-off-by: Mirko Vogt <mirko-openwrt@nanl.de>
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>