aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips
Commit message (Collapse)AuthorAgeFilesLines
* ramips: update DEVICE_PACKAGES for Ubiquiti EdgeRouter XMatthias Schiffer2017-04-221-1/+1
| | | | | | Fixes removal of unneeded kernel modules with per-device rootfs. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ramips: add former board names to PSG1218 variantsDaniel Golle2017-04-211-0/+2
| | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: dont replace the board nameMathias Kresin2017-04-215-44/+86
| | | | | | | | | | Use fixed led names and add each board variant instead of manipulating the board name. It makes the ramips board name function less different to the one used in other targets and allows to merge them with a common function. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add former used board names to metadataMathias Kresin2017-04-212-0/+8
| | | | | | | | | We need to keep the former used (unmodified) boardname in the metadata. Otherwise an upgrade from an board using the old boardname will be refused. Fixes: a75ce960ac1b ("ramips: use different board names for variants") Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: rename PSG1218 to match labelDaniel Golle2017-04-218-30/+30
| | | | | | | | Fix previous commit to be less ambigous: PSG1218 rev.A = 5 ports, external PA, heatsinks PSG1218 rev.B = 4 ports, internal PA, no heatsinks Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: split Phicomm PSG1218 and PSG1218K2CDaniel Golle2017-04-219-84/+145
| | | | | | | | | PSG1218 got only 4 Ethernet ports and WAN on port 3 while PSG1218K2C got 5 Ethernet ports and WAN on port 4 Switch to use kmod-kt76x2 instead of kmod-mt76 for both devices while at it. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* kernel: update kernel 4.4 to 4.4.61Jo-Philipp Wich2017-04-151-21/+0
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ramips: really drop the rt-n56u factory imageMathias Kresin2017-04-131-1/+0
| | | | | | Remove the stale reference to the factory image. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix Netgear R6220 package selectionMathias Kresin2017-04-131-1/+1
| | | | | | | | | | | | | The Netgear R6220 requires the kmod-usb3 package and misses kmod-usb-ledtrig-usbport package to setup the configured usb led trigger. Drop the already target selected kmod-mt76. Fixes: FS#686 Fixes: 38bee61dab02 ("ramips: add support for Netgear R6220") Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add RP-N53 pcie wireless eepromMathias Kresin2017-04-131-0/+9
| | | | | | | | | | Fix the PCIe 5GHz wireless by using the on flash eeprom/caldata. Disable the 2.4GHz band as this band has no antennas attached but is enabled in the eeprom/caldata. Fixes: FS#691 Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix WHR-600D eeprom dt propertyMathias Kresin2017-04-131-3/+3
| | | | | | | | | | | Fix the PCIe 5GHz wireless by using the ralink mtd-eeprom property as this board have a RT5592 and uses the rt2x00 driver. The mediathek device tree bindings do not work here. Fixes: FS#691 Fixes: d8dd207ea6f2 ("ramips: use the ralink,mtd-eeprom device tree property") Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: drop rt-n56u factory imageMathias Kresin2017-04-131-2/+0
| | | | | | | | | | | | | | | | | | | | | | The factory image has an uImage header covering the entire image and not only the kernel. The original uImage header which covers only the kernel is appended to the end of the image. During LEDE boot the uImage rootfs splitter skips the whole filesystem, can't find a valid filesystem magic and panics. The last known working version was OpenWrt 14.07, which simply kept on searching for an uImage header if the first found didn't resulted into a working rootfs. This behaviour is kind of error prone since it could produce false positives. Since the sysupgrade image works fine in combination with the tftp recovery for doing the initial installation of LEDE, simply drop the factory image. Related: FS#462 Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: update kernel 4.4 to 4.4.59Hauke Mehrtens2017-04-021-1/+1
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: update kernel 4.9 to 4.9.20Hauke Mehrtens2017-04-021-7/+3
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: fix pcie irq mapping for mt7621 on v4.9John Crispin2017-03-281-10/+18
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* kernel: update kernel 4.9 to 4.9.17Hauke Mehrtens2017-03-266-59/+10
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* kernel: update kernel 4.4 to 4.4.56Hauke Mehrtens2017-03-264-36/+6
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: fix Xiaomi MiWiFi Nano firmware partition sizeMathias Kresin2017-03-241-1/+1
| | | | | | | | | | Even the commit message of the patch adding support for the MiWiFi Nano says that a 16 MB flash chip is used. Extend the firmware partition to make use of all available flash space. Fixes: FS#622 Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix mt7621 boot on v4.9John Crispin2017-03-231-0/+21
| | | | | | | v4.9 CM code has a few bugs on this HW. Disable the GCR register access during boot. This caused a cpu stall. Signed-off-by: John Crispin <john@phrozen.org>
* ramips: clean kernel config symbol conflicts for MT7688 PWMFurong Xu2017-03-202-6/+0
| | | | | | pwm-mediatek should be selected in Other Modules submenu, not default to yes. Signed-off-by: Furong Xu <xfr@outlook.com>
* ramips: fix switch port mapping for ZBT-WE2026Vaclav Svoboda2017-03-201-2/+2
| | | | | | This patch fixes switch port mapping for Zbtlink ZBT-WE2026. Signed-off-by: Vaclav Svoboda <svoboda@neng.cz>
* ramips: add support for Zbtlink ZBT-WE2026Vaclav Svoboda2017-03-177-1/+119
| | | | | | | | | | | | | | | | | | This patch adds support for the Zbtlink ZBT-WE2026. Specification: - SoC: MediaTek MT7620N (580MHz) - RAM: 64 MiB - Flash: 8 MiB SPI - LAN: 4x100M - WAN: 1x100M Installation through bootloader webserver: - With the power unplugged press and hold reset button. - Plug power and hold reset button until LED starts to blink. - Install sysupgrade image using web interface on 192.168.1.1. Signed-off-by: Vaclav Svoboda <svoboda@neng.cz>
* ramips: sort mt7620 image file alphabeticalMathias Kresin2017-03-121-246/+246
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: add support for Netgear EX3700Joseph C. Lehner2017-03-127-0/+184
| | | | | | | | | | | | | | | | Specifications: * SoC: MT7620A * RAM: 64 MB DDR * Flash: 8MB NOR SPI flash * WiFi: MT7612E (5Ghz) and builtin MT7620A (2.4GHz) * LAN: 1x100M The -factory images can be flashed from the device's web interface or via nmrpflash. Co-authored-by: Paul Oranje <por@xs4all.nl> Signed-off-by: Paul Oranje <por@xs4all.nl> Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
* ramips: add support for Netgear R6220Hanqing Wong2017-03-127-1/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for the Netgear R6220, aka Netgear AC1200 and R6220-100NAS. Specification: - SoC: MediaTek MT7621ST (880 MHz) - Falsh: 128 MiB (Macronix MX30LF1G08AA-TI) - RAM: 128 MiB (Nanya NT5CB64M16FP-DH) - Wireless: MediaTek MT7603EN b/g/n , MediaTek MT7612EN an+ac - LAN speed: 10/100/1000 - LAN ports: 4 - WAN speed: 10/100/1000 - WAN ports: 1 - Serial baud rate of Bootloader and factory firmware: 57600 Installation through telnet: - Copy kernel.bin and rootfs.bin to a USB flash disk, plug to usb port on the router. - Enable telnet with link: http://192.168.1.1/setup.cgi?todo=debug (login if required, default: admin password) - You will see "Debug Enabled!" - Telnet 192.168.1.1 and login with "root" - ls /mnt/shares/ to find out path of your USB disk. 'myUdisk' for example. - cd /mnt/shares/myUdisk - mtd_write write rootfs.bin Rootfs - mtd_write write kernel.bin Kernel - reboot nmrpflash can be used to recover to the netgear firmware if a broken image was flashed. Signed-off-by: Hanqing Wong <hquu@outlook.com>
* ramips: Improve Sanlinking D240 configKristian Evensen2017-03-112-1/+12
| | | | | | | | | | | | | | | | | * The left most mini-PCIe slot (the one attached to SIM2) can be power-cycled by setting GPIO 0 to high/low. * The D240 only needs the MT76x2 module, so update makefile to reflect this. Note that until the default mt7620 target is updated, then kmod-mt76 (and thus kmod-mt7603) will be selected by default. v2->v3: * Indentation error. v1->v2: * Rename gpio and remove redundant comment (thanks Piotr Dymacz) Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>
* ramips: kmod-sdhci-mt7620: switch dependence to kmod-mmcFurong Xu2017-03-113-5/+5
| | | | | | | mtk-mmc/mtk_sd.ko only depends on mmc_core and mmc_block. And, we remove kmod-sdhci dependence assignment from all related target devices. Signed-off-by: Furong Xu <xfr@outlook.com>
* ramips: fix Linksys RE6500 switch port mappingJo-Philipp Wich2017-03-071-1/+4
| | | | | | | | Properly map the internal switch ports to the proper LAN1..LAN4 labels. Fixes #530. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* ramips: remove kmod-mt76* from EX2700 imagesJoseph C. Lehner2017-03-011-1/+1
| | | | | | | These modules are not needed by the EX2700, since it does not have an external wifi chip (MT7620A is covered by rt2x00). Signed-off-by: Joseph C. Lehner <joseph.c.lehner@gmail.com>
* ramips: rename patch file suffix from .c to .patchFurong Xu2017-03-012-0/+0
| | | | Signed-off-by: Furong Xu <xfr@outlook.com>
* ramips: add support for Afoundry EW-1200Francois Goudal2017-03-017-0/+142
| | | | | | | | | | | | | | | | | | | | | | This device features both a 2.4 and 5Ghz radio, and supports 802.11a/b/g/n/ac modes. It has 5 Gb-Ethernet ports and a USB 3.0 host port. It is powered by the Mediatek MT7621 SoC, and the MT7602E and MT7612E wifi chipsets, together with 128MB of RAM and 16 MB of SPI Flash. The stock firmware is in fact based on some openwrt barrier breaker, with a mediatek SDK kernel, and an afoundry custom made web interface (not LuCI based). Firmware update page on the stock web interface can not accept sysupgrade images, it bricks the device. At this point, the only working solution I found was to connect to the serial console port (available on J4 header) and to use opkg to install dropbear. Then scp the sysupgrade file in the device's /tmp and run sysupgrade from console without preserving configuration files. Signed-off-by: Francois Goudal <francois@goudal.net>
* ramips: add support for HiWiFi HC5962ZengFei Zhang2017-02-286-1/+176
| | | | | | | | | | | | | | | | | | | | | | | | | This patch adds supports for the HiWiFi HC5962(gee4) http://www.hiwifi.com Short specification: - MT7621AT + MT7612EN + 7603EN - 256MB DDR3 RAM - 128MB NAND flash - 1+3 x 1000M Ethernet - 1x USB 2.0 port. 1x USB 3.0 port. - reset button - UART pad on PCB (JP3: TX, RX, GND, 3.3V) Flash instruction: 1, Download lede-ramips-mt7621-hc5962-squashfs-factory.bin 2, Login as root via SSH on 192.168.199.1 and then copy factory.bin(using wget or nc or...) to /tmp/ 3, use the following commands: $ mtd write /tmp/lede-ramips-mt7621-hc5962-squashfs-factory.bin firmware $ mtd erase firmware_backup && reboot After reboot you should be able to login as root via SSH on 192.168.1.1 Signed-off-by: ZengFei Zhang <zhangzengfei@kunteng.org>
* 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>
* 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>
* 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.9 to version 4.9.10Hauke Mehrtens2017-02-164-7/+7
| | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
* ramips: replace remaining instances of ralink, port-mapDaniel Golle2017-02-1511-11/+11
| | | | | | | | | | | | Some boards were apparently forgotten when ralink,portmap was renamed to mediatek,portmap -- probably because they used the long obsolete ralink,port-map attribute. If this commit breaks ethernet wan/lan assignment, this is because the port-map attribute wasn't actually parsed, you'll have to replace "wllll" by "llllw" in the dts file belonging to that board (and send a patch doing that!) Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* ramips: fix mt7621 ethernet support for v4.9John Crispin2017-02-152-1/+8
| | | | Signed-off-by: John Crispin <john@phrozen.org>
* ramips: export slic IRQ line in dwr-512Giuseppe Lippolis2017-02-151-0/+4
| | | | | | | | The DWR-512 embeds the hw slic device si3210. This device have the IRQ line attached to the gpio1. This patch export the gpio1 with proper name and parameters to the sysfs. Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
* ramips: revert faulty 4.4 config change from 9c242270907Felix Fietkau2017-02-141-9/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ramips: Clean duplicated status property for Omega2 WMAC in dtsiFurong Xu2017-02-141-4/+0
| | | | | | At the tail of dtsi, wmac is enabled twice, clean the first one Signed-off-by: Furong Xu <xfr@outlook.com>
* ramips: fixed sms led polarity into dwr-512 DTGiuseppe Lippolis2017-02-141-1/+1
| | | | Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
* ramips: WN3000RPv3: do not setup switchThibaut VARENE2017-02-141-1/+1
| | | | | | | | | The WN3000RPv3 is a repeater with a single ethernet port. Setting up the switch, even to disable it, is unnecessary and possibly confusing. Configure LAN as eth0 instead. Signed-off-by: Thibaut VARENE <hacks@slashdirt.org>
* ramips: add v4.9 supportJohn Crispin2017-02-1478-3/+23061
| | | | | | NAND support is missing Signed-off-by: John Crispin <john@phrozen.org>
* ramips: added image size into dwr-512 DTGiuseppe Lippolis2017-02-131-0/+1
| | | | Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com>
* ramips: correct switch configuration for Newifi D1Chuanhong Guo2017-02-131-4/+1
| | | | Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
* ramips: fix AR670W partition alignmentClaudio Leite2017-02-091-1/+1
| | | | | | | mtdsplit_lzma requires that the rootfs be aligned to a block boundary. Pad the kernel partition to make this so. Signed-off-by: Claudio Leite <leitec@gmail.com>
* kernel: update kernel 4.4 to version 4.4.47Stijn Tintel2017-02-061-1/+1
| | | | | | | | | | 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, except arc770 and arch38 due to broken toolchain. Runtime-tested on ar71xx, octeon, ramips and x86/64. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
* ramips: add support for Sanlinking D240Kristian Evensen2017-02-057-0/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Sanlinking Technologies D240 (http://www.sanlinking.com/en/29-dual-4g-wifi-router.html) is basically the same device as the ZBT WE826, so adding support for it in LEDE is straight forward. The differences is that the D240 has two mini-PCIe slots (instead of one), blue LEDs and supports PoE. Specification: * CPU: MT7620A * 1x 10/100Mbps POE (802.3af/802.3at) Ethernet, 4x 10/100Mbps. * 16 MB Flash. * 128 MB RAM. * 1x USB 2.0 port. * 2x mini-PCIe slots. * 2x SIM slots. * 1x 2.4Ghz WIFI. * 1x button. Wifi, USB, switch and both mini-PCIe slots are working. I have not been able to test the SD card reader. The device comes pre-installed with an older version of OpenWRT, including Luci. In order to install LEDE, you need to follow the existing procedure for updating OpenWRT/LEDE using Luci. I.e., you need to access the UI and update the firmware using the sysupgrade-image. Remember to select that you do not want to keep existing settings. The default router address is 192.168.10.1 and username/password admin/root (at least on my devices). If you brick the device, the procedure for recovery is the same as for the WE826. Please see the wiki page for that device for instructions. Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com>