aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* base-files: validate metadata of sysupgrade imagesFelix Fietkau2016-11-193-2/+43
| | | | | | | | | | | Use fwtool to extract it, only require metadata to be present if the platform sysupgrade script sets REQUIRE_IMAGE_METADATA=1 Image metadata is in JSON format and contains a list of supported devices, along with version information that could be displayed by a UI later before the actual upgrade happens. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* fwtool: add utility for appending and extracting firmware metadata/signaturesFelix Fietkau2016-11-195-0/+693
| | | | | | | | | | | | | | | | | | | | | | | | | This will be used to append extra information to images which allows the system to verify if an image is compatible with the system. The extra data is appended to the end of the image, where it will be ignored when upgrading from systems that do not process this data yet: If the image is a squashfs or jffs2 image, the extra data will land after the end-of-filesystem marker, where it will be overwritten once the system boots for the first timee. If the image is a sysupgrade tar file, tar will simply ignore the extra data when unpacking. The layout of the metadata/signature chunks is constructed in a way that the last part contains just a magic and size information, so that the tool can quickly check if any valid data is present without having to do a pattern search throughout the full image. Chunks also contain CRC32 information to detect file corruption, even when the image is not signed. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* bcm53xx: build image for TP-LINK Archer C9 v1Rafał Miłecki2016-11-192-1/+27
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: support SafeLoader format in sysupgradeRafał Miłecki2016-11-192-2/+36
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* firmware-utils: tplink-safeloader: add Archer C9 supportRafał Miłecki2016-11-191-0/+33
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* osafeloader: new util for extracting partitions from SafeLoaderRafał Miłecki2016-11-195-0/+649
| | | | | | | | SafeLoader is image format used by some TP-LINK devices. This tool allows extracting selected partitions out of it. It can be used for sysupgrade. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* bcm53xx: add kernel support for TP-LINK Archer C9 V1Rafał Miłecki2016-11-193-42/+194
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* firmware-utils: tplink-safeloader: use one function for generating imagesRafał Miłecki2016-11-191-79/+29
| | | | | | Thanks to the struct device_info we can now use one unified function. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* firmware-utils: tplink-safeloader: add struct device_infoRafał Miłecki2016-11-191-6/+19
| | | | | | | This struct stores all device specific info which allows making do_eap function more generic. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ar71xx: enable serial console on mikrotik devicesJoão Chaínho2016-11-181-1/+4
| | | | | | | This patch enables the serial console on some Mikrotik devices (RB450, RB450G, RB493G, RB750UP). Signed-off-by: João Chaínho <joaochainho@gmail.com>
* ramips: add support for ZyXEL Keenetic VivaVitaly Chekryzhev2016-11-187-0/+184
| | | | | | | | | Factory image can be installed via Zyxel WebUI. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com> [removed linux,modalias parameter from flash node in dts] [removed sdhci node from dts; no sd card slot here] Signed-off-by: Mathias Kresin <dev@kresin.me>
* firmware-utils: add tool to create zyxel imagesVitaly Chekryzhev2016-11-172-0/+149
| | | | | | | Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com> [moved to firmware-utils package] [dropped the compiled binary] Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel/modules: add kmod-switch-rtl8367bVitaly Chekryzhev2016-11-171-0/+16
| | | | | | Add build option for RTL8367R/VB switches. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
* ramips: add MT7620 MIB support for switch and portVitaly Chekryzhev2016-11-172-72/+351
| | | | | | | | | Move definitions to header. Replace array size definitions with macro. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com> [merged into 0513-net-mediatek-add-swconfig-driver-for-gsw_mt762x.patch] Signed-off-by: Mathias Kresin <dev@kresin.me> Acked-by: John Crispin <john@phrozen.org>
* ipq806x: refresh patchesHannu Nyman2016-11-1714-50/+25
| | | | | | | | | | This patch refreshes the ipq806x kernel patches. There was a large PR for ipq806x in the queue when the kernel patches were refreshed for 4.4.32, so currently there is quite much fuzz for ipq806x. Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
* libnl-tiny: remove include/linux overrides to fix various build issuesFelix Fietkau2016-11-175-506/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: add support for Sitecom WLR-6000Jasper Scholte2016-11-176-1/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Sitecom firmware upgrade file has SENAO_FIRMWARE_TYPE 2 set. This looks rather wrong since SENAO_FIRMWARE_TYPE 2 is kernel only but the file is way to big for only including a kernel. The factory image need to have the dlf file extension. Otherwise the Sitecom firmware rejects the file. The stock firmware uses the following mac addresses: LAN: 00:0C:F6:AA:BB:D8 (u-boot env: ethaddr) 2,4: 00:0C:F6:AA:BB:D8 (EEPROM) 5: 00:0C:F6:AA:BB:DC (EEPROM) WAN: 00:0C:F6:AA:C8:43 (u-boot env: wanaddr) Assuming the mac address range :D8 to :DC is reserved for this device, the MAC addresses were reorder to have a unique MAC address for each interface: 2.4GHz: 00:0C:F6:AA:BB:D8 LAN: 00:0C:F6:AA:BB:D9 WAN: 00:0C:F6:AA:BB:DA 5 GHz: 00:0C:F6:AA:BB:DC The first MAC is assigned to the 2.4GHz WiFi interface to keep compatibility with the SSIDs printed on the case, which have the last three sextets of the MAC address appended. There are still issues with the rt2x00 driver. It is not possible to use both wireless interfaces at the same time. The 2.4 GHz wireless (PCIe) only works if the internal 5GHz wireless is/has been enabled or used for scanning. The internal 5GHz wireless only works if the 2.4GHz wireless (PCIe) was never enabled. Disabling the 2.4Ghz after it was enabled will result in stations seeing the 5Ghz AP but are unable to connect. Due to the not optimal working wifi the manufacture, backup and storage partitions of the OEM firmware are kept for now to allow an easy switch back to the Sitecom firmware. Signed-off-by: Jasper Scholte <NightNL@outlook.com> Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add support for Digineo AC1200 ProDominik Menke2016-11-176-4/+33
| | | | | | This is basically a ZBT-WG3526 (mt7621 SoC), but with 32M flash. Signed-off-by: Dominik Menke <dom@digineo.de>
* ramips: cleanup ZBT-WG3526.dtsiDominik Menke2016-11-171-6/+6
| | | | | | | | - replace magic numbers with GPIO_* constants - replace generic PCI definitions with correct vendor and device identification Signed-off-by: Dominik Menke <dom@digineo.de>
* ramips: split ZBT-WG3526.dts into dtsi and dts filesDominik Menke2016-11-172-112/+120
| | | | Signed-off-by: Dominik Menke <dom@digineo.de>
* kernel: enable pcryptJason A. Donenfeld2016-11-163-3/+3
| | | | | | | | | This is a powerful API for parallel crypto from which many other modules can benefit. It only winds up being turned on on SMP systems, which means this adds 0 bytes to the kernel on tiny machines, while only adding a small bit to SMP systems for big performance improvements. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* octeon: fix feature flag for initramfs supportFelix Fietkau2016-11-161-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* hostapd: fix PKG_CONFIG_DEPENDS for CONFIG_WPA_SUPPLICANT_*Matthias Schiffer2016-11-161-1/+1
| | | | | | These symbols don't affect wpa-supplicant only, but also wpad. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* kernel: update kernel 4.4 to version 4.4.32Stijn Tintel2016-11-1613-84/+70
| | | | | | | | Refresh patches for all targets that support kernel 4.4. Compile-tested on all targets that use kernel 4.4 and aren't marked broken. Runtime-tested on ar71xx, octeon. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* devel/strace: fix build only on powerpc archAlexandru Ardelean2016-11-161-0/+19
| | | | | | | | | | | Reboot of 519a199cbcc0930e229ddd7087309326a846bdce Which broke other builds. This time, added compile flags to build only for POWERPC archs Tested on mpc85xx, ar71xx and bcm2708. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
* ar71xx: tl-wpa8630: Use dynamic parsing of the firmware partitionHenryk Heisig2016-11-163-4/+8
| | | | Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* ipq806x: fixes for R7800 and C2600Pavel Kubelun2016-11-164-18/+115
| | | | | | | | Updating spi pins configuration in R7800 and C2600 DTs Adding more usb power pin export and gsbi6 in R7800 DT Updating and fixing leds Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix Netgear R7500v2 memoryPavel Kubelun2016-11-161-1/+6
| | | | | | Netgear R7500v2 has 512MB of RAM with 2MB reserved block in the end of memory region. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: fix pci pinsPavel Kubelun2016-11-162-7/+9
| | | | | | Fix pci pins drive-strength according to oem sources. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add vlans during switch init into R7800 DTPavel Kubelun2016-11-161-0/+4
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add support for RPM message RAMPavel Kubelun2016-11-164-0/+150
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add support for RPM clock controllerdissent12016-11-167-0/+1645
| | | | | | The patch #179 for RPM has initially been made for apq806x board. It has been modified to support ipq806x instead of apq8064. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: add CPU idle statesPavel Kubelun2016-11-165-0/+102
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: backport upstream wdt driverPavel Kubelun2016-11-1616-38/+2567
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* layerscape: uboot: using perl script:byte_swap.pl to replace tcl ↵Yutang Jiang2016-11-161-0/+72
| | | | | | script:byte_swap.tcl Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
* lantiq: add tapi/vmmc to VGV7519 defaultsdpeddi2016-11-161-2/+2
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* lantiq: enable VMMC for VGV7519dpeddi2016-11-161-1/+10
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* lantiq: disable VMMC_COEF for non FALCON devicedpeddi2016-11-161-1/+1
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* lantiq: add tapi/vmmc to VGV7510KW22 defaultsEddi De Pieri2016-11-161-2/+2
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* lantiq: enable VMMC for VGV7510KW22Eddi De Pieri2016-11-161-1/+10
| | | | Signed-off-by: Eddi De Pieri <eddi@depieri.net>
* arm64: boot-wrapper: Add mirrorDaniel Engberg2016-11-161-1/+3
| | | | | | | Adds Google's mirror as primary source and kernel.org as fallback. Same as commit 0d4f02dfd650612aac6c11860139be03a0f54bee Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* layerscape: ls1012ardb: only reserve ext4 fs as default firmware.binYutang Jiang2016-11-161-4/+0
| | | | | | | | | In Device/ls1012ardb IMAGES variable, there are two separate firmware references to the same packages, while do mult-job compile, the same package build process will arise conflict occasionally. So, only reserve one ext4 fs as the default firmware.bin. Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
* layerscape: ls1043ardb: add pad-rootfs to reduce the size of firmware.binYutang Jiang2016-11-161-1/+1
| | | | Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
* package/firmware/fman-ucode: Use HTTPSDaniel Engberg2016-11-161-1/+1
| | | | | | Change URL to use HTTPS instead of HTTP Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* package/devel/trace-cmd: Add mirrorDaniel Engberg2016-11-161-1/+3
| | | | | | | Adds Google's mirror as primary source and kernel.org as fallback. Same as commit 0d4f02dfd650612aac6c11860139be03a0f54bee Signed-off-by: Daniel Engberg <daniel.engberg.lists@pyret.net>
* kernel: update kernel 4.4 to version 4.4.31Koen Vandeputte2016-11-167-25/+20
| | | | | | | + Refresh patches compile/run-tested on cns3xxx & imx6. Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
* ar71xx: Add usable, inactive LEDs on OpenMesh devicesJaylin Yu2016-11-161-0/+27
| | | | | | | | | | | OpenMesh devices have often LEDs which are not yet used by OpenWrt. These should still be available as disabled LEDs in the system configuration for easier modification. Signed-off-by: Jaylin Yu <jaylin.yu@open-mesh.com> [sven.eckelmann@open-mesh.com: Remove LEDs already specified via diag.sh, add wifi/status LEDs] Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
* mac80211: Make wlcore platform-independentAlexey Brodkin2016-11-161-1/+1
| | | | | | | | | | | | | | | | | TI wl18xx and wl12xx are Wi-Fi/Bluetooth combo modules that could be found on different existing boards. But it is possible to get those modules as a separate component and use with existing boards as well as new boards equipped with either module may appear so we remove dependency on OMAP instead we add dependency on MMC because this Wi-Fi module uses SDIO interface. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com> Cc: Jo-Philipp Wich <jo@mein.io> Cc: Felix Fietkau <nbd@nbd.name> Cc: Imre Kaloz <kaloz@openwrt.org> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
* ar71xx: add support for Buffalo BHR-4GRV2FUKAUMI Naoki2016-11-1614-4/+442
| | | | Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
* x86-generic: add MMC support to boot off SD cardsAndreas Ziegler2016-11-161-0/+8
| | | | | | | | | MMC support has been added to x86-64 a while ago, there is no reason not to support it in x86-generic as well. Signed-off-by: Andreas Ziegler <github@andreas-ziegler.de> [Matthias Schiffer: add commit message] Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>