ar71xx: image: improve the rootfs_align macro

Improve the macro to return correct value for
all squashfs variant.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38116 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image: add mtdpartsize macro

The new macro will be used to determine the firmware
partition size from an MTD layout.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38117 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: sync kernel config

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38118 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: use the separate rootfs and uImage parsers

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38119 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: simplify wndr3700 image generation

 - remove the kernel and rootfs partitions from the mtd layout,
   the kernel creates those automatically,
 - remove estimation step, it is not needed anymore
 - put the root squashfs directly after the kernel
 - use the 64kraw template

With the default configuration, this allows to use more space for
rootfs_data with 64KiB. Tested on WNDR3700 v1 only.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38120 3c298f89-4303-0410-b956-a3cf2f4a3e73
xtables-addons: fix missing conversion from r38021 (resolves a broken dependency)

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38124 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image: remove too big files in the CatFiles macro

Also improve the warning message.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38125 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image: add optional JFFS2 padding support to the CatFiles macro

Also remove the similar code from the Netgear
profile and use the new feature instead.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38126 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image: rename the Cameo macros

Use the reference board name in the macro
instead of the SoC number.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38127 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image: add new macros for AP99 based Cameo devices

The MTD layout of the AP99 based devices is different.
Add new macros to reflect that and use the new macros
for the DIR-615-E4 board.

This prevents overwriting of the 'mac' partition which
contain vital informations. The disadvantage of the change
is that the usable space is reduced by 192KiB. Blame the
vendors for the unfriendly partition layout.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38128 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: update the Image/Build/Cameo macro

 - append the root squashfs directly to the kernel,
 - use the 64kraw/64kraw-nojffs template instead of 64k/squashfs-only,
 - ensure, that the signature is placed at the correct offset in
   the *-factory images,
 - ensure that the generated images have enough erase blocks
   for JFFS2 garbage collection,

Tested on DIR-600-A1 and TEW-632BR devices only.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38129 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image: update the Image/Build/CameoHornet macro

 - append the root squashfs directly to the kernel,
 - use the 64kraw-nojffs template instead of sqashfs-only
 - ensure that the generated images have enough erase blocks
   for JFFS2 garbage collection,

Tested on a TEW-712BR devices only.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38130 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: add kernel support for the TEW-732BR board

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38131 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: add user-space support for the TEW-732BR board

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38132 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: add profile and build image for the TEW-732BR board

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38133 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image: build Planex kernels in a separate step

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38137 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image: allow to build initramfs for Planex devices

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38138 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image: update Build/Image/Planex macro

 - remove the 'kernel' and 'rootfs' partitions from the mtd layout,
 - move the .okli image into the uImage,
 - 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 MZK-W300NH board only.

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38139 3c298f89-4303-0410-b956-a3cf2f4a3e73
ar71xx: image use the 64kraw template for the TEW-732BR board

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38140 3c298f89-4303-0410-b956-a3cf2f4a3e73
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>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38141 3c298f89-4303-0410-b956-a3cf2f4a3e73