aboutsummaryrefslogtreecommitdiffstats
path: root/tools/firmware-utils/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* firmware-utils: add otrx tool for handling TRX imagesRafał Miłecki2017-11-171-0/+1
| | | | | | | | | It can be a replacement for the trx tool. The advantage is that otrx doesn't alloc buffer for the whole TRX which can be a nice optimization when creating big images. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Acked-by: Hauke Mehrtens <hauke@hauke-m.de>
* tools/firmware-utils: mktplinkfw regroup duplicate codeThibaut VARÈNE2017-10-061-2/+2
| | | | | | | | | | | | | This patch carves out the duplicated code of mktplinfw.c and mktplinkfw2.c and moves it to mktplinkfw-lib.c This change is a semantic NOP (the code is unchanged). To ensure compatibility with gcc-5.x and newer without changing the code, -fgnu89-inline is added to the build flags for these two binaries. Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
* firmware-utils: drop mktplinkfw-kernel toolPiotr Dymacz2017-07-221-1/+0
| | | | | | | As we can now use combined mode in "mktplinkfw" tool to generate the same header/image, this tool is no longer needed. Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
* firmware-utils: fix dgn3500sum compiler warningsMathias Kresin2017-06-261-1/+1
| | | | | | | | | | | The sum variable need to be initialised, otherwise it will points to random stack memory and a bogus image checksum might be calculated. While at it, fix the segfault in case the product region code isn't specified and enable compiler warnings which had revealed all the code issues. Signed-off-by: Mathias Kresin <dev@kresin.me>
* firmware-utils: improve tools for Buffalo DHP seriesFUKAUMI Naoki2017-01-311-0/+1
| | | | | | | | | some of Buffalo DHP series use slightly different trx magic, buffalo-enc, buffalo-tag, and factory image begin with 'bgn'. this patch adds support for building those images. Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
* firmware-utils: kernel image generator for TP-Link RE450Tal Keren2016-12-221-0/+1
| | | | | | | | | | | | | | | | | The firmware image that is used in TP-Link RE450 (and some more devices from the RE series) is tplink-safeloader. In the kernel partition, the kernel is compressed in a regular tp-link firmware that is just used for booting. Since it is only used for compressing and booting, only four fields are filled in the header: Vendor, version, kernel load address and kernel entry point. mktplinkfw-kernel is a simpler version of mktpolinkfw that generate such images. It also specifies the hardware id (as it is in the product info section), so when doing a sysupgrade - the existing code will check for hardware compatibility. Signed-off-by: Tal Keren <kooolk@gmail.com> [rd@radekdostal.com: add build target to .../image/tp-link.mk] Signed-off-by: Radek Dostál <rd@radekdostal.com>
* firmware-utils: add tool to create zyxel imagesVitaly Chekryzhev2016-11-171-0/+1
| | | | | | | Signed-off-by: Vitaly Chekryzhev <13hakta@gmail.com> [moved to firmware-utils package] [dropped the compiled binary] Signed-off-by: Mathias Kresin <dev@kresin.me>
* ar71xx: add support for Buffalo BHR-4GRV2FUKAUMI Naoki2016-11-161-0/+1
| | | | Signed-off-by: FUKAUMI Naoki <naobsd@gmail.com>
* firmware-utils: mkwrggimg: new tool for D-Link DAP-2695Stijn Tintel2016-10-271-0/+1
| | | | | | | Based on mkwrgimg.c. Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
* firmware-utils mkmerakifw-old: firmware generator for Z1Christian Lamparter2016-09-191-0/+1
| | | | | | This patch adds firmware generation tool for Cisco's Z1 Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
* tools/firmware-utils: remove obsolete firmware utility for airlink 525wFelix Fietkau2016-05-121-1/+0
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* tools: firmware-utils: clean up mktplinkfwJohn Crispin2016-04-211-1/+1
| | | | | | | | | | | | | Remove the whole board list from mktplinkfw, as OpenWrt doesn't use it and it was severely out of sync with the list of built images for ar71xx. Also: * fix -Wall warnings * add const where appropriate Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 49214
* ramips: Add a tool to create JCG factory imagesJohn Crispin2016-03-031-0/+1
| | | | | | | | | | This tool creates factory images for JCG routers. Details can be found in the header comment of jcgimage.c. Signed-off-by: Reinhard Max <reinhard@m4x.de> Reviewed-by: Torsten Duwe <duwe@lst.de> SVN-Revision: 48888
* firmware-utils: mkfwimage: add -Wall, fix obvious bugs causing compile warningsFelix Fietkau2016-02-291-1/+1
| | | | | | Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> SVN-Revision: 48827
* firmware-utils: add oseama tool for creating Seama entitiesRafał Miłecki2016-02-011-0/+1
| | | | | | | | | | | | | It has an important feature (compared to seama) of using multiple input files, aligning them and padding zeroes until reaching a specified absolute offset. This is needed for a proper flash layout on NAND. We want kernel partition to be big enough to handle future updates without a need to resize it and wipe whole "ubi" partition. It's important as we don't want to lose block counters. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 48601
* firmware-utils mkmerakifw: firmware generator for MR18John Crispin2015-12-111-0/+1
| | | | | | | | This patch adds firmware generation tool for Cisco's MR18 Signed-off-by: Thomas Hebb <tommyhebb@gmail.com> SVN-Revision: 47856
* firmware-utils: asustrx: new tool for TRX format with Asus tailRafał Miłecki2015-05-271-0/+1
| | | | | | | | Asus devices use TRX format with some extra data at the end. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45773
* firmware-utils: imagetag: use cyg_crc32 instead of duplicating codeJonas Gorski2015-02-271-1/+1
| | | | | | Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 44554
* tools: remove static linking supportJo-Philipp Wich2015-02-061-1/+1
| | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44285
* Belkin AC 1750 DB (F9K1115v2) supportImre Kaloz2014-12-171-0/+1
| | | | | | Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 43734
* firmware-utils: add new tool tplink-safeloader for the new TP-LINK Pharos ↵John Crispin2014-11-261-0/+1
| | | | | | | | | | | | | | | | 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
* firmware-utils: restore compilation of mkhilinkfw.John Crispin2014-10-201-2/+2
| | | | | | Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com> SVN-Revision: 42989
* firmware-utils: made mkdir615h1 work for all Senao-produced devices as ↵John Crispin2014-08-031-1/+1
| | | | | | | | mksenaofw and cleaned up some of its formatting Signed-off-by: Forest Crossman <cyrozap@gmail.com> SVN-Revision: 41962
* firmware-utils: add new tool for fixing headers on ZyXEL devices (brcm63xx)Jonas Gorski2014-07-271-0/+1
| | | | | | | Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 41849
* lantiq: DGN3500 (all known variants) factory and sysupgrade image building ↵John Crispin2014-06-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ramips: RT-N56U support fixes and factory image creationJohn Crispin2014-06-161-0/+1
| | | | | | Signed-off-by: Mikko Hissa <mikko.hissa@werzek.com> SVN-Revision: 41224
* firmware-utils: add Gemtek header toolJohn Crispin2014-04-221-0/+1
| | | | | | | | | 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
* ralink: don't build mkhilinkfw untilt he ssl header dependency is resolvedJohn Crispin2014-01-121-1/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39248
* firmware-utils: add HLK-RM04 toolJohn Crispin2014-01-121-0/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 39238
* firmware-utils: remove the wndr3700 utilityGabor Juhos2013-11-061-1/+0
| | | | | | | | It is not used anymore. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 38663
* tools: add tool to generate dcs93xl imagesJohn Crispin2013-10-071-0/+1
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38317
* firmware-utils: add a tool TP-Link v2 image generationJohn Crispin2013-08-061-0/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 37726
* ramips: add basics for Poray devicesJohn Crispin2013-08-011-0/+1
| | | | | | | | | | | | | | | | 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
* tools: add Broadcom cable modem firmware image creatorFlorian Fainelli2013-06-061-0/+1
| | | | | | Signed-off-by: Florian Fainelli <florian@openwrt.org> SVN-Revision: 36873
* firmware-utils: new tool for fixing U-Media firmware headersGabor Juhos2012-10-181-0/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33848
* tools/firmware-utils: add seama toolGabor Juhos2012-10-181-0/+1
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 33840
* tools/firmware-utils: add a new tool for TEW-712BR firmware generationGabor Juhos2012-08-221-0/+1
| | | | SVN-Revision: 33233
* tools/firmware-utils: add tool for DIR-651-H1 firmware generationGabor Juhos2012-08-171-0/+1
| | | | | | Signed-off-by: Mikko Hissa <mikko.hissa@uta.fi> SVN-Revision: 33204
* use HOST_STATIC_LINKING instead of hardcoding -staticJo-Philipp Wich2012-08-121-1/+1
| | | | SVN-Revision: 33140
* firmware-utils: link staticallyJo-Philipp Wich2012-08-101-2/+2
| | | | SVN-Revision: 33117
* adds mkdapimgJohn Crispin2012-07-241-0/+1
| | | | | | Signed-off-by: Yoichi Shinoda <shinoda@jaist.ac.jp> SVN-Revision: 32822
* Support booting the Speedport W502V using BRN-BOOT.John Crispin2012-02-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* tools: clean up Makefiles / make ccache workJohn Crispin2012-01-151-1/+1
| | | | SVN-Revision: 29754
* Add firmware tool for generating factory images for Edimax devicesVasilis Tsiligiannis2011-10-301-1/+2
| | | | SVN-Revision: 28688
* tools/firmware-utils: add yet another buffalo toolGabor Juhos2011-07-061-0/+1
| | | | SVN-Revision: 27475
* tools/firmware-utils: add new firmware tool for the DIR-300-B1 boardGabor Juhos2011-07-041-0/+1
| | | | SVN-Revision: 27438
* tools/firmware-utils: add buffalo specific fw toolsGabor Juhos2011-05-311-0/+2
| | | | SVN-Revision: 27050
* bcm63xx: Add firmware helpers for T-Home Speedport W 303VFlorian Fainelli2011-05-111-0/+2
| | | | | | | | | Add two helpers for generating correctly tagged images for the T-Home Speedport W 303V Typ B as well as xor'd ones as required by CFE. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> SVN-Revision: 26877
* brcm47xx: Add edimax PS1208mfg supportHauke Mehrtens2010-12-021-0/+1
| | | | | | Thank you clemvangelis for the patches. (closes #7672) SVN-Revision: 24217
* imagetag: Significantly updated brcm63xx imagetag writing tool. * Rewrote ↵Daniel Dickinson2010-11-161-2/+1
| | | | | | commandline parsing code using gengetopt - We now get long options - We have more options including use of the info section for board information (e.g. to add the same boardid but different GPIOs on different routers) * Added back the ability to write stock images (this is useful, for example, when copying the firmware from the in-memory flash, and then being able to create an image that will let you revert to/test stock firmware * Fixed copying of CRCs to use memcpy instead of strncpy (strncpy stops at 0) * Added ability to use all sections of the imagetag, including custom magic signatures (e.g. for the Telsey router I'm adding soon), info sections, and reserved sections * Added putting the router type (as defined in the image generating Makefile) into the info1 section and the filesystem type in the info2 section. This will be used by mtd (when I add the code) to return the name of image used to flash this router. (As requested by Jo, as well as being useful for same boardid different board scenario described above). SVN-Revision: 24011