aboutsummaryrefslogtreecommitdiffstats
path: root/target
Commit message (Collapse)AuthorAgeFilesLines
* build: get rid of host.mkFelix Fietkau2017-02-2611-12/+2
| | | | | | Defined required host related variables in toplevel.mk instead Signed-off-by: Felix Fietkau <nbd@nbd.name>
* 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-265-26/+26
| | | | | | | | Refresh generic patch Compiled and tested WRT1900ACS Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
* layerscape: add LS1043A Rev1.1 supportYangbo Lu2017-02-2613-0/+1187
| | | | | | | | 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>
* 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>
* 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-239-54/+54
| | | | | | | | | | 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>
* kernel: add missing config symbol for linux 3.18Felix Fietkau2017-02-221-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: Enable mtdsplit support for RB SPI NOR devicesThibaut VARENE2017-02-224-32/+17
| | | | | | | | | | | | | | | | | | This patch enables mtdsplit for the MikroTik subtarget. It converts mach-rbspi.c to use a single "firmware" partition. Finally, it converts the SPI NOR profile to metadata images: the original combined-image format is gone, the images are now "standard" sysupgrade images with metadata appended. Note: kernel2minor apparently pads the kernel container to erase-block boundary, but this is undocumented behaviour, so we do not rely on it and call pad-to anyway. Note: in platform.sh, the boards are tested last in platform_check_image() as this should eventually become the "*)" default case when more devices switch to metadata images. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ar71xx: remove bogus "rb*)" catch-all from platform.shThibaut VARENE2017-02-221-8/+54
| | | | | | This patch replaces a dangerous catch-all with the exhaustive list of devices. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* kernel: mtdsplit: Add support for Mikrotik NOR firmwareThibaut VARENE2017-02-225-0/+125
| | | | | | | | | | | | | | | | The RouterBOOT bootloader does not care where the kernel lives in the SPI flash, all that matters is that the kernel is wrapped in the custom yaffs container as generated by kernel2minor. This container has a fixed signature as follows: 00000000 00 00 00 01 00 00 00 01 ff ff 6b 65 72 6e 65 6c |..........kernel| This patch adds mtdsplit support for identifying that signature and triggering the search for the rootfs. rootfs is expected at EB boundary since we use wget mtd_find_rootfs_from(). We make no use of the yaffs file size field because it contains invalid data in the image generated by kernel2minor. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* Revert "kernel: ar8327/ar8337: disable ARL access code to avoid lockups ↵Stijn Tintel2017-02-221-6/+0
| | | | | | | | | | | (FS#384)" This reverts commit ec1a695daa7390a6c24e3b28d3956f194cba2cb5. Revert the workaround, the problem was properly fixed in 237454991618e0e8b7ceb8a8a2a43fca12c1a454. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* ipq806x: fix fakerootfs positionThomas Reifferscheid2017-02-211-2/+2
| | | | | | | | | | | | The fakeroot header is expected by the netgear bootloader in the last 64 bytes of the last block used by the uImage. With the current linux-4.9 uImage being more than 128k smaller than the linux-4.4 uImage the bootloader was unable to locate the rootfs ih_magic and was refusing to load and start the kernel. Fixes: FS#542 Signed-off-by: Thomas Reifferscheid <thomas@reifferscheid.org>
* archs38: only calculate entry point address when necessaryFelix Fietkau2017-02-211-5/+2
| | | | | | | $(eval) runs even during prereq check, which can cause bogus error messages Signed-off-by: Felix Fietkau <nbd@nbd.name>
* arc770: only calculate entry point address when necessaryFelix Fietkau2017-02-211-5/+2
| | | | | | | $(eval) runs even during prereq check, which can cause bogus error messages Signed-off-by: Felix Fietkau <nbd@nbd.name>
* x86_64: Add support for EFI framebuffer (FS#515)Alif M. Ahmad2017-02-211-1/+2
| | | | | | | | | | | | | | | CONFIG_FB_EFI and CONFIG_FB_SIMPLE are needed to display console text on EFI framebuffer. CONFIG_FB_EFI is needed when the kernel is directly launched via EFI shell or EFI startup.nsh script. CONFIG_FB_SIMPLE is needed when launching the kernel via grub2 efi. In this case, grub2 has prepared a gfxterm framebuffer and the kernel just need to use the already prepared grub's gfxterm framebuffer to display console text. Signed-off-by: Alif M. Ahmad <alive4ever@live.com>
* bcm53xx: add kernel 4.9 configRafał Miłecki2017-02-201-0/+335
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ar71xx: fix vlan settings for some boardsWeijie Gao2017-02-201-1/+1
| | | | | | | | | | | For AR71XX devices, GMAC1 always connects port 0 of the built-in switch, as the CPU port. This patch sets correct vlan for some devices with wrong settings: a) mark port 0 as CPU port, tagged b) reverse port order, marking these ports untagged Signed-off-by: Weijie Gao <hackpascal@gmail.com>
* ar71xx: Add more boards to the routerboard serial detection patchThibaut VARENE2017-02-201-1/+3
| | | | | | This patch enables serial console on the 435 series and the 953gs. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ar71xx: add support for TL-WR802N Version 2Thomas Roberts2017-02-2012-2/+136
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for the TP-Link TL-WR802N Version 2. Specification: - SoC: Qualcomm Atheros QCA9533 (560 MHz, MIPS 24Kc) - RAM: 32 MiB - Storage: 4 MiB of FLash on board - Wireless: Built into QCA9533 (Honey Bee), PHY modes b/g/n - Ethernet: 1x100M (port0) Installation through OEM Web Interface: - Connect to TL-WR802N by Ethernet or Wi-Fi - Go to http://192.168.0.1 (default user is "admin" & password is "admin) - Go to "System Tools -> Firmware Upgrade" - Browse for firmware "*.factory-us.bin" or "*.factory-eu.bin" for eu model - Click upgrade Installation through tftp: Note: T_OUT, T_IN and GND on the board must be connected to USB TTL Serial Configuration 115200 8n1 - Boot the TL-WR802N - When "Autobooting in 1 seconds" appears type "tpl" followed by enter - Connect to the board Ethernet port (IPADDR: 192.168.1.1, ServerIP: 192.168.1.10) - tftpboot 0x80000000 <Firmware Image Name> - Record the result of "printenv bootcmd" - Enter "erase <Result of 'printenv bootcmd'> +0x3c0000" (e.g erase 0x9f020000 +0x3c0000) - Enter "cp.b 0x80000000 <Result of 'printenv bootcmd'> 0x3c0000" (e.g cp.b 0x80000000 0x9f020000 0x3c0000) - Enter "bootm <Result of 'printenv bootcmd'>" (e.g bootm 0x9f020000) Signed-off-by: Thomas Roberts <tom.p.roberts@gmail.com>
* sdk: emit proper tag references for base URLsJo-Philipp Wich2017-02-191-3/+5
| | | | | | | | | Properly resolve symbolic tag names when constructing the base feed Git url and avoid emitting "HEAD" references when building from detached commits. Fixes #495, #501. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* lantiq: fix warning if ltq_atm modules are missingMathias Kresin2017-02-181-2/+1
| | | | | | | | | Fixes the following warning on first boot if the ltq_atm modules are not included in the image: ls: /lib/modules/4.4.49/ltq_atm*: No such file or directory Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: set the internet led interface according to wan interfaceMathias Kresin2017-02-181-0/+1
| | | | | | | | Use the nas0 interface for the netdev trigger as default. Use the ptm0 interface for xRX200 boards to match the default wan interface set in 02_network. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: introduce lantiq_is_vdsl_systemMathias Kresin2017-02-182-1/+5
| | | | | | | Move the code to check if the current system is a system with vdsl support to a dedicate function to make it reusable. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix ARV7519RW22 switch port indexingMathias Kresin2017-02-181-1/+1
| | | | | | Fixes FS#454. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ar71xx: fix ethernet PLL configuration for QCA956xFelix Fietkau2017-02-171-1/+1
| | | | | | | QCA956x is configured like AR934x, not like the older chips. Should fix ethernet hangs when using the WAN port without SGMII Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: fix lan ports on archer C59 and C60Henryk Heisig2017-02-174-14/+39
| | | | Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* x86: Add Geos profile for Geode subtargetDavid Woodhouse2017-02-173-0/+44
| | | | | | | | | | This makes the Geode images actually useful again. The Geos profile should include the relevant hardware for that board, and the Default profile adds the via-rhine adapter which seems to have been present in the net5501 and alix targets killed in commit 9e0759ea265 ("x86: merge all geode based subtargets into one"). Signed-off-by: David Woodhouse <dwmw2@infradead.org>
* ar71xx: add support for 8devices Lima boardKarol Dudek2017-02-1710-0/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Lima is a module for the (IoE) internet of everything applications, based on Qualcomm/Atheros QCA4531. Specification: - 650/600/216 MHz (CPU/DDR/AHB) - 64 MB of RAM (DDR2) - 32 MB of FLASH - 2T2R 2.4 GHz - 2x 10/100 Mbps Ethernet - USB 2.0 Host - PCIe - UART for serial console - 14x GPIO Flash instruction: 1. Download lede-ar71xx-generic-lima-squashfs-sysupgrade.bin and rename it to 8dev_recovery.bin 2. Binary file copy to USB stick and plug into slot USB 3. Press S2 (reset) button 4. Press and hold the S1 button by 5 seconds 5. Wait ~40 seconds to complete recovery Tested on: - Lima development kit Signed-off-by: Karol Dudek <karoiz@sli.pl>
* mediatek: add more missing symbolsJohn Crispin2017-02-162-0/+4
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ipq806x: add v4.9 supportJohn Crispin2017-02-1650-0/+11894
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* mediatek: add config file for v4.9John Crispin2017-02-161-0/+435
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* mvebu: add linux 4.9 supportFelix Fietkau2017-02-1662-1/+9799
| | | | | Signed-off-by: Felix Fietkau <nbd@nbd.name> Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* ar8216: flush ARL table during reset after init_globalsGünther Kelleter2017-02-161-0/+1
| | | | | | | | | | commit 33b72b8e0faf7a39faabece584fd6da61cd8f8df "ar8216: adjust ATU flushing in case of link changes" introduced portwise flushing on link down events. Now the ARL table could be in a chaotic state after boot where ar8xxx_sw_get_arl_table looped forever (depending on the entries collected while booting). Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
* mediatek: bump to v4.9John Crispin2017-02-16110-27215/+136
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ramips: fix the number of uarts for MT7688Furong Xu2017-02-162-4/+4
| | | | | | Same as MT7621 and MT7628, MT7688 allows up to 3 uarts Signed-off-by: Furong Xu <xfr@outlook.com>
* ramips: fix PWM pin mux conflict in dtsiFurong Xu2017-02-161-4/+0
| | | | | | | | | | | | | GPIO18 and GPIO19 on OMEGA2(+) should be GPIO mode, enable PWM lead to a conflict [ 0.290633] rt2880-pinmux pinctrl: pin io18 already requested by pinctrl; cannot claim for 10005000.pwm [ 0.299722] rt2880-pinmux pinctrl: pin-18 (10005000.pwm) status -22 [ 0.305729] rt2880-pinmux pinctrl: could not request pin 18 (io18) from group pwm0 on device rt2880-pinmux [ 0.315131] mtk-pwm 10005000.pwm: Error applying setting, reverse things back Keep PWM disabled. Signed-off-by: Furong Xu <xfr@outlook.com>
* kernel: update kernel 4.4 to version 4.4.49Hauke Mehrtens2017-02-163-47/+4
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: update kernel 4.9 to version 4.9.10Hauke Mehrtens2017-02-1622-135/+43
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* brcm47xx: fix button inversion for Asus WL-500WMirko Parthey2017-02-161-0/+38
| | | | | | | | | The Asus WL-500W buttons are active high, but the software treats them as active low. Fix the inverted logic. Signed-off-by: Mirko Parthey <mirko.parthey@web.de> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* brcm47xx: fix USB driver choice for Asus WL-500WMirko Parthey2017-02-151-1/+1
| | | | | | | | | | | | | | | | BCM4704 SoC has only USB 1.1 core: ssb: Core 3 found: USB 1.1 Hostdev (cc 0x808, rev 0x03, vendor 0x4243) but this device actually comes with two USB 2.0 ports. It appears embedded controller isn't used but instead there are two PCI attached controllers (next to the BCM4321 wireless card): 1106:3038 VT82xx/62xx UHCI USB 1.1 Controller 1106:3104 USB 2.0 Choose a set of USB drivers which actually support this hardware. Signed-off-by: Mirko Parthey <mirko.parthey@web.de> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: fix crashes on MIPS when loading kernel modules under memory pressureFelix Fietkau2017-02-153-3/+12
| | | | | | | | | | | When memory is tight, modules may need to be loaded into vmalloc() space. The code then has to generate jump trampolines which enable relocations between vmalloc space and physical address space. The code had a bug that was freeing these trampolines even when the module was successfully loaded. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: add preliminary kernel support for several RB SPI NOR devicesThibaut VARENE2017-02-153-0/+184
| | | | | | | | | | | | | | | | | | | The cAP 2nD, mAP 2nD and wAP 2nD apparently all share the same QCA953x/SPI-NOR platform. This patch adds preliminary kernel support based on init data used in Mikrotik's linux-3.3.5 kernel patch. Since this is totally experimental and untested, the necessary glue in base-files has not been added, the code is provided as a starting point in case somebody with that hardware wants to help getting it supported. The cAP lite (cAPL 2nD) should also be supported once it is determined whether or not it uses the same board identifier as the mAP lite. Code has been successfully built and has no side effect (no impact on already supported devices). Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ar71xx: add new SPI NOR RB devices to the list of serial-enable patchThibaut VARENE2017-02-151-1/+5
| | | | Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ar71xx: add support for RB750r2Thibaut VARENE2017-02-157-4/+19
| | | | | | | | | | | | | | | | This patch adds support for the MikroTik RouterBOARD hEX lite https://routerboard.com/RB750r2 Specifications: - SoC: Qualcomm QCA9531 (850MHz) - RAM: 64MB - Storage: 16MB NOR SPI flash - Ethernet: 5x100M (1 PoE in) This ethernet router is based on the same platform as the hEX PoE lite (it shares the same board identifier), but has no USB and no PoE out. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ar71xx: add support for RB750UPr2Thibaut VARENE2017-02-159-19/+68
| | | | | | | | | | | | | | | | This patch adds support for the MikroTik RouterBOARD hEX PoE lite https://routerboard.com/RB750UPr2 Specifications: - SoC: Qualcomm QCA9531 (650MHz) - RAM: 64MB - Storage: 16MB NOR SPI flash - Ethernet: 5x100M (1 PoE in, 1 PoE out) - USB: Type A This ethernet router is based on the same platform as the wireless router hAP. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ar71xx: add support for RB951Ui-2nDThibaut VARENE2017-02-159-1/+170
| | | | | | | | | | | | | | | This patch adds support for the MikroTik RouterBOARD hAP https://routerboard.com/RB951Ui-2nD Specifications: - SoC: Qualcomm QCA9531 (650MHz) - RAM: 64MB - Storage: 16MB NOR SPI flash - Wireless: builtin QCA9531, 2x2:2 - Ethernet: 5x100M (1 PoE in, 1 PoE out) - USB: Type A Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ar71xx: provide support for RB-941-2nD via mach-rbspi.cThibaut VARENE2017-02-158-194/+44
| | | | | | | | | This patch implements support for the hAP lite in mach-rbspi.c hAP lite was supported via mach-rb941.c, so this file is removed as well as the corresponding build bits. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>