Commit graph

2143 commits

Author SHA1 Message Date
Gabor Juhos
c98db0707c ar71xx: image: allow to use optional parameters for MkuImageLzma/initramfs
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38658
2013-11-05 18:41:18 +00:00
Gabor Juhos
08e0613275 ar71xx: generate recovery image for WNDR4300
Extended the Makefile to generate a working factory reset image
for Netgear WNDR4300. The image uses UBI with two volumes squashfs
(rootfs) and JFFS2 (rootfs_data). In order to make stock U-Boot
happy, a fake rootfs image is placed into the last erase block
of the kernel partition.

Signed-off-by: Stefan Agner <stefan@agner.ch>
[juhosg:
  - restore the NetgearNAND/initramfs macro,
  - remove unused {Squash,Ubi}fsTemplate macros,
  - remove board specific mtd options from CONFIG_CMDLINE, append the
    board specific ubi.mtd parameter to the kernel command line instead,
  - increase kernel partition size to 2MiB,
  - use board specific ini file for ubinize,
  - put jffs2 eof mark into the rootfs_data ubi volume,
  - use KDIR_TMP for temporary images,
  - use the squashfs-raw image,
  - increase kernel partition size to 2MiB,
  - use a local ubinize macro,
  - fix macro parameter comments,
  - put the fake rootfs into the last erase block of the kernel
    partition,
  - move Image/Build/NetgearNAND/buildkernel macro before
    define Image/Build/NetgearNAND,
  - don't use the wndr3700 utility, use '-M' parameter of mkimage to set
    the uImage magic,
  - use '-recovery' suffix for the generated image, it is only usable via
    the fw_recovery function of the bootloader,
  - update commit log]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38655
2013-11-05 16:31:14 +00:00
Gabor Juhos
35656042f1 kernel: update 3.10 to 3.10.18
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38652
2013-11-05 08:25:45 +00:00
Gabor Juhos
d5555de5b0 ar71xx: move WNDR4300 profile to the nand subtarget
Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38647
2013-11-04 18:37:09 +00:00
Gabor Juhos
3eb676240f ar71xx: Add new subtarget nand for WNDR4300
Add new subtarget nand with UBI/UBIFS including GLUEBI and squashfs.
This target will be used for NAND based router which make use of
UBI (and maybe UBIFS later on) in order to provide proper NAND
support.

