Commit graph

2057 commits

Author SHA1 Message Date
Gabor Juhos
710314990a ar71xx: dir-825-b1: use ath79_parse_ascii_mac helper
Remove the local MAC address parser function and use
the generic one instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38087
2013-09-20 16:41:32 +00:00
Gabor Juhos
2a777a272c ar71xx: dir-505-a1: use ath79_parse_ascii_mac helper
Remove the local MAC address parser function and use
the generic one instead.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38086
2013-09-20 16:41:31 +00:00
Gabor Juhos
e312a917d3 ar71xx: rename ath79_parse_mac_addr to ath79_parse_ascii_mac
Rename the function and extend it in order to make it
usable from board setup code.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38085
2013-09-20 16:41:30 +00:00
Gabor Juhos
cf5891fb39 ar71xx: fix Cameo934x initramfs image generation
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38084
2013-09-20 16:41:28 +00:00
Gabor Juhos
cd9ff05845 ar71xx: add profile and build image for the WD My Net N600 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38076
2013-09-19 22:36:43 +00:00
Gabor Juhos
37968b3be1 ar71xx: add sysupgrade support for the WD My Net N600 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38075
2013-09-19 22:36:42 +00:00
Gabor Juhos
7f9d2292fa ar71xx: add user-space support for the WD My Net N600 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38074
2013-09-19 22:36:41 +00:00
Gabor Juhos
9a2e94476a ar71xx: add kernel support for the WD My Net N600 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38072
2013-09-19 22:36:39 +00:00
Gabor Juhos
9200807877 ar71xx: wndr4300: enable HW ECC mode for the NAND controller
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38071
2013-09-19 18:43:43 +00:00
Gabor Juhos
83915a8d78 ar71xx: add ath79_nfc_set_ecc_mode helper
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38070
2013-09-19 18:43:42 +00:00
Gabor Juhos
d6fef0cb39 ar71xx: ar934x_nfc: add experimental support for hardware ECC
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38069
2013-09-19 18:43:41 +00:00
Gabor Juhos
ceecdfb1c9 ar71xx: ar934x_nfc: return error code from some low-level functions
Change some flow-level unctions to return with an
error code in order to be able to report errors
to the core code.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38068
2013-09-19 18:43:40 +00:00
Gabor Juhos
df8485c7cb ar71xx: ar934x_nfc: use devm_* functions
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38067
2013-09-19 18:43:38 +00:00
Gabor Juhos
54c0e72f9d ar71xx: add profile and build image for the TL-MR13U board
Signed-off-by: Oleg Titov <oleg.titov@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4063/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38066
2013-09-19 17:52:45 +00:00
Gabor Juhos
5e3c7d14ec ar71xx: add user-space support for the TL-MR13U board
Signed-off-by: Oleg Titov <oleg.titov@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4063/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38064
2013-09-19 17:52:42 +00:00
Gabor Juhos
e3e31835ae ar71xx: add kernel support for TP-Link TL-MR13U
This patch adds support for TP-Link TL-MR13U router with built-in 10AH
rechargeable battery.

The patch is based on kamwanlai's patch:
https://forum.openwrt.org/viewtopic.php?pid=206746#p206746

Updated to accommodate recent changes introduced with:
ar71xx: remove fs_* variables from image/Makefile

