project/firmware-utils.git
9 years agotools/firmware-utils: Allow changing the CRC32 poly value in mkbrnimg
John Crispin [Wed, 3 Jun 2015 13:58:48 +0000 (13:58 +0000)]
tools/firmware-utils: Allow changing the CRC32 poly value in mkbrnimg

VGV7519 is currently the only device with brnboot support. It seems to
be happy with 0x2083b8ed as CRC32 poly. However, VGV7510KW22 fails to
validate the checksum - it requires 0x04c11db7 instead.

I have built an brnboot image manually on the command line, once with
the old code and then with the new code but passing the old CRC32
poly value. Both resulted in a brnboot image with the same sha1sum.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
SVN-Revision: 45881

9 years agofirmware-utils: asustrx: support setting firmware version
Rafał Miłecki [Wed, 27 May 2015 17:58:11 +0000 (17:58 +0000)]
firmware-utils: asustrx: support setting firmware version

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45791

9 years agofirmware-utils: asustrx: new tool for TRX format with Asus tail
Rafał Miłecki [Wed, 27 May 2015 13:54:02 +0000 (13:54 +0000)]
firmware-utils: asustrx: new tool for TRX format with Asus tail

Asus devices use TRX format with some extra data at the end.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
SVN-Revision: 45773

9 years agomktplinkfw: add flag to ignore size limit (used for initramfs images)
Felix Fietkau [Fri, 8 May 2015 14:02:33 +0000 (14:02 +0000)]
mktplinkfw: add flag to ignore size limit (used for initramfs images)

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

9 years agobrcm63xx: do not align squashfs rootfs start
Jonas Gorski [Fri, 27 Feb 2015 17:38:14 +0000 (17:38 +0000)]
brcm63xx: do not align squashfs rootfs start

We do not need to align the start of read only rootfs's to erase blocks.
This allows us to write the squashfs rootfs directly behind the kernel,
potentially freeing up one erase block.

We still need to align for jffs2, so add a flag for imagetag to
optionally align the rootfs start.

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

9 years agofirmware-utils: imagetag: use cyg_crc32 instead of duplicating code
Jonas Gorski [Fri, 27 Feb 2015 17:38:05 +0000 (17:38 +0000)]
firmware-utils: imagetag: use cyg_crc32 instead of duplicating code

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

9 years agoar71xx: TL-WA7210n v2 support
John Crispin [Tue, 24 Feb 2015 12:00:50 +0000 (12:00 +0000)]
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 agotools: remove static linking support
Jo-Philipp Wich [Fri, 6 Feb 2015 00:00:43 +0000 (00:00 +0000)]
tools: remove static linking support

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 44285

9 years agoar71xx: Revert "added board support for compex wpj558"
John Crispin [Mon, 2 Feb 2015 10:32:04 +0000 (10:32 +0000)]
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 agoadded board support for compex wpj558
John Crispin [Mon, 2 Feb 2015 09:00:21 +0000 (09:00 +0000)]
added board support for compex wpj558

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

9 years agoar71xx: add support for TL-WA701ND v2
John Crispin [Tue, 20 Jan 2015 15:48:07 +0000 (15:48 +0000)]
ar71xx: add support for TL-WA701ND v2

Signed-off-by: Luigi Tarenga <luigi.tarenga@gmail.com>
SVN-Revision: 44063

9 years agotools: edimax_fw_header: fix suspicious memset usage
Florian Fainelli [Sat, 10 Jan 2015 18:08:16 +0000 (18:08 +0000)]
tools: edimax_fw_header: fix suspicious memset usage

memset() was called with a size argument against a pointer size, not the
structure size itself.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 43913

9 years agotools/firmware-utils: add version 3 header support for mktplinkfw2
Felix Fietkau [Fri, 9 Jan 2015 15:40:39 +0000 (15:40 +0000)]
tools/firmware-utils: add version 3 header support for mktplinkfw2

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

9 years agobuffalo-enc: pass the longstate option to decryption
Felix Fietkau [Sat, 20 Dec 2014 15:26:31 +0000 (15:26 +0000)]
buffalo-enc: pass the longstate option to decryption

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

9 years agobuffalo-enc: accept the longstate command line option
Felix Fietkau [Sat, 20 Dec 2014 15:26:25 +0000 (15:26 +0000)]
buffalo-enc: accept the longstate command line option

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

