aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
Commit message (Collapse)AuthorAgeFilesLines
* oxnas: set ubifs parameters for Default profileJohn Crispin2016-03-231-0/+1
| | | | | | | | | | | | | | | | | | Work-around obsolete mkfs/ubifs code. Unlike squashfs, ubifs images should be generated per-device so minimum I/O unit size, logical erase block size, maximum logical erase block count can be defined for the specific flash-chips parameters. Also, generating ubinized images is unrelated to rootfs being ubifs or squashfs, but rather depends on the device supporting UBI or not. In the meantime and in order to fix an error which currently causes the image generation on buildbot to fail, work-around by defining UBIFS_OPTS for the Default profile. See also http://buildbot.openwrt.org:8010/builders/oxnas/builds/246/steps/compile_8/logs/stdio Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49068
* mediatek: patch block2mtd to allow cmdlineparts to workJohn Crispin2016-03-232-1/+34
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 49067
* mediatek: update patchesJohn Crispin2016-03-2268-303/+2672
| | | | | | | | fixes trgmii on old eco and adds nand support Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 49066
* mediatek: bump to v4.4John Crispin2016-03-21132-49267/+22597
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 49064
* generic/4.4: remove ISSI SI25CD512 SPI flash support patchGabor Juhos2016-03-211-22/+0
| | | | | | | | The flash is already supported in mainline kernel since 4.3-rc1. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49063
* ramips: lzma-loader: fix O32 ABI conformanceGabor Juhos2016-03-211-0/+3
| | | | | | | | | | | | | | | | | | | According to the calling convention of the o32 ABI the caller function must reserve stack space for $a0-$a3 registers in case the callee needs to save its arguments. The assembly startup code does not reserve stack space for these registers thus when the main C function needs to save its arguments, that will cause a stack overflow. Fix the assembly code to reserve stack space for the registers to avoid that. Untested. It seems that the lzma-loader is not used at all? Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49062
* lantiq: lzma-loader: fix O32 ABI conformanceGabor Juhos2016-03-211-0/+3
| | | | | | | | | | | | | | | | | | | According to the calling convention of the o32 ABI the caller function must reserve stack space for $a0-$a3 registers in case the callee needs to save its arguments. The assembly startup code does not reserve stack space for these registers thus when the main C function needs to save its arguments, that will cause a stack overflow. Fix the assembly code to reserve stack space for the registers to avoid that. Compile tested only. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49061
* brcm47xx: lzma-loader: fix cache invalidationGabor Juhos2016-03-211-4/+4
| | | | | | | | | | | | | | | The current code only partially invalidates both caches because the cache size and cache-line size values are incorrectly passed to the C code. Fix the assembly code to pass the arguments in the correct order. Compile tested only. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49060
* brcm47xx: lzma-loader: remove trailing whitespaces from head.SGabor Juhos2016-03-211-9/+9
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49059
* adm5120: lzma-loader: fix cache invalidationGabor Juhos2016-03-211-4/+4
| | | | | | | | | | | | | | | The current code only partially invalidates both caches because the cache size and cache-line size values are incorrectly passed to the C code. Fix the assembly code to pass the arguments in the correct order. Compile tested only. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49058
* adm5120: lzma-loader: remove trailing whitespaces from head.SGabor Juhos2016-03-211-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49057
* generic: lzma-loader: fix cache invalidationGabor Juhos2016-03-211-4/+4
| | | | | | | | | | | | | | | The current code only partially invalidates both caches because the cache size and cache-line size values are incorrectly passed to the C code. Fix the assembly code to pass the arguments in the correct order. Tested on RB532. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49056
* generic: lzma-loader: remove trailing whitespaces from start.SGabor Juhos2016-03-211-4/+4
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 49055
* ar71xx: WNR1000v2: fix for random WLAN MACJohn Crispin2016-03-201-2/+7
| | | | | | | | | | | Fix for invalid/random WLAN MAC address in WNR1000v2. Permanent platform MAC is calculated and assigned during system startup. WLAN MAC follows wired Ethernet interface addresses. This is the same fix as for WNR2000v3 and WNR612v2. Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl> SVN-Revision: 49051
* lantiq: use upstream mechanism to append device tree fileJohn Crispin2016-03-206-69/+91
| | | | | | | | | | | Instead of using our patch-dtb program just place the device tree behind the kernel binary and then let the in kernel mechanism fetch it. This also adds support for having the device tree file in the boot loader. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49050
* ramips: MiWifi-Nano - change gpios to leds, add to default build groupJohn Crispin2016-03-203-23/+21
| | | | | | | | | | | | 1) Use leds to indicate: Red - Power Amber - Radio On Blue - Wifi associated 2) Add profile to default build group for MT7628 subtarget Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com> SVN-Revision: 49045
* oxnas: sync cpu-hotplug with mach-realviewJohn Crispin2016-03-201-4/+3
| | | | | | | | | Make mach-oxnas/hotplug.c look more similar to mach-realview/hotplug.c, just cosmetics and maintainability concerns, no functional changes. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49044
* oxnas: add spinlock in pinctrl driverJohn Crispin2016-03-201-2/+16
| | | | | | | | Try to address a race-condition in pinctrl-oxnas.c Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49043
* oxnas: also reset GPIO B registers on bootJohn Crispin2016-03-201-6/+6
| | | | | | | | | | Clear both, SYS_CTRL_*_SEL and SEC_CTRL_*_SEL on boot instead of writing to SYS_CTRL_*_SEL twice which looks like a copy-paste error. Thanks to anonymous to bring this up in #21892! Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49042
* oxnas: switch to new image generation templateJohn Crispin2016-03-201-86/+44
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49041
* oxnas: add Default profile and reorganize device profilesJohn Crispin2016-03-204-23/+52
| | | | | | Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 49040
* kernel: update kernel 4.1 to version 4.1.20Hauke Mehrtens2016-03-1831-186/+188
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49035
* kernel: add missing kernel optionsHauke Mehrtens2016-03-172-0/+2
| | | | | | | | This was found by the build bot. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49033
* kernel: update kernel 4.4 to version 4.4.6Hauke Mehrtens2016-03-1710-55/+10
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 49032
* ar71xx: Use PHY fixups for Open Mesh MR1750John Crispin2016-03-161-3/+22
| | | | | | | | | | | | | | | | | | The delays of PHY/MAC on the MR1750 are done by u-boot and OpenWrt in different ways. u-boot only modifies the ETH_CFG of the QCA955x based on the link speed. But OpenWrt can only modify the PHY delays based on the link speed. This can lead to communication problems when u-boot initializes the ETH_CFG for a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY delays to an incompatible value. Instead reset the ETH_CFG delay bits of the QCA955x to a specific value and only rely on the AT803x PHY settings. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> SVN-Revision: 49031
* ar71xx: Use PHY fixups for Open Mesh MR900John Crispin2016-03-161-3/+22
| | | | | | | | | | | | | | | | | | The delays of PHY/MAC on the MR900 are done by u-boot and OpenWrt in different ways. u-boot only modifies the ETH_CFG of the QCA955x based on the link speed. But OpenWrt can only modify the PHY delays based on the link speed. This can lead to communication problems when u-boot initializes the ETH_CFG for a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY delays to an incompatible value. Instead reset the ETH_CFG delay bits of the QCA955x to a specific value and only rely on the AT803x PHY settings. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> SVN-Revision: 49030
* ar71xx: Allow to set the RXDV, RXD, TXD, TXE delays for QCA955xJohn Crispin2016-03-1619-21/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some u-boot versions for QCA955x change the delays based on the link speed during boot. This usually breaks the support of other linkspeeds when OpenWrt is booted. It also conflicts with the at803x_platform_data::fixup_rgmii_tx_delay. OpenWrt has to set its own values in QCA955X_GMAC_REG_ETH_CFG. The default RGMII values from the Atheros u-boot are currently used to preset the existing mach files. These may have to be adjusted for boards using different values but which are not currently set them explicitely in OpenWrt. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> Cc: Gabor Juhos <juhosg@openwrt.org> Cc: Imre Kaloz <kaloz@openwrt.org> Cc: Christian Beier <cb@shoutrlabs.com> Cc: Chris R Blake <chrisrblake93@gmail.com> Cc: Benjamin Berg <benjamin@sipsolutions.net> Cc: Heiner Kallweit <hkallweit1@gmail.com> Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com> Cc: Matthias Schiffer <mschiffer@universe-factory.net> Cc: Dirk Neukirchen <dirkneukirchen@web.de> Cc: Christian Mehlis <christian@m3hlis.de> Cc: Luka Perkov <luka@openwrt.org> Cc: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 49029
* ar71xx: Clear bits in ath79_setup_qca955x_eth_cfgJohn Crispin2016-03-161-3/+13
| | | | | | | | | | | Some u-boot versions for QCA955x set currently not cleared bits depending on the used link speed. This breaks the rx/tx under OpenWrt. The mach-*.c file is responsible to select the correct configuration bits and thus the ath79_setup_qca955x_eth_cfg has to clear the unset. Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> SVN-Revision: 49028
* ar71xx: Extend the list of bits in QCA955X_GMAC_REG_ETH_CFGJohn Crispin2016-03-164-30/+36
| | | | | | Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com> SVN-Revision: 49027
* ar71xx: Add support for the OMYlink OMY-X1John Crispin2016-03-1612-0/+158
| | | | | | | | | | | | This patch adds support for the OMYlink OMY-X1 https://wiki.openwrt.org/toh/omylink/omy-x1 http://www.omylink.com/ Signed-off-by: L. D. Pinney <ldpinney@gmail.com> SVN-Revision: 49026
* ramips: Add support for Xiaomi MiWiFi NanoJohn Crispin2016-03-166-0/+126
| | | | | | | | | | | | | | | Xiaomi MiWiFi Nano is based on Mediatek MT7628 with 64MB ram 16MB flash Signed-off-by: Noble Pepper <openwrtmail@noblepepper.com> v3 includes changes suggested by L. D. Pinney & Karl Palsson- Eliminate en25q64 (4MB) flash chip Alphabetization Remove hyphen in model Rename profile from miwifinano.mk to xiaomi.mk Add gpios that are attached to leds SVN-Revision: 49024
* brcmfmac: Add Raspberry Pi 3 supportJohn Crispin2016-03-161-0/+1
| | | | | | | | | | - Enable SDIO support on brcmfmac. - Disable power managment for brcm2708 target. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Reviewed-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 49023
* kirkwood: refresh patchesLuka Perkov2016-03-141-4/+2
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 49022
* kirkwood: drop 3.18Luka Perkov2016-03-1413-1500/+0
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 49021
* kirkwood: switch to 4.4Luka Perkov2016-03-141-1/+1
| | | | | | | Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 49020
* kirkwood: add 4.4 supportLuka Perkov2016-03-1411-0/+1349
| | | | | | | | | | | | | | Dropped patches because they applied upstream: - 120-iomega_ix2_200.patch - 150-pogoplug_e02.patch Tested on dockstar and goflexnet. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 49019
* kirkwood/goflexnet/goflexhome: change mtd layout to use the last 3 mbLuka Perkov2016-03-142-2/+2
| | | | | | | | | Previous the uboot was overwriting the device-tree's mtd layout to use the last 3 mb. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 49015
* kirkwood/goflexhome/goflexnet: merge "root" and unused mtd partitions into ↵Luka Perkov2016-03-142-16/+35
| | | | | | | | | | | | one volume "ubi" The kernel will automatic attach mtd partitions named 'ubi' to ubi0. Renaming the "root" partition into "ubi" will safe arguments from the kernel cmdline. Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 49014
* linux/kirkwood: migrate goflexhome/goflexnet to new ubi styleLuka Perkov2016-03-141-7/+13
| | | | | | | | Also using the new image build step format Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 49013
* kirkwood/dockstar: rename partition into ubi to use auto detection of target mtdLuka Perkov2016-03-141-1/+1
| | | | | | | | | the kernel tries to use "ubi" or "data" labeled partition to find it's root filesystem. dockstar don't need anymore mtdparts= nor root= bootarguments Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 49011
* kirkwood/dockstar: use ubi(kernel, squashfs, ubifs) imagesLuka Perkov2016-03-142-4/+15
| | | | | | | | | | | | | | | | | | | The new image requires `bootz` because of devicetree appending. To flash a new image boot initramfs: tftpboot 0x800000 openwrt-kirkwood-dockstar-initramfs-kernel.bin bootz 0x800000 # detach if already attached ubidetach -p /dev/$(grep ubi /proc/mtd|awk -F: '{print $1}') # scp openwrt-kirkwood-dockstar-squashfs-factory.bin /tmp ubiformat -f /tmp/openwrt-kirkwood-dockstar-squashfs-factory.bin # attach is important to resize rootfs_data otherwise it wont boot ubiattach -p /dev/$(grep ubi /proc/mtd|awk -F: '{print $1}') Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 49010
* kirkwood: add DEVICE_VAR KERNEL_IN_UBI for kernel as volume in ubi imagesLuka Perkov2016-03-141-1/+16
| | | | | | | | depending on KERNEL_IN_UBI, the image.mk will create a ubi volume for the kernel Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 49009
* kirkwood: add feature devicetreeLuka Perkov2016-03-141-1/+1
| | | | | | | | this platform already uses devicetree Signed-off-by: Alexander Couzens <lynxis@fe80.eu> SVN-Revision: 49008
* brcm47xx: image: create standard TRX images using new building systemRafał Miłecki2016-03-111-15/+20
| | | | | | | | | | | | | | | | | | | | | | | | Apart from using our new building system there are 2 more changes: 1) Limit amount of images So far we were generating all standard images (optimized one and two with no loader) for every SUBTARGET. This is not needed, as e.g. the only device requiring gzipped kernel is legacy Huawei E970. 2) Change output names The new image building system requires specifying device name. This forced picking some and resulted in: openwrt-brcm47xx-$(SUBTARGET)-squashfs.trx openwrt-brcm47xx-$(SUBTARGET)-squashfs-gz.trx openwrt-brcm47xx-$(SUBTARGET)-squashfs-noloader-nodictionary.trx becoming: openwrt-brcm47xx-$(SUBTARGET)-standard-squashfs.trx openwrt-brcm47xx-$(SUBTARGET)-standard-noloader-gz-squashfs.trx openwrt-brcm47xx-$(SUBTARGET)-standard-noloader-nodictionarylzma-squashfs.trx Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 49006
* oxnas: complete NAND driver clean-upJohn Crispin2016-03-101-4/+0
| | | | | | | | some bit rot was accidentally left-out in r48986, remove it. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 48997
* ramips: Add support for GL-MT750John Crispin2016-03-107-1/+177
| | | | | | | | This patch adds support for GL-MT750. GL-MT750 is powered by MT7620A and MT7610e, dual band 802.11ac, 2.4G 300Mbps and 5G 450Mbps. It has 5 LANs, MMC interface, USB, a lot of IOs and PoE support. SVN-Revision: 48994
* ramips: Add support for GL-MT300NJohn Crispin2016-03-107-1/+173
| | | | | | | | This patch adds support for GL-MT300N. GL-MT300N is powered by MT7620N with 16MB flash, 64MB RAM, 2 LANs, USB, UART, GPIO and PoE support. SVN-Revision: 48993
* ramips: Add support for GL-MT300AJohn Crispin2016-03-107-0/+190
| | | | | | | | This patches adds support for GL-MT300A. GL-MT300A is powered by MT7620A. It has 16MB flash, 128MB RAM, Two LANs, USB, UART and MMC daughter board. SVN-Revision: 48992
* oxnas: clean-up NAND driver to fix probing issueJohn Crispin2016-03-101-13/+5
| | | | | | | | | | | A re-write of the driver based on xway_nand.c and constants as well as the cmd_ctrl() function from the original oxnas_nand.c resulted in a extremely similar looking file (see diffsize), and fixes the issue of NAND not being detected on newer kernels. Signed-off-by: Daniel Golle <daniel@makrotopia.org> SVN-Revision: 48986
* brcm2708: update patches to latest versionJohn Crispin2016-03-1013-6/+763
| | | | | | | | | | | | As usual these patches were extracted from the raspberry repo: https://github.com/raspberrypi/linux/commits/rpi-4.4.y - Disable unused MFD RPISENSE driver. - Disable ethernet HW checksums in order to avoid kernel exceptions. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> SVN-Revision: 48985