aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* imagebuilder: clean package_listDaniel Golle2017-06-171-6/+6
| | | | | | | | | | | commit 19ac879954 (imagebuilder: add package_list function) introduced a new function 'package_list' to the imagebuilder Makefile. Unfortunately the package list was poluted by stdout noise of the Makefile itself as well as opkg. Redirect those outputs to stderr to make sure that the package_list returned doesn't contain progress info output but really only packages. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* build: remove old kernel-headers build directoriesFelix Fietkau2017-06-161-0/+1
| | | | | | Saves space after updating kernel versions Signed-off-by: Felix Fietkau <nbd@nbd.name>
* dropbear: fix service trigger syntax errorKevin Darbyshire-Bryant2017-06-162-2/+2
| | | | | | The classic single '&' when double '&&' conditional was meant. Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* imagebuilder: add package_list functionPaul Spooren2017-06-151-7/+14
| | | | | | | | | The imagebuilder can now list all available packages by using make package_list. This is usefull for scripts to retrieve a list of all packages with versions (and size) Signed-off-by: Paul Spooren <paul@spooren.de> [daniel@makrotopia.org: fixed commit message]
* Revert "dnsmasq: manage resolv.conf if when listening on 127.0.0.1#53"Hans Dedecker2017-06-142-36/+26
| | | | | | This reverts commit a53f8ba6771de64c9c82a2e6867791226f3003cb. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* ramips: fix Phicomm K1S(PSG1208) pinmux小桥2017-06-121-1/+1
| | | | | | Use gpio function for pins with LEDs. Signed-off-by: 小桥 <29551030@qq.com>
* kirkwood: add support for Cisco ON100Makoto Takeuchi2017-06-125-1/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The Cisco ON100 device is a Kirkwood based router: SoC: Marvell 88F6282 1600Mhz SDRAM memory: 512MB DDR3 1333Mhz Gigabit ethernet: 2x Marvell 88E1310 (over RGMII) Flash memory: 512MB 2 bi-colour status LEDs (green/red) 1 Reset button 1 USB 2.0 port (on back) 1 SDIO slot (on back) This commit adds a target profile of "Cisco Systems ON100" under the target system "Marvell Kirkwood". Flashing can be performed over tftp, once "dhcp" has been issued: tftpboot ${loadaddr} lede-kirkwood-on100-squashfs-factory.bin nand erase 0x0c0000 ${filesize} nand write ${loadaddr} 0x0c0000 ${filesize} Once flashed, set environment variables to boot: setenv bootcmd nand read \${loadaddr} 0x0c0000 0x540000\; setenv bootargs \; bootm saveenv Signed-off-by: Makoto Takeuchi <mak0@lxsys.co.uk>
* at91: convert boards to generic build targetBen Whitten2017-06-129-222/+163
| | | | | | | | | | | | | | Evaluation boards are left in component form to ease flashing using vendor tooling and instructions. These boards also do not include the EOF marker in the UBIFS as the bootloaders are recent and easily upgradeable. The end product boards use factory.bin images based on the dts layout and include EOF markers as bootloader UBI support is not determined. Signed-off-by: Ben Whitten <ben.whitten@gmail.com> Signed-off-by: Mathias Kresin <dev@kresin.me>
* dnsmasq: manage resolv.conf if when listening on 127.0.0.1#53Paul Oranje2017-06-122-26/+36
| | | | | | | | | | With this patch the dnsmasq init script manages resolv.conf if and only if when dnsmasq will listen on 127.0.0.1#53 (is main resolver instance). Also, resolvfile is now set irrespective of the value of noresolv. Fixes (partially) FS#785 Signed-off-by: Paul Oranje <por@xs4all.nl>
* ar71xx: image: simplify TP-Link devices definitionsPiotr Dymacz2017-06-111-86/+28
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: fix TP-Link TL-WR710N v2/v2.1 BOARDNAMEPiotr Dymacz2017-06-111-2/+2
| | | | | | | | | | All TP-Link TL-WR710N versions share the same machine code. This has been working since the beginning as we don't use double-quotes to protect spaces inside command line values. Thus, kernel interprets 'board=TL-WR710N v2' as 'board=TL-WR710N' and separate parameter 'v2'. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: tp-link.mk: keep devices in alphabetical orderPiotr Dymacz2017-06-111-406/+399
| | | | | | | | Keep TP-Link devices definitions in alphabetical order whenever it's possible. Also group together similar devices or devices from the same series. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: base-files: cleanups in 10-ar922x-led-fixPiotr Dymacz2017-06-111-22/+20
| | | | | | | Fix code style, indentation and leading/trailing whitespaces in: /etc/hotplug.d/net/10-ar922x-led-fix Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: base-files: cleanups in 11-ath10k-caldataPiotr Dymacz2017-06-111-24/+24
| | | | | | | Fix code style and boards alphabetical order in: /etc/hotplug.d/firmware/11-ath10k-caldata Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* firmware-utils: tplink-safeloader: add TP-Link Archer C25 v1Ludwig Thomeczek2017-06-111-1/+58
| | | | | | | | | This adds the necessary firmware layout definitions for the Archer C25. It has an addtional partition containing some static data ("extra-para") without which no factory flash is possible, therefore put_data() has been added. Signed-off-by: Ludwig Thomeczek <ledesrc@wxorx.net>
* ar71xx: add support for TP-Link Archer C25 v1Ludwig Thomeczek2017-06-1114-0/+274
| | | | | | | | | | | | | | | | | | | The TP-Link Archer C25 is a low-cost dual-band router. Specification: - CPU: Atheros QCA9561 775 MHz - RAM: 64 MB - Flash: 8 MB - Wifi: 3x3 2.4 GHz (integrated), 1x1 5 GHz QCA9887 - NET: 5x 10/100 Mbps Ethernet Some LEDs are controlled by an additional 74HC595 chip. Signed-off-by: Ludwig Thomeczek <ledesrc@wxorx.net> [minor code style fixes, boards alphabetical order fixes, reworked commit message] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: add support for TP-Link TL-WR942N v1Serg Studzinskii2017-06-1115-2/+370
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TP-Link TL-WR942N v1 is a 2.4 GHz single-band N450 router, based on Qualcomm/Atheros QCA9561. Specification: - 775/650/258 MHz (CPU/DDR/AHB) - 128 MB of RAM (DDR2) - 16 MB of FLASH (SPI NOR) - 3T3R 2.4 GHz - 5x 10/100 Mbps Ethernet - 2x USB 2.0 - 11x LED (most are controlled by 74HC595) - 2x button - UART header on PCB* * Serial console is disabled in OEM non-beta firmwares and corresponding GPIO pins 14 and 15 are assigned to control USB1 and USB2 LEDs by production (non-beta) U-Boot and firmware. Currently not working: 1. USB1 and USB2 LEDs if UART RX and TX pins are assigned to their GPIOs by some U-Boot versions. Flash instruction under vendor GUI: 1. Download "lede-ar71xx-generic-tl-wr942n-v1-squashfs-factory.bin". 2. Go to WEB interface and perform usual firmware upgrade. FLash instruction under U-Boot recovery mode (doesn't work in beta firmware): 1. Setup PC with static IP "192.168.0.66/24" and tftp server. 2. Change "*-factory" image filename to "WR942v1_recovery.bin" and make it available to download from your tftp server. 3. Press "reset" button and power up the router, wait till "WPS" LED turns on. Flash instruction under U-Boot, using UART (can be done only with preinstalled UART-enabled U-Boot version!): 1. Use "tpl" to stop autobooting and obtain U-Boot CLI access. 2. Setup ip addresses for U-Boot and your tftp server. 3. Issue below commands: tftp 0x81000000 lede-ar71xx-generic-tl-wr942n-v1-sysupgrade.bin erase 0x9f020000 +$filesize cp.b 0x81000000 0x9f020000 $filesize reset Signed-off-by: Serg Studzinskii <serguzhg@gmail.com> [minor code style fixes, extended commit message] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: move WRTnode2Q to generic build targetPiotr Dymacz2017-06-113-8/+9
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: simplify Ubiquiti devices definitionsPiotr Dymacz2017-06-111-45/+29
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: mikrotik: shorten DEVICE_TITLEPiotr Dymacz2017-06-111-4/+4
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: use simply expanded variablesPiotr Dymacz2017-06-116-202/+202
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: update GL.iNet boards DEVICE_TITLEPiotr Dymacz2017-06-111-5/+5
| | | | | | | | Use "GL.iNet" as vendor name (based on information from the vendor, this is registered name of the company) and align model names with official website. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: fix 8devices boards DEVICE_TITLEPiotr Dymacz2017-06-111-2/+2
| | | | | | Be consistent with DEVICE_TITLE syntax and use vendor + board names. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: drop unused mtdlayouts from legacy.mkPiotr Dymacz2017-06-111-3/+0
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: cosmetic: drop redundant empty linesPiotr Dymacz2017-06-115-23/+0
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: add ROOTFS_SIZE to DEVICE_VARSPiotr Dymacz2017-06-111-4/+7
| | | | | | Also use ROOTFS_SIZE variable in place of static values. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: keep custom Build/* functions in separate filesPiotr Dymacz2017-06-113-53/+53
| | | | | | | | Most of the custom Build/* functions in ar71xx target are rarely used by image building code for devices from more than one subtarget. As they don't need to be always included, move them to corresponding *.mk files. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: keep DEVICE_VARS and Build/* at the beginningPiotr Dymacz2017-06-114-60/+60
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: simplify Compex devices definitionsPiotr Dymacz2017-06-111-20/+12
| | | | Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: drop redundant kmod-usb-ohci from DEVICE_PACKAGESPiotr Dymacz2017-06-114-22/+22
| | | | | | kmod-usb-ohci is needed only on devices with AR71xx and AR7240 SoCs. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* ar71xx: image: drop redundant uboot-envtools from DEVICE_PACKAGESPiotr Dymacz2017-06-111-8/+4
| | | | | | uboot-envtools is already included in DEFAULT_PACKAGES for ar71xx. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* firmware-utils: tplink-safeloader: support strings as soft_versionJan Niehusmann2017-06-111-1/+36
| | | | | | | | | | | | | | | | | | | | | Some TP-Link routers (C25, C59, C60) contain a version string instead of a binary structure in the soft_version partition. Flashing LEDE from the original firmware's GUI, this version string taken from the soft_ver partition of the firmware image is written to the router's config partition. When using tftp recovery to go back to the original Archer C25 firmware, a version check compares that version to the version of the firmware to be flashed. Without proper contents in the config partition, reverting to the original firmware fails. Therefore, write the string "soft_ver:1.0.0\n" to that soft_ver partition. Signed-off-by: Jan Niehusmann <jan@gondor.com>
* ar71xx: fixup ar71xx/ar933x_wmac_reset: remove indefinite wait for wmac resetKevin Darbyshire-Bryant2017-06-111-1/+1
| | | | | | Fix malformed patch introduced by 296312fca13a4cab1d157e0474e1f0bcca6adf5c Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* dnsmasq: make bind-dynamic 'non-wildcard' interfaces defaultKevin Darbyshire-Bryant2017-06-113-4/+6
| | | | | | | | | | | | | | | 'non-wildcard' interfaces enables dnsmasq's '--bind-dynamic' mode. This binds to interfaces rather than wildcard addresses *and* keeps track of interface comings/goings via a unique Linux api. Quoting dnsmasq's author "bind-dynamic (bind individual addresses, keep up with changes in interface config) ... On linux, there's actually no sane reason not to use --bind-dynamic, and it's only not the default for historical reasons." Let's change history, well on LEDE at least, and change the default! Signed-off-by: Kevin Darbyshire-Bryant <kevin@darbyshire-bryant.me.uk>
* ar71xx/ar93xx_wmac_otp_read_word: fix wrongly used sizeof(*u)Alexander Couzens2017-06-111-2/+2
| | | | | Found-by: Coverity Scan #1330474 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* linux/swconfig_get_attr: fix leak of msg in case of errorAlexander Couzens2017-06-111-1/+1
| | | | | Found-by: Coverity Scan #1330102 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* linux/ledtrig-netdev: remove `unsigned < 0` checkAlexander Couzens2017-06-111-1/+1
| | | | | Found-by: Coverity Scan Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* ar71xx/ar933x_wmac_reset: remove indefinite wait for wmac resetAlexander Couzens2017-06-111-2/+1
| | | | | Found-by: Coverity Scan #1329327 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* ar71xx/ag71xx_ethtool: don't return uninitialized return value on successAlexander Couzens2017-06-111-1/+1
| | | | | | | | ag71xx_ethtool_set_ringparam() will return an uninitialized value on success. Found-by: Coverity Scan #1330877 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* ar71xx/ag71xx_mdio_probe: fix a memory leak when probe failsAlexander Couzens2017-06-111-1/+1
| | | | | Found-by: Coverity Scan #1330233 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* ar71xx/ag71xx_ar7240_get_port_link: fix off-by-one check on argument `port`Alexander Couzens2017-06-111-2/+2
| | | | | Found-by: Coverity Scan #1329901 Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
* base-files: board.json's switch reset means existence, not argumentJonas Gorski2017-06-111-1/+4
| | | | | | | Don't pass the value unconditionally to swconfig as a parameter but instead only call reset if it is 1. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: probe SPI connected switches through DTJonas Gorski2017-06-1039-164/+198
| | | | | | Now that we can configure the switches through DT, do so. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* b53: allow configuration through device treeJonas Gorski2017-06-103-19/+180
| | | | | | | Add support for the same binding as upstream b53 to allow an easy switch. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: switch to hardware led controllersJonas Gorski2017-06-1011-195/+238
| | | | | | | Instead of bit banging SPI to talk to the GPIO chip, use the hardware led controllers intended for controlling the LEDs. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: leds-bcm6328: fix signal assignments for leds 4~7Jonas Gorski2017-06-101-0/+34
| | | | | | Properly use modulus for bit calculation for LEDs 4 to 7. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: dsl-275xb-d: configure switch ledsJonas Gorski2017-06-101-0/+7
| | | | | | Add pinctrl configuration to configure the switch leds on DSL-275XB. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: add pinctrl supportJonas Gorski2017-06-10112-682/+6728
| | | | | | | Add and enable pincontrol drivers, and update dts(i) files with appropriate hogs. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* kernel: make regmap LZO cache optionalJonas Gorski2017-06-106-22/+240
| | | | | | | There are no users, so hide it and let future users select it. Saves about ~17 kB on MIPS. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
* brcm63xx: backport upstream generic gpio changesJonas Gorski2017-06-105-19/+2727
| | | | | | Backport patches that add a data pointer to gpio_chip. Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>