9 years agoBelkin AC 1750 DB (F9K1115v2) support
Imre Kaloz [Wed, 17 Dec 2014 08:27:38 +0000 (08:27 +0000)]
Belkin AC 1750 DB (F9K1115v2) support

Signed-off-by: Imre Kaloz <kaloz@openwrt.org>
SVN-Revision: 43734

9 years agoramips: generate factory images for Nexx devices
John Crispin [Sun, 7 Dec 2014 16:53:22 +0000 (16:53 +0000)]
ramips: generate factory images for Nexx devices

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

10 years agofirmware-utils: remove dependency on error.h in tplink-safeloader
Felix Fietkau [Thu, 27 Nov 2014 15:01:56 +0000 (15:01 +0000)]
firmware-utils: remove dependency on error.h in tplink-safeloader

Fixes build on Mac OS X

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

10 years agofirmware-utils: add new tool tplink-safeloader for the new TP-LINK Pharos devices...
John Crispin [Wed, 26 Nov 2014 08:59:22 +0000 (08:59 +0000)]
firmware-utils: add new tool tplink-safeloader for the new TP-LINK Pharos devices (CPE210/220/510/520)

The new TP-LINK Pharos series uses a new bootloader, the "TP-LINK Safeloader".
It uses an advanced firmware image format, containing an image partition table
and a flash partition table (and image partitions are mapped to the
corresponding flash partitions). The exact image format is documented in the
source code.

Furthermore, the bootloader expects the kernel image as an ELF executable.

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

10 years agoramips: add support for A5-V11 board (resubmit)
John Crispin [Wed, 29 Oct 2014 11:01:17 +0000 (11:01 +0000)]
ramips: add support for A5-V11 board (resubmit)

(Reposted due to an issue with the patchwork server during original submission)

Unbranded. Silkscreen on PCB is “A5-V11”, believed to be made by Bococom (or at least uses Bococom image encryption - as used on poray devices - but different key)

Signed-off-by: Gareth Bryan <gareth@mx9.org>
SVN-Revision: 43102

10 years agofirmware-utils: rename encrypt()/decrypt() in mkhilinkfw to avoid collisions
Felix Fietkau [Mon, 20 Oct 2014 09:18:36 +0000 (09:18 +0000)]
firmware-utils: rename encrypt()/decrypt() in mkhilinkfw to avoid collisions

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

10 years agofirmware-utils: restore compilation of mkhilinkfw.
John Crispin [Mon, 20 Oct 2014 06:29:38 +0000 (06:29 +0000)]
firmware-utils: restore compilation of mkhilinkfw.

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

10 years agofirmware-utils: fix compilation warnings.
John Crispin [Mon, 20 Oct 2014 06:29:13 +0000 (06:29 +0000)]
firmware-utils: fix compilation warnings.

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

10 years agofirmware-utils: allow passing a specific MBR signature to ptgen
Jo-Philipp Wich [Thu, 16 Oct 2014 16:16:47 +0000 (16:16 +0000)]
firmware-utils: allow passing a specific MBR signature to ptgen

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 42934

10 years agofirmware-utils: add NEXX factory image support
John Crispin [Mon, 6 Oct 2014 04:52:01 +0000 (04:52 +0000)]
firmware-utils: add NEXX factory image support

This patch adds support to encode and decode images for certain types of
NEXX routers.

SVN-Revision: 42784

10 years agofirmware-utils: made mkdir615h1 work for all Senao-produced devices as mksenaofw...
John Crispin [Sun, 3 Aug 2014 11:13:58 +0000 (11:13 +0000)]
firmware-utils: made mkdir615h1 work for all Senao-produced devices as mksenaofw and cleaned up some of its formatting

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
SVN-Revision: 41962

10 years agofirmware-utils: add new tool for fixing headers on ZyXEL devices (brcm63xx)
Jonas Gorski [Sun, 27 Jul 2014 17:44:51 +0000 (17:44 +0000)]
firmware-utils: add new tool for fixing headers on ZyXEL devices (brcm63xx)

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 41849

10 years agofirmware-utils/mktplinkfw: add support for GL.iNet v1
Gabor Juhos [Sun, 13 Jul 2014 18:21:08 +0000 (18:21 +0000)]
firmware-utils/mktplinkfw: add support 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: 41620

10 years agofirmware-utils/mkdir615h1: fix magic XOR calculation
John Crispin [Tue, 24 Jun 2014 18:13:00 +0000 (18:13 +0000)]
firmware-utils/mkdir615h1: fix magic XOR calculation