Signed-off-by: Stefan Agner <stefan@agner.ch>
[juhosg:
  - tweak target.mk:
     change BOARDNAME variable,
     improve Target/Description,
     remove targz and ubifs from FEATURES and add broken flag,
  - optimize kernel configuration:
     disable ubifs, it is not used yet,
     disable unused MTD options,
     disable SPI support
     disable unused network drivers,
     tune kernel command line,
  - remove image/ubinize.cfg, it will be in a follow-up patch
  - move profile modifications into a separate patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38646
2013-11-04 18:37:08 +00:00
Gabor Juhos
496d3e1149 ar71xx: remove yaffs from the generic rootfstype list
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38645
2013-11-04 18:37:07 +00:00
Gabor Juhos
ccf7320205 ar71xx: image: dd root.* images in fs specific macros
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38644
2013-11-04 18:37:06 +00:00
Gabor Juhos
45d26941b4 ar71xx: image: only define profiles for the generic subtarget
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38636
2013-11-01 18:33:24 +00:00
Gabor Juhos
f0a877e5eb ar71xx: image: add IMAGE_PROFILE variable
Ensures that the 'Default' images are generated
even if the subtarget has no profiles.

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

SVN-Revision: 38635
2013-11-01 18:33:22 +00:00
Gabor Juhos
b2bc45d21e ar71xx: always enable hw ecc support for the ar934x-nfc module
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38634
2013-11-01 18:33:18 +00:00
Hauke Mehrtens
0e655122c6 kernel: add missing config options
The buildbots found some new missing config options.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 38633
2013-11-01 08:49:35 +00:00
Gabor Juhos
715f16806f ar71xx: move subtarget specific features to target.mk
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38600
2013-10-30 06:54:59 +00:00
Gabor Juhos
5a08328197 ar71xx: don't build uImages for the mikrotik subtarget
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38598
2013-10-30 06:54:55 +00:00
Gabor Juhos
6357738509 ar71xx: disable non Mikrotik boards in the mikrotik subtarget
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38597
2013-10-30 06:54:54 +00:00
Gabor Juhos
228c3484c3 ar71xx: fix Kconfig symbol selection for RB95x/RB2011
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38596
2013-10-30 06:54:53 +00:00
Gabor Juhos
64ea60d210 ar71xx: move CONFIG_MTD_NAND_AR934X_HW_ECC option to subtarget config
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38595
2013-10-30 06:51:02 +00:00
Gabor Juhos
47b7ce5ec2 ar71xx: add profile and build image for the BXU2000n-2 A1 board
Patchwork: http://patchwork.openwrt.org/patch/4183/
Signed-off-by: Terry Yang <yangbo@bhunetworks.com>
[juhosg:
  - remove MultiProfile, it makes no sense for a single board
  - move SingleProfile call and the mtdlayout to a different
    location keep things sorted (well, almost)]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38593
2013-10-30 06:50:59 +00:00
Gabor Juhos
003a801dd9 ar71xx: add user-space support for the BXU2000n-2 A1 board
Patchwork: http://patchwork.openwrt.org/patch/4183/
Signed-off-by: Terry Yang <yangbo@bhunetworks.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38592
2013-10-30 06:50:58 +00:00
Gabor Juhos
ef8306cfd2 ar71xx: add kernel support for BHU Networks BXU2000n-2 A1 board
BXU2000n-2 A1 is a BHU Networks WLAN board, use ar9341 chip.

Patchwork: http://patchwork.openwrt.org/patch/4183/
Signed-off-by: Terry Yang <yangbo@bhunetworks.com>
[juhosg:
  - rename and refresh kernel patch,
  - fix some checkpatch warnings and adjust whitespaces in
    mach-bhu-bxu2000n2-a.c]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38591
2013-10-30 06:50:57 +00:00
Gabor Juhos
acd4ea62e7 ar71xx: add user space support for the Sitecom WLR-8100 wireless router
Patchwork: http://patchwork.openwrt.org/patch/4148/
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38590
2013-10-30 06:50:55 +00:00
Gabor Juhos
22b5040c64 ar71xx: add kernel support for the Sitecom WLR-8100 wireless router
- unsure about copyright message
  - based on AP136-010

Patchwork: http://patchwork.openwrt.org/patch/4147/
Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
[juhosg: rename and refresh kernel patch]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38589
2013-10-30 06:50:54 +00:00
Gabor Juhos
f6638a8994 ar71xx: add profile and build image for the Dragino2 board
Patchwork: http://patchwork.openwrt.org/patch/4234/
Signed-off-by: Pau Escrich <p4u@dabax.net>
[juhosg: remove kernel+rootfs partition and use uimage split instead]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38588
2013-10-30 06:50:53 +00:00
Gabor Juhos
7074bb286d ar71xx: add kernel support for DRAGINO2
This patch adds support for DRAGINO2 board (used by
Meshpotato v2). Most of the files included can be
found in the official svn repository provided by the
company [1]. I have just adapt it to the last OpenWrt
trunk revision (Fri Oct 4 10:49:47 2013).

 1. http://svn.dragino.com/dragino2

Patchwork: http://patchwork.openwrt.org/patch/4234/
Signed-off-by: Pau Escrich <p4u@dabax.net>
[juhosg:
 - rename and refresh kernel patch,
 - fix checkpatch warnings in  mach-dragino2.c]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38587
2013-10-30 06:50:52 +00:00
Gabor Juhos
9e01011b5c ar71xx: rename 'nand' subtarget to 'mikrotik'
It is for Mikrotik devices only, rename the subtarget
to reflect that. Also fix the wget2nand script to use
the new image names.

Based on the patch by Stefan Agner:
http://patchwork.openwrt.org/patch/4123/

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

SVN-Revision: 38509
2013-10-23 15:43:26 +00:00
Gabor Juhos
757a6fdef9 ar71xx: change title and description for NAND subtarget
The nand subtarget supports Mikrotik boards only. Change
the title and the description to reflect that.

Based on the patch by Stefan Agner:
http://patchwork.openwrt.org/patch/4123/

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

SVN-Revision: 38508
2013-10-23 15:43:19 +00:00
Gabor Juhos
a59934dbd0 ar71xx: remove 'Target/Description' from main Makefile
Ensure that menuconfig shows the correct help text for
subtargets.

Based on the patch by Stefan Agner:
http://patchwork.openwrt.org/patch/4123/

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

SVN-Revision: 38507
2013-10-23 15:43:13 +00:00
Gabor Juhos
b6b06000eb kernel: update 3.10 to 3.10.17
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38506
2013-10-23 12:51:05 +00:00
Gabor Juhos
80a15fe8ad ar71xx: Fix sysupgrades for Allnet and OpenMesh devices
Both Allnet and OpenMesh sysupgrade uses fw_setenv from uboot-envtools to
change different settings in the uboot environment. uboot-envtools version
2013.01 introduced a filesystem lock "/var/lock/fw_printenv.lock" to guarantee
mutually exclusive access to the uboot environment. But the path /var doesn't
exist on the sysupgrade ramfs.

An upgrade on these devices fails since r36033 ("[package] uboot-envtools:
upgrade to version 2013.01.01") with following messages:

 Error opening lock file /var/lock/fw_printenv.lock
 failed to update U-Boot environment

Creating the "/var/lock" path before running fw_setenv is therefore a
requirement unless the locking functionality in fw_setenv is removed or
replaced with optional locking.

Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38483
2013-10-20 15:59:05 +00:00
Gabor Juhos
68e13de37d ar71xx: fix WLAN 5 GHz LED init on dir-825-c1
Fixes the 5 GHz LED.

The same function has no effect on the 2.4 GHz LED at all, so we might
as well remove it.

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

SVN-Revision: 38482
2013-10-20 15:59:04 +00:00
Hauke Mehrtens
81e2f00367 kernel: update kernel to 3.10.15
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>

SVN-Revision: 38384
2013-10-13 19:28:29 +00:00
Vasilis Tsiligiannis
aac26bfbca ar71xx: Fix sysupgrade when upgrading to images with small rootfs partition
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>

SVN-Revision: 38382
2013-10-13 18:39:09 +00:00
Imre Kaloz
5f272ca813 make the generated images actually flashable on the Unifi devices.
Signed-off-by: Imre Kaloz <kaloz@openwrt.org>

SVN-Revision: 38364
2013-10-11 15:41:42 +00:00
Gabor Juhos
7815af409a ar71xx: ar934x-nfc: disable subpage write when hardware ECC is used
It is not supported by the controller.

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

SVN-Revision: 38234
2013-09-27 11:15:34 +00:00
Gabor Juhos
9c8a5ef115 kernel: update 3.10 to 3.10.13
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38228
2013-09-27 07:19:21 +00:00
Felix Fietkau
a30681dff0 build: unify mips target cflags
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 38210
2013-09-26 17:53:14 +00:00
Gabor Juhos
b71c7d8d3c ar71xx: use correct board id for TL-MR3040 v2
Fix the image building code so that the kernel correctly
distinguishes between hardware revisions.

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

SVN-Revision: 38192
2013-09-25 18:42:14 +00:00
Gabor Juhos
164cd38b41 ar71xx: add user-space support for TL-MR3040 v2
Signed-off-by: Mads Hansen <d@taba.se>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38191
2013-09-25 18:42:11 +00:00
Gabor Juhos
f8aef84e49 ar71xx: improve kernel support for the TL-MR3040 v2
This patch adds support for the hardware slide switch on
the TL-MR3040 v2.

Signed-off-by: Mads Hansen <d@taba.se>
[juhosg: use EV_SW instead of EV_KEY]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38190
2013-09-25 18:42:10 +00:00
Gabor Juhos
0380904acb kernel/3.10: refresh all target patches
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38182
2013-09-25 17:13:24 +00:00
Gabor Juhos
904ffa32d8 ar71xx: image: simplify mynet_n600_mtdlayout
Remove the kernel and rootfs partitions. The Seama
parser can find those automatically:

  0x000000070000-0x000000ff0000 : "firmware"
  2 seama-fw partitions found on MTD device firmware
  0x000000070000-0x0000001b0000 : "kernel"
  0x0000001b0000-0x000000ff0000 : "rootfs"
  mtd: partition "rootfs" set to be root filesystem
  1 squashfs-split partitions found on MTD device rootfs
  0x000000360000-0x000000ff0000 : "rootfs_data"
  0x000000ff0000-0x000001000000 : "radiocfg"

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

SVN-Revision: 38155
2013-09-24 12:19:57 +00:00
Gabor Juhos
2f5694398d ar71xx: enable the Seama firmware parser
It will be used for the WD My Net N600 board.

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

SVN-Revision: 38154
2013-09-24 12:19:54 +00:00
Gabor Juhos
2ea3cac075 ar71xx: update the Image/Build/WZRHP macro
- append the root squashfs directly after the kernel,
 - use the 64kraw/128kraw template instead of the 64k/128k,
 - ensure that the generated images have enough erase blocks
   for JFFS2 garbage collection,

Tested on WZR-HP-G300NH and WZR-600DHP boards.

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

SVN-Revision: 38153
2013-09-24 09:36:26 +00:00
Gabor Juhos
d0ba5d1584 ar71xx: image: use a common macro for Buffalo WZRHP devices
The Image/Build/WZRHP64K and the Image/Build/WZRHP128K macros
are similar. Move the common stuff into the Image/Build/WZRHP
macro and update the orignal macros to use that.

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

SVN-Revision: 38152
2013-09-24 09:36:25 +00:00
Gabor Juhos
370405bfd0 ar71xx: image: update Image/Build/CameoAP94 macro
- append the root squashfs directly after the kernel,
 - use the 64kraw template instead of the 64k,
 - ensure that the generated images have enough erase blocks
   for JFFS2 garbage collection,

Tested on a TEW-673GRU board.

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

SVN-Revision: 38151
2013-09-24 08:14:44 +00:00
Gabor Juhos
167c4b5fa7 ar71xx: image: use a common macro for Cameo AP94 based devices
The Image/Build/DIR825B1 and the Image/Build/DLRTDEV macros
are identical. Merge those into a new Image/Build/CameoAP94
macro, and update the device profiles to use the new macro.
Also rename the dir825b1_* mtdlayout macros to cameo_ap94_*.

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

SVN-Revision: 38150
2013-09-24 08:14:43 +00:00
Gabor Juhos
fe525cd2c0 ar71xx: image: use the board name for temporary mtdpart files
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38149
2013-09-24 06:13:14 +00:00
Gabor Juhos
5da3667d79 ar71xx: update the Image/Build/UBNT2 macro
- append the root squashfs directly after the kernel,
 - use the 64kraw template instead of the 64k,
 - ensure that the generated images have enough erase blocks
   for JFFS2 garbage collection,

Tested on a WispStation M5 board.

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

SVN-Revision: 38148
2013-09-24 05:58:34 +00:00
Gabor Juhos
18141628dc ar71xx: build intramfs images for the Ubiquiti XM boards
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38147
2013-09-24 05:58:32 +00:00
Gabor Juhos
4fc427e211 ar71xx: image: use a common macro for UBNTXM/UBNTDEV
The firmware generation part is the same for both
macros. Move that into a separate macro and use the
new macro for Image/Build/UB{NTXM,DEV}.

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

SVN-Revision: 38146
2013-09-24 05:58:31 +00:00
Gabor Juhos
0b09a89340 ar71xx: image: update Image/Build/WHRHPG300N macro
- append the root squashfs directly after the kernel,
 - use the 64kraw template instead of the 64k
 - ensure that the generated images have enough erase blocks
   for JFFS2 garbage collection,

Tested on the WHR-G301N board only.

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

SVN-Revision: 38141
2013-09-23 19:49:27 +00:00