aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* kernel: drop usbdev LED triggerRafał Miłecki2016-10-199-472/+5
| | | | | | It was LEDE's trigger that was replaced by upstream usbport one. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* switch to the new usbport LED triggerRafał Miłecki2016-10-1927-134/+134
| | | | | | | This makes init.d script handle existing UCI entries using the new trigger. It also switches all targets to use its package. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ipq806x: add back end-of-UBI marker for a few factory images (FS#228)Felix Fietkau2016-10-181-0/+2
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* ar71xx: Add support to TP-Link EAP120Henryk Heisig2016-10-1810-1/+168
| | | | Signed-off-by: Henryk Heisig <hyniu@o2.pl>
* ar71xx: set EU region code for TP-Link TL-WA901ND v4Matthias Schiffer2016-10-151-0/+1
| | | | | | | | | | | | | There is no US firmware for the TL-WA901ND v4 yet, so we'll just unconditionally set the EU region for now. This makes LEDE flashable on these devices again. The format of the region string is slightly different from the one used on the Archer C7 that is generated by mktplinkfw (the second half of the region string is missing), but it's similar enough to make it work. Tested-by: Jannis Pinter <jannis@pinterjann.is> Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ramips: add support for Planex VR500.YuheiOKAWA2016-10-157-1/+112
| | | | | | | | | | | | SOC: MT7621A RAM: 256MiB NOR: MX25L51245G Non Wireless Router. Issue: soft reboot problem. SPI Flash do not exit 4byte address mode. Signed-off-by: Yuhei Okawa <tochiro.srchack@gmail.com>
* imx6: inittab: Use login.sh wrapper so we can configure console passwordPetr Štetiar2016-10-151-2/+2
| | | | | | | | In dc92917 there was introduced login.sh wrapper which allows configuration of console passwords via UCI system ttylogin config option. Signed-off-by: Petr Štetiar <ynezz@true.cz>
* ar71xx: add support for the Airtight C-60Christian Lamparter2016-10-1513-14/+260
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds support for the Airtight C-60. SOC: Atheros AR9344 rev 2 (CPU:560.000MHz) RAM: 128 MiB NOR: MX25L3205D 4MiB NAND: ST Micro NAND 32MiB 3,3V 8-bit SW-NET: AR8327N (2 Ports) WLAN1: Dual-Band AR9340 Rev:2 (built-in SoC) WLAN2: Dual-Band AR9300 Rev:4 PCIe Chip The switch is setup for an accesspoint: LAN1: (gigabit) is the wan-port. LAN2: (fast ethernet) is bridged with the br-lan. Flashing Guide (via initramfs): 1. Connect a PC to the serial port of the C-60. power up the C-60. Enter u-boot command prompt: #> nand erase #> setenv bootcmd "bootm 0x9f060000" #> saveenv #> setenv ipaddr 192.168.1.1 #> setenv netmask 255.255.255.0 #> setenv serverip 192.168.1.100 #> setenv bootfile lede-ar71xx-nand-c-60-initramfs-kernel.bin #> tftpboot #> bootm 2. Wait for the C-60 to boot LEDE. On the root prompt. Enter: # ubiformat /dev/mtd4 # ubiattach -p /dev/mtd4 3. After that copy the sysupgrade.tar onto the router and run: # sysupgrade sysupgrade.tar to flash the image. Special thanks to Chris Blake <chrisrblake93@gmail.com>. He provided a C-60 unit and he helped with debugging the switch, LEDs and platfrom support. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* generic: ar8216: improve ar8xxx_is_possible checkChristian Lamparter2016-10-151-6/+6
| | | | | | | | | | | | | | | | | The commit "generic: ar8216: add sanity check to ar8216_probe" (774da6c7a40320a320b28d71291c0e61fcf7bc8a) stated that PHY IDs should be checked at address 0-4. However, the PHY 4 was never check by the loop. This patch extends the check to be similar to the Atheors SDK. It tries all 4 ports and skips unconnected PHYs if necessary. If it cannot find any familiar PHYs, it will prevent the phy driver from initializing. This patch is necessary for the C-60. It doesn't have a PHY at port 3, so this caused the check in ar8xxx_is_possible to fail. As a result, the ethernet ports on the C-60 didn't work. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* ipq806x: C2600: change leds colour nameHenryk Heisig2016-10-152-13/+12
| | | | Signed-off-by: Henryk Heisig hyniu@o2.pl
* ipq806x: add support for indicating the boot and upgrade state using four ledsHenryk Heisig2016-10-155-15/+54
| | | | Signed-off-by: Henryk Heisig hyniu@o2.pl
* lantiq: use wpad-mini for WBMR boardsMathias Kresin2016-10-152-20/+2
| | | | | | | | | | The WBMR boards are the only ones in the whole tree selecting the wpad and hostapd-utils package by default. Remove the wps uci-default script as well, there is no obvious reason why the wps config need to be set only for this board. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix ARV452CQW keysMathias Kresin2016-10-151-1/+1
| | | | | | Fix the typo in the gpio-keys-polled compatible string. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: use rfkill for wps button on wlan only boardsMathias Kresin2016-10-157-29/+8
| | | | | | | | | | | | | All of the touched boards don't have an ethernet port. Allow to use the wps button on these boards to enable the wireless radio after boot. The force enabled wireless for the DCH-M225 is removed. It is reckless to bring up an unencrypted wireless network by default these days. Using the wps button to bring up the radio seam to me the better approach. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: use rootfs splitter and new image build code for BR-6475NDMathias Kresin2016-10-152-43/+11
| | | | | | | Use the edimax uImage splitter instead of the fixed size rootfs partition. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: move edimax images to the new build codeMathias Kresin2016-10-153-32/+37
| | | | | | | | | | | | | | | | Images installed via TFTP recovery or the Edimax webinterface of the 3g-6200n(l) are writting with the edimax header to flash. Use only one image type for these boards. The migration to the factory only images need to be done via TFTP recovery. Use the same start address for the 3g-6200n(l) factory images as the stock firmware images. Thanks to Jan Dostrasil for reporting all the issues of the 3g-6200nl and the patient testing of all changes. Signed-off-by: Mathias Kresin <dev@kresin.me>
* kernel: mtdsplit_uimage: fix Edimax parserMathias Kresin2016-10-151-13/+7
| | | | | | | | | | | | | | According to the author the code was added to in preparation for adding support for a new board. The patch for the board was never send and the code never really tested. The edimax header starting with the edimax magic is put in front of the uImage header. There is no special uImage header used. Means, default magic and the type field is set to kernel as usual. Signed-off-by: Mathias Kresin <dev@kresin.me> edimax parser fix
* kernel: mtdsplit_uimage: fix rootfs offsetMathias Kresin2016-10-151-1/+1
| | | | | | | | The return value of the find_header function need to be added to the uimage_size, otherwise mtd_find_rootfs_from() might search for a rootfs within a custom header and fails. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: improve edimax 6200n/nl supportMathias Kresin2016-10-154-12/+20
| | | | | | | | | | Assign the reset functionality to the wps/reset buttons. Use the wlan switch of the 6200n to enable/disable wlan. Add the internet led of the 6200nl and use the led for boot status indication Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: fix edimax 6200nl switch configMathias Kresin2016-10-152-2/+1
| | | | | | | | | | | | | With 3a9752bbd2bc00e407b5dcad21789720f40abf0e and later changes to ramips_set_preinit_iface() the default vlan config applied during preinit was changed. These changes were made without updating the default network config to ensure that vlan interfaces used for lan/wan are still configured. Fix the issue by using the default all LAN portmap and disabling not connected switch ports using portdisable device tree parameter. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: tag the CPU switch portMathias Kresin2016-10-151-1/+1
| | | | | | | | | | | | With de5102651501e51c036f88fe9c4dbf6974e5158a the explicit tagging of the CPU port was removed. This leads to a not working default network config, with vlans enabled but disabled CPU tagging, for boards where all switch ports are having the same role. In case the ports are having different roles set, tagging is is set implicit for the CPU port by ucidef_add_switch(). Signed-off-by: Mathias Kresin <dev@kresin.me>
* ramips: remove fixed lan/wan interface for switch configsMathias Kresin2016-10-151-1/+0
| | | | | | | | | | Don't set the lan/wan interface when using ucidef_add_switch. This results into a wan interface albeit all ports a annotated as lan ports. ucidef_add_switch takes care of setting the correct lan/wan interface according to the annotation of the ports. Signed-off-by: Mathias Kresin <dev@kresin.me>
* brcm2708: fix image generation with imagebuilderÁlvaro Fernández Rojas2016-10-131-1/+5
| | | | | | | COPYING is not present in $(LINUX_DIR) on imagebuilder and prevents a successful image creation. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* ar71xx: move dragino2 from legacy to genericKarl Palsson2016-10-133-8/+10
| | | | | | Tested on real hardware with r1804. Signed-off-by: Karl Palsson <karlp@etactica.com>
* apm821xx: replace recovery image for the MBL with initramfsChristian Lamparter2016-10-134-118/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch "images: bump default rootfs size to 256 MB" a1f83bad606411a561e8e60110c71232b1a28aa2 caused a crash during boot for the recovery images. This is because both variants of the MyBook Live only have 256MB of RAM and for the recovery option, the ext4 rootfs was simply stored in the RAMDISK. This patch replaces recovery image for the MBL with an initramfs kernel. In order to boot the initramfs (for recovery or development): 0. copy the initramfs and device tree into tftp's server directory # cp *-initramfs-kernel.bin to /tftp-server/mbl.bin # cp *-ext4-kernel.dtb to /tftp-server/fdt.bin 1. Connect the MyBook Live (Duo) serial port. (Warning! Use a 3.3v level shifter). 2. Hit Enter during u-boot and insert these three lines: # setenv serverip 192.168.1.254; setenv ipaddr 192.168.1.1; # tftp ${kernel_addr_r} mbl.bin; tftp ${fdt_addr_r} fdt.bin # run addtty addmisc; bootm ${kernel_addr_r} - ${fdt_addr_r} Where 192.168.1.254 is your TFTP server. Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* x86: 64: enable pci hotplug and acpipnpYousong Zhou2016-10-131-7/+9
| | | | | | | | | | | | | | | | | | | | | | This will allow dynamically adding/removing at least virtio-net pci devices which are quite the norm in cloud environment with QEMU/KVM netdev_add bridge,id=wan2,br=br-wan,helper=/home/yousong/.usr/libexec/qemu-bridge-helper device_add virtio-net-pci,id=devwan2,netdev=wan2,mac=11:22:33:22:11:00 The config was formed by selecting target x86/64 first, then select CONFIG_HOTPLUG_PCI and CONFIG_HOTPLUG_PCI_ACPI with make kernel_menuconfig CONFIG_TARGET=subtarget The following text tries to explain how the current config was formed 1. CONFIG_PCI_LABEL and CONFIG_ATA_PIIX were removed because they were already enabled in x86 platform config 2. CONFIG_ATA_SFF was removed because it was enabled in generic config 3. CONFIG_NLS was removed because it will be selected by CONFIG_PCI_LABEL Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
* tools: remove old mkdosfs symlink from dosfstoolsÁlvaro Fernández Rojas2016-10-124-4/+4
| | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
* ar71xx: add userspace support for D-Link DIR-869 A1, generate imagesFlorian Beier2016-10-116-1/+25
| | | | | | Signed-off-by: Florian Beier <beier.florian@gmail.com> [Matthias Schiffer: fix factory image, improve commit message] Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: add kernel support for D-Link DIR-869 A1Matthias Schiffer2016-10-117-0/+193
| | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: add back SEAMA header checksum fix (as used on ramips)Matthias Schiffer2016-10-111-0/+17
| | | | | | | | The D-Link DIR-869 A1 doesn't accept images with the jffs2 marker added after the checksummed range, so we need to include it in the checksum and fix it on first boot. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: avoid double lzma compression of kernel for SEAMA imagesMatthias Schiffer2016-10-111-1/+1
| | | | | | | | Use relocation loader instead of lzma loader. Tested on D-Link DIR-869 A1. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: add relocation loaderMatthias Schiffer2016-10-112-0/+15
| | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* ar71xx: clean up SEAMA image build codeMatthias Schiffer2016-10-111-34/+18
| | | | | | | | | | | Split seama-factory and seama-sysupgrade into smaller pieces (similar to the ramips code) to make the image generation more flexible. Also use standard pad-offset instead of adding a block of zeros at the beginning of the image that is later cut off again. Standard pad-rootfs can be used as the seal header doesn't contain an image size or checksum. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
* lantiq: fix lantiq-dsl output spamMathias Kresin2016-10-111-1/+1
| | | | | | | | | | | | | | | | | In case the adsl/vdsl service is disabled intentional, the output is cluttered with the following message multiple times if the status of the dsl line is queried: killall: vdsl_cpe_control: no process killed If the dsl line status is queried by LuCI, the logfile is spammed with the message. Fix the issue by using killall in quite mode. In quite mode killall still returns a non-zero value if the to be killed process can not be found so that existing logic based on the return value still works. Signed-off-by: Mathias Kresin <dev@kresin.me>
* ar71xx: build image for Archer C7 v2 ILAmir Rachum2016-10-091-1/+11
| | | | | | | TP-Link uses a different region coding mechanism for IL firmware for the Archer C7 v2. Instead of of setting the region, they set a different TPLINK_HWREV. Signed-off-by: Amir Rachum <amir@rachum.com>
* lantiq: fix BTHOMEHUBV2B default packagesMathias Kresin2016-10-061-1/+1
| | | | | | | | | | Due to the introduced double whitespace the default package selection isn't applied. This leads to errors like a not working networking because of a missing swconfig binary. Fixes FS#208. Signed-off-by: Mathias Kresin <dev@kresin.me>
* at91: Remove u-boot from platform images folderBen Whitten2016-10-067-836/+0
| | | | | | | Removes the bootloader from the images section as its now in packages/boot with the others. Signed-off-by: Ben Whitten <ben.whitten@gmail.com>
* ipq806x: fix wlan mac for Netgear R7800Pavel Kubelun2016-10-061-0/+3
| | | | Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
* lantiq: fixup last commitsMathias Kresin2016-10-055-9/+9
| | | | | | | Revert the rename of unrelated device tree nodes. Rename the missed leds of the Speedport W 504V Typ A. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: fix usb leds/triggerMathias Kresin2016-10-054-8/+11
| | | | | | | | | | | Add USB led aliases to boards having an led which is meant to be used as USB led according to the manuals. Remove the kmod-ledtrig-usbdev from the default package selection for boards not having an USB led. Add the kmod-ledtrig-usbdev to boards where it is missing. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: use aliases device tree node for ledsMathias Kresin2016-10-0536-285/+277
| | | | | | The chosen node is clearly the wrong place for aliases. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: cleanup led handling functionsMathias Kresin2016-10-053-19/+22
| | | | | | | | | Use a more generic name for the lantiq_get_dt_led_chosen function. Drop the lantiq_is_dt_led_chosen function. The lantiq_get_dt_led function can be used to achieve the same. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: board.d: apply alphabetical order to led fileMathias Kresin2016-10-051-12/+12
| | | | Signed-off-by: Mathias Kresin <dev@kresin.me>
* zynq: fix maintainer email addressJo-Philipp Wich2016-10-051-1/+1
| | | | Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* zynq: convert to new image build codeJo-Philipp Wich2016-10-055-97/+39
| | | | | | | | | | | | | | | | | | Convert the Zynq target to use the new image build code in order to fix broken image generation after 9945a1dca5bb6bc522393f7583baf3a64df6ce11 changed the handling of CPIO images. Also remove the misapplied ubifs feature flag since the image generation is not using UBIFS for building FIT images. As part of the conversion, move the DTB building and the uImage ramdisk generation into separate build steps which can be generalized and shared with other targets, like APM821xx, in the long run. Also remove the legacy profile declarations and use new-style per-device profiles which will allow different package sets per image in the future. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* kernel: add missing config symbol (partial forward port of d2f4479870)Felix Fietkau2016-10-041-0/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add missing symbols for Linux 3.18 (like d2f4479870)Felix Fietkau2016-10-041-0/+3
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* kernel: add missing symbols for Linux 4.1Jo-Philipp Wich2016-10-041-0/+3
| | | | | | | Add some missing symbols to the generic 4.1 kernel config which got triggered by the introduction of the hda-intel sound module. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* kernel: backport usbport LED trigger from 4.9Rafał Miłecki2016-10-044-0/+931
| | | | Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
* ramips: add support for Zyxel NBG-419N2 (WAP3205v2)Klaus2016-10-046-0/+134
| | | | | | | | | | | applied bb-final-ramips-add-zyxel-nbg-419n2.patch from 123serge123, found at https://yadi.sk/d/1ZV0lKJwbTE65; see https://forum.openwrt.org/viewtopic.php?pid=246905#p246905, modified slightly to fit to CC release and to new lede build system: image/rt305x.mk include file is used now changed NBG-419N2.dts format to fit style of other dts files Signed-off-by: Klaus <k-laus@quantentunnel.de>