Signed-off-by: Forest Crossman <cyrozap@gmail.com>
SVN-Revision: 41314

10 years agolantiq: DGN3500 (all known variants) factory and sysupgrade image building support
John Crispin [Tue, 17 Jun 2014 15:38:54 +0000 (15:38 +0000)]
lantiq: DGN3500 (all known variants) factory and sysupgrade image building support

This patch adds factory image building for the DGN3500, all variants,
and fixes sysupgrade images to make them play nice with the sercomm
secondary boot loader.

The factory images can be used directly in the update dialog in the
interface of the stock firmware and via the special Sercomm bootmode
and a special windows flashing utility (allegedly present in the CD
that came with the device -- but it's also compatible with the NSLU2
Upgrade_207_XP utility.) The special bootmode can be activated by
turning the device on while holding the reset button pressed, then
releasing it when the power led starts blinking red and green. Please
notice that if using the 207 utility, it will always report that the
flashing failed even though it completed successfully. Just power
cycle the router manually after the utility reports the failure and
OpenWRT will boot. This same utility (despite reporting failure in
this case too) can revert a DGN3500 (any variant) to the appropriate
stock Netgear firmware.

This patch is a heavily modified version of a package I found on the
OpenWRT forum with a couple fixes and features added -- mainly the
generation of all the different image variants to support all known
models directly, atm known variants are AnnexA-WW, AnnexA-NA and
AnnexB-DE/GR.

I tested the patch successfully on my device.

Signed-off-by: Marco Antonio Mauro <marcus90@gmail.com>
SVN-Revision: 41236

10 years agoramips: RT-N56U support fixes and factory image creation
John Crispin [Mon, 16 Jun 2014 18:57:20 +0000 (18:57 +0000)]
ramips: RT-N56U support fixes and factory image creation

Signed-off-by: Mikko Hissa <mikko.hissa@werzek.com>
SVN-Revision: 41224

10 years agofirmware-utils: add Gemtek header tool
John Crispin [Tue, 22 Apr 2014 08:08:39 +0000 (08:08 +0000)]
firmware-utils: add Gemtek header tool

Generates webflash-compatible images for a few RT2880 routers based
on Gemtek OEM boards.

Signed-off-by: Claudio Leite <leitec@staticky.com>
SVN-Revision: 40551

10 years agofirmware-utils/mktplinkfw: add support for TL-WDR4300v1 (IL)
Gabor Juhos [Thu, 27 Mar 2014 06:36:58 +0000 (06:36 +0000)]
firmware-utils/mktplinkfw: add support 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: 40037

10 years agofirmware-utils/mktplinkfw: add support for the Oolite v1 board
Gabor Juhos [Thu, 27 Mar 2014 06:36:49 +0000 (06:36 +0000)]
firmware-utils/mktplinkfw: add support for the Oolite v1 board

Patch-by: Lars Bøgild Thomsen <lth@cow.dk>
Patchwork: http://patchwork.openwrt.org/patch/4922/
[juhosg: fix whitespaces]
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 40035

10 years agofirmware-utils/mktplinkfw: add an option to generate 16MiB images
Gabor Juhos [Thu, 27 Mar 2014 06:36:48 +0000 (06:36 +0000)]
firmware-utils/mktplinkfw: add an option to generate 16MiB images

Signed-off-by: Andrew 'Necromant' Andrianov <andrew@ncrmnt.org>
Patchwork: http://patchwork.openwrt.org/patch/2449/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 40034

10 years agofirmware-utils/mktplinkfw: allow to reserve space in the generated images
Gabor Juhos [Sat, 25 Jan 2014 18:12:03 +0000 (18:12 +0000)]
firmware-utils/mktplinkfw: allow to reserve space in the generated images

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

10 years agoralink: don't build mkhilinkfw untilt he ssl header dependency is resolved
John Crispin [Sun, 12 Jan 2014 17:26:24 +0000 (17:26 +0000)]
ralink: don't build mkhilinkfw untilt he ssl header dependency is resolved

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

10 years agofirmware-utils: mkhilinkfw breaks the build bots
John Crispin [Sun, 12 Jan 2014 14:03:05 +0000 (14:03 +0000)]
firmware-utils: mkhilinkfw breaks the build bots

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

