aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* brcm47xx: relocate the stack in loaderHauke Mehrtens2017-10-112-2/+4
| | | | | | | | | | | By default we are reusing the stack provided by CFE, like it is intended by CFE. On my WRT54GS it is located at 0x8043BF30, so a big kernel image could overwrite it. Relocate it to a different memory region which is still under the 8MB RAM, but in the higher area. We only need this memory region for the stack of the loader, Linux will set up this for its own. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* brcm47xx: relocate loader to higher addressHauke Mehrtens2017-10-111-1/+1
| | | | | | | | | | | | | | | | | | | | | The boot process on a WRT54GL works the following way: 1. CFE gets loaded by the boot rom from flash 2. CFE loads the loader from the flash and gzip uncompresses it 3. CFE starts the loader 4. The loader stores the FW arguments and relocates itself to BZ_TEXT_START (now 0x80600000) 5. The loader reads the Linux image from flash 6. The loader lzma decompresses the Linux image to LOADADDR (0x80001000) 7. The loader executes the uncompress Linux image at LOADADDR The BZ_TEXT_START was set to 0x80400000 before. When the kernel gets uncompressed and is bigger than BZ_TEXT_START - LOADADDR it overwrote the loader which was currently uncompressing it and made the board crash. Increase the BZ_TEXT_START my 2 MB to have more space for the kernel. Even on 16MB RAM devices the memory goes till 0x80FFFFFF so this should not be a problem. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* bcm53xx: backport DTS changes up to the first 4.15 queued commitsRafał Miłecki2017-10-1016-0/+1324
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ramips/mt76x8: add initramfs support for tplink 841n v13Alexander Couzens2017-10-091-0/+1
| | | | | | | | | | | | | The tplink 841n v13 requires an tplink v2 image header in front of an initramfs image. To boot an initramfs image: - break the uboot by holding the '4' key - setup your tftp server 192.168.0.255 - tftp 81000000 lede-ramips-mt76x8-tl-wr841n-v13-initramfs-kernel.bin - bootm Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* image-commands: tplink-v2-header: pass kernel loadaddr and entryAlexander Couzens2017-10-091-1/+2
| | | | | | | Initramfs images won't boot if the default loadaddr and entrypont is different. Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* net: uqmi: fix blocking in endless loops when unplugging deviceAlexandru Ardelean2017-10-091-0/+2
| | | | | | | | | | | If you unplug a QMI device, the /dev/cdc-wdmX device disappears but uqmi will continue to poll it endlessly. Then, when you plug it back, you have 2 uqmi processes, and that's bad, because 2 processes talking QMI to the same device [and the same time] doesn't seem to work well. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* conntrack-tools: switch to gitStijn Tintel2017-10-091-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There have been a number of interesting fixes in conntrack-tools since the current latest release. Most notable is that this fixes IPv6 conntrack table syncing when cross-compiling conntrack-tools. 7e7748d src/main: refresh help message fe32043 conntrackd.8: refresh file 47a4dda conntrackd.8: add reference to systemd 0cfe7ff doc/manual: include some bits about init systems 74a418b conntrackd: cthelper: ftp: Set match offset/len for PORT mangling d833bed conntrackd: cthelper: ftp: Fix debug print dd4b5a1 conntrackd: cthelper: Add new mdns helper 498d698 Link nfct and helper modules with `-z lazy` 9e94e85 sync-mode: print errno message on failure ab81c35 log: print messages to stdout/sderr if running in console mode 631d92b log: introduce a mechanism to know if log was initialized ccb1c8b conntrackd: replace error reporting in the config parser with dlog() bee121e conntrackd: replace fprintf calls with dlog() 5a51b04 conntrack-tools: update Arturo Borrero Gonzalez email address abb9984 helper: remove copy and paste from uapi kernel header a91a004 src: add log message when resync is requested by other node c2d8be1 systemd: fix missing log.h include f6ca216 config: drop old/obsolete/deprecated conntrackd.conf config options 8b83771 conntrack: send mark filter to kernel iff set 1ba5e76 conntrackd: cthelper: Don't leak nat_tuple 832166d conntrackd: cthelper: Free pktb after use ff843bc conntrackd: config: Do not strdup() tokens b61c454 conntrackd: cthelper: ssdp: Track UPnP eventing 8ea394e conntrackd: Remove obsolete rule to catch ambiguous Checksum option 39398cd conntrackd: CommitTimeout breaks DisableExternalCache set On 29b390a conntrack: Support IPv6 NAT 381827a conntrackd: factorice tx_queue functions 131df89 conntrackd: factorize resync operations d31bacc conntrackd: consolidate more code to use resync_send() 3d98496 conntrackd: request resync at startup ef410bf conntrackd: remove use of HAVE_INET_PTON_IPV6 9d38445 conntrackd: evaluate configuration earlier 6feded7 conntrackd: cleanup if failed forking dbfdea7 conntrackd: deprecate unix backlog configuration 210f542 conntrackd: make the daemon run in RT mode by default 37cc7f0 conntrackd: remove warning for -S d2849d1 conntrack: Show multiple CPUs stats from proc bc0b49a conntrackd: cthelper: ssdp: fix build with musl 0c77a25 tests: don't fail on modprobe since the driver might be built-in eefe649 conntrack.8: refresh manpage Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* libnetfilter_conntrack: switch to gitStijn Tintel2017-10-091-6/+6
| | | | | | | | | | | | | | In order to build conntrack-tools from git, a newer version of libnetfilter_conntrack is required. As 1.0.6 is currently the latest release, switch to git. b0a7cf7 include: expose a copy of nf_conntrack_common.h f68f7b3 conntrack: fix missing break in setobjopt_undo_dnat() 79dac5a conntrack: revert getobjopt_is_nat() condition b266523 libnetfilter_conntrack: bump version to 1.0.7 e870432 labels: don't crash on NULL labelmap Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* libnetfilter_queue: bump to git HEADStijn Tintel2017-10-092-13/+11
| | | | | | | | | | | | | b39cac7 src: Correct typo in the location of internal.h in #include 58cb066 src: Declare the define visibility attribute together e84b559 Revert "src: Declare the define visibility attribute together" 003c2b1 examples: set dummy connmark value to show use of NFQA_CT nested attribute 63973da doc: extend the doxygen section about NFQA_CFG_F_GSO d7f74c7 build: bump version to 1.0.3 3f9eb57 build: bump library release version too 601abd1 doc: Add information about retrieving UID/GID/SECCTX fields Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* mediatek: fix a sleep while atomic bug inside the ethernet driverJohn Crispin2017-10-091-0/+40
| | | | | | this sometimes happens when we have hw nat enabled. Signed-off-by: John Crispin <john@phrozen.org>
* treewide: switch git.netfilter.org to HTTPSStijn Tintel2017-10-085-5/+5
| | | | | | | As git.netfilter.org seems to support HTTPS, use that instead of HTTP which is insecure, or GIT which is blocked on many corporate networks. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* ipset-dns: bump to git HEADStijn Tintel2017-10-082-60/+3
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: bump 4.9 to 4.9.54Stijn Tintel2017-10-0810-114/+14
| | | | | | | | | | | | | Refresh patches. Remove upstreamed patches: - ramips/0067-enable-mt7621-xhci.patch - ramips/0085-pinmux-util.patch - ramips/301-fix-rt3883.patch Compile-tested on brcm2708/bcm2708, octeon, ramips/mt7621, x86/64. Runtime-tested on brcm2708/bcm2708, octeon, ramips/mt7621, x86/64. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: bump 4.4 to 4.4.91Kevin Darbyshire-Bryant2017-10-085-10/+10
| | | | | | | | | Refresh patches. Compile-tested for: ar71xx Archer C7 v2 Run-tested on: ar71xx Archer C7 v2 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* sunxi: build image for the NanoPi NEODaniel Golle2017-10-081-0/+9
| | | | | | | The NanoPi NEO is a small Allwinner H3 based board available with different DRAM configurations. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* sunxi: kernel: add patches for NanoPi NEODaniel Golle2017-10-082-0/+108
| | | | | | | Enable dwmac-sun8i Ethernet core to use the built-in FastEthernet port. Enable exposed UART, USB and I2C pins. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uboot-sunxi: build for NanoPi NEODaniel Golle2017-10-081-0/+7
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* layerscape: refresh patchesStijn Tintel2017-10-0829-3610/+2414
| | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: update and refresh patchesStijn Tintel2017-10-0814-88/+78
| | | | | | | | | | The lantiq patch 0028-NET-lantiq-various-etop-fixes.patch and sunxi patch 0051-stmmac-form-4-11.patch no longer applied after applying the the "generalize napi_complete_done()" patch. Update them so they apply, and refresh patches while at it. Fixes: 9aeb7ce8dc5 ("generic: net: generalize napi_complete_done") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* generic: net: generalize napi_complete_donePavel Kubelun2017-10-081-0/+1412
| | | | | | | | | Backport upstream commit that improves ethernet performance by a small amount. Compile and run tested on ipq8065. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* generic: net: tcp: backport tcp tx performance patchesPavel Kubelun2017-10-089-0/+712
| | | | | | | | | An overall throughput gain of 22 % for heavy TCP use over a single TX queue. Original patchset comment https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?h=v4.13&id=3f4888adae7c1619b990d98a9b967536f71822b8 Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* kernel: split 82574L patch into multiple filesStijn Tintel2017-10-086-327/+326
| | | | | | | | | | | | | | | | | | | | When refreshing patches that cointain multiple patches including headers in a single file, quilt will remove the headers from all but the first patch. This makes it difficult to review commits that refresh patches. Next to that, if only a few of the patch series are accepted in -stable, the patch needs to be manually modified. With each patch in a separate file, it's just a matter of git rm. Refresh patches while at it. Patchwork links: [1/5] https://patchwork.kernel.org/patch/9857487/ [2/5] https://patchwork.kernel.org/patch/9857489/ [3/5] https://patchwork.kernel.org/patch/9857495/ [4/5] https://patchwork.kernel.org/patch/9857491/ [5/5] https://patchwork.kernel.org/patch/9857493/ Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: Add some more generic config optionsHauke Mehrtens2017-10-083-10/+9
| | | | | | | | These options are deactivating some kernel modules for IP blocks not uses on this SoC. I saw the same when working with the ARM64 Marvell board so it is better to move them to generic. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* layerscape: remove wifi configHauke Mehrtens2017-10-082-32/+0
| | | | | | This is provided by the mac80211 package Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: add missing config options for layerscape targetHauke Mehrtens2017-10-081-0/+5
| | | | | | This fixes some problems found by build bot. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ar71xx: Fix NULL pointer dereferece in at803x_link_change_notify()Andrey Jr. Melnikov2017-10-071-2/+2
| | | | | | | Check pdata pointer before use to avoid OOPS if dev_get_platdata() return NULL. Signed-off-by: Andrey Jr. Melnikov <temnota.am@gmail.com>
* layerscape: select sdk dts for ls1043ardb/ls1046ardbYangbo Lu2017-10-071-2/+2
| | | | | | | ls1043ardb/ls1046ardb should use sdk dts. This patch is to fix this. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* layerscape: fix CPU_TYPE for armv8_32b targetsYangbo Lu2017-10-071-1/+2
| | | | | | | | | Layerscape uses Cortex-A53 or Cortex-A72 CPU. It's proper to set below CPU_TYPE for 32-bit mode. CPU_TYPE:=cortex-a15 CPU_SUBTYPE:=neon-vfpv4 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* layerscape: add linux 4.9 supportYangbo Lu2017-10-0732-1/+251241
| | | | | | | This patch is to add linux 4.9 support for layerscape. All these kernel patches are from NXP LSDK 1709 release. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* layerscape: drop linux 4.4 supportYangbo Lu2017-10-07251-240467/+0
| | | | | | This patch is to drop linux 4.4 for layerscape. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* layerscape: make uImage with zImage for 32-bit kernelYangbo Lu2017-10-074-2/+5
| | | | | | | uImage should be made with zImage. This patch is to support making uImage with zImage. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* layerscape: update memory layout according to LSDKYangbo Lu2017-10-071-13/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The uniform memory layout of NOR/QSPI/NAND/SD media on all Layerscape platforms: +-----------------------------+---------|--------------|-----------------+ |Firmwre Definition | MaxSize | Flash Offset | SD Start Block #| |-----------------------------|---------|--------------|-----------------| |RCW+PBI | 1MB | 0x00000000 | 0x00008 | |-----------------------------|---------|--------------|-----------------| |Boot firmware(U-Boot,UEFI) | 2MB | 0x00100000 | 0x00800 | |-----------------------------|---------|--------------|-----------------| |Boot firmware Environment | 1MB | 0x00300000 | 0x01800 | |-----------------------------|---------|--------------|-----------------| |PPA firmware | 2MB | 0x00400000 | 0x02000 | |-----------------------------|---------|--------------|-----------------| |Secure boot headers | 3MB | 0x00600000 | 0x03000 | |-----------------------------|---------|--------------|-----------------| |DPAA1 FMAN ucode | 256KB | 0x00900000 | 0x04800 | |-----------------------------|---------|--------------|-----------------| |QE/uQE firmware | 256KB | 0x00940000 | 0x04A00 | |-----------------------------|---------|--------------|-----------------| |Ethernet PHY firmware | 256KB | 0x00980000 | 0x04C00 | |-----------------------------|---------|--------------|-----------------| |Scripts | 256KB | 0x009C0000 | 0x04E00 | |-----------------------------|---------|--------------|-----------------| |DPAA2 MC firmware | 3MB | 0x00A00000 | 0x05000 | |-----------------------------|---------|--------------|-----------------| |DPAA2 DPL | 1MB | 0x00D00000 | 0x06800 | |-----------------------------|---------|--------------|-----------------| |DPAA2 DPC | 1MB | 0x00E00000 | 0x07000 | |-----------------------------|---------|--------------|-----------------| |Device tree(needed by uefi) | 1MB | 0x00F00000 | 0x07800 | |-------------+---------------|---------|--------------|-----------------| |Kernel | | 16MB | 0x01000000 | 0x08000 | |-------------| kernel.itb |---------|--------------|-----------------| |Ramdisk rfs | |32MB | 0x01100000 | 0x08800 | +-------------+---------------+---------|--------------|-----------------+ Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* layerscape: update packages with LSDK git treesYangbo Lu2017-10-078-36/+215
| | | | | | | | | | | | | | | | | NXP Layerscape LSDK had set up its own open source web site and github for release. https://lsdk.github.io https://github.com/qoriq-open-source This patch is to update rcw/fman_ucode/u-boot packages with LSDK git trees. Also add some patches of packages to support LEDE. Since ARMv8 32-bit u-boot images are same with ARMv8 64-bit images but 64-bit toolchain couldn't be used for 32-bit targets, we still use a private tree for ARMv8 32-bit u-boot images. This is in plan to move this private tree to NXP Layerscape github. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* layerscape: rename subtargets and update makefile filesYangbo Lu2017-10-0711-47/+38
| | | | | | | | Rename subtargets 32b/64b with armv8_32b/armv8_64b which are more proper, and update makefile files. There also will be other subtargets added in the future, like armv7. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* layerscape: take over maintainershipYangbo Lu2017-10-071-1/+1
| | | | Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
* kernel: fix receiver overflow for 82574L under loadPhilip Prindeville2017-10-071-0/+327
| | | | | | | | | | Under heavy load it's possible to overrun the 82574L. When this happens, Other Interrupt happens and that's erroneously interpreted as a Link Status Change. http://patchwork.ozlabs.org/patch/792260/ Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* ar71xx: add rssileds to WA850RE v1 imageMathias Kresin2017-10-071-0/+1
| | | | | | | | | | | | A default rssileds config exists for the TP-Link WA850RE v1 but the rssiled package is not included by default. The compressed 17.01.3 image size increases by 3302 bytes which should be tolerable even for a 4MB flash board. Fixes: FS#1043 Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: drop phy id specfic compatible stringMathias Kresin2017-10-072-3/+3
| | | | | | | | | | | | With kernel commit 7630ea4bda18 ("Documentation: net: phy: improve explanation when to specify the PHY ID") the purpose of using phy id specific compatibles was clarified. Remove the phy id specific compatibles since they are meant to be used if the phy reports an incorrect or no phy id at all. Reported-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: remove gen_nand compatible stringMathias Kresin2017-10-077-7/+7
| | | | | | | | | | | | | The generic nand driver fails to load with: gen_nand 14000000.nand-parts: platform_nand_data is missing gen_nand: probe of 14000000.nand-parts failed with error -22 and the xway-nand driver is used afterwards. Drop the gen_nand compatible to get rid of the error message. Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: update 4.9 to 4.9.53Stijn Tintel2017-10-072-3/+3
| | | | | | | | | | | | | Refresh patches. Compile-tested on brcm2708/bcm2708, octeon and x86/64. Runtime-tested on brcm2708/bcm2708, octeon and x86/64. Fixes the following CVEs: - CVE-2017-1000252 - CVE-2017-12153 - CVE-2017-12154 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* kernel: update 4.4 to 4.4.90Kevin Darbyshire-Bryant2017-10-071-2/+2
| | | | | | | | | | | | | | | No patch refresh required. Compile & run tested: ar71xx Archer C7 v2 Fixes the following CVEs: - CVE-2017-1000252 - CVE-2017-12153 - CVE-2017-12154 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk> [reference fixed CVEs] Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* curl: add nghttp2 supportHans Dedecker2017-10-072-2/+9
| | | | | | Add config option support for nghttp2 Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* nghttp2: add libnghttp2 packageHans Dedecker2017-10-071-0/+47
| | | | | | | | The nghttp2 library is an implementation of the Hypertext Transfer Protocol version 2 in C; it supports RFC7540 and RFC7541. The package enables only the reusable C library; binary size is 130K (X86) Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* rbcfg: Implement CPU frequency controlThibaut VARENE2017-10-073-4/+139
| | | | | | | | | | | | | | | | | | | | | | This patch implements CPU frequency control as found on several routerboard devices. Supported SoCs: - QCA953X - AR9344 Tested on hAP lite and mAP lite (QCA953x): steps of 50MHz Tested on LHG 5 (AR9344): steps of 50MHz On unsupported hardware, this patch is a NOP: it will not alter the new field. "rbcfg help" will display an empty "cpu_freq" help listing. "rbcfg show" will not show the cpu_freq field. "rbcfg set/get cpu_freq" will return an error code. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org> [adjusted subject] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ar71xx: update LED definitions for embedded wireless dorinCatrinel Catrinescu2017-10-071-14/+2
| | | | | | | | Evaluation board 2.2 uses a different status LED pin The other removed LEDs were never present Signed-off-by: Catrinel Catrinescu <cc@80211.de> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: ew-dorin target moved from legacy to genericCatrinel Catrinescu2017-10-073-23/+20
| | | | | | Embedded Wireless Dorin platform moved from legacy to generic Signed-off-by: Catrinel Catrinescu <cc@80211.de>
* ar71xx: rework chipidea usb controller patchFelix Fietkau2017-10-071-13/+44
| | | | | | | | Handle AR9344 as well. Disable the EHCI platform device when device mode is active, to avoid resource conflicts. Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* hostapd: escape double quoutes in wpad CFLAGSStijn Tintel2017-10-071-0/+1
| | | | | | | | | | | | | | | | | | A recent commit in hostapd added a build option to specify the default TLS ciphers. This build option is passed via CFLAGS. Due to the way CFLAGS are handled when building wpad, the compiler tries to recursively expand TLS_DEFAULT_CIPHERS, resulting in the following error: ../src/crypto/tls_openssl.c: In function 'tls_init': <command-line>:0:21: error: 'DEFAULT' undeclared (first use in this function) ../src/crypto/tls_openssl.c:1028:13: note: in expansion of macro 'TLS_DEFAULT_CIPHERS' ciphers = TLS_DEFAULT_CIPHERS; ^ Escape double quotes in the .cflags file to avoid this. Fixes: 2f78034c3ef ("hostapd: update to version 2017-08-24") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* hostapd: update to version 2017-08-24Koen Vandeputte2017-10-0725-478/+145
| | | | | | | | | | | | - Deleted upstreamed patches & parts - Refreshed all Compile tested: full-option package + tools (hostapd + wpa_supplicant) Run-tested: hostapd wpa2 hotspot & wpa_supplicant IBSS link Targets: cns3xxx Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* netifd: update to latest git HEAD version (FS#1030)Hans Dedecker2017-10-061-3/+3
| | | | | | | 5df3f01 config: suppress error if no wireless config present (FS#1030) 3429bd8 system-linux: add support for hotplug event 'move' Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>