summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx
AgeCommit message (Collapse)Author
2014-03-12ar71xx: rb95x: use correct SPI flash addressjuhosg
The flash address passed to rb_init_info() is bogus, use the predefined AR71XX_SPI_BASE macro instead. Compile tested only. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39891 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-12ar71xx: ar934x_nfc: fix memory initialization bugjuhosg
sizeof(array_from_function_definition) gives back the size of the pointer. sizeof(type) * array_size should be used in memset. Signed-off-by: David Völgyes <david.volgyes@gmail.com> Patchwork: http://patchwork.openwrt.org/patch/4950/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39890 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-28ar71xx: Add 16MB Flash version for Embedded Wireless Dorin Platformnbd
Signed-off-by: Embedded Wireless GmbH <info at embeddedwireless.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39764 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-28ar71xx: adjust ew-dorin platform for LAN+WAN setupnbd
Signed-off-by: Embedded Wireless GmbH <info at embeddedwireless.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39763 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-25ar71xx: fix failsafe acces on several devicesjuhosg
The ar71xx platform always uses the eth0 interface to provide access to the device in failsafe mode. Due to this, failsafe access is broken on devices where the LAN ports are connected to the 'eth1' interface. Update the relevant script to correctly set the ifname variable for these devices. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39752 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23kernel: update 3.10 to 3.10.32juhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39707 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23ar71xx: define status LED for the RB91x boardsjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39705 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23ar71xx: rb91x: register GPIO LEDsjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39704 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23ar71xx: rb91x: add SPI device for the serial shift registerjuhosg
The RB91x boards are using a serial shift register connected to the SPI bus to drive some of the LEDs. Rework the board setup code to register a SPI device for that. This makes it possible to use the 'spi-74x164' driver to control the device. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39703 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23ar71xx/mikrotik: enable the 74x164 GPIO driverjuhosg
That will be used to drive the 74HC595 serial-in/parallel-out 8-bits shift register which can be found on some RouterBOARDs. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39702 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23ar71xx: improve platform device support in the gpio-74x164 driverjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39701 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-23ar71xx: rb91x-nand: rewrite to use GPIO APIjuhosg
Rewrite tha rb91x-nand driver to use GPIO API to modify the NAND control lines. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39700 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22ar71xx: rb91x: register a gpio-latch platform devicejuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39699 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22ar71xx/mikrotik: enable the GPIO latch driverjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39698 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22ar71xx: add a generic GPIO latch driverjuhosg
It will be used for the Mikrotik boards. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39697 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22ar71xx/mikrotik: enable small sector erase in the m25p80 driverjuhosg
The serial flash devices used on the ROuterBOARDs are supporting 4KiB erase blocks. Enable the small sector erase option in the m25p80 driver to avoid superfluous erase/write of adjacent blocks. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39696 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22ar71xx: spi-ath79: fix initial GPIO CS line setupjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-22ar71xx: refresh unaligned access hacks patchjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39694 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20ar71xx: rb91x: fix pll_1000 value for eth0 to avoid packet lossjuhosg
When the RB91x device uses a GbE link the connection suffers from packet loss: root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 20 -q PING 192.168.1.254 (192.168.1.254): 65507 data bytes --- 192.168.1.254 ping statistics --- 20 packets transmitted, 9 packets received, 55% packet loss round-trip min/avg/max = 4.570/4.815/4.999 ms Using a different PLL value fixes the issue. root@OpenWrt:/# ping 192.168.1.254 -s 65507 -c 100 -q PING 192.168.1.254 (192.168.1.254): 65507 data bytes --- 192.168.1.254 ping statistics --- 100 packets transmitted, 100 packets received, 0% packet loss round-trip min/avg/max = 4.449/5.413/13.870 ms Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39642 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-20ar71xx: Add support for MikroTik RB951Ui-2HnDjuhosg
I noticed that the patch at http://patchwork.openwrt.org/patch/4017/ for adding support for the MikroTik RouterBOARD 951Ui-2HnD had been abandoned because it wasn't generated and sent to the mailing list correctly and doesn't apply as a result. I have cleaned up this patch. When testing this on real hardware, I also noticed that wireless didn't work, so this patch fixes that as well. This patch applies cleanly to SVN 39392. Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com> Patchwork: http://patchwork.openwrt.org/patch/4773/ [juhosg: - drop the 'rb951ui_wlan_init' function and rework the code to use the recently introduced rb95x_wlan_init function instead, - fix GPIO number of the port5 LED, - rename LEDs according to the standard LED naming conventions, and use 'rb' prefix in the names] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39641 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-19ar71xx: add profile and build image for TP-Link TL-WDR4900 v2.0 boardjuhosg
Patch-by: TenNinjas <tenninjas@tenninjas.ca> Patchwork: http://patchwork.openwrt.org/patch/4850/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39637 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-19ar71xx: add user-space support for TP-Link TL-WDR4900 v2.0 boardjuhosg
Patch-by: TenNinjas <tenninjas@tenninjas.ca> Patchwork: http://patchwork.openwrt.org/patch/4849/ [juhosg: - use the Archer C7 specific LED setup instead of adding identical code] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39636 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-19ar71xx: add kernel support for the TP-Link TL-WDR4900 v2.0 boardjuhosg
Patch-by: TenNinjas <tenninjas@tenninjas.ca> Patchwork: http://patchwork.openwrt.org/patch/4848/ [juhosg: - rename and refresh kernel patch, - merge the board setup code into mach-archer-c7.c and drop mach-tl-wdr49000-v2.c] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39635 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18ar71xx: fix unaligned access hacks for tcp timestampsjuhosg
This missing bit of the hack saves hugely on instruction traps on tcp connections to ar71xx based routers. Patch-by: Dave Taht <dave.taht@bufferbloat.net> Patchwork: http://patchwork.openwrt.org/patch/4905/ [juhosg: adjust subject, refresh kernel patch] Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39626 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-18ar71xx: WNR2200: fix mounting root fs problemjuhosg
Solves ticket #14356 <https://dev.openwrt.org/ticket/14356> Without this patch, UART output will show only 4 partitions: [ 0.740000] 4 cmdlinepart partitions found on MTD device spi0.0 [ 0.750000] Creating 4 MTD partitions on "spi0.0": [ 0.750000] 0x000000000000-0x000000050000 : "u-boot" [ 0.760000] 0x000000050000-0x000000070000 : "u-boot-env" [ 0.770000] 0x000000070000-0x0000007f0000 : "firmware" [ 0.790000] 0x0000007f0000-0x000000800000 : "art" and then linux complains :VFS: Cannot open root device "(null)" With this patch, UART out will show 7 partitions: [ 0.740000] 4 cmdlinepart partitions found on MTD device spi0.0 [ 0.750000] Creating 4 MTD partitions on "spi0.0": [ 0.750000] 0x000000000000-0x000000040000 : "u-boot" [ 0.760000] 0x000000040000-0x000000050000 : "u-boot-env" [ 0.770000] 0x000000050000-0x0000007f0000 : "firmware" [ 0.780000] 2 netgear-fw partitions found on MTD device firmware [ 0.780000] 0x000000050000-0x00000014b440 : "kernel" [ 0.790000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.800000] 0x00000014b440-0x0000007f0000 : "rootfs" [ 0.810000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.820000] mtd: device 4 (rootfs) set to be root filesystem [ 0.830000] 1 squashfs-split partitions found on MTD device rootfs [ 0.830000] 0x000000340000-0x0000007f0000 : "rootfs_data" [ 0.840000] 0x0000007f0000-0x000000800000 : "art" This patch is tested against r39502 of trunk. Signed-off-by: Jonathan Chang <changcs@santos.ee.ntu.edu.tw> Patchwork: http://patchwork.openwrt.org/patch/4870/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39625 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-02-13ar71xx: fix mtdpartsize macro in image Makefile (#14961)jow
The mtdpartsize macro triggers shell errors on various Linux distributions when the partname argument $(1) does not appear within the partmap $(2). Change the sed pattern to only emit anything if a successful substitution occured and only evaluate the arithmetic expression if something was printed by the sed program. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39583 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-30ar71xx: dragino2: add missing sysupgrade support.juhosg
The original dragino2 board support was missing some changes from the upstream svn repository (http://svn.dragino.com/dragino2) that supported sysupgrade. [juhosg: change subject] Signed-off-by: Karl Palsson <karlp@remake.is> Patchwork: http://patchwork.openwrt.org/patch/4801/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39429 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-26ar71xx: wpe72: set active_low flag for the reset buttonjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39401 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-26ar71xx: wp543: set active_low flag for the buttonsjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39400 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-26kernel: update 3.10 to 3.10.28juhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39399 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-25ar71xx: image: reserve 4 erase blocks on the TP-Link devicesjuhosg
This ensures that the generated images will have enough erase blocks for JFFS2. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39397 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-25ar71xx: archer c7: define LEDs connected to the AR8327 switchjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39395 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-25ar71xx: image: move WNDAP360 macrojuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39394 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-24ar71xx: fix bad RX sensitivity on newer TL-WDR4300 boardsjuhosg
On recent TL-WDR4300 boards the external LNAs of the 2.4GHz interface are connected to GPIO lines. Because these GPIO lines are disabled by default, the RX sensitivity of the device is quite bad. Setup the GPIOs of the external LNAs to fix the issue. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39392 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-24ar71xx: image: generate sysupgrade images for the Compex boardsjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39391 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-24ar71xx: add sysupgrade support for the Compex boardsjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39390 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-24ar71xx: image: use a single firmware partition on Compex devicesjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39389 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-24ar71xx: enable MTD_SPLIT_LZMA_FW optionjuhosg
It will be used for Compex devices. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39388 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-24ar71xx: image: detect partition sizes in the Image/Build/Ath macrojuhosg
Get the size of the mtd partitions directly from the MTD layout and remove the superfluous macro parameters. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39384 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-24ar71xx: image: fix size verification in the CatFiles macrojuhosg
The macro checks the size of the rootfs image even if the second parameter of the macro contains the size of an eraseblock. It is wrong because the size of the kernel image will be adjusted to the next eraseblock and the resulting image might be too large. Fix the macro to check the size of the final image instead of the rootfs image. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39383 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-23ar71xx: ap83: define mtd layout via command linejuhosg
Also use the RKuImage macro becasue the original firmware starts with the rootfs. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39379 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-23ar71xx: ap81: define mtd layout via command linejuhosg
Also use the RKuImage macro becasue the original firmware starts with the rootfs. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39378 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-23ar71xx: image: show size limit in warning messagesjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39376 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-23ar71xx: add initramfs image support for Compex devicesjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39375 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-23ar71xx: wp543: use KEY_RESET code for the sw4 buttonjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39374 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-23ar71xx: create wndr3700 network config from uci-defaultsluka
Since that was the last configuration in defconfig directory we can drop the defconfig init script too. Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39373 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-21ar71xx: mynet-n750: define LEDs connected to the AR8327 switchjuhosg
Signed-off-by: Felix Kaechele <heffer@fedoraproject.org> Patchwork: http://patchwork.openwrt.org/patch/4743/ Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39361 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-20ar71xx: tl-wr1043nd-v2: define LEDs connected to the AR8327 switchjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39346 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-20ar71xx: tl-wdr4300: define LEDs connected to the AR8327 switchjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39345 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-01-20ar71xx: set default LED config for the RB2011* boardsjuhosg
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39344 3c298f89-4303-0410-b956-a3cf2f4a3e73