10 years agofirmware-utils: add HLK-RM04 tool
John Crispin [Sun, 12 Jan 2014 12:07:46 +0000 (12:07 +0000)]
firmware-utils: add HLK-RM04 tool

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

10 years agofirmware-utils: check_magic() in buffalo-lib.c always return 0
John Crispin [Fri, 27 Dec 2013 21:15:31 +0000 (21:15 +0000)]
firmware-utils: check_magic() in buffalo-lib.c always return 0

spotted with cppcheck

Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr>
SVN-Revision: 39171

10 years agofirmware-utils/mkplinkfw: add TL-WA801ND v2 support
Gabor Juhos [Sun, 15 Dec 2013 20:39:13 +0000 (20:39 +0000)]
firmware-utils/mkplinkfw: add TL-WA801ND v2 support

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Patchwork: http://patchwork.openwrt.org/patch/4503/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39066

11 years agofirmware-utils/trx: remove trailing whitespaces
Gabor Juhos [Sat, 30 Nov 2013 18:30:57 +0000 (18:30 +0000)]
firmware-utils/trx: remove trailing whitespaces

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

11 years agofirmware-utils/trx: fix two bugs
Gabor Juhos [Sat, 30 Nov 2013 18:30:56 +0000 (18:30 +0000)]
firmware-utils/trx: fix two bugs

 - fix crc32 calculation if -F was enabled.

 - don't convert the crc32 to little endian twice.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
SVN-Revision: 38962

11 years agofirmware-utils/mkplinkfw: add TL-WR1043ND v2 support
Gabor Juhos [Fri, 29 Nov 2013 20:51:15 +0000 (20:51 +0000)]
firmware-utils/mkplinkfw: add TL-WR1043ND v2 support

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

11 years agotools: adapt addpattern for WD's Range Extender
Gabor Juhos [Thu, 7 Nov 2013 22:31:48 +0000 (22:31 +0000)]
tools: adapt addpattern for WD's Range Extender

A few things had to be changed to add support for these devices:
 - support code patterns with 8 characters
 - new board definition for the range extender device

Patchwork: http://patchwork.openwrt.org/patch/4280/
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38685

11 years agofirmware-utils: remove the wndr3700 utility
Gabor Juhos [Wed, 6 Nov 2013 10:16:40 +0000 (10:16 +0000)]
firmware-utils: remove the wndr3700 utility

It is not used anymore.

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

11 years agomkfwimage: Increase RSPRO maximum size to 0xF00000 (15 MiB)
Gabor Juhos [Sun, 20 Oct 2013 15:59:08 +0000 (15:59 +0000)]
mkfwimage: Increase RSPRO maximum size to 0xF00000 (15 MiB)

RSPRO has 16MiB of Flash, using the following layout:

[    2.930000] 0x000000000000-0x000000030000 : "RedBoot"
[    2.940000] 0x000000030000-0x000000130000 : "kernel"
[    2.950000] 0x000000130000-0x000000ff0000 : "rootfs"
[    2.960000] 0x000000ff0000-0x000000fff000 : "FIS directory"
[    2.970000] 0x000000fff000-0x000001000000 : "RedBoot config"

Firmware images contain kernel and rootfs, so they can use up to 0xFF0000 -
0x30000 = 0xFC0000 (15,75MiB) of space. We don't include the RedBoot and FIS
partitions and leave an extra 0xC0000 (768KiB) of space.

This is based on revision 18410 which sets the limit to 0xB00000 (11 MiB).

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38484

11 years agotools: add tool to generate dcs93xl images
John Crispin [Mon, 7 Oct 2013 15:01:05 +0000 (15:01 +0000)]
tools: add tool to generate dcs93xl images

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

11 years agofirmware-utils/mktplinkfw: add support for the TL-MR13U board
Gabor Juhos [Thu, 19 Sep 2013 17:52:44 +0000 (17:52 +0000)]
firmware-utils/mktplinkfw: add 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: 38065

11 years agofirmware-utils: add a tool TP-Link v2 image generation
John Crispin [Tue, 6 Aug 2013 16:25:35 +0000 (16:25 +0000)]
firmware-utils: add a tool TP-Link v2 image generation

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

11 years agofirmware-utils: remove v2 support
John Crispin [Tue, 6 Aug 2013 16:25:24 +0000 (16:25 +0000)]
firmware-utils: remove v2 support

we will use gabors patch instead

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

