aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* brcm47xx: backport arch patch with Luxul devices supportRafał Miłecki2017-01-242-14/+260
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kirkwood: add ZyXEL NSA310bAlberto Bursi2017-01-249-13/+271
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* mvebu: set fan_ctrl.sh only on mambaHans Geiblinger2017-01-242-1/+23
| | | | | Signed-off-by: Hans Geiblinger <cybrnook2002yahoo.com> Signed-off-by: Felix Fietkau <nbd@nbd.name> [cleanup]
* uboot-sunxi: clean up, switch to u-boot.mkFelix Fietkau2017-01-242-33/+17
| | | | | | | | 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>
* uboot-mvebu: switch to u-boot.mkFelix Fietkau2017-01-242-2/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* uboot-ar71xx: switch to using u-boot.mkFelix Fietkau2017-01-241-8/+9
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: remove CPU_TYPE:=mips32r2, it gets overwritten anywayFelix Fietkau2017-01-241-2/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* x86: unify CPU_TYPE for legacy and geodeFelix Fietkau2017-01-241-2/+0
| | | | | | | | | | 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>
* uml: mark as source-onlyFelix Fietkau2017-01-241-1/+1
| | | | | | Get rid of a special case in the buildbot script Signed-off-by: Felix Fietkau <nbd@nbd.name>
* malta: mark as source-only to avoid wasting build resourcesFelix Fietkau2017-01-241-1/+1
| | | | | | | | 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>
* malta: move FEATURES to the target makefileFelix Fietkau2017-01-245-4/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* build: remove mips16 feature flag from target makefilesFelix Fietkau2017-01-249-9/+8
| | | | | | | It can be implicitly derived from the MIPS32 revision support in the kernel configuration Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips/rt288x: switch CPU_TYPE to 24kcFelix Fietkau2017-01-241-1/+1
| | | | | | | | | | | 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>
* Revert "ar71xx: wrt400n: lift size limit on kernel and rootfs part"John Crispin2017-01-204-24/+26
| | | | | | | | This reverts commit 78c2ec0f477bab5b5c2622b5a18c14e51dea7249. The builders were failing with a segfault when generating the image Signed-off-by: John Crispin <john@phrozen.org>
* ar71xx: add support for PQI Air PenYuheiOKAWA2017-01-2010-0/+132
| | | | | | | | | | | SoC: AR9331 Ethernet x1, Wireless 2.4G, uSD card slot x1. USB Power, include Li-Po Battery. Signed-off-by: YuheiOKAWA <tochiro.srchack@gmail.com> Changes in v2: alphabetical ordering, tabs fron spaces.
* ar71xx: wrt400n: lift size limit on kernel and rootfs partYousong Zhou2017-01-204-26/+24
| | | | | | While at it, convert to new build method Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* ar71xx: add Abicom SC1750 supportConor O'Gorman2017-01-2010-0/+175
| | | | | | | | | | | | | | | | Support Abicom International Scorpion SC1750 Board QCA9550 700MHz Extended Temperature Range 256MB DDR2 256MB Nand Flash 16MB Nor Flash 1x SFP, 1x PCIe 2x 10/100/1000 Ethernet 135x100 mm 802.11ng/g/b 802.11ac/an/a Signed-off-by: Conor O'Gorman <i@conorogorman.net>
* ar71xx: add Abicom SC450 supportConor O'Gorman2017-01-2010-0/+181
| | | | | | | | | | | | | | | | | | | Support Abicom International Scorpion SC450 Board QCA9550 700MHz Extended Temperature Range 256MB DDR2 256MB NAND Flash 16MB NOR Flash 10/100/1000 Ethernet 15W Max, 3x3 Mode, Full Power TX Power 802.3-at POE+ & DC Input options 100x 85mm USB PCIe SFP GPIO/LED Signed-off-by: Conor O'Gorman <i@conorogorman.net>
* ar71xx: add Abicom SC300M supportConor O'Gorman2017-01-2011-1/+164
| | | | | | | | | | | | | | | | | Support Abicom International Scorpion SC300M Module QCA9550 700MHz Extended Temperature Range 256MB DDR2 256MB Nand Flash 16MB SPI Flash 802.11a/na/b/g/ng GPIO x 22, USB x2, PCIe x2 10/100/1000 Ethernet 23dBm, Optional Onboard Antenna DC Input, 8-20V DC 85 x 55 mm Signed-off-by: Conor O'Gorman <i@conorogorman.net>
* ramips: ZyXEL Keenetic series update wan macVitaly Chekryzhev2017-01-201-1/+3
| | | | Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
* ramips: ZyXEL Keenetic Omni align factory imagesVitaly Chekryzhev2017-01-201-2/+2
| | | | | | ZyXEL web-flasher requires squashfs to be aligned to 64kb. Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
* ramips: correct keenetic-series switch indexVitaly Chekryzhev2017-01-201-1/+1
| | | | | | Fix switch name typo Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com>
* ar71xx: Chipidea USB device supportSvetoslav Neykov2017-01-203-1/+180
| | | | | | | | | | | | Changes the platform to use the Chipidea driver instead of the generic USB host driver which has support for both host and device modes (selected on boot). The changes in 930-chipidea-pullup.patch are already in mainline. I'll upstream 920-usb-chipidea-AR933x-platform-support.patch once I can test the changes with a newer kernel. Signed-off-by: Svetoslav Neykov <svetoslav@neykov.name>
* octeon: fix mtd partitions for erlite on cmdlineJiri Kastner2017-01-201-1/+1
| | | | | | | | | erlite mtdparts exposes boot0, boot1 and eeprom regions as read/write. this patch adds readonly flags, so these regions can't be modified. same as it is already for ER profile. Signed-off-by: Jiri Kastner <cz172638@gmail.com>
* lantiq: fix an ethernet stability issue triggered by receving packets during ↵Felix Fietkau2017-01-191-0/+53
| | | | | | | | | | | | | | boot Disabling ethernet during reboot (only to enable it again when the ethernet driver attaches) can put the chip into a faulty state where it corrupts the header of all incoming packets. This happens if packets arrive during the time window where the core is disabled, and it can be easily reproduced by rebooting while sending a flood ping to the broadcast address. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* lantiq: fix spurious irq stormFelix Fietkau2017-01-191-0/+87
| | | | | | | | | | | Since the MIPS IRQ stack patches, lantiq devices were emitting a storm of messages like this: [ 567.872172] Spurious IRQ: CAUSE=0x1100c300 Fix this by reworking the IRQ dispatch code Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: add support for Netgear WN3000RPv3Thibaut VARENE2017-01-187-2/+163
| | | | | | | | | | | | | | | | | | | | This patch adds support for the Netgear WN3000RPv3 http://www.netgear.com/support/product/wn3000rpv3.aspx Specifications: - SoC: MediaTek MT7620A (580MHz, ramips) - RAM: 32MB DDR - Storage: 8MB NOR SPI flash - Wireless: builtin MT7620A, 2x2:2 with u.FL connectors - Ethernet: 1x100M - Serial: JP1 header, 57600-8N1 - Stock firmware based on OpenWRT Kamikaze Like the EX2700, the bootloader expects a secondary image signature, see https://forum.openwrt.org/viewtopic.php?pid=312577#p312577 This is why the same fakeroot image is used for the WN3000 Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ar71xx: mark soft_config mtd part as writeable for RB-941-2nDThibaut VARENE2017-01-181-1/+0
| | | | | | | | | The soft_config partition must be writeable for rbcfg to be able to enact changes to the routerboot configuration. The read-only flag was a mistake in the initial patch. Removing it brings mach-rb941.c in line with all other RB platforms. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ipq806x: Fix wireless support for Netgear Nighthawk X4S D7800Zhang Jingye2017-01-182-11/+15
| | | | | | | | | | D7800 has a simular hardware to R7800 and uses dual QCA9980 for both 2.4GHz and 5GHz band. However there is no proper initialization for them, which causes a kernel panic due to failed firmware loading. This patch adds d7800 to ath10k caldata extraction list. I can get two functional wireless bands after making change to it. Signed-off-by: Zhang Jingye <934526987@qq.com>
* ramips: fix mac address of miwifi-miniBangLang Huang2017-01-182-1/+5
| | | | | | | For the miwifi-mini, the offset of ethernet mac should be 0x28 which you can easyily dump from 'Factory' partition. Signed-off-by: BangLang Huang <banglang.huang@foxmail.com>
* ramips: simplify EX2700 network configJoseph C. Lehner2017-01-181-2/+2
| | | | | | Don't create a vlan for the Netgear EX2700's only Ethernet port. Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
* ramips: Add back sdhci-mt7620 driver to default configRosen Penev2017-01-181-4/+4
| | | | | | The driver no longer causes kernel panics and CPU hangs. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* bcm53xx: use accepted BCM5301X patches for R8000 and Luxul devicesRafał Miłecki2017-01-183-0/+9
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* x86: add kernel module for sp5100_tco watchdogChris Blake2017-01-161-0/+15
| | | | | | | | | | | This change adds the sp5100_tco driver as a kernel module for the x86 target. Specifically, this can be used by the PCEngines APU2/APU3. The reason for having this as a kernel module is to allow users to load/unload it on demand, as the I2C interface on the APU2/APU3 will not work while this module is loaded. More info can be found on GitHub at https://github.com/riptidewave93/LEDE-APU2/pull/5#issuecomment-255667736 Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
* x86: Add sp5100_tco AMD patchesChris Blake2017-01-164-0/+217
| | | | | | | | | | | | | | This adds the following patches to the x86 target: sp5100_tco: Add AMD Mullins platform support sp5100_tco: Add AMD Carrizo platform support sp5100_tco: fix the device check for SB800 and later chipsets watchdog: sp5100_tco: properly check for new register layouts With these added, the sp5100_tco driver can then be used on newer AMD platforms, such as the PCEngines APU2/APU3 boards. Signed-off-by: Chris Blake <chrisrblake93@gmail.com>
* x86: remove the xen_domu subtargetFelix Fietkau2017-01-166-135/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* x86/generic: add xen DomU supportFelix Fietkau2017-01-163-4/+67
| | | | | | Copy the relevant config options from the xen_domu subtarget Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: fix up the kernel config for the mikrotik subtargetFelix Fietkau2017-01-161-0/+64
| | | | | | Limit enabled devices to routerboards, disable all other devices Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: fix network config for Mikrotik RB411UCezary Jackiewicz2017-01-161-0/+1
| | | | | | | Mikrotik RB411U has only one ethernet port - eth0. This patch allows to create correct config with one lan section. Signed-off-by: Cezary Jackiewicz <cezary@eko.one.pl>
* ar71xx: add support for RB-941-2nDThibaut VARENE2017-01-1611-4/+243
| | | | | | | | | | | | | | | | Add full support for Mikrotik RB-941-2nD (hAP lite) Original patch by Sergey Sergeev <adron@yapic.net> and more information is available here: https://wiki.openwrt.org/toh/mikrotik/rb941_2nd I updated and adapted the patch to apply cleanly to LEDE trunk and added proper numbering for the switch ports (matching case labels). Tested working on actual hardware with the information provided in the above webpage. Sysupgrade works. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: remove yaffs2 support, it is no longer neededFelix Fietkau2017-01-1656-17333/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* adm5120: mark the rb1xx subtarget as brokenFelix Fietkau2017-01-161-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: convert mikrotik routerboard support to UBIFelix Fietkau2017-01-1613-114/+80
| | | | | | | | | | Remove the wget2nand script, drop the need for manual installation, use sysupgrade instead. There are now two different NAND images, one for 64 MiB flashes, the other for >= 128 MiB Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: create a proper default profile for the mikrotik subtarget, drop ↵Felix Fietkau2017-01-162-23/+6
| | | | | | other profiles Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: ar8327/ar8337: disable ARL access code to avoid lockups (FS#384)Jo-Philipp Wich2017-01-161-0/+6
| | | | | | | | | | Running ar8327_get_arl_entry() early after boot leads to MDIO related system lockups on several devices using this driver. Since dumping the ARL table contens is an optional, uncritical feature, simply disable the code for now. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* kernel: make ledtrig-netdev use a work queue for updatesFelix Fietkau2017-01-161-16/+16
| | | | | | | | This fixes hangs in igb that happen if the update call interrupts an already existing dev_get_stats call. In that case the calling CPU deadlocks because it's trying to acquire the same spinlock recursively. Signed-off-by: Felix Fietkau <nbd@nbd.name>
* bcm53xx: add pending BCM5301X patches: Netgear R8000 WiFi & Luxul DTSRafał Miłecki2017-01-154-1/+343
| | | | | | | | This specifies wireless limitations for Netgear R8000 making sure people won't use channels incorrectly (limited performance). There are also 2 new DTS files not used by us yet. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* kernel: fix bcma serial console regressionRafał Miłecki2017-01-151-0/+92
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ipq806x: refactor ipq8065 device treePavel Kubelun2017-01-151-1124/+2
| | | | | | | | | | | | | | | | At the moment we have 2 seperate device tree sources: 1 for ipq8064 soc located in kernel source and 1 custom in LEDE for ipq8065. ipq8064 and ipq8065 SoCs are completely identical except ipq8065 has higher cpu frequencies and adjusted corresponding power supply. This commit makes ipq8065 DTS to contain only specific for ipq8065 DT entries while pulling all the basic SoC stuff from ipq8064 DTS. It makes easier to manage ipq806x device trees and instead of committing changes into 2 seperate equal DTS we are ending up with only 1. It also enables ipq8065 devices to automatically receive changes made in upstream kernel. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* ipq806x: enable hw pseudo random number generatorPavel Kubelun2017-01-152-1/+17
| | | | | | Enables support for pseudo random number generator in device tree. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>