aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* kernel: fix MIPS memory function optimization build error in decompressorFelix Fietkau2017-02-281-10/+20
| | | | | | | | | | | | | | | | | | Fixes the following build error: CC arch/mips/boot/compressed/decompress.o OBJCOPY arch/mips/boot/compressed/vmlinux.bin XZKERN arch/mips/boot/compressed/vmlinux.bin.z OBJCOPY arch/mips/boot/compressed/piggy.o LD vmlinuz arch/mips/boot/compressed/decompress.o: In function `lzma2_lzma': /tmp2/mehrtens/linux/arch/mips/boot/compressed/../../../../lib/xz/xz_dec_lzma2.c:884: undefined reference to `memmove' make[1]: *** [vmlinuz] Error 1 make: *** [vmlinuz] Error 2 lib/decompress_unxz.c only defines its own memmove function if there is no macro with the same name. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* wireless-tools: Change download url to githubHsing-Wang Liao2017-02-281-1/+1
| | | | Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
* bcm53xx: enable CLK_BCM_NSP for kernel 4.9Rafał Miłecki2017-02-281-1/+1
| | | | | | This is required to get booting kernel. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm63xx: CPVA502+: add SPROM wifiDaniel Gonzalez Cabanelas2017-02-2842-111/+118
| | | | | | | | | | Add SPROM wifi to the kernel board data. After this fix, the wifi won't work anyway due the lack of RAM memory (16 MB). It will throw a kernel panic when loading the b43 drivers. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* brcm63xx: CPVA502+: fix userspace supportDaniel Gonzalez Cabanelas2017-02-283-2/+5
| | | | | | Fix board name typo, fix network configuration and add a led trigger. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* brcm63xx: CPVA502+: fix image generationDaniel Gonzalez Cabanelas2017-02-281-4/+3
| | | | | | Fix typo, erase pointless option and allow to build the image. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* brcm63xx: CPVA502+: fix LEDs and buttons at DTSDaniel Gonzalez Cabanelas2017-02-281-3/+17
| | | | | | Leds are wrong and a button is missing, fix them. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* brcm63xx: fix external IRQ edge type senseDaniel Gonzalez Cabanelas2017-02-281-1/+1
| | | | | | | | | | Fix the register for configuring rising/falling edge Rising should be sense=1, and falling sense=0. The old driver used these values, but the new one have them flipped. Signed-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>
* kernel: sort generic configsJonas Gorski2017-02-283-62/+60
| | | | | | | Use kconfig.pl to sort the generic configs and get rid of duplicate entries. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* rules.mk: make PKG_CONFIG_DEPENDS properly track string valuesMatthias Schiffer2017-02-271-1/+1
| | | | | | | | | The confvar macro is adjusted to not only consider if a variable has a value or not, but also the value itself. Instead of creating a string of 'y' and 'n' characters, all variable names and values are concatenated and hashed. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* kernel: add another missing TPM symbolJohn Crispin2017-02-273-0/+3
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* kernel: add missing TPM related config symbol for 3.18Felix Fietkau2017-02-271-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: select kmod-mt7603 instead of kmod-mt76 for WBMR-300HPDFelix Fietkau2017-02-271-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: fix TPM related config symbols for 4.9Felix Fietkau2017-02-271-1/+7
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add missing HW_RANDOM_TPM symbolJohn Crispin2017-02-273-0/+3
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* toolchain: unbreak glibc on MIPSJonas Gorski2017-02-271-0/+36
| | | | | | | | | | | | | | | Binutils recently updated the ABI version to 5, which broke glibc, as it refuses to load anything > 3. Upstream reverted the ABI version update, so backport the commit. Fixes the following error on boot: /bin/sh: error while loading shared libraries: /lib/libcrypt.so.1: ELF file ABI version invalid [ 0.920077] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 [ 0.920077] [ 0.929450] Rebooting in 1 seconds.. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* ramips: add support for HiWiFi HC5661AWang JiaWei2017-02-277-2/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | HC5661A is almost the same as HC5661 but MT7628AN is used instead of MT7620A. - MT7628AN - 128 MiB DDR2 RAM (W971GG6KB-25) - 16 MiB SPI NOR flash (W25Q128) - SD slot (not work yet) - 1+4 x 100M Ethernet - 802.11 b/g/n Wi-Fi - 3 x LED - 1 x button - UART pad on PCB (JP1: TX, RX, GND, 3.3V) The factory flash layout seems different from HC5661. "hwf_config" is renamed to "oem" and its size changes to 0x20000. It is modified accordingly in the dts file. 0x000000000000-0x000000030000 : "u-boot" 0x000000030000-0x000000040000 : "hw_panic" 0x000000040000-0x000000050000 : "Factory" 0x000000050000-0x000000160000 : "kernel" 0x000000160000-0x000000fc0000 : "rootfs" 0x000000bb0000-0x000000fc0000 : "rootfs_data" 0x000000fc0000-0x000000fe0000 : "oem" 0x000000fe0000-0x000000ff0000 : "bdinfo" 0x000000ff0000-0x000001000000 : "backup" 0x000000050000-0x000000fc0000 : "firmware" To install LEDE, enabled the "developer mode", which will *void your warranty* and open the SSH server at port 1022. sysupgrade -n -F lede-ramips-mt7628-hc5661a-squashfs-sysupgrade.bin SD slot: - Tried to add modules kmod-sdhci kmod-sdhci-mt7620, and corresponding dts block. - It will block WAN + 3xLAN ports, only one LAN works. - I'm not sure why, everything else works fine. Signed-off-by: Wang JiaWei <buaawjw@gmail.com>
* kernel: update 4.9 to 4.9.13Ansuel Smith2017-02-272-10/+10
| | | | | | refresh patch 630-packet_socket_type Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* kernel: Add TPM Module supportChris Blake2017-02-274-0/+65
| | | | | | | | The following will enable the TPM kernel module, as well as support for the atmel i2c TPM driver. Tested and confirmed working on an Aerohive AP-121 Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
* ipq806x: sanitize Dni image generationThomas Reifferscheid2017-02-261-4/+3
| | | | | | | | | The more straight forward approach for generating the pure and unpadded kernel file which then can be used for initramfs straight. Build options for factory.img and sysupgrade.tar are handeled seperately. Signed-off-by: Thomas Reifferscheid <thomas@reifferscheid.org>
* kernel: enable hwmon-k10temp in the x86/64 kernel config instead of packaging itFelix Fietkau2017-02-262-17/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools/m4: update 1.4.18Etienne Haarsma2017-02-262-19/+2
| | | | | | Patch 100-fix-gets-removal.patch is removed because it's included in the new version. Signed-off-by: Etienne Haarsma <bladeoner112@gmail.com>
* build: clean up redundant touching of the package install info fileFelix Fietkau2017-02-262-10/+6
| | | | | | | Instead of using a separate .clean stamp file, remove the install info file on compile, then append the install package list afterwards Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: get rid of host.mkFelix Fietkau2017-02-2620-70/+11
| | | | | | Defined required host related variables in toplevel.mk instead Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: get rid of FIND_L from host.mkFelix Fietkau2017-02-262-6/+1
| | | | | | | This was added for Mac OS X many years ago, but recent versions also support find -L Signed-off-by: Felix Fietkau <nbd@nbd.name>
* packge/boot/rbcfg: add new boot constants found in the recent Mikrotik devicesAlex Samorukov2017-02-262-0/+6
| | | | Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
* grub2: update to 2.02~rc1Alif M. Ahmad2017-02-261-2/+2
| | | | Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
* ar71xx: mikrotik: erase firmware partition on SPI NOR devices in pre_upgrade()Thibaut VARENE2017-02-261-0/+8
| | | | | | | | | | | | On Mikrotik SPI NOR devices, the firmware partition must be erased when flashing from stock firmware, otherwise leftover bits (in particular a kernel signature) can trigger a boot loop. When booted from initramfs (the only way to flash LEDE on these devices), this patch unconditionally erases the firmware partition in the pre_upgrade() stage for all supported SPI NOR devices. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ramips: include only kmod-mt76-core in EX2700 imageJoseph C. Lehner2017-02-261-0/+1
| | | | | | | This patch frees up flash space on the EX2700, by removing unused mt76 drivers and firmware. Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
* ar71xx: Enable RB2011 TTYArvid E. Picciani2017-02-261-1/+2
| | | | | | Enables TTY on the Mikrotik RouterBoard RB2011*R* Signed-off-by: Arvid E. Picciani <aep@exys.org>
* kernel: update 4.9 to 4.9.12Ansuel Smith2017-02-266-28/+28
| | | | | | | | Refresh generic patch Compiled and tested WRT1900ACS Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* layerscape: add LS1043A Rev1.1 supportYangbo Lu2017-02-2615-4/+1191
| | | | | | | | Backport kernel patches for LS1043A Rev1.1 support from upstream, patchwork, and SDK. And update to latest u-boot to support LS1043A Rev1.1. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* iftop: bump to latest upstreamKevin Darbyshire-Bryant2017-02-262-73/+8
| | | | | | | | | Drops a LEDE carried patch now upstream. Convert to autotools. A number of nits fixed upstream (dns & short packet handling most notable) Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* relayd: fix making incomplete instance json dataYousong Zhou2017-02-252-7/+14
| | | | | | | | Defer procd_open_instance only after validity check passed. Fixes FS#541 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* relayd: remove old start-stop-service related codeYousong Zhou2017-02-251-15/+0
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* ubus: update to the latest versionFelix Fietkau2017-02-251-3/+3
| | | | | | | | | | c09e4f0 ubusd: fix incomplete copy of shared buf during queue-ing 453b87f cli: add support for subscribing to objects 6eb3c96 cli: do not use default timeout for listen dfe3383 libubus: reset ctx->sock.error when doing ubus reconnect 34c6e81 cli: fix listen_timeout compile issue Signed-off-by: Felix Fietkau <nbd@nbd.name>
* libubox: Update to latest versionTed Hess2017-02-241-3/+3
| | | | | | 9d6305a utils: Change calloc_a() to return size_t aligned pointers Signed-off-by: Ted Hess <thess@kitschensync.net>
* ubox: fix possible address alignment issueYousong Zhou2017-02-241-3/+3
| | | | | | | | Fixes FS#544 3dc78a4 kmodloader: don't store aliases info in struct module Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* ppp: ppp6-up: add executable permission bitYousong Zhou2017-02-241-0/+0
| | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* mac80211: hwsim: select DRIVER_11AC_SUPPORT and DRIVER_11W_SUPPORTYousong Zhou2017-02-241-1/+1
| | | | | | | | This is required for default wireless configuration of malta target to work out of the box again. Fixes "77ece30e: hostapd: Add ability to specify that that wireless driver supports 802.11ac" Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* iw: sync nl80211.h with mac80211 packageFelix Fietkau2017-02-241-5/+289
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* odhcpd: update to git HEAD version (FS#397) (FS#481)Hans Dedecker2017-02-231-3/+3
| | | | | | | | | | | | | | | | | | 1b630f8 router: don't announce prefixes with valid lifetime equal to 0 ba0cac0 router: fix arithmetic exception fault 3495f17 router: allow RA prefix lifetime being set to leasetime value (FS#397) e437ce9 treewide: simplify dhcp leasetime checking 942fb33 router: support ra_mininterval and ra_lifetime uci parameters (FS#397) f913337 router.h: fix alignment style 4dc7edb Revert "odhcpd.h: fix alignment style" 62ea54f odhcpd.h: fix alignment style a898ee5 config: make loglevel configurable via uci (FS#481) 51c756c odhcpd: display correct default log level in usage text 68ee0b5 treewide: define and use macro IN6_IS_ADDR_ULA fa57225 ndp: deregister netlink event socket for non recoverable errors ac70d28 odhcpd: fix white space errors Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* swconfig: Bugfix switch_port uci option parsingBen Kelly2017-02-231-2/+2
| | | | | | | | When not defining 'device' or 'vlan' in relevant switch_port uci sections, behaviour is inconsistent due to *devn, *port and *vlan pointers not being zero initialized. Signed-off-by: Ben Kelly <ben@benjii.net>
* uboot-omap: Makefile: Include kernel.mkAlexandru Gagniuc2017-02-231-0/+1
| | | | | | | | | | | This is needed for the definition of $(LINUX_DIR). This is used in u-boot.mk to change the device-tree compiler to the dtc used by linux. Without this, the build will use the system dtc. This results in a build failure when a dtc does not exist outside the buildroot. Signed-off-by: Alexandru Gagniuc <alex.g@adaptrum.com>
* ar71xx: use common firmware partition for WNDAP360Felix Fietkau2017-02-231-2/+2
| | | | | | Patch from https://github.com/openwrt/openwrt/pull/398 Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mac80211: disable potentially harmful PS software retry for A-MPDU sessionsFelix Fietkau2017-02-231-0/+28
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* netifd: fix stopping netifd + interfacesFelix Fietkau2017-02-231-10/+3
| | | | | | | stop() is overwritten by rc.common, so implement stop_service instead. While at it, remove the now unnecessary restart() override Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mt76: split kmod packageJoseph C. Lehner2017-02-231-13/+49
| | | | | | | | | | | | | | | | This patch splits `kmod-mt76` into three separate packages: `kmod-mt76-core`, `kmod-mt76x2` and `kmod-mt7603`. By making `kmod-mt76` a metapackage containing these new packages, the previous behaviour of including all drivers and firmware is left unchanged, unless explicitly unselected in `DEVICE_PACKAGES`. This splitting is especially beneficial for devices with small flash chips, since the `kmod-mt76` package currently requires ~160K on squashfs (after compression). Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
* lantiq: fix broadcast packets leaking on the wrong vlan on xrx200Felix Fietkau2017-02-232-10/+12
| | | | | | | | | | | | | | | The ethernet driver uses a port map override via special tag to control the ports on which multicast packets are sent. This was added to work around an issue in the switch that was occasionally leaking packets onto the wrong vlan. Unfortunately the change had some leftover lines that were overwrting the port map with a list of all ports, thus always leaking packets onto the wront vlan. Fix this by only enabling the override with the VLAN port map and only if a matching VLAN port map was actually found Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: update kernel 4.4 to 4.4.50Kevin Darbyshire-Bryant2017-02-2310-56/+56
| | | | | | | | | | Bump kernel from 4.4.49 to 4.4.50 Compile tested: All targets Run tested: ar71xx Archer C7 v2 Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>