11 years agofirmware-utils: fix segfault introduced by v2 changes
John Crispin [Tue, 6 Aug 2013 14:32:50 +0000 (14:32 +0000)]
firmware-utils: fix segfault introduced by v2 changes

Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
SVN-Revision: 37724

11 years agofirmware-utils: add support for TDW8970 to mktplinkfw
John Crispin [Tue, 6 Aug 2013 12:31:06 +0000 (12:31 +0000)]
firmware-utils: add support for TDW8970 to mktplinkfw

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

11 years agofirmware-utils: add v2 header support to firmware-utils
John Crispin [Tue, 6 Aug 2013 12:30:52 +0000 (12:30 +0000)]
firmware-utils: add v2 header support to firmware-utils

only image build works. inspect and md5 checksum support are not implemented yet

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

11 years agoramips: add basics for Poray devices
John Crispin [Thu, 1 Aug 2013 14:30:46 +0000 (14:30 +0000)]
ramips: add basics for Poray devices

This commit adds the basic elements to support Poray brand routers.
It contains a tool to do the encryption/obfuscation that is used in
Poray routers.

Support for Poray devices was worked on by:

Felix Kaechele <heffer@fedoraproject.org>
Luis Soltero <lsoltero@globalmarinenet.com>
Michel Stempin <michel.stempin@wanadoo.fr>

Signed-off-by: Felix Kaechele <heffer@fedoraproject.org>
SVN-Revision: 37635

11 years agofirmware-utils/mktplinkfw: add support for the TL-MR10U board
Gabor Juhos [Fri, 26 Jul 2013 07:32:00 +0000 (07:32 +0000)]
firmware-utils/mktplinkfw: add support for the TL-MR10U board

Based on andelf's patch:
http://andelf.diandian.com/post/2013-05-22/40050677370

Signed-off-by: Oleg Titov <oleg.titov@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3840/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 37549

11 years agotools: add Broadcom cable modem firmware image creator
Florian Fainelli [Thu, 6 Jun 2013 22:21:52 +0000 (22:21 +0000)]
tools: add Broadcom cable modem firmware image creator

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 36873

11 years agofirmware-utils/mkcameofw: allow to use combined kernel image
Gabor Juhos [Wed, 8 May 2013 17:11:08 +0000 (17:11 +0000)]
firmware-utils/mkcameofw: allow to use combined kernel image

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

11 years agofirmware-utils/mktplinkfw: add description for -W option into usage output
Gabor Juhos [Tue, 30 Apr 2013 10:44:10 +0000 (10:44 +0000)]
firmware-utils/mktplinkfw: add description for -W option into usage output

Add description for -W <hwrev> option into usage output of mktplinkfw.

Signed-off-by: yousong <yszhou4tech@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36497

11 years agofirmware-utils/mktplinkfw: add support for the TL-WR720N v3 board
Gabor Juhos [Fri, 26 Apr 2013 17:00:47 +0000 (17:00 +0000)]
firmware-utils/mktplinkfw: add support for the TL-WR720N v3 board

Signed-off-by: yousong <yszhou4tech@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 36455

11 years agoAdd Netgear WNCE2001 (OF version)
John Crispin [Tue, 9 Apr 2013 14:19:33 +0000 (14:19 +0000)]
Add Netgear WNCE2001 (OF version)

Add Netgear WNCE2001.

This is a small RT3052 device with 4MB spi flash and 32MB ram.
2 built-in antennas, 1x fastE, no USB, reset & wps switch.
On my model the AP/RT switch is unpopulated, but I verified the gpio
mapping for it.
The stock firmware is running an unprotected tftpd which allows you
to read any file from the filesystem.
Serial port is present on testpads (See image on the wiki page).
There are more testpads below the shield near the SoC, which
may have JTAG.

Slight annoyance: The bootloader is checksumming kernel&rootfs, but
can be tricked by zeroing checksum and length fields in the checksum
partition, see
target/linux/ramips/base-files/lib/preinit/04_disable_wnce2001_flash_checksumming

The manufacturer image is very similar to the DAP one, so I slightly
modified mkdapimg to support generating it.

The resulting
openwrt-ramips-rt305x-wnce2001-squashfs-factory-(worldwide|northamerica).bin
can be used to flash from stock to OpenWRT using the stock firmware
upgrade function, without using the serial port.

http://www.netgear.com/landing/wnce2001.aspx
http://wiki.openwrt.org/toh/netgear/wnce2001

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
SVN-Revision: 36289

