aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc85xx
Commit message (Collapse)AuthorAgeFilesLines
* mpc85xx: drop 3.14 supportJohn Crispin2015-03-169-1203/+0
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44818
* kernel: move KERNFS to generic configJohn Crispin2015-03-062-2/+0
| | | | | | | | KERNFS symbol is selected by SYSFS, so place it in generic config. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44615
* kernel: disable ARCH_NEEDS_CPU_IDLE_COUPLEDJohn Crispin2015-03-063-3/+0
| | | | | | | | | Disable ARCH_NEEDS_CPU_IDLE_COUPLED by-default in generic config, since only one platfrom (omap) needs them. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44614
* kernel: disbale HAMRADIO in generic configJohn Crispin2015-03-063-3/+0
| | | | | | | | | | | | | | | HAMRADIO enabled in all generic configs, but no one platform directly use related drivers/protocols. This symbol is only used for kmod-ax25 package modules. Furthermore, half of platforms explicitly disables this symbol, what silently disables build of modules for kmod-ax25 package. So disable HAMRADIO by-default in generic config, add it to kmod-ax25 package and remove it from platform specific configs. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44613
* kernel: move MTD_SPLIT_SUPPORT to generic configJohn Crispin2015-03-062-2/+0
| | | | | | | | | | | CONFIG_MTD_SPLIT_SUPPORT symbol default value is 'y' and many platform specific configs explicitly enables it, while no one platform disables this symbol. So place it in generic config and remove from platform specific configs. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> SVN-Revision: 44612
* mpc85xx: add 3.19 supportJohn Crispin2015-02-2410-0/+1262
| | | | | | | | | | | | | It took very little to make the TL-WDR4900 work under 3.19: - config is the same as for 3.18 - only patch 210 had to be refreshed, the other patches are the same as for 3.18 - in /etc/config/wireless the path options need to be prefixed with "platform/" ('platform/ffe09000.pci/...') Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 44517
* mpc85xx: add mpic timer clock frequency to avoid boot log warningJohn Crispin2015-02-221-0/+48
| | | | | | | | | | | | | | | | | MPIC timers are enabled in the config, however a devicetree clock setting is missing causing the following error: /soc@ffe00000/timer@41100: cannot get timer frequency. /soc@ffe00000/timer@42100: cannot get timer frequency. This patch adds the missing clock and avoids the error. It's a functional copy of this code do_fixup_by_compat_u32(blob, "fsl,mpic", "clock-frequency", get_bus_freq(0), 1); in arch/powerpc/cpu/mpc85xx/fdt.c in the u-boot code. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 44501
* mpc85xx: set v3.18 as defaultJohn Crispin2015-02-191-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44496
* mpc85xx: add v3.18 supportJohn Crispin2015-02-179-0/+1207
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 44485
* targets: base-files: diag.sh does not need to be executableLuka Perkov2015-02-071-0/+0
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 44305
* targets: files in uci-defaults do not need to be executablesLuka Perkov2015-02-071-0/+0
| | | | | | Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 44304
* add "preinit_regular" diag.sh set_state argumentJohn Crispin2014-12-151-0/+4
| | | | | | | | | | | | This new argument is used right after starting regular preinit (which happens if failsafe wasn't triggered). The main purpose of "preinit" argument is to indicate that failsafe can be triggered, however we were missing a way to inform user that we don't wait for a trigger anymore. With this change it's clear when failsafe mode can be triggered. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 43715
* mpc85xx: remove linux 3.10 supportFelix Fietkau2014-12-1311-1437/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43684
* mcp85xx/p1020: fixup config-defaultJohn Crispin2014-12-111-0/+19
| | | | | | | | this was missed during the 3.14 bump Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 43628
* mpc85xx: fix another typo in the image makefileFelix Fietkau2014-12-111-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43625
* mpc85xx: add missing devicetree ranges property for ethernet devicesFelix Fietkau2014-12-111-0/+30
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43624
* mpc85xx: fix typo in image nameFelix Fietkau2014-12-111-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43622
* mpc85xx: fix initramfs imagesFelix Fietkau2014-12-112-8/+8
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43620
* mpc85xx: update to linux 3.14Felix Fietkau2014-11-271-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43413
* mpc85xx: refresh linux 3.14 patchesFelix Fietkau2014-11-275-39/+8
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43412
* mpc85xx: remove the PHY reset change patch (no longer necessary)Felix Fietkau2014-11-271-30/+0
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 43411
* mpc85xx: fix missing dts target for kernel 3.14John Crispin2014-11-242-1/+88
| | | | | | | | | | With kernel 3.14 dts target p1010rdb was renamed to p1010rdb-pa. To maintain compatibility define p1010rdb-pa as new standard and copy p1010rdb.dts to p1010rdb-pa.dts under 3.10. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 43371
* mpc85xx: add 3.14 kernel support for mpc85xx platformJohn Crispin2014-11-199-0/+1236
| | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds 3.14 kernel support for the mpc85xx platform. Works fine here with a TL-WDR4900 which seems to be the only supported device using this platform. There might be differences depending on HW version, therefore I'd ask others to test too. Changes to 3.10 missing config options added to 3.14 config file patch 001: rebased patch 100: rebased patch 110: rebased patch 120: rebased patch 130: rebased patch 140: minor adjustment patch 200: removed, change went upstream patch 210: rebased patch 220: removed, change went upstream patch 750: new, fixes an issue with ethernet port autoneg being disabled due to changes in kernel phy handling Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 43308
* mpc85xx: fix WAN/LAN-MAC for TP-LINK TL-WDR4900 v1John Crispin2014-10-261-21/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This works around a bootloader issue where every device has the same lan/wan-mac 00:04:9f:ef:01:01 - with this patch we read the macs from config-partition during initial network setup. We have 9 valid macs stored in the partition, the 1st two are used for the radios, 3 and 4 are now used for WAN/LAN. on an already setup / running device we can get the real macs with . /lib/functions.sh . /lib/functions/system.sh echo "LAN = $(mtd_get_mac_binary config 338)" echo "WAN = $(mtd_get_mac_binary config 344)" see: https://dev.openwrt.org/ticket/14714 from the ticket / user klondike: U-Boot passed this commit https://gitorious.org/0xlab-kernel/u-boot/commit/ecd1a09b81f2ed6e6ba7bd1d0bfb0cc3d0ea2ad0 http://u-boot.10912.n7.nabble.com/U-Boot-PATCH-mpc83xx-remove-hardcoded-network-addresses-from-config-files-td44372.html I suppose to prevent this particular issue, but the WDR4900 may be using an old bootloader still affected. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I have been checking the contents of the dtb on the flash, this particular bit is quite revealing: ethernet@b0000 { #address-cells = <0x1>; #size-cells = <0x1>; device_type = "network"; model = "eTSEC"; compatible = "fsl,etsec2"; fsl,num_rx_queues = <0x8>; fsl,num_tx_queues = <0x8>; local-mac-address = [00 00 00 00 00 00]; ^^^^^^^^^^^^^^^^^ interrupt-parent = <0x2>; phy-handle = <0x3>; phy-connection-type = "rgmii-id"; ptimer-handle = <0x4>; queue-group@0 { #address-cells = <0x1>; #size-cells = <0x1>; reg = <0xb0000 0x1000>; rx-bit-map = <0xff>; tx-bit-map = <0xff>; interrupts = <0x1d 0x2 0x1e 0x2 0x22 0x2>; }; }; I also have been checking the live device map to find this: root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b0000/local-mac-address 00000000 00 04 9f ef 01 01 |......| 00000006 root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b1000/local-mac-address * root@GHS-AP3:~# hexdump -C /proc/device-tree/soc@ffe00000/ethernet@b2000/local-mac-address * My conclussion is that U-Boot most likely finds the device and (as no valid MAC-address is provided) falls back to the default MAC provided by the old code, the kernel then receives thee modified device map from U-Boot and assumes this is the correct MAC for the device despite it obviously isn't. This can be seen at target/linux/mpc85xx/patches-3.10/140-powerpc-85xx-tl-wdr4900-v1-support.patch The enetaddr is filled up by using the device tree data by the process_boot_dtb function and used by the platform_fixups function to set the eth0 address (by calling dt_fixup_mac_address_by_alias("ethernet0", enetaddr); ). But instead we should be used the device address which to my understanding is provided in the mtd. Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 43074
* kernel: makefiles: make use of new var KERNEL_PATCHVERFelix Fietkau2014-10-241-1/+1
| | | | | | | | | | | replace all occurences of LINUX_VERSION with the cleaner approach. future kernel upgrades must mostly touch only one file. the only platform left is netlogic, because it uses a intermediate kernel 3.14.16 Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 43047
* mpc85xx: use wpad-mini in WDR4900 profile instead of wpadJohn Crispin2014-10-141-1/+1
| | | | | | | | | This change makes the profile of WDR4900 more consistent with other router specific profiles. Signed-off-by: Philipp Borgers <borgers@mi.fu-berlin.de> SVN-Revision: 42896
* target/linux/*/image/Makefile: use new dts path variableJohn Crispin2014-07-211-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41791
* kernel: update to 3.10.49 Signed-off-by: John Crispin <blogic@openwrt.org>John Crispin2014-07-201-1/+1
| | | | SVN-Revision: 41776
* kernel: update 3.10.36->3.10.44John Crispin2014-06-261-1/+1
| | | | | | | | 205-fix-headers_install.patch is obseleted by upstream commit 3246a0352e3d58380b9386570f1db1faf7edf8a8 Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 41351
* mpc85xx: fix typo in TP-Link WDR4900 profileJo-Philipp Wich2014-06-171-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 41229
* target/linux/*/base-files/lib/upgrade/platform.sh - wrong check for ARGCJohn Crispin2014-06-021-1/+1
| | | | | | | | | | | | | | | | | | | ARGC is a 'C-ism', but not known/valid in shell-syntax - insert the correct var $# (=number of args) here. under normal conditions this had no impact, but we should at least correct it. the error was observable like this: root@box:~ [ -e "/etc/functions.sh" ] && . /etc/functions.sh root@box:~ [ -e "/lib/functions.sh" ] && . /lib/functions.sh root@box:~ . /lib/upgrade/platform.sh root@box:~ . /lib/upgrade/common.sh root@box:~ platform_check_image /tmp/myfirmware.bin ash: bad number root@box:~ echo $? 0 Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com> SVN-Revision: 40915
* kernel: update 3.10 to 3.10.36Gabor Juhos2014-04-121-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 40467
* /lib/functions.sh: move rarely used mtd and macaddr related functions to ↵Felix Fietkau2014-04-071-0/+2
| | | | | | | | /lib/functions/system.sh Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40411
* kernel: update 3.10 to 3.10.34Gabor Juhos2014-03-271-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 40291
* kernel: update 3.10 to 3.10.32Gabor Juhos2014-02-231-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39707
* gianfar: Fix reported number of sent bytes to BQLFelix Fietkau2014-02-221-0/+77
| | | | | | | | | | | | This is a backported patch for the gianfar ethernet driver used in TPLink 4900 v1. It is supposed to fix the error which show up in dmesg with: NETDEV WATCHDOG: eth0 (fsl-gianfar): transmit queue xy timed out Full upstream patch is at: http://patchwork.ozlabs.org/patch/271242 Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de> SVN-Revision: 39692
* kernel: update 3.10 to 3.10.28Gabor Juhos2014-01-261-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39399
* mpc85xx: Fix building ramdisk imagesGabor Juhos2014-01-231-6/+2
| | | | | | | Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39368
* mpc85xx: Remove inittab workaroundGabor Juhos2014-01-232-29/+0
| | | | | | | | | | | | The default inittab uses "askconsole" which is implemented by procd and uses the console provided by the kernel command line. Hence, this platform specific workaround is not necessary anymore. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39367
* mpc85xx: preallocate SPI transfer bufferGabor Juhos2014-01-121-0/+143
| | | | | | | | | This helps to avoid high order alloction failures. Closes #14702. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39247
* kernel: update 3.10 to 3.10.26Gabor Juhos2014-01-111-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 39220
* kernel: update kernel 3.10 to 3.10.24Hauke Mehrtens2013-12-151-1/+1
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 39059
* kernel: update 3.10 to 3.10.21Gabor Juhos2013-12-012-3/+3
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38972
* mpc85xx: Fix NAPI poll mechanism in GIANFAR ethernet driverFelix Fietkau2013-11-192-162/+109
| | | | | | | | | | | | | | | | This patch fixes the NAPI poll mechanism in the GIANFAR ethernet driver, which was not properly working since Linus Kernel Version 3,8. Therefore the workaround patch to downgrade the GIANFAR ethernet driver to Kernelversion v3.8 is obsoete. This patch was extensivly testes with different network loads and types of traffic. There is quite a substantial user base that reports proper Ethernet function with TPlink-4900. This patch is based on the fixes from GINAFAR maintainer Claudiu Manoli. Signed-off-by: Thomas Huehn <thomas@net.t-labs.tu-berlin.de> Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38865
* kernel: update 3.10 to 3.10.18Gabor Juhos2013-11-051-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38652
* kernel: update 3.10 to 3.10.17Gabor Juhos2013-10-232-3/+3
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38506
* mpc85xx: revert the napi polling code to the one from an older kernel ↵Felix Fietkau2013-10-151-0/+162
| | | | | | | | version to fix stability issues (#14020) Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38409
* kernel: update kernel to 3.10.15Hauke Mehrtens2013-10-131-1/+1
| | | | | | Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> SVN-Revision: 38384
* kernel: update 3.10 to 3.10.13Gabor Juhos2013-09-271-1/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38228
* build: unify powerpc target cflagsFelix Fietkau2013-09-261-1/+1
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 38213