Commit Graph

651 Commits (90daff4cf8a86622012217d3be7ce136c313a896)

Author SHA1 Message Date
Felix Fietkau 2ce833060a target: ar71xx: add support for COMFAST CF-E316N v2 board
This adds full support (sans sysupgrading from vendor firmware) for the COMFAST
CF-E316N v2 (aka CF-E316V2, CF-E316N-V2 and CF-E316Nv2.0, no FCC ID) by
Shenzhen Four Seas Global Link Network Technology Co., Ltd (this company is
actively refusing to provide GPL'd sources for the OpenWrt version they ship
with the device, damn them).

Signed-off-by: Paul Fertser <fercerpav@gmail.com>

SVN-Revision: 46852
9 years ago
Jonas Gorski b958c12d2c image: move netgear-image to top and rename to -dni
Use the same naming as netgear-chk.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46791
9 years ago
Jonas Gorski 156a25b9c4 ar71xx: rename NETGEAR_ variables to their netgear names
Netgear names them BOARD_ID and HW_ID, so we should do the same.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46790
9 years ago
John Crispin af60c367b7 ar71xx: add support for TP-Link TL-WDR6500 v2
Signed-off-by: Weijie Gao <hackpascal@gmail.com>

This patch adds support for TP-Link TL-WDR6500 v2.

The firmware has a U-Boot header for kernel, and a TP-LINK v2 header for
the whole firmware, so I have to create a new firmware creation method.

SVN-Revision: 46663
9 years ago
John Crispin 4463bc017b ar71xx: Add support for Black Swift
Add support for the Black Swift board:
http://www.black-swift.com/

Took relevant parts and slightly adapted from:
https://github.com/blackswift/openwrt/blob/master/bsb.patch

Signed-off-by: Bruno Randolf <br1@einfach.org>

SVN-Revision: 46651
9 years ago
Jonas Gorski bed330204a image.mk: move KDIR_TMP definition to a central location
Instead of each target defining it the same, move the KDIR_TMP
definition to include/image.mk. In addition Image/Build/SysupgradeNAND
already requires KDIR_TMP to be set, so it makes sense to have it
globally defined.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46592
9 years ago
Jonas Gorski dbe4173b20 image: fix jffs2(_nand) image generation
Variables dependend on JFFS2_BLOCKSIZE and NANDBLOCK_SIZE are used
for template generation, so need to be present before inclusion of
image.mk in target image Makefiles.
So move all declarations to before any includes.