11 years agofirmware-utils/mktplinkfw: Add support for MR3420v2
Gabor Juhos [Mon, 11 Mar 2013 15:55:23 +0000 (15:55 +0000)]
firmware-utils/mktplinkfw: Add support for MR3420v2

Patch-by: Dmytro <dioptimizer@gmail.com>
Patchwork: http://patchwork.openwrt.org/patch/3441/
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35963

11 years agofirmware-utils/mktplinkfw: add support for the TL-WA830RE v1/v2 boards
Gabor Juhos [Mon, 25 Feb 2013 20:37:32 +0000 (20:37 +0000)]
firmware-utils/mktplinkfw: add support for the TL-WA830RE v1/v2 boards

Signed-off-by: Ronald Hecht <ronald.hecht@gmx.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35787

11 years agofirmware-utils/mktplinkfw: add support for the TL-WDR4900 v1
Gabor Juhos [Wed, 13 Feb 2013 16:51:24 +0000 (16:51 +0000)]
firmware-utils/mktplinkfw: add support for the TL-WDR4900 v1

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

11 years agofirmware-utils/mktplinkfw: add TP-LINK TL-WR743ND v2 support
Gabor Juhos [Sat, 2 Feb 2013 10:01:11 +0000 (10:01 +0000)]
firmware-utils/mktplinkfw: add TP-LINK TL-WR743ND v2 support

AR9331 based, these same as 741v4

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35448

11 years agoadds support for Edimax BR-6524N
John Crispin [Sun, 6 Jan 2013 11:11:30 +0000 (11:11 +0000)]
adds support for Edimax BR-6524N

fixes #12754

Signed-off-by: <rq@akl.lt>
SVN-Revision: 35019

11 years agofirmware-utils/mktplinkfw: add support for the TL-MR3220 v2
Gabor Juhos [Wed, 19 Dec 2012 08:50:43 +0000 (08:50 +0000)]
firmware-utils/mktplinkfw: add support for the TL-MR3220 v2

Based on the following patch:
http://patchwork.openwrt.org/patch/3043/

Signed-off-by: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34781

11 years agofirmware-utils/mkfwimage2: allow to use numbers in partition names
Gabor Juhos [Mon, 17 Dec 2012 12:28:15 +0000 (12:28 +0000)]
firmware-utils/mkfwimage2: allow to use numbers in partition names

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

11 years agofirmware-utils/mktplinkfw: add support for TP-LINK WA801NDv1
Gabor Juhos [Fri, 7 Dec 2012 19:10:54 +0000 (19:10 +0000)]
firmware-utils/mktplinkfw: add support for TP-LINK WA801NDv1

Patch-by: Amir Sagie <openwrt-devel@taproot.org.il>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34575

12 years agofirmware-utils/mktplinkfw: add support for TL-WA7510N
Gabor Juhos [Tue, 13 Nov 2012 14:48:02 +0000 (14:48 +0000)]
firmware-utils/mktplinkfw: add support for TL-WA7510N

