Commit graph

391 commits

Author SHA1 Message Date
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
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
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
Gabor Juhos
0264fed9bd ar71xx: image use the 64kraw template for the TEW-732BR board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38140
2013-09-23 12:54:05 +00:00
Gabor Juhos
7c8c366a14 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>

SVN-Revision: 38139
2013-09-23 12:14:20 +00:00
Gabor Juhos
58e3d03ae0 ar71xx: image: allow to build initramfs for Planex devices
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38138
2013-09-23 12:14:19 +00:00
Gabor Juhos
0ff5dc2f38 ar71xx: image: build Planex kernels in a separate step
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38137
2013-09-23 12:14:18 +00:00
Gabor Juhos
cdda5b041f ar71xx: add profile and build image for the TEW-732BR board
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 38133
2013-09-23 09:49:04 +00:00
Gabor Juhos
3f5fae5e1a 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>

SVN-Revision: 38130
2013-09-23 09:22:50 +00:00
Gabor Juhos
4dd84248d2 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>

SVN-Revision: 38129
2013-09-23 09:01:06 +00:00
Gabor Juhos
3131a1c11a 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>

SVN-Revision: 38128
2013-09-23 08:24:10 +00:00
Gabor Juhos
ac2cd03c73 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>

SVN-Revision: 38127
2013-09-23 08:24:05 +00:00
Gabor Juhos
dd171f7d14 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>

SVN-Revision: 38126
2013-09-22 20:14:23 +00:00
Gabor Juhos
d3c75d79cd ar71xx: image: remove too big files in the CatFiles macro
Also improve the warning message.

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

SVN-Revision: 38125
2013-09-22 20:14:22 +00:00
Gabor Juhos
3b00bf1a68 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>

SVN-Revision: 38120
2013-09-22 11:45:09 +00:00
Gabor Juhos
ea0ff700e8 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>

SVN-Revision: 38117
2013-09-22 09:11:25 +00:00
Gabor Juhos
48a3a30fec 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>

SVN-Revision: 38116
2013-09-22 09:11:24 +00:00
Gabor Juhos
b77d4d8d19 ar71xx: image: improve the CatFiles macro
Make it possible to append the rootfs image directly
to the kernel.

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

SVN-Revision: 38115
2013-09-22 09:11:22 +00:00
Gabor Juhos
20c8252a8f ar71xx: image: override mkcameofw status
This allows to build images for other boards, even if
the image is too big for Cameo devices.

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

SVN-Revision: 38095
2013-09-21 14:56:22 +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
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
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
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
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
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
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
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
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
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
John Crispin
553a469728 ar71xx: add support for dir 505 a1
this patch is based on ...

-> https://forum.openwrt.org/viewtopic.php?pid=179902#p179902

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

SVN-Revision: 37703
2013-08-05 10:41:48 +00:00
Gabor Juhos
65584ed54f ar71xx: add profile and build image for the WNR612 v2 board
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3876/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37577
2013-07-28 10:23:38 +00:00
Gabor Juhos
ede1587ed8 ar71xx: add profile and build image for the TL-WR710N board
Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3873/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>

SVN-Revision: 37574
2013-07-28 10:23:34 +00:00