Fixes: r42878 ("image.mk: clean up and parallelize mkfs calls")
Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 46564
9 years ago
Felix Fietkau 9c59b3035f ar71xx: fix mr3220 device profile (#19990)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46541
9 years ago
John Crispin 5cd49bb067 ar71xx: add support for Onion Omega
This patch adds support for the Onion Omega.

https://onion.io/omega

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Acked-by: Boken Lin <bl@onion.io>
Tested-by: Jacky Huang <huangfangcheng@163.com>

SVN-Revision: 46458
9 years ago
John Crispin b98205c946 ar71xx: Add support for AP147-010 reference board
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 46457
9 years ago
Felix Fietkau d26e8d9439 Revert "ar71xx: Add support for Cisco-Linksys WAP4410N" (r46250)
The commit is incomplete, it does not even build the mach-* file

This reverts commit 6e6adcf7a197b1802cb728ddcccf05f890ca0574

SVN-Revision: 46425
9 years ago
John Crispin 2d955b51fe ar71xx: use automatic firmware partition splitting for devolo dLAN devices
Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46414
9 years ago
John Crispin 096b3759a9 build: Prevent more gzip timestamps
To improve reproducibility, prevent the inclusion of timestamps
in the gzip header.

Signed-off-by: Reiner Herrmann <reiner@reiner-h.de>

SVN-Revision: 46361
9 years ago
John Crispin 1eccdb4fd4 ar71xx: add support for the devolo dLAN pro 1200+ WiFi ac
Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46342
9 years ago
John Crispin 02984a6e09 ar71xx: add support for the devolo dLAN pro 500 Wireless+
Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>

SVN-Revision: 46338
9 years ago
John Crispin dc2c89c64c ar71xx: fix board name ordering
r46248 added case statements in the same places

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 46274
9 years ago
John Crispin 08790c5ee8 ar71xx: Add support for Cisco-Linksys WAP4410N
This patch adds support for the Cisco WAP4410N, an access point that uses the
AR9132 SoC. Web upgrades from stock are not yet possible, UART access required
for the initial flash.

Signed-off-by: Ryan A Young <rayoung@utexas.edu>

SVN-Revision: 46250
9 years ago
John Crispin d535218230 ar71xx: add support for D-Link DIR-615 rev. Ix board
Based on trunk r46212.

Signed-off-by: Jaehoon You <teslamint@gmail.com>

SVN-Revision: 46248
9 years ago
John Crispin 0e2d9769be ar71xx: add support for TL-WR741ND v5
This device is identical to the TL-WR740N v5, it even uses the same HWID (which
wasn't the case for older TL-WR741ND revisions).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 46238
9 years ago
John Crispin 055663201b ar71xx: Add Support for the Bitmain Antminer S3
This patch adds support for the Bitmain Antminer S3 Cryptocurrency Miner

http://wiki.openwrt.org/toh/bitmain/s3

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 46236
9 years ago
John Crispin 6fc2e94120 ar71xx: add support for ubnt rocket-m ti
rocket-m titanium is a device based on ar9344 with 802.11af poe.
It doesn't use the SoC wifi, instead it's using an ar9280 connected to
the pci bus. The gps version of the rocket-m ti is working, but
gps is untested. The gps is connected to the first serial port.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 46234
9 years ago
Felix Fietkau b26077026f ar71xx: add support for ap143
Signed-off-by: Miaoqing Pan <miaoqing@codeaurora.org>

SVN-Revision: 46208
9 years ago
Felix Fietkau abe86db3c2 ar71xx: fix UAP-PRO images
- it should be BOARDNAME instead of BOARD_NAME
- kernel partition should be padded to 1536k (somehow this padding was lost in translation to BuildCode in bc797c73f6328941b2194d144385655ad9297e7c)

Signed-off-by: Roman Yeryomin <roman@advem.lv>

SVN-Revision: 46193
9 years ago
Luka Perkov 6de9aeee35 ar71xx: add support for tp-link wr740n v5.0 (EU)
TP-Link ships wr740n v5.0 to Romania (so probably everywhere except
China) with 4 MB flash and 32 MB memory (confirmed by their local
support). This patch adds support for the v5.0 clone of v4, i just
tested it on my own v5.0 router and it works.

Signed-off-by: Daniel Petre <daniel.petre@posteo.net>

SVN-Revision: 46115
9 years ago
John Crispin 710a17e16d ar71xx: add profile and build image for EnGenius EPG5000.
Signed-off-by: Christian Beier <cb@shoutrlabs.com>

SVN-Revision: 46049
9 years ago
John Crispin e85f3471ba ar71xx: add support for TL-WR720N-v4.
The hardware should be almost the same as TL-WR720N-v3.  WiFi and LAN networks
were tested by "Lo Yuk Fai <loyukfai@gmail.com>".  Failsafe and slider switch
were tested by "Wong min <alpha080@gmail.com>".

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 46046
9 years ago
John Crispin 8399be545a ar71xx: add support for compex wpj531
tftpboot 0x80500000 openwrt-ar71xx-generic-wpj531-16M-squashfs-sysupgrade.bin
erase 0x9f030000 +$filesize
erase 0x9f680000 +1
cp.b $fileaddr 0x9f030000 $filesize

Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 46045
9 years ago
John Crispin 694dd581eb ar71xx: Add Support for the Bitmain Antminer S1
This patch adds support for the Bitmain Antminer S1 Cryptocurrency Miner

http://wiki.openwrt.org/toh/bitmain/s1

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>
Acked-by: James Hilliard <james.hilliard1@gmail.com>

SVN-Revision: 46044
9 years ago
Felix Fietkau 614678d929 ar71xx: fix hw id of tl-wr710n image (#19902)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 46032
9 years ago
Felix Fietkau 9e2ec0a55c ar71xx/image: move ubnt images to new BuildCode
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45983
9 years ago
Felix Fietkau b5798e07a5 ar71xx/image: add build step mkubntimage2 mkubntkernelimage for unifi boards
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45982
9 years ago
Felix Fietkau 89aadeeae4 ar71xx/image: new build step Build/mkubntimage for ubnt factory images
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45981
9 years ago
Felix Fietkau 677741ef95 ar71xx: use Image/BuildLoaderPatched for TPLINK-SAFELOADER images
Building the loader in Image/Build/TPLINK-SAFELOADER would break the image
builder as no target compiler is available in that stage.

Fixes #19580

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45855
9 years ago
Felix Fietkau 64b789db56 ar71xx: add Image/BuildLoaderPatched macro
In contrast to Image/BuildLoader, Image/BuildLoaderPatched first patches the
kernel command line in the image and then builds the loader without command
line. This allows building loaders for systems which don't boot correctly when
the kernel command line is provided by the loader (like the TP-LINK CPE series).

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 45854
9 years ago
Felix Fietkau 1520df3387 ar71xx: use Image/BuildKernel/Initramfs template to fix image builder errors
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45838
9 years ago
Felix Fietkau 7c5c213621 ar71xx: fix tl-wr710n images (#19692)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45756
9 years ago
John Crispin 66950455b7 ar71xx: Add support for the Meraki MR12 & MR16
This patch is to add support for the Meraki MR12 and MR16 Access Points.
Currently everything is working, minus the 2nd NIC interface on the MR12
which is built into the SoC.

Signed-off-by: Chris R Blake <chrisrblake93 at gmail.com>

SVN-Revision: 45726
9 years ago
Felix Fietkau 6ceb1b0358 ar71xx: convert tl-wr741nd v1/v2 to new image building code, add infrastructure for building the loader
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45672
9 years ago
Felix Fietkau 7b01a650f8 ar71xx: allow mktplinkfw calls from the new image code to fail (because of oversized images)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45646
9 years ago
Felix Fietkau 293b82501c ar71xx: allow tp-link initramfs images to exceed size limits
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45645
9 years ago
Felix Fietkau 5b14d96ded ar71xx/image: move TPLINK-LZMA image to new build code
There are 2 images missing: TLWR2543 TLWR1043V2 which have special properties.
v2: set correct DEVICE_PROFILES for all images.
v2: migrate TP-LINK TL-WR710N v2 which was committed after v1.
v2: split very very long line `TARGET_DEVICES +=` into smaller parts

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45643
9 years ago
Luka Perkov 4a3850b397 ar71xx: make art partition read only on 16MB ew-dorin board
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45627
9 years ago
John Crispin a34db67857 Add support for Ubiquiti Rocket M XW devices
This patch adds support for the XW version of the Rocket M series devices
manufactured by Ubiquiti, based on the Atheros AR9342 SoC.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 45553
9 years ago
John Crispin 34a82b7ef9 ar71xx: add TP-LINK TL-WR710N v2
TP-Link TL-WR710n v2 looks like v1, but has less memory (4MB).

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

SVN-Revision: 45538
9 years ago
Luka Perkov 9d76de9771 ar71xx: add support for compex wpj344
Signed-off-by: Christian Mehlis <christian@m3hlis.de>
Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 45527
9 years ago
Felix Fietkau 610ce30c3a Revert "ar71xx/image: move TPLINK-LZMA image to new build code" (r45490)
Profile definitions need to be checked and fixed before this patch can
be applied again.

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

SVN-Revision: 45511
9 years ago
John Crispin d9ebcce56c ar71xx/image: remove duplicated rootfs in new tplink initramfs images
The new building code included the rootfs twice when building tplink initramfs images.
To make it more readable move initramfs into an own build step
Build/mktplinkfw-initramfs.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45491
9 years ago
John Crispin 09c4b0e8f3 ar71xx/image: move TPLINK-LZMA image to new build code
There are 2 images missing: TLWR2543 TLWR1043V2 which have special properties

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45490
9 years ago
John Crispin 13204f6a35 ar71xx/image: add template tplink-16mlzma
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45489
9 years ago
John Crispin 1efdccc055 ar71xx/image: fix imagesize of template tplink-8mlzma
The new image size is verified by a running tplink device and checked
against mktplinkfw source code.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45488
9 years ago
Felix Fietkau df7bb89edd ar71xx: fix new mktplinkfw image code - flags for sysupgrade vs factory were swapped (fixes #19400)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45281
9 years ago
Felix Fietkau f76a85515a ar71xx: add missing id for WNR2000v3 image (fixes #18959)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45054
9 years ago
Felix Fietkau c25bf32f8d ar71xx: fix image size checks for WNDR3700
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 45030
9 years ago
Felix Fietkau 34b51b6f6f ar71xx/image: move wdr3500/wdr3600/wdr4300 to new building code
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 45000
9 years ago
Felix Fietkau 8d2d62ca95 ar71xx/image: add tplink device template for new building code
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 44999
9 years ago
Felix Fietkau 41785176ec ar71xx/image: add Build/mktplinkfw as buildstep for new build code
Use `mktplinkfw sysupgrade` or `mktplinkfw factory` or
`mktplinkfw image`

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 44998
9 years ago
John Crispin a0c4419b0d ar71xx: improve WD's My Net Wi-fi Range Extender image creation
Previously, the generated images for the My Net Wi-fi Range Extender
wouldn't always work (and panic) due to the fixed mtd offsets and
sizes for the kernel and rootfs. This patch fixes the problem by
utilizing the shared Cybertan's partition parser to recalculate
the mtd partitions for every image dynamically everytime.

Reported-by: Pascal Paradis <peparadis@yahoo.com>
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>

SVN-Revision: 44665
9 years ago
Luka Perkov b065411a85 ar71xx: add support for compex wpj558
OpenWrt can be flashed with following uboot commands:

tftpboot 0x80500000 openwrt-ar71xx-generic-wpj558-16M-squashfs-sysupgrade.bin
erase 0x9f030000 +$filesize
cp.b $fileaddr 0x9f030000 $filesize

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

SVN-Revision: 44620
9 years ago
John Crispin 9358a8a798 ar71xx: TL-WA7210n v2 support
This patch adds support for TP-Link TL-WA7210n[0]

[0] http://www.tplink.com/en/products/details/?model=TL-WA7210N

Signed-off-by: Hendrik Frenzel <hfrenzel@scunc.net>

SVN-Revision: 44526
9 years ago
John Crispin 45c912ba13 ar71xx: Add profile and build image for TP-Link MR12U v1
This patch adds corrected profile and build image for the TL-MR12U board.

Unfortunately i cannot test the factory image since i can't find anywhere
the original chinese firmware but
the generated openwrt-ar71xx-generic-tl-mr12u-v1-squashfs-sysupgrade.bin
worked just fine over a modified mr3040 factory image i managed to modify
to initially flash the mr12u from the original firmware.

Proper kernel support probably should be added since cat /proc/cpuinfo shows
MR13U.

Signed-off-by: Daniel Petre <daniel.petre@gmail.com>

SVN-Revision: 44427
9 years ago
John Crispin a5b60de253 ar71xx: Add support for MERCURY MAC1200R
This patch adds support for MERCURY MAC1200R, a dual band 802.11bgn + 802.11ac
router based on the AR9344, with QCA988x ath10k radio and 5 Fast Ethernet ports

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>

SVN-Revision: 44359
9 years ago
John Crispin cde2225c7c ar71xx: add support for the TP-LINK TL-WR941ND v5
This device is very similar to the TL-WR841N v8, only two LED GPIOs are
different.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 44255
9 years ago
John Crispin baaef42952 ar71xx: Revert "added board support for compex wpj558"
This reverts commit f7873071561d82e75ba2dc46433a2982fef8ac6f.

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 44245
9 years ago
John Crispin bc906ca59e added board support for compex wpj558
Signed-off-by: Christian Mehlis <christian@m3hlis.de>

SVN-Revision: 44237
9 years ago
John Crispin 31fd66f808 ar71xx: add Netgear WNR1000v2/WNR1000v2-VC support (#18633)
The board is already supported by OpenWrt. WNR1000v2/WNR1000v2-VC are
pretty much the same as WNR2000v3/WNR612v2, therefore the same
initialization code and flash layout is used.

Signed-off-by: Ștefan Rusu <saltwaterc@gmail.com>
Tested-by: Douglas Fraser <1dsfraser@gmail.com>

SVN-Revision: 44221
9 years ago
John Crispin df2e312100 ar71xx: add support for TP-LINK TL-WR843ND v1
TP-LINK TL-WR843ND v1 is the same model like wr41, but with
Power over Ethernet on wan port.

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

SVN-Revision: 44085
9 years ago
John Crispin ae70358b1b ar71xx: add support for the UniFi AP Outdoor Plus
the GPIO controlling the rf filter is not configured properly by this patch.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 44077
9 years ago
John Crispin 4961c7d0f5 ar71xx: add support for TL-WA701ND v2
Signed-off-by: Luigi Tarenga <luigi.tarenga@gmail.com>

SVN-Revision: 44063
9 years ago
Felix Fietkau 547ab2de5a ar71xx: fix console string in images
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43917
10 years ago
Felix Fietkau 9229b34d92 ar71xx: port wndr3700/3800 to the new image building code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43910
10 years ago
Felix Fietkau 492bcad8ec ar71xx: port carambola2 to the new image building code
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43909
10 years ago
Imre Kaloz 211cac98d5 Belkin AC 1750 DB (F9K1115v2) support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43734
10 years ago
John Crispin 610311436e ar71xx: Add build profile for the gl-inet 6416A and 6408A
Patch to add the buildprofile for the GL-Init-6408A-v1 and the GL-Inet-6416A-v1
Both devices are identical, only difference is one comes with 8MB flash and
the other with 16MB flash

Official website: http://www.gl-inet.com/w/?page_id=241&lang=en
Comprehensive list of specs: https://revspace.nl/GL-Inet

Signed-off-by: Martijn Zilverschoon <martijn@friedzombie.com>

SVN-Revision: 43462
10 years ago
Imre Kaloz 974f286261 add D-link DGL-5500 A1 support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43401
10 years ago
John Crispin 47ab1cbf23 ar71xx: add support for TP-LINK CPE210/220/510/520
This adds support for the TP-LINK CPE210/220/510/520 (Pharos series). These
devices are very similar to the Ubiquiti NanoStations, but with better specs:
faster CPU, more RAM, 2x2 MIMO.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 43385
10 years ago
Imre Kaloz 15f6f67d18 Netgear R6100 support
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 43382
10 years ago
John Crispin f210f3811a ar71xx: Added support for D-link DHP-1565 rev. A1
Signed-off-by: Jacek Kikiewicz <jaceq@aol.pl>

SVN-Revision: 43307
10 years ago
John Crispin 305c1431e3 ar71xx: create profile and build image for the OpenMesh MR900 board
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 43264
10 years ago
John Crispin 2c72ffc154 ar71xx: add support for Netgear WNR2000v4
Signed-off-by: Michaël Burtin <mburtin@gmail.com>

SVN-Revision: 43173
10 years ago
Felix Fietkau a1837135e0 ar71xx: add support for buffalo WZR-450HP2
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 43026
10 years ago
John Crispin 32acfefb6a ar71xx: unify usage of IMAGE_PROFILE instead of PROFILE.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42992
10 years ago
John Crispin 182d63bc40 ar71xx: add comments for Image/BuildLoader{, Alone}.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42990
10 years ago
John Crispin 70def60b04 ar71xx: fix seama factory type image generation.
Currently JFFS2 end-of-filesystem marker 0xdeadc0de is included the
computation of image's MD5 checksum as part of the seama header.  But
OpenWrt will erase blocks including and after the marker thus
invalidating the checksum after the first boot.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 42915
10 years ago
John Crispin 73acd5050f ar71xx: add support for TP-LINK TL-WR847N v8 (clone of TL-WR841N/ND v8)
Signed-off-by: Jaehoon You <teslamint@gmail.com>

SVN-Revision: 42792
10 years ago
John Crispin 7dbbdfb61f ar71xx: add qihoo 360 c301 router support
Qihoo 360 C301 is a dual band wireless router supports 802.11n and 802.11ac.
Its chipset is AR9344 + AR9882 with two 16MB flashes.

This patch adds its initial support.

v2:
* use mtd_get_mac_ascii to fetch MAC address for ath10k.
* use ath79_register_pci to initialize AR9882.

Signed-off-by: Weijie Gao <hackpascal@gmail.com>

SVN-Revision: 42552
10 years ago
John Crispin cb37fe5ca5 ar71xx: add board support for ubnt loco m xw
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>

SVN-Revision: 42549
10 years ago
John Crispin 5d9b1e7ec1 ar71xx: build factory image for EnGenius ESR900 and ESR1750
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

SVN-Revision: 42189
10 years ago
John Crispin 340f87a20f ar71xx: changed the EnGenius ESR900 mtdparts to match that of the ESR1750 since they have the same flash layout
Signed-off-by: Forest Crossman <cyrozap@gmail.com>

SVN-Revision: 42177
10 years ago
Imre Kaloz ecba34a3ee add support for the NC-LINK SMART-300
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 42130
10 years ago
Steven Barth e7be51a0fd ar71xx: Add support for the WNDR3800CH
Apparently this is a fairly common refurb unit of the 3800 series now,
with merely the recognition string changed in the boot loader.

Signed-off-by: Dave Taht <dave.taht@bufferbloat.net>

SVN-Revision: 42023
10 years ago
Felix Fietkau b855faecc0 ar71xx: update Carambola2 platform data
Change list:
 * Remove button info on GPIO12, there is no button there.
 * Remove nvram mtd partition, as it's not used for anything, saves 64k for user data.

Tested building for carambola2 target.

Signed-off-by: Mantas Pucka <mantas@8devices.com>

SVN-Revision: 41993
10 years ago
Imre Kaloz dc628f2e08 add support for the archer c5
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 41814
10 years ago
John Crispin eae9b2541a ar71xx: split wndr4300 and wndr3700v4 into 2 seperate mips machines
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41788
10 years ago
John Crispin 34c9bc0596 ar71xx: create profile and build image for the OpenMesh OM5P board
Signed-off-by: Marek Lindner <marek@open-mesh.com>
[sven@open-mesh.com: Rebased]
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>

SVN-Revision: 41775
10 years ago
John Crispin d19530c693 ar71xx: Add UBNT airGateway support
This patch adds support for the Ubiquiti Networks airGateway.

Based in part on code posted by David Hutchison <dhutchison@bluemesh.net> on openwrt-devel:
  https://lists.openwrt.org/pipermail/openwrt-devel/2013-December/023035.html

Signed-off-by: Matthew Reeve <mreeve@tenxnetworks.com>

SVN-Revision: 41766
10 years ago
Gabor Juhos 2adff1734f ar71xx: add profile and build image for the EnGenius EAP300 v2 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41661
10 years ago
Gabor Juhos 495aef39f4 ar71xx: add profile and build image for the Tube2H board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41652
10 years ago
Gabor Juhos fec2596282 ar71xx: add profile and build image for the EnGenius ESR900
Signed-off-by: Forest Crossman <cyrozap@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/5715/
[juhosg: change subject]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41642
10 years ago
John Crispin e503eeb465 ar71xx: add support for nanostation m xw
SVN-Revision: 41636
10 years ago
Gabor Juhos c4c25e741e ar71xx: add profile and build image for EnGenius ESR1750
Signed-off-by: Jon Suphammer <jon@suphammer.net>
Patchwork: http://patchwork.openwrt.org/patch/5840/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41626
10 years ago
Gabor Juhos a749d8163f ar71xx: add profile and build image for GL.iNet v1
Patch is based on http://patchwork.openwrt.org/patch/5273/.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
Signed-off-by: Mark Janssen <mark@sig-io.nl>
Signed-off-by: alzhao <alzhao@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/5653/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 41621
10 years ago
John Crispin 9e26031a88 ar71xx: add support for TP-LINK TL-WA860RE v1
New router/repeater from TP-LINK

- CPU: Atheros AR9341-DL3A (AP123)
- Flash: 4MB
- Ram: 32MB

Similar to TL-WA850RE.

Changes: rename file after r41596

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

SVN-Revision: 41598
10 years ago
John Crispin 42a37b2a89 ar71xx: added support for TL-WA830RE V2
Corrected patch ath79 insted of auth79. Sorry.

Signed-off-by: Fredrik Jonson <fredrik@famjonson.se>

SVN-Revision: 41596
10 years ago
John Crispin e6e6a85dc9 ar71xx: add support for EasyLink M150 and M-mini
v3 refreshes the patch on trunk@41337

This patch adds support for the EasyLink EL-M150 and M-mini

http://wiki.openwrt.org/toh/easylink/el-m150
http://wiki.openwrt.org/toh/easylink/el-m-mini

Signed-off-by: L. D. Pinney <ldpinney@gmail.com>

SVN-Revision: 41348
10 years ago
John Crispin baa534a8b7 ar71xx: nbg6716: Enable procd nand sysupgrage
This enables the procd nand upgrade for ZyXEL NBG 6716. Also the ubi config
is cleaned up to match the wndr4300.

Signed-off-by: André Valentin <avalentin@marcant.net>

SVN-Revision: 41346
10 years ago
John Crispin 1bb3e5c40a ar71xx: fix wndr3700v4 image header
https://dev.openwrt.org/ticket/16840

Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41333
10 years ago
John Crispin 22a35a7b11 SysupgradeNAND: include rootfs-type in image name
also add quotes to paths

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 41326
10 years ago
John Crispin c973fb031e ar71xx: add sysupgrade support for wndr4300
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41131
10 years ago
John Crispin 9a0b4ab4ed ar71xx: remove the explicit ubi.mtd- paramaters and rename ubiroot to ubi
Signed-off-by: John Crispin <blogic@openwrt.org>

SVN-Revision: 41130
10 years ago
John Crispin 5c1105d2a1 ar71xx: add profile and build image for HiWiFi HC6361.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>

SVN-Revision: 40975
10 years ago
John Crispin 85b889940d ar71xx: add support to TP-LINK TL-WA730RE v1
The TL-WA730RE seems to be almost identical to TL-WA701ND, just
that it comes without PoE and a stock-firmware claiming the device
to be a "Range Extender".

Signed-off-by: Daniel Golle <daniel@makrotopia.org>

SVN-Revision: 40972
10 years ago
John Crispin 60ec05fdcb ar71xx: add support for dlink dir-615-e1
Dlink dir-615-e1 can use dir-600-a1's image, but the image can't be
uploaded through dlink's normal firmware update web page.

Add profile for dir-615-e1 so the generated image can be uploaded
through the firmware update web page.

Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>

SVN-Revision: 40969
10 years ago
Gabor Juhos 0d7197116e ar71xx: add profile and build image for the ZyXEL NBG6716 board
Signed-off-by: André Valentin <avalentin@marcant.net>
Patchwork: http://patchwork.openwrt.org/patch/5101/
[juhosg: remove the non-existing zyxelnand subtarget specific stuff]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40502
10 years ago
Gabor Juhos 22916814e3 ar71xx: build firmware image for the WNDR3700 v4 board
Based on the the WNDR3700v4 support patch from Ralph Perlich:
  http://patchwork.openwrt.org/patch/4763/

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

SVN-Revision: 40481
10 years ago
Gabor Juhos a67578ce33 ar71xx/image: allow to use more arguments for some macros
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40480
10 years ago
Gabor Juhos 17f848538c ar71xx: fix image generation
Move the comments out from the shell script to fix build
breakage introduced in r40464.

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

SVN-Revision: 40466
10 years ago
Gabor Juhos fd53cfa31b ar71xx: add comments for image Makefile.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/5075/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40464
10 years ago
Gabor Juhos 1bce5e8328 ar71xx: initial support for TP-Link Archer C7v2
The C7v2 has 16 MB flash and QCA9880-BR4A rev 2 supported by ath10k driver.
The C7v1 had 8 MB flash and the unsupported QCA9880-AR1A rev 1.

Signed-off-by: Adam Serbinski <adam@serbinski.com>
Patchwork: http://patchwork.openwrt.org/patch/5071/
[juhosg:
 - remove the v2 specific profile add the ath10k driver to the existing
   Archer C7 profile instead. Although on v1 devices it does not change
   the non-working behaviour, but the ath10k driver is useful for users
   whom have replaced the wifi card with a supported one in their units.
 - update image/Makefile to build firmware image for both boards if the
   Archer C7 profile is selected]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40463
10 years ago
Felix Fietkau 7131a104f5 ar71xx: add support for the TP-LINK TL-WR841N/ND v9
Everything seems to be working fine. Potential issues:

* VLAN port IDs are reversed with regard to the numbers on the case.

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>

SVN-Revision: 40400
10 years ago
Gabor Juhos b68564ed3f ar71xx: build image for TL-WDR4300v1 (IL)
The version of TL-WDR4300 sold in Israel comes with a different
hardware id.

Patch-by: Daniel <daniel@makrotopia.org>
Patchwork: http://patchwork.openwrt.org/patch/5001/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40038
10 years ago
Gabor Juhos 4ea54b827f ar71xx: add profile and build firmware image for the Oolite v1 board
Patch-by: Lars Bøgild Thomsen <lth@cow.dk>
Patchwork: http://patchwork.openwrt.org/patch/4922/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 40036
10 years ago
Felix Fietkau 802d17ceaf ar71xx: Add 16MB Flash version for Embedded Wireless Dorin Platform
Signed-off-by: Embedded Wireless GmbH <info at embeddedwireless.de>

SVN-Revision: 39764
10 years ago
Gabor Juhos f433088d50 ar71xx: add profile and build image for TP-Link TL-WDR4900 v2.0 board
Patch-by: TenNinjas <tenninjas@tenninjas.ca>
Patchwork: http://patchwork.openwrt.org/patch/4850/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39637
10 years ago
Gabor Juhos d6cb5215a9 ar71xx: WNR2200: fix mounting root fs problem
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>

SVN-Revision: 39625
10 years ago
Jo-Philipp Wich b1d7ebae09 ar71xx: fix mtdpartsize macro in image Makefile (#14961)
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>

SVN-Revision: 39583
10 years ago
Gabor Juhos e41e531e3b ar71xx: image: reserve 4 erase blocks on the TP-Link devices
This ensures that the generated images will have enough erase
blocks for JFFS2.

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

SVN-Revision: 39397
10 years ago
Gabor Juhos f1a9ed8345 ar71xx: image: move WNDAP360 macro
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39394
10 years ago
Gabor Juhos 09bf46d418 ar71xx: image: generate sysupgrade images for the Compex boards
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39391
10 years ago
Gabor Juhos 0c0b87293e ar71xx: image: use a single firmware partition on Compex devices
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39389
10 years ago
Gabor Juhos 998c89a9a6 ar71xx: image: detect partition sizes in the Image/Build/Ath macro
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>

SVN-Revision: 39384
10 years ago
Gabor Juhos 4556632578 ar71xx: image: fix size verification in the CatFiles macro
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>

SVN-Revision: 39383
10 years ago
Gabor Juhos 56136c0f34 ar71xx: ap83: define mtd layout via command line
Also use the RKuImage macro becasue the original
firmware starts with the rootfs.

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

SVN-Revision: 39379
10 years ago
Gabor Juhos a59e82761f ar71xx: ap81: define mtd layout via command line
Also use the RKuImage macro becasue the original
firmware starts with the rootfs.

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

SVN-Revision: 39378
10 years ago
Gabor Juhos 9f4e2bf326 ar71xx: image: show size limit in warning messages
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39376
10 years ago
Gabor Juhos 447530995a ar71xx: add initramfs image support for Compex devices
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39375
10 years ago
Imre Kaloz b6e1cbd8dd generate images for the On Networks N150 (rebranded Netgear WNR612v2)
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 39320
10 years ago
Gabor Juhos 2318a46d84 ar71xx: enable images for WD My Net N750
Now that the switch works correctly we can enable the images for this
board.

Flashing from the factory firmware, the factory failsafe loader and
sysupgrade was tested successfully.

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
Patchwork: http://patchwork.openwrt.org/patch/4617/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39130
11 years ago
Gabor Juhos 749c44b24d ar71xx: build image for the TP-Link TL-WA901ND v3 board
Based-on: http://patchwork.openwrt.org/patch/4507/
Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39075
11 years ago
Gabor Juhos e2fc4dc4e7 ar71xx: build firmware image for the TL-WA801ND v2
Patch to add the profile for the TP-LINK WA801ND v2

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Patchwork: http://patchwork.openwrt.org/patch/4502/
[juhosg: change subject]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 39065
11 years ago
Gabor Juhos 3674062469 ar71xx: image: unify CyberTAN macros
Make the Image/Build/CyberTAN macro more generic,
and use simple wrappers for the GZIP/LZMA variants.
This simplifies the Makefile a bit, and allows to
build sysupgrade images for the devices which are
using LZMA compressed uImages.

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

SVN-Revision: 38965
11 years ago
Gabor Juhos cb67115b4c ar71xx: image: fix CyberTAN sysupgrade images
In the current sysupgrade images, the CRC32 value of
the TRX header covers the whole rootfs data. Due to
this, the CRC value should be changed during sysupgrade
otherwise the bootloader refuses to load the image on
the next boot.

Change the image generation to create sysupgrade images
where the CRC32 value covers the kernel data only. This
allows to skip the 'fixtrx' step during sysupgrade on
the target.

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

SVN-Revision: 38964
11 years ago
Gabor Juhos a6ecce827a ar71xx: build image for the TL-WR1043ND v2 board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38958
11 years ago
Gabor Juhos fd892350c2 ar71xx: add profile and build image for the Sitecom WLR-8100
- partitions on factory fw are a bit strange
  - unknown contained some strings in factory
  - unknown2 contains some atheros (2nd art ?)

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Patchwork: http://patchwork.openwrt.org/patch/4149/
[juhosg: edit commit message]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38954
11 years ago
Gabor Juhos 1f34789015 ar71xx: add profile for the WR842N/ND v2
Patch to add the profile for the TP-LINK WR842N/ND v2
Small update, because of a change in the Makefile.

Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/4382/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38815
11 years ago
Felix Fietkau f38e6c782c ar71xx: use the new padjffs2 padding on Ubiquiti UAP-PRO to make the boot loader stop searching after the kernel partition
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38805
11 years ago
Gabor Juhos 3d341e8ca5 ar71xx: add profile and build image for the TL-WA750RE TL-WA850RE range extender
Patch to add profile and build image for the tplink TL-WA750RE/WA850RE board

Signed-off-by: Martijn Zilverschoon <thefriedzombie@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38719
11 years ago
Gabor Juhos f02c8802e3 ar71xx: build image for the WD My Net Wi-Fi Range Extender
Patchwork: http://patchwork.openwrt.org/patch/4281/
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
[juhosg:
  - remove the Image/Build/CyberTANLZMA/loader macro, it is not used
  - move the MYNETREXT SingleProfile definition to the correct place]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38688
11 years ago
Gabor Juhos 18d08da07d ar71xx: image: add EOF marker to the WNDR4300 UBI image
Append EOF markers to the END of the UBI image
file. This forces the kernel to erase all blocks
after the marker even if those blocks are not
empty.

Additionally, the resulting image can be flashed
from the original web UI now, so use '-factory'
suffix for that.

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

SVN-Revision: 38683
11 years ago
Gabor Juhos 04fdff9dc0 ar71x: image: don't use the wndr3700 utility
Pass the uImage magic value directly to mkimage instead.

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

SVN-Revision: 38662
11 years ago
Gabor Juhos 0c740a80fd ar71xx: image: fix WNDR4300 initramfs image generation
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38659
11 years ago