[juhosg: separated from the http://patchwork.openwrt.org/patch/2820/ patch]

Signed-off-by: Stefan Helmert <helst_listen@aol.de>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34189

12 years agofirmware-utils: new tool for fixing U-Media firmware headers
Gabor Juhos [Thu, 18 Oct 2012 07:23:09 +0000 (07:23 +0000)]
firmware-utils: new tool for fixing U-Media firmware headers

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

12 years agotools/firmware-utils: add seama tool
Gabor Juhos [Thu, 18 Oct 2012 07:22:57 +0000 (07:22 +0000)]
tools/firmware-utils: add seama tool

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

12 years agofirmware-utils: move bcm_tag.h here
Jonas Gorski [Mon, 8 Oct 2012 09:59:50 +0000 (09:59 +0000)]
firmware-utils: move bcm_tag.h here

Since there is only one user of bcm_tag.h left, we can safely move it
into the firmware-utils directory, replacing the symlink.

SVN-Revision: 33655

12 years agotools/firmware-utils: add a new tool for TEW-712BR firmware generation
Gabor Juhos [Wed, 22 Aug 2012 20:15:34 +0000 (20:15 +0000)]
tools/firmware-utils: add a new tool for TEW-712BR firmware generation

SVN-Revision: 33233

12 years agotools/firmware-utils/ptgen option to use MB rounding
John Crispin [Wed, 22 Aug 2012 09:22:38 +0000 (09:22 +0000)]
tools/firmware-utils/ptgen option to use MB rounding

SVN-Revision: 33218

12 years agotools/firmware-utils: add tool for DIR-651-H1 firmware generation
Gabor Juhos [Fri, 17 Aug 2012 17:56:02 +0000 (17:56 +0000)]
tools/firmware-utils: add tool for DIR-651-H1 firmware generation

Signed-off-by: Mikko Hissa <mikko.hissa@uta.fi>
SVN-Revision: 33204

12 years agouse HOST_STATIC_LINKING instead of hardcoding -static
Jo-Philipp Wich [Sun, 12 Aug 2012 12:34:30 +0000 (12:34 +0000)]
use HOST_STATIC_LINKING instead of hardcoding -static

SVN-Revision: 33140

12 years agofirmware-utils: link statically
Jo-Philipp Wich [Fri, 10 Aug 2012 19:27:08 +0000 (19:27 +0000)]
firmware-utils: link statically

SVN-Revision: 33117

12 years agoadds mkdapimg
John Crispin [Tue, 24 Jul 2012 20:38:49 +0000 (20:38 +0000)]
adds mkdapimg

Signed-off-by: Yoichi Shinoda <shinoda@jaist.ac.jp>
SVN-Revision: 32822

12 years agofirmware-utils/mktplinkfw: allow to specify firmware version
Gabor Juhos [Thu, 5 Jul 2012 16:25:29 +0000 (16:25 +0000)]
firmware-utils/mktplinkfw: allow to specify firmware version

SVN-Revision: 32616

12 years agotools: imagetag: add parameter for padding images
Jonas Gorski [Sun, 27 May 2012 13:22:19 +0000 (13:22 +0000)]
tools: imagetag: add parameter for padding images

Allow images to be padded to a certain size. This prevents CFE from
flashing them to the second image offset.

SVN-Revision: 31875

12 years agofirmware-utils/mktplinkfw: add support for the TL-WR1041N v2
Gabor Juhos [Sat, 5 May 2012 17:02:38 +0000 (17:02 +0000)]
firmware-utils/mktplinkfw: add support for the TL-WR1041N v2

Patch-by: Vince Huang <axishero@foxmail.com>
SVN-Revision: 31609

12 years agofirmware-utils/mkfwimage: allow to override firmware magic
Gabor Juhos [Sat, 18 Feb 2012 14:45:54 +0000 (14:45 +0000)]
firmware-utils/mkfwimage: allow to override firmware magic

SVN-Revision: 30627

12 years agoSupport booting the Speedport W502V using BRN-BOOT.
John Crispin [Tue, 14 Feb 2012 17:48:04 +0000 (17:48 +0000)]
Support booting the Speedport W502V using BRN-BOOT.

While the disadvantage is less available flash space, it's easy and
safe to flash without opening the device.
Going back to the original firmware is also possible.

This patch add two firmware utilities, mkbrncmdline and mkbrnboot.

mkbrncmdline patches the uncompressed kernel so the registeres a0 to
a3 are initialized and the memory size is passed in.

mkbrnboot takes the lzma compressed kernel and squashfs images and
creates a firmware image that can be flashed using the BRN-BOOT
recovery kernel, which is booted by holding both buttons when
powering up the device and will listen on http://192.168.2.1.

The firmware file from bin/lantiq/ to use is
openwrt-lantiq-danube-ARV4525PW-BRNDTW502-brnImage

The BRN-BOOT recovery kernel does size-check the image, so if it's
too big to fit into flash it will complain accordingly.

A second patch is needed to make the wired network interface work
since there is no u-boot to pre-initialise it.

Signed-off-by: Tobias Diedrich <ranma+openwrt@tdiedrich.de>
SVN-Revision: 30532

12 years agofirmware-utils/mkmylofw: add WPE72 support
Gabor Juhos [Thu, 26 Jan 2012 17:01:43 +0000 (17:01 +0000)]
firmware-utils/mkmylofw: add WPE72 support

Signed-off-by: Johnathan Boyce <jon.boyce@globalreach.eu.com>
SVN-Revision: 29913

12 years agotools: clean up Makefiles / make ccache work
John Crispin [Sun, 15 Jan 2012 11:43:13 +0000 (11:43 +0000)]
tools: clean up Makefiles / make ccache work

SVN-Revision: 29754

12 years agofirware-utils/mktplinkfw: add TL-WR2543N/ND support
Gabor Juhos [Sat, 7 Jan 2012 19:36:40 +0000 (19:36 +0000)]
firware-utils/mktplinkfw: add TL-WR2543N/ND support

SVN-Revision: 29681

12 years agofirmware-utils/mktplinkfw: add support for TL-WA701N/ND
Gabor Juhos [Wed, 4 Jan 2012 17:30:53 +0000 (17:30 +0000)]
firmware-utils/mktplinkfw: add support for TL-WA701N/ND

SVN-Revision: 29655

12 years agofirmware-utils/mktplinkfw: add support for TL-MR3020
Gabor Juhos [Wed, 4 Jan 2012 17:30:44 +0000 (17:30 +0000)]
firmware-utils/mktplinkfw: add support for TL-MR3020

Signed-off-by: Christian Cier-Zniewski <c.cier@gmx.de>
SVN-Revision: 29650

12 years agofirmware-utils/mktplinkfw: add ability to put jffs2 eof marker into the image
Gabor Juhos [Thu, 15 Dec 2011 22:03:42 +0000 (22:03 +0000)]
firmware-utils/mktplinkfw: add ability to put jffs2 eof marker into the image

SVN-Revision: 29544

13 years agotools/mktplinkfw: allow to specify hw_id, hw_rev and flash_layout
Gabor Juhos [Tue, 6 Dec 2011 16:26:41 +0000 (16:26 +0000)]
tools/mktplinkfw: allow to specify hw_id, hw_rev and flash_layout

SVN-Revision: 29466

13 years agofirmware-utils/mktplinkfw: allow to align the rootfs on a specified boundary
Gabor Juhos [Mon, 5 Dec 2011 14:52:31 +0000 (14:52 +0000)]
firmware-utils/mktplinkfw: allow to align the rootfs on a specified boundary

SVN-Revision: 29445

13 years agofirmware-utils/mktplinkfw: fix combined image creation
Gabor Juhos [Sat, 3 Dec 2011 16:57:21 +0000 (16:57 +0000)]
firmware-utils/mktplinkfw: fix combined image creation

SVN-Revision: 29409

13 years agofirmware-utils/mktplinfw: use htonl/ntohl
Gabor Juhos [Thu, 24 Nov 2011 20:09:40 +0000 (20:09 +0000)]
firmware-utils/mktplinfw: use htonl/ntohl

Based on a patch by Adrian Chadd <adrian@freebsd.org>

SVN-Revision: 29327

13 years agofirmware-utils/mktplinkfw: add TL-WR741ND v4
Gabor Juhos [Tue, 1 Nov 2011 11:20:54 +0000 (11:20 +0000)]
firmware-utils/mktplinkfw: add TL-WR741ND v4

SVN-Revision: 28707

13 years agoAdd firmware tool for generating factory images for Edimax devices
Vasilis Tsiligiannis [Sun, 30 Oct 2011 22:57:41 +0000 (22:57 +0000)]
Add firmware tool for generating factory images for Edimax devices

SVN-Revision: 28688

13 years agofirmware-utils/mktplinkfw: fix hardware id of the TL-WR740 v3
Gabor Juhos [Wed, 26 Oct 2011 13:34:48 +0000 (13:34 +0000)]
firmware-utils/mktplinkfw: fix hardware id of the TL-WR740 v3

SVN-Revision: 28602

13 years agofirmware-utils/mktplinkfw: add support for TL-WR703N v1
Gabor Juhos [Wed, 21 Sep 2011 11:47:55 +0000 (11:47 +0000)]
firmware-utils/mktplinkfw: add support for TL-WR703N v1

Patch-by: dongyuqi <729650915@qq.com>
SVN-Revision: 28278

13 years agofirmware-utils/mktplinkfw: add support for TL-WR743ND v1
Gabor Juhos [Wed, 21 Sep 2011 11:47:42 +0000 (11:47 +0000)]
firmware-utils/mktplinkfw: add support for TL-WR743ND v1

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

13 years agofirmware-utils/mktplinkfw: add support for TL-WR740N v3
Gabor Juhos [Wed, 21 Sep 2011 11:47:39 +0000 (11:47 +0000)]
firmware-utils/mktplinkfw: add support for TL-WR740N v3

Signed-off-by: Martin Raykov <martin.raykov@gmail.com>
SVN-Revision: 28268