Signed-off-by: Oleg Titov <oleg.titov@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4063/
[juhosg:
  - refresh and rename rename 930-add-tl-mr13u-support.patch =>
    625-MIPS-ath79-add-tl-mr13u-support.patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38063
2013-09-19 17:52:41 +00:00
Gabor Juhos
5e23012c77 ar71xx: wnr2200: fix a typo in a LED name
Reported-by: Roman A. aka BasicXP <x12ozmouse@ya.ru>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38062
2013-09-19 17:52:40 +00:00
Gabor Juhos
fe781581df ar71xx: add profile and build image for the WNR2200 board
Signed-off-by: Aidan Kissane <aidankissane@googlemail.com>
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Patchwork: http://patchwork.openwrt.org/patch/4055/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38061
2013-09-19 16:56:51 +00:00
Gabor Juhos
3d4b042c4b ar71xx: add user-space support for the WNR2200 board
Signed-off-by: Aidan Kissane <aidankissane@googlemail.com>
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Patchwork: http://patchwork.openwrt.org/patch/4055/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38060
2013-09-19 16:56:50 +00:00
Gabor Juhos
49ed06e36f ar71xx: add kernel support for Netgear WNR2200 wireless router
This patch adds OpenWRT support for the Netgear WNR2200 (N300)
wireless router with USB.

Technical details of this router can be found at
http://www.netgear.com/home/products/wirelessrouters/work-and-play/WNR2200.aspx
and http://wikidevi.com/wiki/Netgear_WNR2200

Signed-off-by: Aidan Kissane <aidankissane@googlemail.com>
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Patchwork: http://patchwork.openwrt.org/patch/4055/
[juhosg:
  - add commit message and SoB line from the original patch
  - remove dead code from mach-wnr2200.c
  - refresh 624-MIPS-ath79-WNR2200-support.patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38059
2013-09-19 16:56:48 +00:00
Gabor Juhos
a0d6cd4f49 kernel/3.10: add new Kconfig option for firmware partition split
Add a new kernel config option for generic firmware partition
split support and change the uImage split support to depend on
the new option. Aslo rename the MTD_UIMAGE_SPLIT_NAME option to
MTD_SPLIT_FIRMWARE_NAME to make it more generic.

The patch is in preparation for multiple firmware format
support.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38002
2013-09-15 17:03:29 +00:00
Gabor Juhos
554772a665 kernel: update 3.10 to 3.10.12
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38000
2013-09-15 16:00:41 +00:00
Gabor Juhos
0aa1f0be43 ar71xx: refresh patches
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37976
2013-09-13 17:29:16 +00:00
Gabor Juhos
9754aca374 ar71xx: add support for TL-MR3040 v2
This patch adds support for building firmware images for the
TP-Link TL-MR3040 v2. Tested and working on v2.1 hardware.

Signed-off-by: Mads Hansen <d@taba.se>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37964
2013-09-13 15:28:50 +00:00
Gabor Juhos
897c00c145 ar71xx: add wireless bgn led support for dir-825-c1
I checked the GPL code drop from D-Link and tried to get the wireless
and LAN switch LEDs to light up. I found some references in
AthSDK/www/DIR-825_C1/bsp.h as well as
AthSDK/www/DIR-825_C1/rootfs/etc/sysconfig/S2gpio.sh, but in the end I
only got the led for 2.4GHz to work. Anyway, here's the patch.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37963
2013-09-13 15:01:40 +00:00
Gabor Juhos
abad211388 ar71xx: use the lzma loader for the WRT160NL
Partition layout before:
  0x000000040000-0x0000001a0000 : "kernel"
  0x0000001a0000-0x0000007e0000 : "rootfs"
  mtd: partition "rootfs" set to be root filesystem
  mtd: partition "rootfs_data" created automatically, ofs=0x350000, len=0x490000
  0x000000350000-0x0000007e0000 : "rootfs_data"

after:
  0x000000040000-0x000000140000 : "kernel"
  0x000000140000-0x0000007e0000 : "rootfs"
  mtd: partition "rootfs" set to be root filesystem
  mtd: partition "rootfs_data" created automatically, ofs=0x2f0000, len=0x4f0000
  0x0000002f0000-0x0000007e0000 : "rootfs_data"

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37915
2013-09-07 11:40:45 +00:00
Gabor Juhos
07216b9f46 ar71xx: fix NetGear initramfs image names
The '-initramfs' string is duplicated in the image names,
fix it.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37892
2013-09-03 07:22:27 +00:00
Gabor Juhos
d120ec18b2 kernel: update 3.10 to 3.10.10
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37890
2013-09-02 19:12:54 +00:00
Gabor Juhos
c8cd8c94d8 ar71xx: image: reorder Image/Build/* macros
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37889
2013-09-02 19:05:58 +00:00
Gabor Juhos
1712fdd658 ar71xx: image: simplify more oneliner macros
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37888
2013-09-02 19:05:57 +00:00
Gabor Juhos
02551d3883 ar71xx: image: simplify oneliner loader macros
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37887
2013-09-02 19:05:56 +00:00
Gabor Juhos
0cdf133d20 ar71xx: image: simplify oneliner initramfs macros
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37886
2013-09-02 19:05:55 +00:00
Gabor Juhos
b125a0f6b9 ar71xx: image: simplify oneliner buildkernel macros
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37885
2013-09-02 19:05:54 +00:00
Gabor Juhos
4a11acf81b ar71xx: optimize kernel generation
When the squashfs and jffs2 images are generated
in the same turn, the compressed kernel images
are generated twice with the same parameters.

Move compressed kernel generation into a separate
phase to avoid that.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37881
2013-09-02 18:03:39 +00:00
Gabor Juhos
0ceeb6a068 ar71xx: image: dynamically generate Image/Build/Template/* macros
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37879
2013-09-02 16:10:44 +00:00
Gabor Juhos
122a61aa49 ar71xx: configure OBS4 line on TL-WR841N-v8/MR3420v2
It also fixes USB Power on MR3420v2.

This time we took the information from the source of GPL:
http://www.mail-archive.com/openwrt-devel@lists.openwrt.org/msg18970.html
Confirmed and tested:
https://dev.openwrt.org/ticket/13201#comment:41
Thanks to oguretsagressive for testing.

Signed-off-by: Dmytro <dioptimizer@gmail.com>

SVN-Revision: 37878
2013-09-02 16:09:12 +00:00
Gabor Juhos
1f007eeca1 ar71xx: remove fs_* variables from image/Makefile
Those are not needed since we are generating the
initramfs images along with the others.

Remove the variables and use the template names
directly.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37876
2013-09-02 09:24:59 +00:00
Gabor Juhos
e7a5947576 ar71xx: fix initramfs image generation for Cameo933x profiles
Initramfs images are not generated for profiles which
are using the squashfs-only template. Add the missing
'Image/Build/Template/squashfs-only/initramfs' to fix
that.

Also, 'Image/Build/Cameo933x/initramfs' uses wrong
parameters for 'MkuImageLzma/initramfs' due to a
misplaced commma. Remove that to fix the generated
initramfs images.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37871
2013-09-02 07:42:03 +00:00
Gabor Juhos
dd421c00a2 ar71xx: add some pending patches
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37849
2013-08-27 18:06:49 +00:00
Gabor Juhos
d6b4b8f612 ar71xx: don't hardwire cpu_has_dsp{,2} to zero
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37845
2013-08-27 10:48:25 +00:00
Gabor Juhos
9af6a5a88f ar71xx: don't register USB device on WNDAP360
Apparently registering usb device on newest trunk causes
this AP not to boot...
Since there is no USB socket in that device anyway this
can be simply removed (and device boots then no problem).

[juhosg:
  - tweak subject line and description,
  - remove #include "dev-usb.h",
  - remove 'select ATH79_DEV_USB' from Kconfig]

Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37844
2013-08-27 10:48:24 +00:00
Gabor Juhos
42914b0b0e ar71xx: build factory image for DIR-505 A1
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37834
2013-08-24 10:11:53 +00:00
Gabor Juhos
f7eb3d94b9 ar71xx: allow to override kernel size in the CameoHornet profile
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37833
2013-08-24 10:11:45 +00:00
Gabor Juhos
043edd8074 kernel: update 3.10 to 3.10.9
Also refresh 3.10 patches.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37832
2013-08-23 17:31:04 +00:00
Luka Perkov
5064c81457 ar71xx: add support for hornet-ub-x2
The hornet-ub-x2 is hornet-ub variant with double more flash and ram.

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 37788
2013-08-15 00:57:47 +00:00
John Crispin
eb7669fc5d ar71xx: fix TL-WR710N board detection
Fix for recognize TL-WR710N

http://patchwork.openwrt.org/patch/3946/

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 37782
2013-08-14 18:15:58 +00:00
John Crispin
6d7d09a126 ar71xx: Fix factory image for DIR 505 A1
Based on the original firmware, the file must have the tag
HORNET-PACKET-DIR505A1-3, not HORNET-RT-DIR505A1-3.

http://patchwork.openwrt.org/patch/3945/

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>

SVN-Revision: 37781
2013-08-14 18:15:49 +00:00
Felix Fietkau
bbd4d4c8b8 ar71xx: ethernet: reduce tx dma ring size further to improve cache footprint
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37765
2013-08-13 10:35:10 +00:00
Felix Fietkau
58e049ea80 ar71xx: ethernet: reduce tx and rx DMA ring size to improve cache footprint
256 entries is a bit excessive, even for gigabit speeds

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37762
2013-08-12 17:26:03 +00:00
Felix Fietkau
f43b4ea962 ar71xx: ethernet: cache skb->len in the tx function to avoid accessing it again in completion
Improves ethernet performance, especially during bridging

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 37761
2013-08-12 17:26:00 +00:00